Home
last modified time | relevance | path

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

/external/libchrome/crypto/
Dsymmetric_key.cc28 size_t key_size_in_bits) { in GenerateRandomKey() argument
34 if (key_size_in_bits != 128 && key_size_in_bits != 256) in GenerateRandomKey()
37 size_t key_size_in_bytes = key_size_in_bits / 8; in GenerateRandomKey()
38 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in GenerateRandomKey()
58 size_t key_size_in_bits) { in DeriveKeyFromPassword() argument
65 if (key_size_in_bits != 128 && key_size_in_bits != 256) in DeriveKeyFromPassword()
69 size_t key_size_in_bytes = key_size_in_bits / 8; in DeriveKeyFromPassword()
70 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in DeriveKeyFromPassword()
Dsymmetric_key_nss.cc21 size_t key_size_in_bits) { in GenerateRandomKey() argument
29 if (key_size_in_bits != 128 && key_size_in_bits != 256) in GenerateRandomKey()
37 key_size_in_bits / 8, NULL); in GenerateRandomKey()
49 size_t key_size_in_bits) { in DeriveKeyFromPassword() argument
51 if (salt.empty() || iterations == 0 || key_size_in_bits == 0) in DeriveKeyFromPassword()
58 if (key_size_in_bits != 128 && key_size_in_bits != 256) in DeriveKeyFromPassword()
79 key_size_in_bits / 8, in DeriveKeyFromPassword()
Dsymmetric_key_unittest.cc73 unsigned int key_size_in_bits; member
86 test_data.rounds, test_data.key_size_in_bits)); in TEST_P()
91 EXPECT_EQ(test_data.key_size_in_bits / 8, raw_key.size()); in TEST_P()
Dsymmetric_key.h46 size_t key_size_in_bits);
58 size_t key_size_in_bits);