Home
last modified time | relevance | path

Searched refs:key_size_in_bytes (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/crypto/
Dsymmetric_key.cc37 size_t key_size_in_bytes = key_size_in_bits / 8; in GenerateRandomKey() local
38 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in GenerateRandomKey()
40 if (key_size_in_bytes == 0) in GenerateRandomKey()
46 base::WriteInto(&key->key_, key_size_in_bytes + 1)); in GenerateRandomKey()
48 int rv = RAND_bytes(key_data, static_cast<int>(key_size_in_bytes)); in GenerateRandomKey()
69 size_t key_size_in_bytes = key_size_in_bits / 8; in DeriveKeyFromPassword() local
70 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in DeriveKeyFromPassword()
72 if (key_size_in_bytes == 0) in DeriveKeyFromPassword()
78 base::WriteInto(&key->key_, key_size_in_bytes + 1)); in DeriveKeyFromPassword()
83 key_size_in_bytes, key_data); in DeriveKeyFromPassword()
Dsymmetric_key.h82 const void* key_data, size_t key_size_in_bytes);