Lines Matching refs:SymmetricKey
16 CSSM_KEY_TYPE CheckKeyParams(crypto::SymmetricKey::Algorithm algorithm,
18 if (algorithm == crypto::SymmetricKey::AES) {
28 CHECK(algorithm == crypto::SymmetricKey::HMAC_SHA1);
68 SymmetricKey::~SymmetricKey() {}
71 SymmetricKey* SymmetricKey::GenerateRandomKey(Algorithm algorithm,
77 SymmetricKey *key = new SymmetricKey(random_bytes, key_size_in_bits);
83 SymmetricKey* SymmetricKey::DeriveKeyFromPassword(Algorithm algorithm,
90 SymmetricKey* derived_key = NULL;
128 derived_key = new SymmetricKey(cssm_key.KeyData.Data, key_size_in_bits);
137 SymmetricKey* SymmetricKey::Import(Algorithm algorithm,
139 return new SymmetricKey(raw_key.data(), raw_key.size() * 8);
142 SymmetricKey::SymmetricKey(const void *key_data, size_t key_size_in_bits)
146 bool SymmetricKey::GetRawKey(std::string* raw_key) {
151 CSSM_DATA SymmetricKey::cssm_data() const {