Home
last modified time | relevance | path

Searched refs:hmac_key (Results 1 - 22 of 22) sorted by relevance

/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
H A 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()
[all...]
H A 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()
[all...]
H A 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()
[all...]
/third_party/openssl/providers/implementations/ciphers/
H A 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()
[all...]
H A 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()
[all...]
H A 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()
[all...]
/third_party/node/deps/openssl/openssl/crypto/evp/
H A 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()
[all...]
H A 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()
[all...]
H A 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()
[all...]
/third_party/openssl/crypto/evp/
H A 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()
[all...]
H A 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()
[all...]
H A 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()
[all...]
/third_party/nghttp2/src/
H A 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()
H A 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()
H A 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()
H A Dshrpx_config.h615 std::array<uint8_t, 32> hmac_key; member
H A Dshrpx_config.cc224 std::copy_n(p, hmac_keylen, std::begin(key.data.hmac_key)); in read_tls_ticket_key_file()
/third_party/node/deps/openssl/openssl/apps/
H A 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()
327 if (hmac_key != NULL) { in dgst_main()
333 (unsigned char *)hmac_key, in dgst_main()
334 strlen(hmac_key)); in dgst_main()
H A 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/apps/
H A 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()
327 if (hmac_key != NULL) { in dgst_main()
333 (unsigned char *)hmac_key, in dgst_main()
334 strlen(hmac_key)); in dgst_main()
H A 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/mbedtls/library/
H A Dpsa_crypto.c5440 const uint8_t *hmac_key, in psa_key_derivation_start_hmac()
5454 hmac_key, hmac_key_length, in psa_key_derivation_start_hmac()
5437 psa_key_derivation_start_hmac( psa_mac_operation_t *operation, psa_algorithm_t hash_alg, const uint8_t *hmac_key, size_t hmac_key_length) psa_key_derivation_start_hmac() argument

Completed in 59 milliseconds