Home
last modified time | relevance | path

Searched refs:ahash (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/safexcel/
H A Dsafexcel.c1318 safexcel_setkey_hmac_digest(const struct auth_hash *ahash, union authctx *ctx, in safexcel_setkey_hmac_digest() argument
1323 switch (ahash->type) { in safexcel_setkey_hmac_digest()
1325 hashwords = ahash->hashsize / sizeof(uint32_t); in safexcel_setkey_hmac_digest()
1335 hashwords = ahash->hashsize / sizeof(uint32_t); in safexcel_setkey_hmac_digest()
1345 hashwords = ahash->hashsize / sizeof(uint64_t); in safexcel_setkey_hmac_digest()
1360 const struct auth_hash *ahash; in safexcel_setkey_hmac() local
1362 ahash = crypto_auth_hash(csp); in safexcel_setkey_hmac()
1363 hmac_init_ipad(ahash, key, klen, &ctx); in safexcel_setkey_hmac()
1364 safexcel_setkey_hmac_digest(ahash, &ctx, ipad); in safexcel_setkey_hmac()
1365 hmac_init_opad(ahash, key, klen, &ctx); in safexcel_setkey_hmac()
[all …]