Searched refs:axf (Results 1 – 7 of 7) sorted by relevance
| /f-stack/freebsd/crypto/via/ |
| H A D | padlock_hash.c | 262 struct auth_hash *axf; in padlock_hash_key_setup() local 264 axf = ses->ses_axf; in padlock_hash_key_setup() 285 struct auth_hash *axf; in padlock_authcompute() local 289 axf = ses->ses_axf; in padlock_authcompute() 293 axf->Update, &ctx); in padlock_authcompute() 304 axf->Final(hash, &ctx); in padlock_authcompute() 307 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute() 308 axf->Final(hash, &ctx); in padlock_authcompute() 325 struct auth_hash *axf; in padlock_hash_lookup() local 353 axf = NULL; in padlock_hash_lookup() [all …]
|
| /f-stack/freebsd/opencrypto/ |
| H A D | cryptosoft.c | 291 switch (axf->type) { in swcr_authprepare() 328 axf = sw->sw_axf; in swcr_authcompute() 363 axf->Update(&ctx, aalg, axf->hashsize); in swcr_authcompute() 403 axf = swa->sw_axf; in swcr_gmac() 483 axf = swa->sw_axf; in swcr_gcm() 658 axf = swa->sw_axf; in swcr_ccm_cbc_mac() 720 axf = swa->sw_axf; in swcr_ccm() 1012 swa->sw_axf = axf; in swcr_setup_auth() 1111 swa->sw_axf = axf; in swcr_setup_gcm() 1155 swa->sw_axf = axf; in swcr_setup_ccm() [all …]
|
| H A D | crypto.c | 427 if (klen > axf->blocksize) { in hmac_init_pad() 428 axf->Init(auth_ctx); in hmac_init_pad() 430 axf->Final(hmac_key, auth_ctx); in hmac_init_pad() 431 klen = axf->hashsize; in hmac_init_pad() 438 axf->Init(auth_ctx); in hmac_init_pad() 439 axf->Update(auth_ctx, hmac_key, axf->blocksize); in hmac_init_pad() 749 struct auth_hash *axf; in check_csp() local 817 axf = crypto_auth_hash(csp); in check_csp() 818 if (axf == NULL || csp->csp_auth_mlen > axf->hashsize) in check_csp() 871 axf = crypto_auth_hash(csp); in check_csp() [all …]
|
| H A D | cryptodev.h | 677 void hmac_init_ipad(const struct auth_hash *axf, const char *key, int klen, 679 void hmac_init_opad(const struct auth_hash *axf, const char *key, int klen,
|
| /f-stack/freebsd/crypto/openssl/ |
| H A D | ossl.c | 61 struct auth_hash *axf; member 175 struct auth_hash *axf; in ossl_newsession() local 179 axf = ossl_lookup_hash(csp); in ossl_newsession() 180 s->hash.axf = axf; in ossl_newsession() 182 s->hash.mlen = axf->hashsize; in ossl_newsession() 187 axf->Init(&s->hash.ictx); in ossl_newsession() 206 struct auth_hash *axf; in ossl_process() local 212 axf = s->hash.axf; in ossl_process() 239 axf->Final(digest, &ctx); in ossl_process() 243 axf->Update(&ctx, digest, axf->hashsize); in ossl_process() [all …]
|
| /f-stack/freebsd/crypto/ccp/ |
| H A D | ccp.c | 234 struct auth_hash *axf; in ccp_init_hmac_digest() local 241 axf = s->hmac.auth_hash; in ccp_init_hmac_digest() 242 if (klen > axf->blocksize) { in ccp_init_hmac_digest() 243 axf->Init(&auth_ctx); in ccp_init_hmac_digest() 244 axf->Update(&auth_ctx, key, klen); in ccp_init_hmac_digest() 245 axf->Final(s->hmac.ipad, &auth_ctx); in ccp_init_hmac_digest() 247 klen = axf->hashsize; in ccp_init_hmac_digest() 251 memset(s->hmac.ipad + klen, 0, axf->blocksize - klen); in ccp_init_hmac_digest() 252 memcpy(s->hmac.opad, s->hmac.ipad, axf->blocksize); in ccp_init_hmac_digest() 254 for (i = 0; i < axf->blocksize; i++) { in ccp_init_hmac_digest()
|
| H A D | ccp_hardware.c | 997 struct auth_hash *axf; member 1004 .axf = &auth_hash_hmac_sha1, 1012 .axf = &auth_hash_hmac_sha2_224, 1020 .axf = &auth_hash_hmac_sha2_256, 1209 struct auth_hash *axf; in ccp_do_hmac_done() local 1211 axf = s->hmac.auth_hash; in ccp_do_hmac_done() 1221 axf->Init(&auth_ctx); in ccp_do_hmac_done() 1222 axf->Update(&auth_ctx, s->hmac.opad, axf->blocksize); in ccp_do_hmac_done() 1228 axf->Update(&auth_ctx, ihash, axf->hashsize); in ccp_do_hmac_done() 1263 struct auth_hash *axf; in ccp_do_hmac() local [all …]
|