Home
last modified time | relevance | path

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

/f-stack/freebsd/crypto/ccp/
H A Dccp.c245 axf->Final(s->hmac.ipad, &auth_ctx); in ccp_init_hmac_digest()
249 memcpy(s->hmac.ipad, key, klen); 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()
255 s->hmac.ipad[i] ^= HMAC_IPAD_VAL; in ccp_init_hmac_digest()
H A Dccp.h70 char ipad[CCP_HASH_MAX_BLOCK_SIZE]; member
H A Dccp_hardware.c1275 error = sglist_append(qp->cq_sg_ulptx, s->hmac.ipad, axf->blocksize); in ccp_do_hmac()
/f-stack/dpdk/drivers/crypto/nitrox/
H A Dnitrox_sym_ctx.h35 uint8_t ipad[64]; member
/f-stack/freebsd/netinet/
H A Dsctp_auth.c921 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac() local
947 memset(ipad, 0, blocklen); in sctp_hmac()
949 memcpy(ipad, key, keylen); in sctp_hmac()
954 ipad[i] ^= 0x36; in sctp_hmac()
960 sctp_hmac_update(hmac_algo, &ctx, ipad, blocklen); in sctp_hmac()
981 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac_m() local
1007 memset(ipad, 0, blocklen); in sctp_hmac_m()
1009 memcpy(ipad, key, keylen); in sctp_hmac_m()
1014 ipad[i] ^= 0x36; in sctp_hmac_m()
1020 sctp_hmac_update(hmac_algo, &ctx, ipad, blocklen); in sctp_hmac_m()
/f-stack/freebsd/contrib/openzfs/module/icp/io/
H A Dsha1_mod.c660 uint32_t ipad[SHA1_HMAC_INTS_PER_BLOCK]; in sha1_mac_init_ctx() local
664 bzero(ipad, SHA1_HMAC_BLOCK_SIZE); in sha1_mac_init_ctx()
667 bcopy(keyval, ipad, length_in_bytes); in sha1_mac_init_ctx()
672 ipad[i] ^= 0x36363636; in sha1_mac_init_ctx()
678 SHA1Update(&ctx->hc_icontext, (uint8_t *)ipad, SHA1_HMAC_BLOCK_SIZE); in sha1_mac_init_ctx()
H A Dsha2_mod.c720 uint64_t ipad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)]; in sha2_mac_init_ctx() local
733 (void) bzero(ipad, block_size); in sha2_mac_init_ctx()
735 (void) bcopy(keyval, ipad, length_in_bytes); in sha2_mac_init_ctx()
740 ipad[i] ^= 0x3636363636363636; in sha2_mac_init_ctx()
746 SHA2Update(&ctx->hc_icontext, (uint8_t *)ipad, block_size); in sha2_mac_init_ctx()
/f-stack/dpdk/drivers/crypto/qat/
H A Dqat_sym_session.c1275 uint8_t ipad[qat_hash_get_block_size(ICP_QAT_HW_AUTH_ALGO_DELIMITER)]; in qat_sym_do_precomputes() local
1398 memset(ipad, 0, block_size); in qat_sym_do_precomputes()
1405 rte_memcpy(ipad, auth_key, auth_keylen); in qat_sym_do_precomputes()
1409 uint8_t *ipad_ptr = ipad + i; in qat_sym_do_precomputes()
1416 if (partial_hash_compute(hash_alg, ipad, p_state_buf)) { in qat_sym_do_precomputes()
1417 memset(ipad, 0, block_size); in qat_sym_do_precomputes()
1429 memset(ipad, 0, block_size); in qat_sym_do_precomputes()
1436 memset(ipad, 0, block_size); in qat_sym_do_precomputes()
/f-stack/dpdk/drivers/common/cpt/
H A Dcpt_mcode_defines.h287 uint8_t ipad[64]; member
H A Dcpt_ucode.h305 memset(fctx->hmac.ipad, 0, sizeof(fctx->hmac.ipad)); in cpt_fc_ciph_set_key()
306 memcpy(fctx->hmac.ipad, &key[key_len], key_len); in cpt_fc_ciph_set_key()
2488 memset(fctx->hmac.ipad, 0, sizeof(fctx->hmac.ipad)); in cpt_fc_auth_set_key()
/f-stack/dpdk/drivers/crypto/ccp/
H A Dccp_crypto.c442 uint8_t ipad[sess->auth.block_size]; in generate_partial_hash() local
457 ipad[i] = (ipad_t[i] ^ HMAC_IPAD_VALUE); in generate_partial_hash()
465 if (partial_hash_sha1(ipad, (uint8_t *)hash_temp32)) in generate_partial_hash()
480 if (partial_hash_sha224(ipad, (uint8_t *)hash_temp32)) in generate_partial_hash()
494 if (partial_hash_sha3_224(ipad, hash_value_sha3)) in generate_partial_hash()
505 if (partial_hash_sha256(ipad, (uint8_t *)hash_temp32)) in generate_partial_hash()
519 if (partial_hash_sha3_256(ipad, hash_value_sha3)) in generate_partial_hash()
530 if (partial_hash_sha384(ipad, (uint8_t *)hash_temp64)) in generate_partial_hash()
544 if (partial_hash_sha3_384(ipad, hash_value_sha3)) in generate_partial_hash()
555 if (partial_hash_sha512(ipad, (uint8_t *)hash_temp64)) in generate_partial_hash()
[all …]
/f-stack/dpdk/drivers/crypto/aesni_mb/
H A Drte_aesni_mb_pmd.c45 uint8_t *ipad, uint8_t *opad, in calculate_auth_precomputes() argument
67 (*one_block_hash)(ipad_buf, ipad); in calculate_auth_precomputes()