/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_ccm_hw_s390x.inc | 88 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, 106 sctx->ccm.s390x.kmac.icv.b, sctx->ccm.s390x.fc, 128 s390x_km(sctx->ccm.s390x.nonce.b, 16, sctx->ccm.s390x.kmac.icv.b, 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]; [all …]
|
H A D | cipher_tdes_wrap.c | 38 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 D | ieee80211_crypto_wep.c | 352 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() 423 return m_append(m0, IEEE80211_WEP_CRCLEN, icv); 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() [all …]
|
H A D | ieee80211_crypto_tkip.c | 667 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() 722 icv[k] ^= S[(S[i] + S[j]) & 0xff]; 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() [all …]
|
/freebsd/crypto/openssl/crypto/modes/ |
H A D | wrap128.c | 183 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 D | siv128.c | 131 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 D | eap_ikev2_common.c | 74 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 D | eap_eke_common.c | 642 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()
|
H A D | ikev2_common.c | 537 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()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_des3.c | 320 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 D | e_aes.c | 924 } 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() 1787 s390x_km(ctx->aes.ccm.nonce.b, 16, ctx->aes.ccm.kmac_param.icv.b, in s390x_aes_ccm() 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() 1830 ctx->aes.ccm.kmac_param.icv.b, ctx->aes.ccm.fc, in s390x_aes_ccm() [all …]
|
/freebsd/contrib/wpa/src/pae/ |
H A D | ieee802_1x_key.c | 180 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 D | ieee802_1x_key.h | 22 size_t msg_bytes, u8 *icv);
|
H A D | ieee802_1x_kay_i.h | 80 const u8 *msg, size_t msg_len, u8 *icv); 422 u8 icv[0]; member
|
H A D | ieee802_1x_kay.c | 1953 return body->icv; in ieee802_1x_mka_decode_icv_body() 3113 u8 icv[MAX_ICV_LEN]; in ieee802_1x_kay_mkpdu_validity_check() local 3208 buf, len - mka_alg_tbl[kay->mka_algindex].icv_len, icv)) { in ieee802_1x_kay_mkpdu_validity_check() 3222 if (os_memcmp_const(msg_icv, icv, in ieee802_1x_kay_mkpdu_validity_check() 3227 icv, mka_alg_tbl[kay->mka_algindex].icv_len); in ieee802_1x_kay_mkpdu_validity_check()
|
/freebsd/contrib/bzip2/ |
H A D | compress.c | 361 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 D | eap_pax.c | 340 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 D | eap_server_pax.c | 205 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 D | modes.h | 176 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 D | ciphercommon_ccm.h | 23 } icv; member
|
/freebsd/sys/dev/qat_c2xxx/ |
H A D | qat.c | 1762 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()
|