nrfxlib API 2.8.99
|
int ocrypto_ecdsa_p384_sign | ( | uint8_t | sig[96], |
const uint8_t * | m, | ||
size_t | mlen, | ||
const uint8_t | sk[48], | ||
const uint8_t | ek[48] ) |
#include <crypto/nrf_oberon/include/ocrypto_ecdsa_p384.h>
ECDSA P-384 signature generation.
The message m
is signed using the secret key sk
and the ephemeral session key ek
. The signature is put into sig
.
[out] | sig | Generated signature. |
m | Input message. | |
mlen | Length of m . | |
sk | Secret key. | |
ek | Session key. Must be pre-filled with random data. |
0 | If ek is a valid session key. |
-1 | Otherwise. |