Searched refs:mac_key (Results 1 – 6 of 6) sorted by relevance
| /openbsd/src/lib/libssl/ |
| D | t1_enc.c | 168 EVP_PKEY *mac_key = NULL; in tls1_P_hash() local 179 mac_key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, secret, secret_len); in tls1_P_hash() 180 if (mac_key == NULL) in tls1_P_hash() 182 if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key)) in tls1_P_hash() 198 if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key)) in tls1_P_hash() 227 if (!EVP_DigestSignInit(ctx, NULL, md, NULL, mac_key)) in tls1_P_hash() 237 EVP_PKEY_free(mac_key); in tls1_P_hash() 302 CBS mac_key, key, iv; in tls1_change_cipher_state() local 307 &mac_key, &key, &iv); in tls1_change_cipher_state() 310 &mac_key, &key, &iv); in tls1_change_cipher_state() [all …]
|
| D | tls12_record_layer.c | 51 uint8_t *mac_key; member 72 freezero(rp->mac_key, rp->mac_key_len); in tls12_record_protection_clear() 98 rp->hash_ctx == NULL && rp->mac_key == NULL; in tls12_record_protection_unused() 396 const uint8_t *mac_key, size_t mac_key_len) in tls12_record_layer_set_mac_key() argument 398 freezero(rp->mac_key, rp->mac_key_len); in tls12_record_layer_set_mac_key() 399 rp->mac_key = NULL; in tls12_record_layer_set_mac_key() 402 if (mac_key == NULL || mac_key_len == 0) in tls12_record_layer_set_mac_key() 405 if ((rp->mac_key = calloc(1, mac_key_len)) == NULL) in tls12_record_layer_set_mac_key() 408 memcpy(rp->mac_key, mac_key, mac_key_len); in tls12_record_layer_set_mac_key() 416 struct tls12_record_protection *rp, int is_write, CBS *mac_key, CBS *key, in tls12_record_layer_ccs_aead() argument [all …]
|
| D | tls12_key_schedule.c | 71 tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_client_write() argument 74 CBS_dup(&kb->client_write_mac_key, mac_key); in tls12_key_block_client_write() 80 tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key, in tls12_key_block_server_write() argument 83 CBS_dup(&kb->server_write_mac_key, mac_key); in tls12_key_block_server_write()
|
| D | ssl_local.h | 612 void tls12_key_block_client_write(struct tls12_key_block *kb, CBS *mac_key, 614 void tls12_key_block_server_write(struct tls12_key_block *kb, CBS *mac_key, 648 CBS *mac_key, CBS *key, CBS *iv); 650 CBS *mac_key, CBS *key, CBS *iv);
|
| /openbsd/src/lib/libcrypto/evp/ |
| D | pmeth_gn.c | 210 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local 220 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key() 225 return mac_key; in EVP_PKEY_new_mac_key()
|
| /openbsd/src/sbin/ping/ |
| D | ping.c | 202 SIPHASH_KEY mac_key; variable 779 arc4random_buf(&mac_key, sizeof(mac_key)); in main() 1154 SipHash24_Init(&ctx, &mac_key); in pinger() 1297 SipHash24_Init(&ctx, &mac_key); in pr_pack()
|