/external/chromium/crypto/ |
D | symmetric_key_unittest.cc | 15 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 …]
|
D | symmetric_key_mac.cc | 16 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 …]
|
D | symmetric_key_openssl.cc | 19 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()
|
D | encryptor_unittest.cc | 15 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 …]
|
D | symmetric_key_nss.cc | 15 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
|
D | symmetric_key.h | 25 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);
|
D | symmetric_key_win.cc | 307 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
|
D | encryptor.h | 21 class SymmetricKey; variable 33 bool Init(SymmetricKey* key, Mode mode, const std::string& iv); 44 SymmetricKey* key_;
|
D | encryptor_openssl.cc | 19 const EVP_CIPHER* GetCipherForKey(SymmetricKey* key) { in GetCipherForKey() 55 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
|
D | encryptor_mac.cc | 23 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
|
D | encryptor_nss.cc | 25 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
|
D | encryptor_win.cc | 40 bool Encryptor::Init(SymmetricKey* key, Mode mode, const std::string& iv) { in Init()
|
/external/chromium/chrome/browser/sync/util/ |
D | nigori.cc | 28 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()
|
D | nigori.h | 76 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/ |
D | encryptor_linux.cc | 35 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()
|
D | encryptor_mac.mm | 36 // 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/ |
D | dns_cert_provenance_checker.cc | 305 scoped_ptr<crypto::SymmetricKey> symkey( in BuildEncryptedReport() 306 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key)); in BuildEncryptedReport()
|