nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_ml_dsa65.h File Reference

ML-DSA-65 (FIPS-204 variant of CRYSTALS-Dilithium) API. More...

#include <stddef.h>
#include <stdint.h>
#include "ocrypto_sha3.h"

Go to the source code of this file.

Macros

#define ocrypto_ml_dsa65_PK_SIZE   (1952)
 
#define ocrypto_ml_dsa65_SK_SIZE   (4032)
 
#define ocrypto_ml_dsa65_SIG_SIZE   (3309)
 

Functions

static int ocrypto_ml_dsa65_key_pair (ocrypto_ml_dsa65_ctx *ctx, uint8_t sk[(4032)], uint8_t pk[(1952)], const uint8_t zeta[32])
 
static int ocrypto_ml_dsa65_sign (ocrypto_ml_dsa65_ctx *ctx, uint8_t sig[(3309)], const uint8_t *m, size_t mlen, const uint8_t *ctx_str, size_t ctx_len, const uint8_t sk[(4032)], const uint8_t rnd[32])
 
static int ocrypto_ml_dsa65_sign_hash (ocrypto_ml_dsa65_ctx *ctx, uint8_t sig[(3309)], const uint8_t *hash, size_t hash_len, const uint8_t oid[11], const uint8_t *ctx_str, size_t ctx_len, const uint8_t sk[(4032)], const uint8_t rnd[32])
 
static int ocrypto_ml_dsa65_verify (ocrypto_ml_dsa65_ctx *ctx, const uint8_t sig[(3309)], const uint8_t *m, size_t mlen, const uint8_t *ctx_str, size_t ctx_len, const uint8_t pk[(1952)])
 
static int ocrypto_ml_dsa65_verify_hash (ocrypto_ml_dsa65_ctx *ctx, const uint8_t sig[(3309)], const uint8_t *hash, size_t hash_len, const uint8_t oid[11], const uint8_t *ctx_str, size_t ctx_len, const uint8_t pk[(1952)])
 

Detailed Description

ML-DSA-65 (FIPS-204 variant of CRYSTALS-Dilithium) API.