pub unsafe extern "C" fn ocrypto_srtp_verify_authentication(
    srtp_ctx: *const ocrypto_srtp_ctx,
    tag: *const u8,
    bytes: *const u8,
    num_bytes: usize,
    index: u32
) -> c_int
Expand description

Check SRTP authentication tag against bytes and index.

  • srtp_ctx - SRTP context.
  • tag - Tag.
  • bytes - Byte buffer.
  • num_bytes - Number of bytes in buffer.
  • index - Index.

Returns 1 If the tag is valid. Returns 0 Otherwise.