Searched refs:SymmetricKey (Results 1 – 6 of 6) sorted by relevance
/external/libchrome/crypto/ |
D | symmetric_key_unittest.cc | 15 std::unique_ptr<crypto::SymmetricKey> key( in TEST() 16 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST() 24 std::unique_ptr<crypto::SymmetricKey> key2( in TEST() 25 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST() 34 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() 35 crypto::SymmetricKey::GenerateRandomKey(crypto::SymmetricKey::AES, 256)); in TEST() 40 std::unique_ptr<crypto::SymmetricKey> key2( in TEST() 41 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, raw_key1)); in TEST() 51 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() 52 crypto::SymmetricKey::DeriveKeyFromPassword( in TEST() [all …]
|
D | symmetric_key.cc | 21 SymmetricKey::~SymmetricKey() { in ~SymmetricKey() 26 std::unique_ptr<SymmetricKey> SymmetricKey::GenerateRandomKey( in GenerateRandomKey() 44 std::unique_ptr<SymmetricKey> key(new SymmetricKey); in GenerateRandomKey() 53 std::unique_ptr<SymmetricKey> SymmetricKey::DeriveKeyFromPassword( in DeriveKeyFromPassword() 76 std::unique_ptr<SymmetricKey> key(new SymmetricKey); in DeriveKeyFromPassword() 88 std::unique_ptr<SymmetricKey> SymmetricKey::Import(Algorithm algorithm, in Import() 98 std::unique_ptr<SymmetricKey> key(new SymmetricKey); in Import() 103 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey() 108 SymmetricKey::SymmetricKey() = default;
|
D | symmetric_key_nss.cc | 17 SymmetricKey::~SymmetricKey() {} in ~SymmetricKey() 20 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey() 41 return new SymmetricKey(sym_key); in GenerateRandomKey() 45 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword() 94 return new SymmetricKey(sym_key); in DeriveKeyFromPassword() 98 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import() 131 return new SymmetricKey(sym_key); in Import() 134 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey() 147 SymmetricKey::SymmetricKey(PK11SymKey* key) : key_(key) { in SymmetricKey() function in crypto::SymmetricKey
|
D | symmetric_key.h | 30 class CRYPTO_EXPORT SymmetricKey { 39 virtual ~SymmetricKey(); 44 static std::unique_ptr<SymmetricKey> GenerateRandomKey( 53 static std::unique_ptr<SymmetricKey> DeriveKeyFromPassword( 64 static std::unique_ptr<SymmetricKey> Import(Algorithm algorithm, 81 SymmetricKey(HCRYPTPROV provider, HCRYPTKEY key, 95 SymmetricKey() {} 98 explicit SymmetricKey(PK11SymKey* key); 102 DISALLOW_COPY_AND_ASSIGN(SymmetricKey);
|
D | hmac.h | 24 class SymmetricKey; variable 56 bool Init(SymmetricKey* key) WARN_UNUSED_RESULT;
|
D | hmac.cc | 17 bool HMAC::Init(SymmetricKey* key) { in Init()
|