21 #ifndef NDN_EC_PRIVATE_KEY_H
22 #define NDN_EC_PRIVATE_KEY_H
24 #include <ndn-cpp/c/common.h>
25 #include <ndn-cpp/c/errors.h>
26 #include <ndn-cpp/c/security/ec-private-key-types.h>
59 ndn_EcPrivateKey_decode
61 size_t privateKeyDerLength);
75 ndn_EcPrivateKey_setByCurve
106 ndn_EcPrivateKey_encodePrivateKey
107 (
const struct ndn_EcPrivateKey *
self,
int includeParameters, uint8_t *encoding,
108 size_t *encodingLength);
125 ndn_EcPrivateKey_encodePublicKey
126 (
const struct ndn_EcPrivateKey *
self,
int includeParameters, uint8_t *encoding,
127 size_t *encodingLength);
142 ndn_EcPrivateKey_signWithSha256
143 (
const struct ndn_EcPrivateKey *
self,
const uint8_t *data,
size_t dataLength,
144 uint8_t *signature,
size_t *signatureLength);
A struct ndn_EcPrivateKey holds a decoded EC private key for use in crypto operations.
Definition: ec-private-key-types.h:34