NPc@s~dZyddlZWnek r5ddlZnXddlZddlZdefdYZdefdYZdS(s Encodes the two classes storing data about keys: - KeyMetadata: stores metadata - KeyVersion: stores key strings and types @author: arkajit.dey@gmail.com (Arkajit Dey) iNt KeyMetadatacBs\eZdZedZedZdZdZdZ dZ e dZ RS(sGEncodes metadata for a keyset with a name, purpose, type, and versions.cCs1||_||_||_||_i|_dS(N(tnametpurposettypet encryptedt_KeyMetadata__versions(tselfRRtkey_typeR((s3/usr/lib/python2.7/site-packages/keyczar/keydata.pyt__init__"s     cCs |jjS(N(Rtvalues(R((s3/usr/lib/python2.7/site-packages/keyczar/keydata.pyt)scCsmtji|jd6t|jd6t|jd6|jd6g|jD]}tjt|^qGd6S(NRRRRtversions( tjsontdumpsRtstrRRRR tloads(Rtv((s3/usr/lib/python2.7/site-packages/keyczar/keydata.pyt__str__+s  cCs-|j}||jkr)||j|s   X