Actions
Task #1964
closedPublicKey: getKeyDigest
Description
Extend PublicKey
class with a new method:
/** \return a KeyDigest TLV block that matches this public key
*/
Block
getKeyDigest() const;
KeyDigest is defined in NDN-TLV spec as:
KeyDigest option in KeyLocator is defined as SHA256 digest over the DER encoding of the SubjectPublicKeyInfo for an RSA key as defined by RFC 3279
KeyDigest option in KeyLocator is defined as SHA256 digest over the DER encoding of the SubjectPublicKeyInfo for an EC key as defined by RFC 5480
Actions