nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_sha1_final()

void ocrypto_sha1_final ( ocrypto_sha1_ctx *  ctx,
uint8_t  r[(20)] 
)

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

SHA-1 output.

The generator state ctx is updated to finalize the hash for the previously processed message chunks. The hash is put into r.

Parameters
ctxGenerator state.
[out]rGenerated hash value.
Remarks
Initialization of the generator state ctx through ocrypto_sha1_init is required before this function can be called.
After return, the generator state ctx must no longer be used with ocrypto_sha1_update and ocrypto_sha1_final unless it is reinitialized using ocrypto_sha1_init.