| /f-stack/dpdk/drivers/crypto/nitrox/ |
| H A D | nitrox_sym_ctx.h | 36 uint8_t opad[64]; member
|
| H A D | nitrox_sym.c | 446 if (unlikely(length > sizeof(fctx->auth.opad))) { in auth_key_is_valid() 478 memcpy(fctx->auth.opad, xform->key.data, xform->key.length); in configure_auth_ctx() 520 memcpy(fctx->auth.opad, xform->key.data, xform->key.length); in configure_aead_ctx()
|
| /f-stack/freebsd/netinet/ |
| H A D | sctp_auth.c | 921 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac() local 948 memset(opad, 0, blocklen); in sctp_hmac() 950 memcpy(opad, key, keylen); in sctp_hmac() 955 opad[i] ^= 0x5c; in sctp_hmac() 966 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac() 981 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac_m() local 1008 memset(opad, 0, blocklen); in sctp_hmac_m() 1010 memcpy(opad, key, keylen); in sctp_hmac_m() 1015 opad[i] ^= 0x5c; in sctp_hmac_m() 1045 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac_m()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/io/ |
| H A D | sha1_mod.c | 661 uint32_t opad[SHA1_HMAC_INTS_PER_BLOCK]; in sha1_mac_init_ctx() local 665 bzero(opad, SHA1_HMAC_BLOCK_SIZE); in sha1_mac_init_ctx() 668 bcopy(keyval, opad, length_in_bytes); in sha1_mac_init_ctx() 673 opad[i] ^= 0x5c5c5c5c; in sha1_mac_init_ctx() 682 SHA1Update(&ctx->hc_ocontext, (uint8_t *)opad, SHA1_HMAC_BLOCK_SIZE); in sha1_mac_init_ctx()
|
| H A D | sha2_mod.c | 721 uint64_t opad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)]; in sha2_mac_init_ctx() local 734 (void) bzero(opad, block_size); in sha2_mac_init_ctx() 736 (void) bcopy(keyval, opad, length_in_bytes); in sha2_mac_init_ctx() 741 opad[i] ^= 0x5c5c5c5c5c5c5c5c; in sha2_mac_init_ctx() 750 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size); in sha2_mac_init_ctx()
|
| /f-stack/freebsd/crypto/ccp/ |
| H A D | ccp.h | 71 char opad[CCP_HASH_MAX_BLOCK_SIZE]; member
|
| H A D | ccp.c | 252 memcpy(s->hmac.opad, s->hmac.ipad, axf->blocksize); in ccp_init_hmac_digest() 256 s->hmac.opad[i] ^= HMAC_OPAD_VAL; in ccp_init_hmac_digest()
|
| H A D | ccp_hardware.c | 1222 axf->Update(&auth_ctx, s->hmac.opad, axf->blocksize); in ccp_do_hmac_done()
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym_session.c | 1276 uint8_t opad[qat_hash_get_block_size(ICP_QAT_HW_AUTH_ALGO_DELIMITER)]; in qat_sym_do_precomputes() local 1399 memset(opad, 0, block_size); in qat_sym_do_precomputes() 1406 rte_memcpy(opad, auth_key, auth_keylen); in qat_sym_do_precomputes() 1410 uint8_t *opad_ptr = opad + i; in qat_sym_do_precomputes() 1418 memset(opad, 0, block_size); in qat_sym_do_precomputes() 1428 if (partial_hash_compute(hash_alg, opad, p_state_buf + *p_state_len)) { in qat_sym_do_precomputes() 1430 memset(opad, 0, block_size); in qat_sym_do_precomputes() 1437 memset(opad, 0, block_size); in qat_sym_do_precomputes()
|
| /f-stack/dpdk/drivers/common/cpt/ |
| H A D | cpt_mcode_defines.h | 288 uint8_t opad[64]; member
|
| H A D | cpt_ucode.h | 2489 memset(fctx->hmac.opad, 0, sizeof(fctx->hmac.opad)); in cpt_fc_auth_set_key() 2492 memcpy(fctx->hmac.opad, key, key_len); in cpt_fc_auth_set_key()
|
| /f-stack/dpdk/drivers/crypto/ccp/ |
| H A D | ccp_crypto.c | 443 uint8_t opad[sess->auth.block_size]; in generate_partial_hash() local 458 opad[i] = (opad_t[i] ^ HMAC_OPAD_VALUE); in generate_partial_hash() 472 if (partial_hash_sha1(opad, (uint8_t *)hash_temp32)) in generate_partial_hash() 487 if (partial_hash_sha224(opad, (uint8_t *)hash_temp32)) in generate_partial_hash() 499 if (partial_hash_sha3_224(opad, hash_value_sha3)) in generate_partial_hash() 512 if (partial_hash_sha256(opad, (uint8_t *)hash_temp32)) in generate_partial_hash() 524 if (partial_hash_sha3_256(opad, hash_value_sha3)) in generate_partial_hash() 537 if (partial_hash_sha384(opad, (uint8_t *)hash_temp64)) in generate_partial_hash() 549 if (partial_hash_sha3_384(opad, hash_value_sha3)) in generate_partial_hash() 562 if (partial_hash_sha512(opad, (uint8_t *)hash_temp64)) in generate_partial_hash() [all …]
|
| /f-stack/dpdk/drivers/crypto/aesni_mb/ |
| H A D | rte_aesni_mb_pmd.c | 45 uint8_t *ipad, uint8_t *opad, in calculate_auth_precomputes() argument 68 (*one_block_hash)(opad_buf, opad); in calculate_auth_precomputes()
|