Home
last modified time | relevance | path

Searched refs:secret_len (Results 1 – 6 of 6) sorted by relevance

/system/keymaster/km_openssl/
Dkdf.cpp23 bool Kdf::Init(keymaster_digest_t digest_type, const uint8_t* secret, size_t secret_len, in Init() argument
40 if (!secret || secret_len == 0) return false; in Init()
42 secret_key_len_ = secret_len; in Init()
43 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
/system/keymaster/include/keymaster/km_openssl/
Diso18033kdf.h36 bool Init(keymaster_digest_t digest_type, const uint8_t* secret, size_t secret_len) { in Init() argument
37 return Kdf::Init(digest_type, secret, secret_len, nullptr /* salt */, 0 /* salt_len */); in Init()
Dhkdf.h40 bool Init(const uint8_t* secret, size_t secret_len, const uint8_t* salt, size_t salt_len) { in Init() argument
41 return Kdf::Init(KM_DIGEST_SHA_2_256, secret, secret_len, salt, salt_len); in Init()
Dkdf.h35 bool Init(keymaster_digest_t digest_type, const uint8_t* secret, size_t secret_len,
/system/security/keystore2/src/crypto/
Dcrypto.hpp46 const uint8_t *secret, size_t secret_len,
Dcrypto.cpp208 bool HKDFExtract(uint8_t* out_key, size_t* out_len, const uint8_t* secret, size_t secret_len, in HKDFExtract() argument
211 auto result = HKDF_extract(out_key, out_len, digest, secret, secret_len, salt, salt_len); in HKDFExtract()