nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ ocrypto_ml_dsa87_sign_hash()

static int ocrypto_ml_dsa87_sign_hash ( ocrypto_ml_dsa87_ctx * ctx,
uint8_t sig[(4627)],
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[(4896)],
const uint8_t rnd[32] )
inlinestatic

#include <crypto/nrf_oberon/include/ocrypto_ml_dsa87.h>

Signs a hash.

Parameters
[in]ctxContext.
[out]sigGenerated signature.
[in]hashHash to sign.
[in]hash_lenLength of the hash.
[in]oidObject identifier (11 bytes).
[in]ctx_strContext string (optional).
[in]ctx_lenLength of the context string (0 <= ctx_len < 256).
[in]skSecret key.
[in]rndRandom seed (32 bytes, NULL for deterministic signing).
Returns
0 on success, non-zero on failure.