Home
last modified time | relevance | path

Searched refs:secret (Results 1 – 17 of 17) sorted by relevance

/system/keymaster/
Dhkdf.h35 bool Init(Buffer& secret, Buffer& salt) { in Init() argument
36 return Init(secret.peek_read(), secret.available_read(), salt.peek_read(), in Init()
40 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.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) in Init()
44 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
Diso18033kdf.h38 bool Init(keymaster_digest_t digest_type, const uint8_t* secret, size_t secret_len) { in Init() argument
39 return Kdf::Init(digest_type, secret, secret_len, nullptr /* salt */, 0 /* salt_len */); in Init()
Dkdf.h35 bool Init(keymaster_digest_t digest_type, const uint8_t* secret, size_t secret_len,
/system/vold/
DKeyStorage.h32 KeyAuthentication(std::string t, std::string s) : token{t}, secret{s} {}; in KeyAuthentication()
34 bool usesKeymaster() const { return !token.empty() || secret.empty(); }; in usesKeymaster()
37 const std::string secret; variable
DExt4Crypt.h32 const char* secret);
35 bool e4crypt_unlock_user_key(userid_t user_id, int serial, const char* token, const char* secret);
DKeyStorage.cpp238 } else if (auth.secret.empty()) { in getStretching()
252 static bool stretchSecret(const std::string& stretching, const std::string& secret, in stretchSecret() argument
255 if (!secret.empty()) { in stretchSecret()
261 *stretched = secret; in stretchSecret()
271 if (crypto_scrypt(reinterpret_cast<const uint8_t*>(secret.data()), secret.size(), in stretchSecret()
289 if (!stretchSecret(stretching, auth.secret, salt, &stretched)) return false; in generateAppId()
DExt4Crypt.cpp634 std::string token, secret; in e4crypt_add_user_key_auth() local
636 if (!parse_hex(secret_hex, &secret)) return false; in e4crypt_add_user_key_auth()
637 auto auth = secret.empty() ? kEmptyAuthentication in e4crypt_add_user_key_auth()
638 : android::vold::KeyAuthentication(token, secret); in e4crypt_add_user_key_auth()
677 std::string token, secret; in e4crypt_unlock_user_key() local
679 if (!parse_hex(secret_hex, &secret)) return false; in e4crypt_unlock_user_key()
680 android::vold::KeyAuthentication auth(token, secret); in e4crypt_unlock_user_key()
/system/tpm/attestation/common/
Ddatabase.proto55 // The authorization secret.
56 optional bytes secret = 2; field
/system/tpm/attestation/server/
Dattestation_service.cc320 database_pb.delegate().blob(), database_pb.delegate().secret(), in ActivateAttestationKeyTask()
528 database_pb.delegate().blob(), database_pb.delegate().secret(), in FinishEnroll()
/system/tpm/trunks/
Dmock_tpm.h205 const TPM2B_ENCRYPTED_SECRET& secret,
214 const TPM2B_ENCRYPTED_SECRET& secret,
230 TPM2B_ENCRYPTED_SECRET* secret,
Dtpm_generated.h1499 BYTE secret[sizeof(TPMU_ENCRYPTED_SECRET)]; member
3627 const TPM2B_ENCRYPTED_SECRET& secret,
3639 const TPM2B_ENCRYPTED_SECRET& secret,
3648 const TPM2B_ENCRYPTED_SECRET& secret,
3653 const TPM2B_ENCRYPTED_SECRET& secret)>
3665 TPM2B_ENCRYPTED_SECRET* secret,
3679 TPM2B_ENCRYPTED_SECRET* secret,
Dtpm_generated.cc6695 if (arraysize(value.secret) < value.size) { in Serialize_TPM2B_ENCRYPTED_SECRET()
6699 result = Serialize_BYTE(value.secret[i], buffer); in Serialize_TPM2B_ENCRYPTED_SECRET()
6718 if (arraysize(value->secret) < value->size) { in Parse_TPM2B_ENCRYPTED_SECRET()
6722 result = Parse_BYTE(buffer, &value->secret[i], value_bytes); in Parse_TPM2B_ENCRYPTED_SECRET()
6732 CHECK(bytes.size() <= sizeof(tpm2b.secret)); in Make_TPM2B_ENCRYPTED_SECRET()
6735 memcpy(tpm2b.secret, bytes.data(), bytes.size()); in Make_TPM2B_ENCRYPTED_SECRET()
6741 const char* char_buffer = reinterpret_cast<const char*>(tpm2b.secret); in StringFrom_TPM2B_ENCRYPTED_SECRET()
10640 const TPM2B_ENCRYPTED_SECRET& secret, in SerializeCommand_ActivateCredential() argument
10673 rc = Serialize_TPM2B_ENCRYPTED_SECRET(secret, &secret_bytes); in SerializeCommand_ActivateCredential()
10858 const TPM2B_ENCRYPTED_SECRET& secret, in ActivateCredential() argument
[all …]
/system/tpm/trunks/generator/
Draw_commands.txt1520 associated with the handle and/or the session secret (TPM_RC_AUTH_FAIL or
1525 authValue will not be required but proof of knowledge of the session secret is necessary.
3497 This command allows injection of a secret into the TPM using either asymmetric or symmetric encrypt…
3498 The type of tpmKey determines how the value in encryptedSalt is encrypted. The decrypted secret val…
3505 recovery of the secret value.
3506 The TPM generates the sessionKey from the recovered secret value.
3578 produce the final secret value. The size of the secret value is an input parameter to the KDF
3845 secret size does not match decrypt key type; or the recovered secret
3886 // secret size cannot be 0
3976 // secret size must be 0
[all …]
Draw_commands_fixed.txt1520 associated with the handle and/or the session secret (TPM_RC_AUTH_FAIL or
1525 authValue will not be required but proof of knowledge of the session secret is necessary.
3497 This command allows injection of a secret into the TPM using either asymmetric or symmetric encrypt…
3498 The type of tpmKey determines how the value in encryptedSalt is encrypted. The decrypted secret val…
3505 recovery of the secret value.
3506 The TPM generates the sessionKey from the recovered secret value.
3578 produce the final secret value. The size of the secret value is an input parameter to the KDF
3847 secret size does not match decrypt key type; or the recovered secret
3888 // secret size cannot be 0
3978 // secret size must be 0
[all …]
Draw_structures_fixed.txt2936 ECC secret sharing using ECC from SP800-56A
10845 the data using a secret key known only to the TPM. A ticket is a way to expand the state memory of …
10863 a TPM secret value (depends on hierarchy)
10983 a TPM secret value associated with the hierarchy associated with name
11060 a TPM secret value associated with the hierarchy associated with
11137 a TPM secret value associated with the hierarchy of the key associated
11226 a TPM secret value associated with the hierarchy indicated by the
12776 This buffer holds the secret data of a data object. It can hold as much as 128 octets of data.
12835 the USER auth secret value
13278 These structures are used to define the key derivation for symmetric secret sharing using asymmetric
[all …]
Draw_structures.txt2942 ECC secret sharing using ECC from SP800-56A
10817 the data using a secret key known only to the TPM. A ticket is a way to expand the state memory of …
10835 a TPM secret value (depends on hierarchy)
10955 a TPM secret value associated with the hierarchy associated with name
11032 a TPM secret value associated with the hierarchy associated with
11109 a TPM secret value associated with the hierarchy of the key associated
11198 a TPM secret value associated with the hierarchy indicated by the
12764 This buffer holds the secret data of a data object. It can hold as much as 128 octets of data.
12823 the USER auth secret value
13261 These structures are used to define the key derivation for symmetric secret sharing using asymmetric
[all …]