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

Function cryptocteon_calc_hash

freebsd/mips/cavium/cryptocteon/cryptocteon.c:163–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static void
164cryptocteon_calc_hash(const struct crypto_session_params *csp, const char *key,
165 struct octo_sess *ocd)
166{
167 char hash_key[SHA1_HASH_LEN];
168
169 memset(hash_key, 0, sizeof(hash_key));
170 memcpy(hash_key, key, csp->csp_auth_klen);
171 octo_calc_hash(csp->csp_auth_alg == CRYPTO_SHA1_HMAC, hash_key,
172 ocd->octo_hminner, ocd->octo_hmouter);
173}
174
175/* Generate a new octo session. */
176static int

Callers 2

cryptocteon_newsessionFunction · 0.85
cryptocteon_processFunction · 0.85

Calls 3

memsetFunction · 0.85
octo_calc_hashFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected