nvat_nonce_from_bytes#
- nvat_rc_t nvat_nonce_from_bytes(
- nvat_nonce_t *out_nonce,
- const char *input_bytes,
- size_t length,
Create a nonce from raw bytes.
- Parameters:
out_nonce – On success, set to a newly allocated nonce. Caller owns it; free with nvat_nonce_free().
input_bytes – The raw bytes to use as the nonce. This data is copied into the nonce.
length – The number of bytes in input_bytes. Must be at least 32 bytes.
- Returns:
NVAT_RC_OK on success, NVAT_RC_BAD_ARGUMENT if parameters are invalid or length is too short.