![]() |
nrfxlib API 3.3.99
|
| int ocrypto_ecdsa_p256k1_sign_hash | ( | uint8_t | sig[64], |
| const uint8_t | hash[32], | ||
| const uint8_t | sk[32], | ||
| const uint8_t | ek[32] ) |
#include <crypto/nrf_oberon/include/ocrypto_ecdsa_p256k1.h>
ECDSA secp256k1 signature generation from SHA256 hash.
The message hash hash is signed using the secret key sk and the ephemeral session key ek. The signature is put into sig.
| [out] | sig | Generated signature. |
| hash | Input hash. | |
| sk | Secret key. | |
| ek | Session key. |
| 0 | If ek is a valid session key. |
| -1 | Otherwise. |