Home
last modified time | relevance | path

Searched refs:key_size_in_bits (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/crypto/
Dsymmetric_key_openssl.cc25 size_t key_size_in_bits) { in GenerateRandomKey() argument
31 if (key_size_in_bits != 128 && key_size_in_bits != 256) in GenerateRandomKey()
34 size_t key_size_in_bytes = key_size_in_bits / 8; in GenerateRandomKey()
35 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in GenerateRandomKey()
54 size_t key_size_in_bits) { in DeriveKeyFromPassword() argument
61 if (key_size_in_bits != 128 && key_size_in_bits != 256) in DeriveKeyFromPassword()
65 size_t key_size_in_bytes = key_size_in_bits / 8; in DeriveKeyFromPassword()
66 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in DeriveKeyFromPassword()
Dsymmetric_key_nss.cc19 size_t key_size_in_bits) { in GenerateRandomKey() argument
27 if (key_size_in_bits != 128 && key_size_in_bits != 256) in GenerateRandomKey()
35 key_size_in_bits / 8, NULL); in GenerateRandomKey()
47 size_t key_size_in_bits) { in DeriveKeyFromPassword() argument
49 if (salt.empty() || iterations == 0 || key_size_in_bits == 0) in DeriveKeyFromPassword()
56 if (key_size_in_bits != 128 && key_size_in_bits != 256) in DeriveKeyFromPassword()
77 key_size_in_bits / 8, in DeriveKeyFromPassword()
Dsymmetric_key_win.cc28 ALG_ID GetAESAlgIDForKeySize(size_t key_size_in_bits) { in GetAESAlgIDForKeySize() argument
30 switch (key_size_in_bits) { in GetAESAlgIDForKeySize()
99 bool GenerateAESKey(size_t key_size_in_bits, in GenerateAESKey() argument
105 ALG_ID alg = GetAESAlgIDForKeySize(key_size_in_bits); in GenerateAESKey()
137 bool CheckHMACKeySize(size_t key_size_in_bits, ALG_ID alg) { in CheckHMACKeySize() argument
158 return (key_size_in_bits >= (hash_size / 2 * 8) && in CheckHMACKeySize()
159 (key_size_in_bits % 8) == 0); in CheckHMACKeySize()
167 bool GenerateHMACKey(size_t key_size_in_bits, in GenerateHMACKey() argument
176 if (!CheckHMACKeySize(key_size_in_bits, alg)) in GenerateHMACKey()
187 DWORD key_size_in_bytes = static_cast<DWORD>(key_size_in_bits / 8); in GenerateHMACKey()
[all …]
Dsymmetric_key.h41 size_t key_size_in_bits);
52 size_t key_size_in_bits);
Dsymmetric_key_unittest.cc73 unsigned int key_size_in_bits; member
96 test_data.rounds, test_data.key_size_in_bits)); in TEST_P()
101 EXPECT_EQ(test_data.key_size_in_bits / 8, raw_key.size()); in TEST_P()
/external/chromium_org/net/base/
Dkeygen_handler.cc17 KeygenHandler::KeygenHandler(int key_size_in_bits, in KeygenHandler() argument
20 : key_size_in_bits_(key_size_in_bits), in KeygenHandler()
Dkeygen_handler.h32 KeygenHandler(int key_size_in_bits,
/external/chromium_org/content/browser/
Dresource_context_impl.cc73 uint32 key_size_in_bits, in CreateKeygenHandler() argument
78 new net::KeygenHandler(key_size_in_bits, challenge_string, url))); in CreateKeygenHandler()
/external/chromium_org/net/third_party/mozilla_security_manager/
DnsKeygenHandler.h61 std::string GenKeyAndSignChallenge(int key_size_in_bits,
DnsKeygenHandler.cpp95 std::string GenKeyAndSignChallenge(int key_size_in_bits, in GenKeyAndSignChallenge() argument
123 rsaKeyGenParams.keySizeInBits = key_size_in_bits; in GenKeyAndSignChallenge()
/external/chromium_org/content/public/browser/
Dresource_context.h54 uint32 key_size_in_bits,
/external/chromium_org/content/browser/renderer_host/
Drender_message_filter.cc1032 int key_size_in_bits; in OnKeygen() local
1035 key_size_in_bits = 2048; in OnKeygen()
1038 key_size_in_bits = 1024; in OnKeygen()
1048 key_size_in_bits, in OnKeygen()
/external/chromium_org/chrome/browser/profiles/
Dprofile_io_data.cc932 uint32 key_size_in_bits, in CreateKeygenHandler() argument
939 new net::KeygenHandler(key_size_in_bits, challenge_string, url)); in CreateKeygenHandler()
958 new net::KeygenHandler(key_size_in_bits, challenge_string, url))); in CreateKeygenHandler()
Dprofile_io_data.h502 uint32 key_size_in_bits,