|
ndn-embeds 0.1.0
Lightweight NDN protocol stack for embedded systems
|
NDN signature types and constants. More...
#include <cstddef>#include <cstdint>Go to the source code of this file.
Enumerations | |
| enum class | ndn::SignatureType : uint8_t { DigestSha256 = 0 , SignatureSha256WithRsa = 1 , SignatureSha256WithEcdsa = 3 , SignatureHmacWithSha256 = 4 , SignatureEd25519 = 5 } |
| Signature type. More... | |
Functions | |
| constexpr const char * | ndn::signatureTypeToString (SignatureType type) |
| Convert signature type to string. | |
Variables | |
Signature size constants | |
| constexpr size_t | ndn::SHA256_DIGEST_SIZE = 32 |
| SHA-256 digest size (bytes) | |
| constexpr size_t | ndn::HMAC_SHA256_SIZE = 32 |
| HMAC-SHA256 size (bytes) | |
| constexpr size_t | ndn::ECDSA_P256_SIG_MAX_SIZE = 72 |
| ECDSA P-256 signature max size (DER format) | |
| constexpr size_t | ndn::ED25519_SIG_SIZE = 64 |
| Ed25519 signature size (bytes) | |
| constexpr size_t | ndn::RSA_2048_SIG_SIZE = 256 |
| RSA-2048 signature size (bytes) | |
| constexpr size_t | ndn::SIGNATURE_MAX_SIZE = 72 |
| Maximum signature size (for ECDSA P-256, embedded) | |
Public key size constants | |
| constexpr size_t | ndn::ECDSA_P256_PUBKEY_SIZE = 65 |
| ECDSA P-256 public key size (uncompressed form) | |
| constexpr size_t | ndn::ECDSA_P256_PRIVKEY_SIZE = 32 |
| ECDSA P-256 private key size. | |
| constexpr size_t | ndn::ED25519_PUBKEY_SIZE = 32 |
| Ed25519 public key size. | |
| constexpr size_t | ndn::ED25519_PRIVKEY_SIZE = 32 |
| Ed25519 private key size. | |
NDN signature types and constants.
Defines types and constants related to NDN packet signatures.
Definition in file signature.hpp.
|
strong |
Signature type.
Represents signature algorithms defined in the NDN specification.
Definition at line 22 of file signature.hpp.
|
constexpr |
Convert signature type to string.
| type | Signature type |
Definition at line 55 of file signature.hpp.
References ndn::signatureTypeToString().
Referenced by ndn::signatureTypeToString().
|
constexpr |
ECDSA P-256 private key size.
Definition at line 45 of file signature.hpp.
Referenced by ndn::crypto::ecdsaP256GenerateKeyPair(), and ndn::crypto::ecdsaP256Sign().
|
constexpr |
ECDSA P-256 public key size (uncompressed form)
Definition at line 44 of file signature.hpp.
Referenced by ndn::crypto::ecdsaP256GenerateKeyPair(), and ndn::crypto::ecdsaP256Verify().
|
constexpr |
ECDSA P-256 signature max size (DER format)
Definition at line 35 of file signature.hpp.
Referenced by ndn::crypto::ecdsaP256Sign(), ndn::Data::verifyEcdsa(), and ndn::Interest::verifyEcdsa().
|
constexpr |
Ed25519 private key size.
Definition at line 47 of file signature.hpp.
|
constexpr |
Ed25519 public key size.
Definition at line 46 of file signature.hpp.
|
constexpr |
Ed25519 signature size (bytes)
Definition at line 36 of file signature.hpp.
|
constexpr |
HMAC-SHA256 size (bytes)
Definition at line 34 of file signature.hpp.
Referenced by ndn::Certificate::signWithHmac(), ndn::Data::signWithHmac(), ndn::Interest::signWithHmac(), ndn::Certificate::verifyHmac(), ndn::Data::verifyHmac(), and ndn::Interest::verifyHmac().
|
constexpr |
RSA-2048 signature size (bytes)
Definition at line 37 of file signature.hpp.
|
constexpr |
SHA-256 digest size (bytes)
Definition at line 33 of file signature.hpp.
Referenced by ndn::crypto::ecdsaP256Sign(), ndn::crypto::ecdsaP256Verify(), ndn::Certificate::signWithDigestSha256(), ndn::Data::signWithDigestSha256(), ndn::Interest::signWithDigestSha256(), ndn::Certificate::verifyDigestSha256(), ndn::Data::verifyDigestSha256(), and ndn::Interest::verifyDigestSha256().
|
constexpr |
Maximum signature size (for ECDSA P-256, embedded)
Definition at line 38 of file signature.hpp.
Referenced by ndn::Certificate::fromData(), ndn::Data::fromWire(), and ndn::Interest::fromWire().