def _unpack(keydata):
 parts = []
 while keydata:
  dlen = struct.unpack('>I', keydata[:4])[0]
  (data, keydata) = (keydata[4:(dlen + 4)], keydata[(4 + dlen):])
  parts.append(data)
 return parts

def _unpack ( keydata ) : parts = [ ] while keydata : dlen = struct . unpack ( '>I' , keydata [ : 4 ] ) [ 0 ] ( data , keydata ) = ( keydata [ 4 : ( dlen + 4 ) ] , keydata [ ( 4 + dlen ) : ] ) parts . append ( data ) return parts
unpack a ssh agent key blob into parts .