Home
last modified time | relevance | path

Searched refs:hmac_key (Results 1 – 24 of 24) sorted by relevance

/third_party/openssl/providers/implementations/ciphers/
Dcipher_rc4_hmac_md5_hw.c196 unsigned char hmac_key[64]; in cipher_hw_rc4_hmac_md5_init_mackey() local
198 memset(hmac_key, 0, sizeof(hmac_key)); in cipher_hw_rc4_hmac_md5_init_mackey()
200 if (len > (int)sizeof(hmac_key)) { in cipher_hw_rc4_hmac_md5_init_mackey()
203 MD5_Final(hmac_key, &ctx->head); in cipher_hw_rc4_hmac_md5_init_mackey()
205 memcpy(hmac_key, key, len); in cipher_hw_rc4_hmac_md5_init_mackey()
208 for (i = 0; i < sizeof(hmac_key); i++) in cipher_hw_rc4_hmac_md5_init_mackey()
209 hmac_key[i] ^= 0x36; /* ipad */ in cipher_hw_rc4_hmac_md5_init_mackey()
211 MD5_Update(&ctx->head, hmac_key, sizeof(hmac_key)); in cipher_hw_rc4_hmac_md5_init_mackey()
213 for (i = 0; i < sizeof(hmac_key); i++) in cipher_hw_rc4_hmac_md5_init_mackey()
214 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in cipher_hw_rc4_hmac_md5_init_mackey()
[all …]
Dcipher_aes_cbc_hmac_sha1_hw.c637 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_set_mac_key() local
639 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_set_mac_key()
641 if (len > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_set_mac_key()
644 SHA1_Final(hmac_key, &ctx->head); in aesni_cbc_hmac_sha1_set_mac_key()
646 memcpy(hmac_key, mac, len); in aesni_cbc_hmac_sha1_set_mac_key()
649 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_set_mac_key()
650 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_set_mac_key()
652 sha1_update(&ctx->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_set_mac_key()
654 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_set_mac_key()
655 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_set_mac_key()
[all …]
Dcipher_aes_cbc_hmac_sha256_hw.c690 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_set_mac_key() local
692 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_set_mac_key()
694 if (len > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_set_mac_key()
697 SHA256_Final(hmac_key, &ctx->head); in aesni_cbc_hmac_sha256_set_mac_key()
699 memcpy(hmac_key, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key()
702 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_set_mac_key()
703 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_set_mac_key()
705 sha256_update(&ctx->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_set_mac_key()
707 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_set_mac_key()
708 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_set_mac_key()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_rc4_hmac_md5_hw.c196 unsigned char hmac_key[64]; in cipher_hw_rc4_hmac_md5_init_mackey() local
198 memset(hmac_key, 0, sizeof(hmac_key)); in cipher_hw_rc4_hmac_md5_init_mackey()
200 if (len > (int)sizeof(hmac_key)) { in cipher_hw_rc4_hmac_md5_init_mackey()
203 MD5_Final(hmac_key, &ctx->head); in cipher_hw_rc4_hmac_md5_init_mackey()
205 memcpy(hmac_key, key, len); in cipher_hw_rc4_hmac_md5_init_mackey()
208 for (i = 0; i < sizeof(hmac_key); i++) in cipher_hw_rc4_hmac_md5_init_mackey()
209 hmac_key[i] ^= 0x36; /* ipad */ in cipher_hw_rc4_hmac_md5_init_mackey()
211 MD5_Update(&ctx->head, hmac_key, sizeof(hmac_key)); in cipher_hw_rc4_hmac_md5_init_mackey()
213 for (i = 0; i < sizeof(hmac_key); i++) in cipher_hw_rc4_hmac_md5_init_mackey()
214 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in cipher_hw_rc4_hmac_md5_init_mackey()
[all …]
Dcipher_aes_cbc_hmac_sha1_hw.c637 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_set_mac_key() local
639 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_set_mac_key()
641 if (len > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_set_mac_key()
644 SHA1_Final(hmac_key, &ctx->head); in aesni_cbc_hmac_sha1_set_mac_key()
646 memcpy(hmac_key, mac, len); in aesni_cbc_hmac_sha1_set_mac_key()
649 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_set_mac_key()
650 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_set_mac_key()
652 sha1_update(&ctx->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_set_mac_key()
654 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_set_mac_key()
655 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_set_mac_key()
[all …]
Dcipher_aes_cbc_hmac_sha256_hw.c690 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_set_mac_key() local
692 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_set_mac_key()
694 if (len > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_set_mac_key()
697 SHA256_Final(hmac_key, &ctx->head); in aesni_cbc_hmac_sha256_set_mac_key()
699 memcpy(hmac_key, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key()
702 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_set_mac_key()
703 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_set_mac_key()
705 sha256_update(&ctx->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_set_mac_key()
707 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_set_mac_key()
708 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_set_mac_key()
[all …]
/third_party/node/deps/openssl/openssl/crypto/evp/
De_rc4_hmac_md5.c195 unsigned char hmac_key[64]; in rc4_hmac_md5_ctrl() local
197 memset(hmac_key, 0, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
199 if (arg > (int)sizeof(hmac_key)) { in rc4_hmac_md5_ctrl()
202 MD5_Final(hmac_key, &key->head); in rc4_hmac_md5_ctrl()
204 memcpy(hmac_key, ptr, arg); in rc4_hmac_md5_ctrl()
207 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
208 hmac_key[i] ^= 0x36; /* ipad */ in rc4_hmac_md5_ctrl()
210 MD5_Update(&key->head, hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
212 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
213 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in rc4_hmac_md5_ctrl()
[all …]
De_aes_cbc_hmac_sha1.c780 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_ctrl() local
782 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
784 if (arg > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_ctrl()
787 SHA1_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha1_ctrl()
789 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha1_ctrl()
792 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
793 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_ctrl()
795 SHA1_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
797 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
798 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_ctrl()
[all …]
De_aes_cbc_hmac_sha256.c758 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_ctrl() local
760 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
765 if (u_arg > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_ctrl()
768 SHA256_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha256_ctrl()
770 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha256_ctrl()
773 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
774 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_ctrl()
776 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
778 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
779 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_ctrl()
[all …]
/third_party/openssl/crypto/evp/
De_rc4_hmac_md5.c195 unsigned char hmac_key[64]; in rc4_hmac_md5_ctrl() local
197 memset(hmac_key, 0, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
199 if (arg > (int)sizeof(hmac_key)) { in rc4_hmac_md5_ctrl()
202 MD5_Final(hmac_key, &key->head); in rc4_hmac_md5_ctrl()
204 memcpy(hmac_key, ptr, arg); in rc4_hmac_md5_ctrl()
207 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
208 hmac_key[i] ^= 0x36; /* ipad */ in rc4_hmac_md5_ctrl()
210 MD5_Update(&key->head, hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl()
212 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl()
213 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in rc4_hmac_md5_ctrl()
[all …]
De_aes_cbc_hmac_sha1.c780 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_ctrl() local
782 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
784 if (arg > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_ctrl()
787 SHA1_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha1_ctrl()
789 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha1_ctrl()
792 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
793 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_ctrl()
795 SHA1_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl()
797 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl()
798 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_ctrl()
[all …]
De_aes_cbc_hmac_sha256.c758 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_ctrl() local
760 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
765 if (u_arg > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_ctrl()
768 SHA256_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha256_ctrl()
770 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha256_ctrl()
773 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
774 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_ctrl()
776 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl()
778 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl()
779 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_ctrl()
[all …]
/third_party/nghttp2/src/
Dshrpx_config_test.cc188 CU_ASSERT(std::equal(std::begin(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file()
189 std::begin(key->data.hmac_key) + 16, in test_shrpx_config_read_tls_ticket_key_file()
198 CU_ASSERT(std::equal(std::begin(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file()
199 std::begin(key->data.hmac_key) + 16, in test_shrpx_config_read_tls_ticket_key_file()
234 CU_ASSERT(std::equal(std::begin(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
235 std::end(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
244 CU_ASSERT(std::equal(std::begin(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
245 std::end(key->data.hmac_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
Dshrpx_worker_process.cc205 assert(ticket_key.hmac_keylen <= ticket_key.data.hmac_key.size()); in generate_ticket_key()
376 std::copy_n(p, hmac_keylen, std::begin(key.data.hmac_key)); in memcached_get_ticket_key_cb()
Dshrpx_tls.cc578 OSSL_MAC_PARAM_KEY, key.data.hmac_key.data(), key.hmac_keylen), in ticket_key_cb()
591 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb()
623 OSSL_MAC_PARAM_KEY, key.data.hmac_key.data(), key.hmac_keylen), in ticket_key_cb()
636 HMAC_Init_ex(hctx, key.data.hmac_key.data(), key.hmac_keylen, key.hmac, in ticket_key_cb()
Dshrpx_config.h615 std::array<uint8_t, 32> hmac_key; member
Dshrpx_config.cc224 std::copy_n(p, hmac_keylen, std::begin(key.data.hmac_key)); in read_tls_ticket_key_file()
/third_party/openssl/apps/
Ddgst.c100 char *hmac_key = NULL; in dgst_main() local
194 hmac_key = "etaonrishdlcupfm"; in dgst_main()
197 hmac_key = opt_arg(); in dgst_main()
274 if ((!(mac_name == NULL) + !(keyfile == NULL) + !(hmac_key == NULL)) > 1) { in dgst_main()
325 if (hmac_key != NULL) { in dgst_main()
331 (unsigned char *)hmac_key, in dgst_main()
332 strlen(hmac_key)); in dgst_main()
Dspeed.c1984 static const char hmac_key[] = "This is a key..."; in speed_main() local
1985 int len = strlen(hmac_key); in speed_main()
2002 (char *)hmac_key, len); in speed_main()
/third_party/node/deps/openssl/openssl/apps/
Ddgst.c100 char *hmac_key = NULL; in dgst_main() local
194 hmac_key = "etaonrishdlcupfm"; in dgst_main()
197 hmac_key = opt_arg(); in dgst_main()
274 if ((!(mac_name == NULL) + !(keyfile == NULL) + !(hmac_key == NULL)) > 1) { in dgst_main()
325 if (hmac_key != NULL) { in dgst_main()
331 (unsigned char *)hmac_key, in dgst_main()
332 strlen(hmac_key)); in dgst_main()
Dspeed.c1998 static const char hmac_key[] = "This is a key..."; in speed_main() local
1999 int len = strlen(hmac_key); in speed_main()
2016 (char *)hmac_key, len); in speed_main()
/third_party/openssl/doc/man3/
DSSL_CTX_set_tlsext_ticket_key_cb.pod174 * an aes_key, a hmac_key and optionally
187 key->hmac_key, 32);
204 key->hmac_key, 32);
/third_party/rust/crates/rust-openssl/openssl/src/
Dpkey.rs1136 let hmac_key = PKey::hmac(&test_bytes).unwrap(); in test_raw_hmac() localVariable
1137 assert!(hmac_key.raw_public_key().is_err()); in test_raw_hmac()
1139 let key_bytes = hmac_key.raw_private_key().unwrap(); in test_raw_hmac()
/third_party/mbedtls/library/
Dpsa_crypto.c4988 const uint8_t *hmac_key, in psa_key_derivation_start_hmac() argument
5002 hmac_key, hmac_key_length, in psa_key_derivation_start_hmac()