SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslCRACENDSA.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define SHARKSSL_CRACEN_DSA_P_BYTES   256
 DSA domain prime and public key size in bytes. More...
 
#define SHARKSSL_CRACEN_DSA_Q_BYTES   32
 DSA order, scalar, digest and signature component size in bytes. More...
 
#define SHARKSSL_CRACEN_DSA_OK   0
 Operation succeeded (0). More...
 
#define SHARKSSL_CRACEN_DSA_BAD_ARGUMENT   -1
 Invalid argument or unsupported input size. More...
 
#define SHARKSSL_CRACEN_DSA_INVALID_SIGNATURE   -2
 Signature or public key rejected. More...
 
#define SHARKSSL_CRACEN_DSA_UNAVAILABLE   -3
 Required hardware or capability unavailable. More...
 
#define SHARKSSL_CRACEN_DSA_HARDWARE_ERROR   -4
 Hardware operation failed. More...
 
#define SHARKSSL_CRACEN_DSA_RETRY_NONCE   -5
 Retry signing with a fresh nonce. More...
 

Functions

int sharkssl_CRACENDSA_signDigest2048_256 (const uint8_t *p, const uint8_t *q, const uint8_t *g, const uint8_t *privateX, const uint8_t *nonceK, const uint8_t *hash, uint8_t *r, uint8_t *s)
 Sign a SHA-256 digest using trusted DSA 2048/256 domain parameters. More...
 
int sharkssl_CRACENDSA_verifyDigest2048_256 (const uint8_t *p, const uint8_t *q, const uint8_t *g, const uint8_t *publicY, const uint8_t *r, const uint8_t *s, const uint8_t *hash)
 Verify a prehashed DSA 2048/256 signature. More...
 

Detailed Description

See SharkSSL Nordic CRACEN integration for required sources and platform setup.