Home
last modified time | relevance | path

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

/external/chromium/crypto/
Dsymmetric_key_unittest.cc15 scoped_ptr<crypto::SymmetricKey> key( in TEST()
16 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()
24 scoped_ptr<crypto::SymmetricKey> key2( in TEST()
25 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()
34 scoped_ptr<crypto::SymmetricKey> key1( in TEST()
35 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST()
40 scoped_ptr<crypto::SymmetricKey> key2( in TEST()
41 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key1)); in TEST()
51 scoped_ptr<crypto::SymmetricKey> key1( in TEST()
52 crypto::SymmetricKey::DeriveKeyFromPassword( in TEST()
[all …]
Dsymmetric_key_mac.cc16 CSSM_KEY_TYPE CheckKeyParams(crypto::SymmetricKey::Algorithm algorithm, in CheckKeyParams()
18 if (algorithm == crypto::SymmetricKey::AES) { in CheckKeyParams()
28 CHECK(algorithm == crypto::SymmetricKey::HMAC_SHA1); in CheckKeyParams()
68 SymmetricKey::~SymmetricKey() {} in ~SymmetricKey()
71 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
77 SymmetricKey *key = new SymmetricKey(random_bytes, key_size_in_bits); in GenerateRandomKey()
83 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
90 SymmetricKey* derived_key = NULL; in DeriveKeyFromPassword()
128 derived_key = new SymmetricKey(cssm_key.KeyData.Data, key_size_in_bits); in DeriveKeyFromPassword()
137 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
[all …]
Dsymmetric_key_openssl.cc19 SymmetricKey::~SymmetricKey() { in ~SymmetricKey()
24 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
34 scoped_ptr<SymmetricKey> key(new SymmetricKey); in GenerateRandomKey()
43 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
53 scoped_ptr<SymmetricKey> key(new SymmetricKey); in DeriveKeyFromPassword()
64 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
66 scoped_ptr<SymmetricKey> key(new SymmetricKey); in Import()
71 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey()
Dencryptor_unittest.cc15 scoped_ptr<crypto::SymmetricKey> key( in TEST()
16 crypto::SymmetricKey::DeriveKeyFromPassword( in TEST()
17 crypto::SymmetricKey::AES, "password", "saltiest", 1000, 256)); in TEST()
90 scoped_ptr<crypto::SymmetricKey> sym_key(crypto::SymmetricKey::Import( in TEST()
91 crypto::SymmetricKey::AES, key)); in TEST()
123 scoped_ptr<crypto::SymmetricKey> sym_key(crypto::SymmetricKey::Import( in TEST()
124 crypto::SymmetricKey::AES, key)); in TEST()
149 scoped_ptr<crypto::SymmetricKey> sym_key(crypto::SymmetricKey::Import( in TEST()
150 crypto::SymmetricKey::AES, key)); in TEST()
174 scoped_ptr<crypto::SymmetricKey> sym_key(crypto::SymmetricKey::Import( in TEST()
[all …]
Dsymmetric_key_nss.cc15 SymmetricKey::~SymmetricKey() {} in ~SymmetricKey()
18 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
35 return new SymmetricKey(sym_key); in GenerateRandomKey()
39 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
80 return new SymmetricKey(sym_key); in DeriveKeyFromPassword()
84 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
107 return new SymmetricKey(sym_key); in Import()
110 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey()
123 SymmetricKey::SymmetricKey(PK11SymKey* key) : key_(key) { in SymmetricKey() function in crypto::SymmetricKey
Dsymmetric_key.h25 class SymmetricKey {
34 virtual ~SymmetricKey();
39 static SymmetricKey* GenerateRandomKey(Algorithm algorithm,
46 static SymmetricKey* DeriveKeyFromPassword(Algorithm algorithm,
56 static SymmetricKey* Import(Algorithm algorithm, const std::string& raw_key);
75 SymmetricKey() {} in SymmetricKey() function
78 explicit SymmetricKey(PK11SymKey* key);
81 SymmetricKey(const void* key_data, size_t key_size_in_bits);
84 SymmetricKey(HCRYPTPROV provider, HCRYPTKEY key,
99 DISALLOW_COPY_AND_ASSIGN(SymmetricKey);
Dsymmetric_key_win.cc307 SymmetricKey::~SymmetricKey() { in ~SymmetricKey()
315 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
344 SymmetricKey* result = new SymmetricKey(provider.release(), in GenerateRandomKey()
355 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
455 SymmetricKey* result = new SymmetricKey(provider.release(), key.release(), in DeriveKeyFromPassword()
464 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
494 return new SymmetricKey(provider.release(), key.release(), in Import()
498 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey()
526 SymmetricKey::SymmetricKey(HCRYPTPROV provider, in SymmetricKey() function in crypto::SymmetricKey
Dencryptor.h21 class SymmetricKey; variable
33 bool Init(SymmetricKey* key, Mode mode, const std::string& iv);
44 SymmetricKey* key_;
Dencryptor_openssl.cc19 const EVP_CIPHER* GetCipherForKey(SymmetricKey* key) { in GetCipherForKey()
55 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
Dencryptor_mac.cc23 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
Dencryptor_nss.cc25 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
Dencryptor_win.cc40 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
/external/chromium/chrome/browser/sync/util/
Dnigori.cc28 using crypto::SymmetricKey;
79 scoped_ptr<SymmetricKey> user_salt(SymmetricKey::DeriveKeyFromPassword( in InitByDerivation()
80 SymmetricKey::HMAC_SHA1, salt_password.str(), in InitByDerivation()
91 user_key_.reset(SymmetricKey::DeriveKeyFromPassword(SymmetricKey::AES, in InitByDerivation()
96 encryption_key_.reset(SymmetricKey::DeriveKeyFromPassword(SymmetricKey::AES, in InitByDerivation()
101 mac_key_.reset(SymmetricKey::DeriveKeyFromPassword( in InitByDerivation()
102 SymmetricKey::HMAC_SHA1, password, raw_user_salt, kSigningIterations, in InitByDerivation()
112 user_key_.reset(SymmetricKey::Import(SymmetricKey::AES, user_key)); in InitByImport()
115 encryption_key_.reset(SymmetricKey::Import(SymmetricKey::AES, in InitByImport()
119 mac_key_.reset(SymmetricKey::Import(SymmetricKey::HMAC_SHA1, mac_key)); in InitByImport()
Dnigori.h76 scoped_ptr<crypto::SymmetricKey> user_key_;
77 scoped_ptr<crypto::SymmetricKey> encryption_key_;
78 scoped_ptr<crypto::SymmetricKey> mac_key_;
/external/chromium/chrome/browser/password_manager/
Dencryptor_linux.cc35 crypto::SymmetricKey* GetEncryptionKey() { in GetEncryptionKey()
44 scoped_ptr<crypto::SymmetricKey> encryption_key( in GetEncryptionKey()
45 crypto::SymmetricKey::DeriveKeyFromPassword(crypto::SymmetricKey::AES, in GetEncryptionKey()
84 scoped_ptr<crypto::SymmetricKey> encryption_key(GetEncryptionKey()); in EncryptString()
126 scoped_ptr<crypto::SymmetricKey> encryption_key(GetEncryptionKey()); in DecryptString()
Dencryptor_mac.mm36 // Generates a newly allocated SymmetricKey object based on the password found
40 crypto::SymmetricKey* GetEncryptionKey() {
57 scoped_ptr<crypto::SymmetricKey> encryption_key(
58 crypto::SymmetricKey::DeriveKeyFromPassword(crypto::SymmetricKey::AES,
92 scoped_ptr<crypto::SymmetricKey> encryption_key(GetEncryptionKey());
130 scoped_ptr<crypto::SymmetricKey> encryption_key(GetEncryptionKey());
/external/chromium/net/socket/
Ddns_cert_provenance_checker.cc305 scoped_ptr<crypto::SymmetricKey> symkey( in BuildEncryptedReport()
306 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key)); in BuildEncryptedReport()