|
SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
|
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | SHARKSSL_CRACEN_ECKCDSA_P256_BYTES 32 |
| P-256 scalar and coordinate size in bytes. More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_OK 0 |
| Operation succeeded (0). More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_BAD_ARGUMENT -1 |
| Invalid argument or unsupported input size. More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_INVALID_SIGNATURE -2 |
| Signature or public key rejected. More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_UNAVAILABLE -3 |
| Required hardware or capability unavailable. More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_HARDWARE_ERROR -4 |
| Hardware operation failed. More... | |
| #define | SHARKSSL_CRACEN_ECKCDSA_RETRY_NONCE -5 |
| Retry signing with a fresh nonce. More... | |
Functions | |
| int | sharkssl_CRACENECKCDSA_publicKeyP256 (const uint8_t *privateScalar, uint8_t *publicX, uint8_t *publicY) |
| Generate Q = inverse(d) * G for EC-KCDSA on NIST P-256. More... | |
| int | sharkssl_CRACENECKCDSA_signPartP256 (const uint8_t *privateScalar, const uint8_t *nonce, const uint8_t *r, const uint8_t *h, uint8_t *s) |
| Compute the EC-KCDSA component s = d * (k - ((r xor h) mod n)) mod n. More... | |
| int | sharkssl_CRACENECKCDSA_verifyDigestP256 (const uint8_t *publicX, const uint8_t *publicY, const uint8_t *r, const uint8_t *s, const uint8_t *h) |
| Verify a prehashed EC-KCDSA signature on NIST P-256. More... | |
See SharkSSL Nordic CRACEN integration for required sources and platform setup.