Home
last modified time | relevance | path

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

/external/libchrome/crypto/
Dsymmetric_key_win.cc112 ScopedHCRYPTPROV safe_provider; in GenerateAESKey() local
116 BOOL ok = CryptAcquireContext(safe_provider.receive(), NULL, NULL, in GenerateAESKey()
127 ok = CryptGenKey(safe_provider.get(), alg, CRYPT_EXPORTABLE, in GenerateAESKey()
133 provider->swap(safe_provider); in GenerateAESKey()
182 ScopedHCRYPTPROV safe_provider; in GenerateHMACKey() local
185 BOOL ok = CryptAcquireContext(safe_provider.receive(), NULL, NULL, in GenerateHMACKey()
192 ok = CryptGenRandom(safe_provider, key_size_in_bytes, random.get()); in GenerateHMACKey()
197 bool rv = ImportRawKey(safe_provider, CALG_HMAC, random.get(), in GenerateHMACKey()
201 provider->swap(safe_provider); in GenerateHMACKey()