/system/connectivity/shill/ |
D | crypto_provider.cc | 48 for (auto crypto : cryptos_) { in Encrypt() local 50 if (crypto->Encrypt(plaintext, &ciphertext)) { in Encrypt() 51 const string prefix = crypto->GetID() + ":"; in Encrypt() 60 for (auto crypto : cryptos_) { in Decrypt() local 61 const string prefix = crypto->GetID() + ":"; in Decrypt() 66 if (!crypto->Decrypt(to_decrypt, &plaintext)) { in Decrypt() 67 LOG(WARNING) << "Crypto module " << crypto->GetID() in Decrypt()
|
/system/extras/crypto-perf/ |
D | Android.mk | 5 LOCAL_CFLAGS := -O0 -march=armv8-a+crypto 6 LOCAL_SRC_FILES := crypto.cpp 10 LOCAL_MODULE := crypto
|
/system/tpm/trunks/ |
D | tpm_generated.cc | 9440 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( in SerializeCommand_Startup() 9441 crypto::SecureHash::SHA256)); in SerializeCommand_Startup() 9561 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( in ParseResponse_Startup() 9562 crypto::SecureHash::SHA256)); in ParseResponse_Startup() 9676 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( in SerializeCommand_Shutdown() 9677 crypto::SecureHash::SHA256)); in SerializeCommand_Shutdown() 9797 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( in ParseResponse_Shutdown() 9798 crypto::SecureHash::SHA256)); in ParseResponse_Shutdown() 9912 scoped_ptr<crypto::SecureHash> hash(crypto::SecureHash::Create( in SerializeCommand_SelfTest() 9913 crypto::SecureHash::SHA256)); in SerializeCommand_SelfTest() [all …]
|
D | session_manager_impl.cc | 54 crypto::EnsureOpenSSLInit(); in SessionManagerImpl() 165 crypto::ScopedRSA salting_key_rsa(RSA_new()); in EncryptSalt() 179 crypto::ScopedEVP_PKEY salting_key(EVP_PKEY_new()); in EncryptSalt() 191 crypto::ScopedEVP_PKEY_CTX salt_encrypt_context( in EncryptSalt()
|
D | trunks_client_test.cc | 62 crypto::EnsureOpenSSLInit(); in TrunksClientTest() 390 std::string hashed_extend_data = crypto::SHA256HashString(extend_data); in PCRTest() 392 crypto::SHA256HashString(old_data + hashed_extend_data); in PCRTest() 534 std::string hashed_extend_data = crypto::SHA256HashString(pcr_extend_data); in PolicyAndTest() 535 next_pcr_value = crypto::SHA256HashString(pcr_value + hashed_extend_data); in PolicyAndTest() 992 crypto::ScopedRSA rsa(RSA_new()); in GenerateRSAKeyPair() 993 crypto::ScopedBIGNUM exponent(BN_new()); in GenerateRSAKeyPair() 998 crypto::ScopedRSA rsa(RSA_generate_key(2048, 0x10001, nullptr, nullptr)); in GenerateRSAKeyPair() 1011 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GenerateRSAKeyPair() 1020 crypto::ScopedRSA rsa(d2i_RSAPublicKey(nullptr, &asn1_ptr, in VerifyRSASignature() [all …]
|
D | policy_session_impl.cc | 136 pcr_digest = Make_TPM2B_DIGEST(crypto::SHA256HashString(pcr_value)); in PolicyPCR()
|
D | tpm_utility_impl.cc | 64 return crypto::SHA256HashString(plaintext); in HashString() 76 crypto::EnsureOpenSSLInit(); in TpmUtilityImpl() 323 std::string digest = crypto::SHA256HashString(entropy_data); in StirRandom() 363 crypto::SHA256HashString(extend_data, in ExtendPCR() 365 crypto::kSHA256Length); in ExtendPCR() 1776 crypto::SHA256HashString(serialized_public_area)); in ComputeKeyName() 1802 crypto::SHA256HashString(serialized_public_area)); in ComputeNVSpaceName() 1825 TPM2B_DIGEST inner_integrity = Make_TPM2B_DIGEST(crypto::SHA256HashString( in EncryptPrivateData()
|
D | Android.mk | 28 libchrome-crypto \
|
D | policy_session_test.cc | 176 crypto::SHA256HashString(pcr_digest)); in TEST_F()
|
D | hmac_authorization_delegate.cc | 162 if (!crypto::SecureMemEqual(digest.data(), auth_response.hmac.buffer, in CheckResponseAuthorization()
|
D | tpm_utility_test.cc | 435 std::string hash_string = crypto::SHA256HashString("test digest"); in TEST_F() 438 crypto::kSHA256Length)); in TEST_F() 1283 std::string integrity_value = crypto::SHA256HashString(unencrypted_private + in TEST_F()
|
/system/tpm/attestation/common/ |
D | crypto_utility_impl.cc | 152 if (!crypto::SecureMemEqual(mac.data(), encrypted_pb.mac().data(), in DecryptData() 169 crypto::ScopedRSA rsa(d2i_RSAPublicKey(nullptr, &asn1_ptr, in GetRSASubjectPublicKeyInfo() 183 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GetRSASubjectPublicKeyInfo() 192 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, in GetRSAPublicKey() 206 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GetRSAPublicKey() 243 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, in EncryptIdentityCredential() 280 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in EncryptForUnbind() 297 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in VerifySignature() 303 std::string digest = crypto::SHA256HashString(data); in VerifySignature()
|
D | tpm_utility_v1.cc | 481 digest_to_sign += crypto::SHA256HashString(data_to_sign); in Sign() 694 crypto::ScopedRSA rsa(RSA_new()); in ConvertPublicKeyToDER()
|
/system/tpm/attestation/client/ |
D | main.cc | 372 CryptoUtilityImpl crypto(nullptr); in EncryptForActivate3() local 374 if (!crypto.EncryptIdentityCredential( in EncryptForActivate3() 414 CryptoUtilityImpl crypto(nullptr); in Encrypt2() local 416 if (!crypto.EncryptForUnbind(key_info.public_key(), input, &output)) { in Encrypt2() 470 CryptoUtilityImpl crypto(nullptr); in VerifySignature2() local 471 if (crypto.VerifySignature(key_info.public_key(), input, signature)) { in VerifySignature2()
|
/system/core/gatekeeperd/tests/ |
D | Android.mk | 25 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
|
/system/gatekeeper/tests/ |
D | Android.mk | 25 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
|
/system/extras/verity/ |
D | Utils.java | 47 import javax.crypto.Cipher; 48 import javax.crypto.EncryptedPrivateKeyInfo; 49 import javax.crypto.SecretKeyFactory; 50 import javax.crypto.spec.PBEKeySpec;
|
/system/core/gatekeeperd/ |
D | Android.mk | 38 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
|
/system/tpm/attestation/server/ |
D | database_impl.cc | 50 DatabaseImpl::DatabaseImpl(CryptoUtility* crypto) : io_(this), crypto_(crypto) { in DatabaseImpl() argument
|
D | database_impl.h | 49 explicit DatabaseImpl(CryptoUtility* crypto);
|
D | pkcs11_key_store.cc | 50 typedef crypto::ScopedOpenSSL<X509, X509_free> ScopedX509; 265 crypto::ScopedRSA public_key(d2i_RSAPublicKey(nullptr, in Register() 627 crypto::ScopedOpenSSLBytes scoped_subject_buffer(subject_buffer); in GetCertificateFields() 636 crypto::ScopedOpenSSLBytes scoped_issuer_buffer(issuer_buffer); in GetCertificateFields() 646 crypto::ScopedOpenSSLBytes scoped_serial_number_buffer(serial_number_buffer); in GetCertificateFields()
|
D | attestation_service.cc | 867 std::string user_hash = crypto::SHA256HashString(user); in ChooseTemporalIndex() 868 std::string origin_hash = crypto::SHA256HashString(origin); in ChooseTemporalIndex()
|
/system/vold/ |
D | Android.mk | 38 external/scrypt/lib/crypto \
|
/system/sepolicy/ |
D | property_contexts | 69 ro.crypto. u:object_r:vold_prop:s0
|
/system/keymaster/ |
D | Makefile | 61 LDLIBS=-L$(BASE)/../boringssl/build/crypto -lcrypto -lpthread -lstdc++ -lgcov
|