Home
last modified time | relevance | path

Searched refs:mac_key (Results 1 – 10 of 10) sorted by relevance

/external/srtp/crypto/ae_xfm/
Dxfm.c33 unsigned char mac_key[MAC_KEY_LEN]; in aes_128_cbc_hmac_sha1_96_func() local
59 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key); in aes_128_cbc_hmac_sha1_96_func()
79 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN); in aes_128_cbc_hmac_sha1_96_func()
107 unsigned char mac_key[MAC_KEY_LEN]; in aes_128_cbc_hmac_sha1_96_inv() local
136 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key); in aes_128_cbc_hmac_sha1_96_inv()
155 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN); in aes_128_cbc_hmac_sha1_96_inv()
193 unsigned char mac_key[MAC_KEY_LEN]; in aes_128_cbc_hmac_sha1_96_enc() local
224 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key); in aes_128_cbc_hmac_sha1_96_enc()
262 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN); in aes_128_cbc_hmac_sha1_96_enc()
304 unsigned char mac_key[MAC_KEY_LEN]; in aes_128_cbc_hmac_sha1_96_dec() local
[all …]
/external/chromium/chrome/browser/sync/util/
Dnigori.cc111 const std::string& mac_key) { in InitByImport() argument
119 mac_key_.reset(SymmetricKey::Import(SymmetricKey::HMAC_SHA1, mac_key)); in InitByImport()
250 std::string* mac_key) const { in ExportKeys()
253 DCHECK(mac_key); in ExportKeys()
257 mac_key_->GetRawKey(mac_key); in ExportKeys()
Dnigori.h43 const std::string& mac_key);
62 std::string* mac_key) const;
Dnigori_unittest.cc145 std::string mac_key; in TEST() local
146 EXPECT_TRUE(nigori1.ExportKeys(&user_key, &encryption_key, &mac_key)); in TEST()
149 EXPECT_TRUE(nigori2.InitByImport(user_key, encryption_key, mac_key)); in TEST()
Dcryptographer_unittest.cc164 std::string user_key, encryption_key, mac_key; in TEST() local
165 ASSERT_TRUE(unpacked->ExportKeys(&user_key, &encryption_key, &mac_key)); in TEST()
169 EXPECT_EQ(expected_mac, mac_key); in TEST()
Dcryptographer.cc236 key.mac_key())) { in UnpackBootstrapToken()
254 key.mac_key())) { in InstallKeys()
/external/openssl/crypto/evp/
Dpmeth_gn.c205 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local
215 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
220 return mac_key; in EVP_PKEY_new_mac_key()
/external/openssl/ssl/
Dt1_enc.c164 EVP_PKEY *mac_key; in tls1_P_hash() local
176 mac_key = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, NULL, sec, sec_len); in tls1_P_hash()
177 if (!mac_key) in tls1_P_hash()
179 if (!EVP_DigestSignInit(&ctx,NULL,md, NULL, mac_key)) in tls1_P_hash()
181 if (!EVP_DigestSignInit(&ctx_tmp,NULL,md, NULL, mac_key)) in tls1_P_hash()
199 if (!EVP_DigestSignInit(&ctx,NULL,md, NULL, mac_key)) in tls1_P_hash()
201 if (!EVP_DigestSignInit(&ctx_tmp,NULL,md, NULL, mac_key)) in tls1_P_hash()
238 EVP_PKEY_free(mac_key); in tls1_P_hash()
339 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
495 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, in tls1_change_cipher_state()
[all …]
/external/chromium/chrome/browser/sync/protocol/
Dnigori_specifics.proto24 optional bytes mac_key = 4; field
/external/dropbear/libtomcrypt/
Dcrypt.tex4822 mac_key[16], outbuf[48];
4842 memcpy(mac_key, outbuf+32, 16);