MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_get_hmac_digest_len

Function sctp_get_hmac_digest_len

freebsd/netinet/sctp_auth.c:822–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822uint32_t
823sctp_get_hmac_digest_len(uint16_t hmac_algo)
824{
825 switch (hmac_algo) {
826 case SCTP_AUTH_HMAC_ID_SHA1:
827 return (SCTP_AUTH_DIGEST_LEN_SHA1);
828 case SCTP_AUTH_HMAC_ID_SHA256:
829 return (SCTP_AUTH_DIGEST_LEN_SHA256);
830 default:
831 /* unknown HMAC algorithm: can't do anything */
832 return (0);
833 } /* end switch */
834}
835
836static inline int
837sctp_get_hmac_block_len(uint16_t hmac_algo)

Callers 8

sctp_add_auth_chunkFunction · 0.85
sctp_get_auth_chunk_lenFunction · 0.85
sctp_hmacFunction · 0.85
sctp_hmac_mFunction · 0.85
sctp_compute_hmacFunction · 0.85
sctp_compute_hmac_mFunction · 0.85
sctp_fill_hmac_digest_mFunction · 0.85
sctp_handle_authFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected