Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_ccm_hw_s390x.inc88 sctx->ccm.s390x.kmac.icv.g[0] = 0;
89 sctx->ccm.s390x.kmac.icv.g[1] = 0;
103 sctx->ccm.s390x.kmac.icv.b[i] ^= aad[i];
105 s390x_km(sctx->ccm.s390x.kmac.icv.b, 16,
168 sctx->ccm.s390x.kmac.icv.b[i] ^= in[len + i];
170 s390x_km(sctx->ccm.s390x.kmac.icv.b, 16,
171 sctx->ccm.s390x.kmac.icv.b,
188 sctx->ccm.s390x.kmac.icv.b[i] ^= out[len + i];
190 s390x_km(sctx->ccm.s390x.kmac.icv.b, 16,
191 sctx->ccm.s390x.kmac.icv.b,
[all …]
H A Dcipher_tdes_wrap.c38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
48 ctx->hw->cipher(ctx, icv, in, 8); in des_ede3_unwrap()
62 BUF_reverse(icv, NULL, 8); in des_ede3_unwrap()
67 ctx->hw->cipher(ctx, icv, icv, 8); in des_ede3_unwrap()
69 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) in des_ede3_unwrap()
71 OPENSSL_cleanse(icv, 8); in des_ede3_unwrap()
/freebsd/sys/net80211/
H A Dieee80211_crypto_wep.c352 uint8_t icv[IEEE80211_WEP_CRCLEN]; in wep_encrypt() local
413 icv[0] = crc; in wep_encrypt()
414 icv[1] = crc >> 8; in wep_encrypt()
415 icv[2] = crc >> 16; in wep_encrypt()
416 icv[3] = crc >> 24; in wep_encrypt()
421 icv[k] ^= S[(S[i] + S[j]) & 0xff]; in wep_encrypt()
435 uint8_t icv[IEEE80211_WEP_CRCLEN]; in wep_decrypt() local
496 icv[0] = crc; in wep_decrypt()
497 icv[1] = crc >> 8; in wep_decrypt()
498 icv[2] = crc >> 16; in wep_decrypt()
[all …]
H A Dieee80211_crypto_tkip.c667 uint8_t icv[IEEE80211_WEP_CRCLEN]) in wep_encrypt()
714 icv[0] = crc; in wep_encrypt()
715 icv[1] = crc >> 8; in wep_encrypt()
716 icv[2] = crc >> 16; in wep_encrypt()
717 icv[3] = crc >> 24; in wep_encrypt()
731 u8 *pos, icv[4]; in wep_decrypt() local
773 icv[0] = crc; in wep_decrypt()
774 icv[1] = crc >> 8; in wep_decrypt()
775 icv[2] = crc >> 16; in wep_decrypt()
776 icv[3] = crc >> 24; in wep_decrypt()
[all …]
/freebsd/crypto/openssl/crypto/modes/
H A Dwrap128.c183 size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv, in CRYPTO_128_wrap_pad() argument
206 if (!icv) in CRYPTO_128_wrap_pad()
209 memcpy(aiv, icv, 4); /* Standard doesn't mention this. */ in CRYPTO_128_wrap_pad()
251 size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv, in CRYPTO_128_unwrap_pad() argument
299 if ((!icv && CRYPTO_memcmp(aiv, default_aiv, 4)) in CRYPTO_128_unwrap_pad()
300 || (icv && CRYPTO_memcmp(aiv, icv, 4))) { in CRYPTO_128_unwrap_pad()
H A Dsiv128.c131 SIV_BLOCK *icv) in siv128_do_encrypt() argument
135 if (!EVP_CipherInit_ex(ctx, NULL, NULL, NULL, icv->byte, 1)) in siv128_do_encrypt()
/freebsd/contrib/wpa/src/eap_common/
H A Deap_ikev2_common.c74 u8 icv[IKEV2_MAX_HASH_LEN]; in eap_ikev2_validate_icv() local
98 wpabuf_len(msg) - icv_len, icv) < 0) { in eap_ikev2_validate_icv()
103 if (os_memcmp_const(icv, end - icv_len, icv_len) != 0) { in eap_ikev2_validate_icv()
106 icv, icv_len); in eap_ikev2_validate_icv()
H A Dikev2_common.c537 u8 *icv, *iv; in ikev2_build_encrypted() local
594 icv = wpabuf_put(msg, integ_alg->hash_len); in ikev2_build_encrypted()
602 wpabuf_len(msg) - integ_alg->hash_len, icv); in ikev2_build_encrypted()
H A Deap_eke_common.c642 u8 icv[EAP_EKE_MAX_HASH_LEN]; in eap_eke_decrypt_prot() local
661 prot_len - block_size - icv_len, icv) < 0) in eap_eke_decrypt_prot()
663 if (os_memcmp_const(icv, prot + prot_len - icv_len, icv_len) != 0) { in eap_eke_decrypt_prot()
/freebsd/crypto/openssl/crypto/evp/
H A De_des3.c320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
328 des_ede_cbc_cipher(ctx, icv, in, 8); in des_ede3_unwrap()
342 BUF_reverse(icv, NULL, 8); in des_ede3_unwrap()
347 des_ede_cbc_cipher(ctx, icv, icv, 8); in des_ede3_unwrap()
349 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) in des_ede3_unwrap()
351 OPENSSL_cleanse(icv, 8); in des_ede3_unwrap()
H A De_aes.c924 } icv; member
1750 ctx->aes.ccm.kmac_param.icv.g[0] = 0; in s390x_aes_ccm_aad()
1751 ctx->aes.ccm.kmac_param.icv.g[1] = 0; in s390x_aes_ccm_aad()
1765 ctx->aes.ccm.kmac_param.icv.b[i] ^= aad[i]; in s390x_aes_ccm_aad()
1767 s390x_km(ctx->aes.ccm.kmac_param.icv.b, 16, in s390x_aes_ccm_aad()
1768 ctx->aes.ccm.kmac_param.icv.b, ctx->aes.ccm.fc, in s390x_aes_ccm_aad()
1827 ctx->aes.ccm.kmac_param.icv.b[i] ^= in[len + i]; in s390x_aes_ccm()
1829 s390x_km(ctx->aes.ccm.kmac_param.icv.b, 16, in s390x_aes_ccm()
1849 s390x_km(ctx->aes.ccm.kmac_param.icv.b, 16, in s390x_aes_ccm()
1860 ctx->aes.ccm.kmac_param.icv.g[0] ^= ctx->aes.ccm.buf.g[0]; in s390x_aes_ccm()
[all …]
/freebsd/contrib/wpa/src/pae/
H A Dieee802_1x_key.c180 size_t msg_bytes, u8 *icv) in ieee802_1x_icv_aes_cmac() argument
185 res = omac1_aes_128(ick, msg, msg_bytes, icv); in ieee802_1x_icv_aes_cmac()
187 res = omac1_aes_256(ick, msg, msg_bytes, icv); in ieee802_1x_icv_aes_cmac()
H A Dieee802_1x_key.h22 size_t msg_bytes, u8 *icv);
H A Dieee802_1x_kay_i.h80 const u8 *msg, size_t msg_len, u8 *icv);
422 u8 icv[0]; member
H A Dieee802_1x_kay.c1933 return body->icv; in ieee802_1x_mka_decode_icv_body()
3075 u8 icv[MAX_ICV_LEN]; in ieee802_1x_kay_mkpdu_validity_check() local
3170 buf, len - mka_alg_tbl[kay->mka_algindex].icv_len, icv)) { in ieee802_1x_kay_mkpdu_validity_check()
3184 if (os_memcmp_const(msg_icv, icv, in ieee802_1x_kay_mkpdu_validity_check()
3189 icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_validity_check()
/freebsd/contrib/bzip2/
H A Dcompress.c361 register UInt16 icv; in sendMTFValues() local
365 icv = mtfv[gs+(nn)]; \ in sendMTFValues()
366 cost01 += s->len_pack[icv][0]; \ in sendMTFValues()
367 cost23 += s->len_pack[icv][1]; \ in sendMTFValues()
368 cost45 += s->len_pack[icv][2]; \ in sendMTFValues()
390 UInt16 icv = mtfv[i]; in sendMTFValues() local
391 for (t = 0; t < nGroups; t++) cost[t] += s->len[t][icv]; in sendMTFValues()
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_pax.c340 const u8 *icv, *pos; in eap_pax_process() local
417 icv = pos + len - EAP_PAX_ICV_LEN; in eap_pax_process()
418 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", icv, EAP_PAX_ICV_LEN); in eap_pax_process()
428 if (os_memcmp_const(icv, icvbuf, EAP_PAX_ICV_LEN) != 0) { in eap_pax_process()
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_pax.c205 u8 icvbuf[EAP_PAX_ICV_LEN], *icv; in eap_pax_check() local
280 icv = wpabuf_mhead_u8(respData) + mlen - EAP_PAX_ICV_LEN; in eap_pax_check()
281 wpa_hexdump(MSG_MSGDUMP, "EAP-PAX: ICV", icv, EAP_PAX_ICV_LEN); in eap_pax_check()
291 if (os_memcmp_const(icvbuf, icv, EAP_PAX_ICV_LEN) != 0) { in eap_pax_check()
/freebsd/crypto/openssl/include/openssl/
H A Dmodes.h176 size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,
179 size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,
/freebsd/crypto/openssl/providers/implementations/include/prov/
H A Dciphercommon_ccm.h23 } icv; member
/freebsd/sys/dev/qat/qat/
H A Dqat_ocf.c118 char icv[QAT_OCF_MAX_DIGEST] = { 0 }; in symDpCallback() local
122 icv); in symDpCallback()
123 if (timingsafe_bcmp(icv, in symDpCallback()
/freebsd/sys/dev/qat_c2xxx/
H A Dqat.c1762 char icv[QAT_SYM_HASH_BUFFER_LEN]; in qat_crypto_sym_rxintr() local
1793 auth_sz, icv); in qat_crypto_sym_rxintr()
1794 if (timingsafe_bcmp(icv, qsc->qsc_auth_res, in qat_crypto_sym_rxintr()