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

◆ ocrypto_srtp_verify_authentication()

int ocrypto_srtp_verify_authentication ( const ocrypto_srtp_ctx srtp_ctx,
const uint8_t *  tag,
const uint8_t *  bytes,
size_t  num_bytes,
uint32_t  index 
)

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

Check SRTP authentication tag against bytes and index.

Parameters
srtp_ctxSRTP context.
tagTag.
bytesByte buffer.
num_bytesNumber of bytes in buffer.
indexIndex.
Return values
1If the tag is valid.
0Otherwise.