| /freebsd-12-stable/crypto/openssl/crypto/evp/ |
| D | e_rc4_hmac_md5.c | 185 unsigned char hmac_key[64]; in rc4_hmac_md5_ctrl() local 187 memset(hmac_key, 0, sizeof(hmac_key)); in rc4_hmac_md5_ctrl() 189 if (arg > (int)sizeof(hmac_key)) { in rc4_hmac_md5_ctrl() 192 MD5_Final(hmac_key, &key->head); in rc4_hmac_md5_ctrl() 194 memcpy(hmac_key, ptr, arg); in rc4_hmac_md5_ctrl() 197 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl() 198 hmac_key[i] ^= 0x36; /* ipad */ in rc4_hmac_md5_ctrl() 200 MD5_Update(&key->head, hmac_key, sizeof(hmac_key)); in rc4_hmac_md5_ctrl() 202 for (i = 0; i < sizeof(hmac_key); i++) in rc4_hmac_md5_ctrl() 203 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in rc4_hmac_md5_ctrl() [all …]
|
| D | e_aes_cbc_hmac_sha1.c | 777 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha1_ctrl() local 779 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl() 781 if (arg > (int)sizeof(hmac_key)) { in aesni_cbc_hmac_sha1_ctrl() 784 SHA1_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha1_ctrl() 786 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha1_ctrl() 789 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl() 790 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha1_ctrl() 792 SHA1_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha1_ctrl() 794 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha1_ctrl() 795 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha1_ctrl() [all …]
|
| D | e_aes_cbc_hmac_sha256.c | 755 unsigned char hmac_key[64]; in aesni_cbc_hmac_sha256_ctrl() local 757 memset(hmac_key, 0, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl() 762 if (u_arg > sizeof(hmac_key)) { in aesni_cbc_hmac_sha256_ctrl() 765 SHA256_Final(hmac_key, &key->head); in aesni_cbc_hmac_sha256_ctrl() 767 memcpy(hmac_key, ptr, arg); in aesni_cbc_hmac_sha256_ctrl() 770 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl() 771 hmac_key[i] ^= 0x36; /* ipad */ in aesni_cbc_hmac_sha256_ctrl() 773 SHA256_Update(&key->head, hmac_key, sizeof(hmac_key)); in aesni_cbc_hmac_sha256_ctrl() 775 for (i = 0; i < sizeof(hmac_key); i++) in aesni_cbc_hmac_sha256_ctrl() 776 hmac_key[i] ^= 0x36 ^ 0x5c; /* opad */ in aesni_cbc_hmac_sha256_ctrl() [all …]
|
| /freebsd-12-stable/crypto/openssl/apps/ |
| D | dgst.c | 91 char *hmac_key = NULL; in dgst_main() local 179 hmac_key = "etaonrishdlcupfm"; in dgst_main() 182 hmac_key = opt_arg(); in dgst_main() 250 if ((!(mac_name == NULL) + !(keyfile == NULL) + !(hmac_key == NULL)) > 1) { in dgst_main() 308 if (hmac_key != NULL) { in dgst_main() 310 (unsigned char *)hmac_key, -1); in dgst_main()
|
| D | speed.c | 2203 static const char hmac_key[] = "This is a key..."; in speed_main() local 2204 int len = strlen(hmac_key); in speed_main() 2213 HMAC_Init_ex(loopargs[i].hctx, hmac_key, len, EVP_md5(), NULL); in speed_main()
|
| /freebsd-12-stable/sys/opencrypto/ |
| D | crypto.c | 403 uint8_t hmac_key[HMAC_MAX_BLOCK_LEN]; in hmac_init_pad() local 406 KASSERT(axf->blocksize <= sizeof(hmac_key), in hmac_init_pad() 413 memset(hmac_key, 0, sizeof(hmac_key)); in hmac_init_pad() 417 axf->Final(hmac_key, auth_ctx); in hmac_init_pad() 420 memcpy(hmac_key, key, klen); in hmac_init_pad() 423 hmac_key[i] ^= padval; in hmac_init_pad() 426 axf->Update(auth_ctx, hmac_key, axf->blocksize); in hmac_init_pad() 427 explicit_bzero(hmac_key, sizeof(hmac_key)); in hmac_init_pad()
|
| /freebsd-12-stable/sys/crypto/aesni/ |
| D | aesni.c | 484 if (keylen > sizeof(ses->hmac_key)) in aesni_authprepare() 488 memcpy(ses->hmac_key, cri_key, keylen); in aesni_authprepare() 886 uint8_t hmac_key[AESNI_SHA_BLOCK_LEN] __aligned(16); in aesni_cipher_mac() local 950 memcpy(hmac_key, ses->hmac_key, AESNI_SHA_BLOCK_LEN); in aesni_cipher_mac() 954 hmac_internal(ctx, res, UpdateFn, FinalizeFn, hmac_key, 0x36, in aesni_cipher_mac() 958 hmac_internal(ctx, res, UpdateFn, FinalizeFn, hmac_key, 0x5C, in aesni_cipher_mac()
|
| D | aesni.h | 62 uint8_t hmac_key[AESNI_SHA_BLOCK_LEN]; member
|
| /freebsd-12-stable/contrib/unbound/util/ |
| D | net_help.c | 95 unsigned char *hmac_key; member 1671 keys->hmac_key = data + 48; in listen_sslctx_setup_ticket_keys() 1733 ticket_keys->hmac_key, 32); in tls_session_ticket_key_cb() 1743 if (HMAC_Init_ex(hmac_ctx, ticket_keys->hmac_key, 32, digest, NULL) != 1) { in tls_session_ticket_key_cb() 1748 HMAC_Init_ex(hmac_ctx, ticket_keys->hmac_key, 32, digest, NULL); in tls_session_ticket_key_cb() 1768 key->hmac_key, 32); in tls_session_ticket_key_cb() 1778 if (HMAC_Init_ex(hmac_ctx, key->hmac_key, 32, digest, NULL) != 1) { in tls_session_ticket_key_cb() 1783 HMAC_Init_ex(hmac_ctx, key->hmac_key, 32, digest, NULL); in tls_session_ticket_key_cb()
|
| /freebsd-12-stable/crypto/openssl/doc/man3/ |
| D | SSL_CTX_set_tlsext_ticket_key_cb.pod | 151 * an aes_key, a hmac_key and optionally 160 HMAC_Init_ex(&hctx, key->hmac_key, 32, EVP_sha256(), NULL); 171 HMAC_Init_ex(&hctx, key->hmac_key, 32, EVP_sha256(), NULL);
|
| /freebsd-12-stable/sys/dev/safexcel/ |
| D | safexcel.c | 2324 uint8_t hmac_key[HMAC_MAX_BLOCK_LEN]; in safexcel_hmac_init_pad() local 2327 memset(hmac_key, 0, sizeof(hmac_key)); in safexcel_hmac_init_pad() 2331 axf->Final(hmac_key, auth_ctx); in safexcel_hmac_init_pad() 2334 memcpy(hmac_key, key, klen); in safexcel_hmac_init_pad() 2338 hmac_key[i] ^= padval; in safexcel_hmac_init_pad() 2341 axf->Update(auth_ctx, hmac_key, axf->blocksize); in safexcel_hmac_init_pad() 2342 explicit_bzero(hmac_key, sizeof(hmac_key)); in safexcel_hmac_init_pad()
|
| /freebsd-12-stable/contrib/unbound/ |
| D | configure.ac | 991 void* hmac_key = NULL; 993 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
|