Home
last modified time | relevance | path

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

/external/libchrome/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_openssl.cc21 SymmetricKey::~SymmetricKey() { in ~SymmetricKey()
26 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
43 scoped_ptr<SymmetricKey> key(new SymmetricKey); in GenerateRandomKey()
52 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
74 scoped_ptr<SymmetricKey> key(new SymmetricKey); in DeriveKeyFromPassword()
85 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
95 scoped_ptr<SymmetricKey> key(new SymmetricKey); in Import()
100 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey()
Dsymmetric_key_nss.cc17 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
Dsymmetric_key.h29 class CRYPTO_EXPORT SymmetricKey {
38 virtual ~SymmetricKey();
43 static SymmetricKey* GenerateRandomKey(Algorithm algorithm,
51 static SymmetricKey* DeriveKeyFromPassword(Algorithm algorithm,
61 static SymmetricKey* Import(Algorithm algorithm, const std::string& raw_key);
78 SymmetricKey(HCRYPTPROV provider, HCRYPTKEY key,
92 SymmetricKey() {}
95 explicit SymmetricKey(PK11SymKey* key);
99 DISALLOW_COPY_AND_ASSIGN(SymmetricKey);
Dsymmetric_key_win.cc310 SymmetricKey::~SymmetricKey() { in ~SymmetricKey()
318 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm, in GenerateRandomKey()
347 SymmetricKey* result = new SymmetricKey(provider.release(), in GenerateRandomKey()
358 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm, in DeriveKeyFromPassword()
458 SymmetricKey* result = new SymmetricKey(provider.release(), key.release(), in DeriveKeyFromPassword()
467 SymmetricKey* SymmetricKey::Import(Algorithm algorithm, in Import()
497 return new SymmetricKey(provider.release(), key.release(), in Import()
501 bool SymmetricKey::GetRawKey(std::string* raw_key) { in GetRawKey()
529 SymmetricKey::SymmetricKey(HCRYPTPROV provider, in SymmetricKey() function in crypto::SymmetricKey
Dhmac.h23 class SymmetricKey; variable
55 bool Init(SymmetricKey* key) WARN_UNUSED_RESULT;
Dhmac.cc17 bool HMAC::Init(SymmetricKey* key) { in Init()