21 #ifndef NDN_RSA_PUBLIC_KEY_H
22 #define NDN_RSA_PUBLIC_KEY_H
24 #include <ndn-cpp/c/common.h>
25 #include <ndn-cpp/c/errors.h>
26 #include <ndn-cpp/c/encrypt/algo/encrypt-params-types.h>
27 #include <ndn-cpp/c/security/rsa-public-key-types.h>
60 ndn_RsaPublicKey_decode
62 size_t publicKeyDerLength);
77 ndn_RsaPublicKey_encode
79 size_t *encodingLength);
91 ndn_RsaPublicKey_verifyWithSha256
93 size_t signatureLength,
const uint8_t *data,
size_t dataLength);
109 ndn_verifySha256WithRsaSignature
110 (
const uint8_t *signature,
size_t signatureLength,
const uint8_t *data,
111 size_t dataLength,
const uint8_t *publicKeyDer,
size_t publicKeyDerLength,
129 ndn_RsaPublicKey_encrypt
131 size_t plainDataLength, ndn_EncryptAlgorithmType algorithmType,
132 uint8_t *encryptedData,
size_t *encryptedDataLength);
A struct ndn_RsaPublicKey holds a decoded RSA public key for use in crypto operations.
Definition: rsa-public-key-types.h:34