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

Function sctp_hmac_update

freebsd/netinet/sctp_auth.c:868–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866}
867
868static void
869sctp_hmac_update(uint16_t hmac_algo, sctp_hash_context_t *ctx,
870 uint8_t *text, uint32_t textlen)
871{
872 switch (hmac_algo) {
873 case SCTP_AUTH_HMAC_ID_SHA1:
874 SCTP_SHA1_UPDATE(&ctx->sha1, text, textlen);
875 break;
876 case SCTP_AUTH_HMAC_ID_SHA256:
877 SCTP_SHA256_UPDATE(&ctx->sha256, text, textlen);
878 break;
879 case SCTP_AUTH_HMAC_ID_RSVD:
880 default:
881 /* unknown HMAC algorithm: can't do anything */
882 return;
883 } /* end switch */
884}
885
886static void
887sctp_hmac_final(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