Home | History | Annotate | Download | only in crypto

Lines Matching defs:provider

47 // key created for the specified |provider|. |alg| contains the algorithm of
53 bool ImportRawKey(HCRYPTPROV provider,
79 // RSA Enhanced Provider, as the approved means of using arbitrary HMAC
86 CryptImportKey(provider, actual_key, actual_size, 0, flags, &unsafe_key);
101 // key provider (CSP) in |*provider|.
103 ScopedHCRYPTPROV* provider,
105 DCHECK(provider);
133 provider->swap(safe_provider);
169 // |*key| and the key provider (CSP) in |*provider|.
172 ScopedHCRYPTPROV* provider,
175 DCHECK(provider);
201 provider->swap(safe_provider);
209 // Attempts to create an HMAC hash instance using the specified |provider|
213 bool CreateHMACHash(HCRYPTPROV provider,
218 BOOL ok = CryptCreateHash(provider, CALG_HMAC, key, 0, safe_hash.receive());
322 ScopedHCRYPTPROV provider;
330 ok = GenerateAESKey(key_size_in_bits, &provider, &key);
333 ok = GenerateHMACKey(key_size_in_bits, CALG_SHA1, &provider,
347 SymmetricKey* result = new SymmetricKey(provider.release(),
387 ScopedHCRYPTPROV provider;
388 BOOL ok = CryptAcquireContext(provider.receive(), NULL, NULL, provider_type,
398 if (!ImportRawKey(provider, CALG_HMAC, password_as_bytes,
406 if (!CreateHMACHash(provider, password_as_key, CALG_SHA1, &prf))
455 if (!ImportRawKey(provider, alg, &generated_key[0], dkLen, &key))
458 SymmetricKey* result = new SymmetricKey(provider.release(), key.release(),
487 ScopedHCRYPTPROV provider;
488 BOOL ok = CryptAcquireContext(provider.receive(), NULL, NULL, provider_type,
494 if (!ImportRawKey(provider, alg, raw_key.data(), raw_key.size(), &key))
497 return new SymmetricKey(provider.release(), key.release(),
529 SymmetricKey::SymmetricKey(HCRYPTPROV provider,
532 : provider_(provider), key_(key) {