Home
last modified time | relevance | path

Searched refs:icv (Results 1 - 25 of 33) sorted by relevance

12

/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
47 /* Decrypt first block which will end up as icv */ in des_ede3_unwrap()
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()
/third_party/node/deps/openssl/openssl/crypto/modes/
H A Dwrap128.c173 * @param[in] icv (Non-standard) IV, 4 bytes. NULL = use default_aiv.
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()
239 * @param[in] icv (Non-standard) IV, 4 bytes. NULL = use default_aiv.
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()
/third_party/openssl/crypto/modes/
H A Dwrap128.c173 * @param[in] icv (Non-standard) IV, 4 bytes. NULL = use default_aiv.
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()
239 * @param[in] icv (Non-standard) IV, 4 bytes. NULL = use default_aiv.
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()
/third_party/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
47 /* Decrypt first block which will end up as icv */ in des_ede3_unwrap()
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 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()
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 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()
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()
/third_party/node/deps/openssl/openssl/crypto/evp/
H A De_des3.c320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
327 /* Decrypt first block which will end up as icv */ in des_ede3_unwrap()
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()
/third_party/openssl/crypto/evp/
H A De_des3.c320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
327 /* Decrypt first block which will end up as icv */ in des_ede3_unwrap()
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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/pae/
H A Dieee802_1x_key.c180 size_t msg_bytes, u8 *icv) in ieee802_1x_icv_aes_cmac()
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()
179 ieee802_1x_icv_aes_cmac(const u8 *ick, size_t ick_bytes, const u8 *msg, size_t msg_bytes, u8 *icv) ieee802_1x_icv_aes_cmac() argument
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
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/pae/
H A Dieee802_1x_key.c180 size_t msg_bytes, u8 *icv) in ieee802_1x_icv_aes_cmac()
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()
179 ieee802_1x_icv_aes_cmac(const u8 *ick, size_t ick_bytes, const u8 *msg, size_t msg_bytes, u8 *icv) ieee802_1x_icv_aes_cmac() argument
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_key.h22 size_t msg_bytes, u8 *icv);
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/node/deps/openssl/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,
/third_party/openssl/ohos_lite/include/openssl/
H A Dmodes.h165 size_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,
168 size_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,
/third_party/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,

Completed in 22 milliseconds

12