23 #ifndef NDN_PUBLIC_KEY_HPP
24 #define NDN_PUBLIC_KEY_HPP
26 #include "../../util/blob.hpp"
27 #include "../../encoding/oid.hpp"
28 #include "../security-common.hpp"
40 : keyType_((KeyType)-1)
55 ptr_lib::shared_ptr<DerNode>
58 KeyType getKeyType()
const {
return keyType_; }
65 getDigest(DigestAlgorithm digestAlgorithm = DIGEST_ALGORITHM_SHA256)
const;
71 getKeyDer()
const {
return keyDer_; }
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
ptr_lib::shared_ptr< DerNode > toDer()
Encode the public key into DER.
Definition: public-key.cpp:88
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
Definition: public-key.hpp:34
PublicKey()
The default constructor.
Definition: public-key.hpp:39