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

Function sctp_hmac_init

freebsd/netinet/sctp_auth.c:851–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851static void
852sctp_hmac_init(uint16_t hmac_algo, sctp_hash_context_t *ctx)
853{
854 switch (hmac_algo) {
855 case SCTP_AUTH_HMAC_ID_SHA1:
856 SCTP_SHA1_INIT(&ctx->sha1);
857 break;
858 case SCTP_AUTH_HMAC_ID_SHA256:
859 SCTP_SHA256_INIT(&ctx->sha256);
860 break;
861 case SCTP_AUTH_HMAC_ID_RSVD:
862 default:
863 /* unknown HMAC algorithm: can't do anything */
864 return;
865 } /* end switch */
866}
867
868static void
869sctp_hmac_update(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