Project

General

Profile

Actions

Task #1964

closed

PublicKey: getKeyDigest

Added by Junxiao Shi about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Security
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

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:

SignatureSha256WithRsa

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

SignatureSha256WithEcdsa

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

Also available in: Atom PDF