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

Go to the source code of this file.

Data Structures

struct  SharkSslCRACENFF
 Nordic CRACEN finite-field context. More...
 

Macros

#define SHARKSSL_CRACEN_FF_OK   0
 Operation succeeded (0). More...
 
#define SHARKSSL_CRACEN_FF_BAD_ARGUMENT   -1
 Invalid argument or unsupported input size. More...
 
#define SHARKSSL_CRACEN_FF_UNAVAILABLE   -2
 Required hardware or capability unavailable. More...
 
#define SHARKSSL_CRACEN_FF_HARDWARE_ERROR   -3
 Hardware operation failed. More...
 

Typedefs

typedef struct SharkSslCRACENFF SharkSslCRACENFF
 Nordic CRACEN finite-field context. More...
 

Functions

int SharkSslCRACENFF_init (SharkSslCRACENFF *o, const uint8_t *prime, uint16_t primeLen)
 Initialize a caller-owned finite-field context after PSA Crypto initialization. More...
 
int SharkSslCRACENFF_modExp (const SharkSslCRACENFF *o, const uint8_t *base, const uint8_t *exponent, uint8_t *result, uint16_t baseLen, uint16_t exponentLen, uint16_t resultLen)
 Calculate base^exponent modulo the context's prime. More...
 

Detailed Description

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