Searched refs:key_size_in_bytes (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/crypto/ |
D | symmetric_key_openssl.cc | 27 size_t key_size_in_bytes = key_size_in_bits / 8; in GenerateRandomKey() local 28 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in GenerateRandomKey() 30 if (key_size_in_bytes == 0) in GenerateRandomKey() 36 reinterpret_cast<uint8*>(WriteInto(&key->key_, key_size_in_bytes + 1)); in GenerateRandomKey() 38 int rv = RAND_bytes(key_data, static_cast<int>(key_size_in_bytes)); in GenerateRandomKey() 49 size_t key_size_in_bytes = key_size_in_bits / 8; in DeriveKeyFromPassword() local 50 DCHECK_EQ(key_size_in_bits, key_size_in_bytes * 8); in DeriveKeyFromPassword() 52 if (key_size_in_bytes == 0) in DeriveKeyFromPassword() 58 reinterpret_cast<uint8*>(WriteInto(&key->key_, key_size_in_bytes + 1)); in DeriveKeyFromPassword() 62 static_cast<int>(key_size_in_bytes), in DeriveKeyFromPassword()
|
D | symmetric_key_win.cc | 187 DWORD key_size_in_bytes = static_cast<DWORD>(key_size_in_bits / 8); in GenerateHMACKey() local 188 scoped_ptr<BYTE[]> random(new BYTE[key_size_in_bytes]); in GenerateHMACKey() 189 ok = CryptGenRandom(safe_provider, key_size_in_bytes, random.get()); in GenerateHMACKey() 195 key_size_in_bytes, &safe_key); in GenerateHMACKey() 202 SecureZeroMemory(random.get(), key_size_in_bytes); in GenerateHMACKey() 340 size_t key_size_in_bytes = key_size_in_bits / 8; in GenerateRandomKey() local 342 key_size_in_bytes = 0; in GenerateRandomKey() 347 key_size_in_bytes); in GenerateRandomKey() 349 SecureZeroMemory(raw_key.get(), key_size_in_bytes); in GenerateRandomKey() 528 const void* key_data, size_t key_size_in_bytes) in SymmetricKey() argument [all …]
|
D | symmetric_key.h | 79 const void* key_data, size_t key_size_in_bytes);
|