pub unsafe extern "C" fn ocrypto_hmac_sha512_final(
    ctx: *mut ocrypto_hmac_sha512_ctx,
    r: *mut u8
)
Expand description

HMAC-SHA-512 output.

The generator state * ctx - is updated to finalize the HMAC for the previously processed message chunks. The authenticator is put into * r - .

  • ctx - Generator state.
  • r - Generated HMAC value.

@remark Initialization of the generator state * ctx - through * ocrypto_hmac_sha512_init - is required before this function can be called.

@remark After return, the generator state * ctx - must no longer be used with * ocrypto_hmac_sha512_update - and * ocrypto_hmac_sha512_final - unless it is reinitialized using * ocrypto_hmac_sha512_init - .