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

Function sctp_get_hmac_block_len

freebsd/netinet/sctp_auth.c:836–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834}
835
836static inline int
837sctp_get_hmac_block_len(uint16_t hmac_algo)
838{
839 switch (hmac_algo) {
840 case SCTP_AUTH_HMAC_ID_SHA1:
841 return (64);
842 case SCTP_AUTH_HMAC_ID_SHA256:
843 return (64);
844 case SCTP_AUTH_HMAC_ID_RSVD:
845 default:
846 /* unknown HMAC algorithm: can't do anything */
847 return (0);
848 } /* end switch */
849}
850
851static void
852sctp_hmac_init(uint16_t hmac_algo, sctp_hash_context_t *ctx)

Callers 4

sctp_hmacFunction · 0.85
sctp_hmac_mFunction · 0.85
sctp_compute_hmacFunction · 0.85
sctp_compute_hmac_mFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected