Public Member Functions | List of all members
ndn::PublicKey Class Reference

Public Member Functions

 PublicKey ()
 The default constructor.
 
 PublicKey (const Blob &keyDer)
 Create a new PublicKey by decoding the keyDer. More...
 
ptr_lib::shared_ptr< DerNodetoDer ()
 Encode the public key into DER. More...
 
KeyType getKeyType () const
 
Blob getDigest (DigestAlgorithm digestAlgorithm=DIGEST_ALGORITHM_SHA256) const
 
const BlobgetKeyDer () const
 

Constructor & Destructor Documentation

ndn::PublicKey::PublicKey ( const Blob keyDer)

Create a new PublicKey by decoding the keyDer.

Set the key type from the decoding.

Parameters
keyDerThe blob of the SubjectPublicKeyInfo DER.
Exceptions
UnrecognizedKeyFormatExceptionif can't decode the key DER.

Member Function Documentation

ptr_lib::shared_ptr< DerNode > ndn::PublicKey::toDer ( )

Encode the public key into DER.

Returns
the encoded DER syntax tree.

The documentation for this class was generated from the following files: