Home
last modified time | relevance | path

Searched refs:crypto (Results 1 – 25 of 31) sorted by relevance

12

/system/connectivity/shill/
Dcrypto_provider.cc48 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/
DAndroid.mk5 LOCAL_CFLAGS := -O0 -march=armv8-a+crypto
6 LOCAL_SRC_FILES := crypto.cpp
10 LOCAL_MODULE := crypto
/system/tpm/trunks/
Dtpm_generated.cc9440 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 …]
Dsession_manager_impl.cc54 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()
Dtrunks_client_test.cc62 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 …]
Dpolicy_session_impl.cc136 pcr_digest = Make_TPM2B_DIGEST(crypto::SHA256HashString(pcr_value)); in PolicyPCR()
Dtpm_utility_impl.cc64 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()
DAndroid.mk28 libchrome-crypto \
Dpolicy_session_test.cc176 crypto::SHA256HashString(pcr_digest)); in TEST_F()
Dhmac_authorization_delegate.cc162 if (!crypto::SecureMemEqual(digest.data(), auth_response.hmac.buffer, in CheckResponseAuthorization()
Dtpm_utility_test.cc435 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/
Dcrypto_utility_impl.cc152 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()
Dtpm_utility_v1.cc481 digest_to_sign += crypto::SHA256HashString(data_to_sign); in Sign()
694 crypto::ScopedRSA rsa(RSA_new()); in ConvertPublicKeyToDER()
/system/tpm/attestation/client/
Dmain.cc372 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/
DAndroid.mk25 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
/system/gatekeeper/tests/
DAndroid.mk25 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
/system/extras/verity/
DUtils.java47 import javax.crypto.Cipher;
48 import javax.crypto.EncryptedPrivateKeyInfo;
49 import javax.crypto.SecretKeyFactory;
50 import javax.crypto.spec.PBEKeySpec;
/system/core/gatekeeperd/
DAndroid.mk38 LOCAL_C_INCLUDES := external/scrypt/lib/crypto
/system/tpm/attestation/server/
Ddatabase_impl.cc50 DatabaseImpl::DatabaseImpl(CryptoUtility* crypto) : io_(this), crypto_(crypto) { in DatabaseImpl() argument
Ddatabase_impl.h49 explicit DatabaseImpl(CryptoUtility* crypto);
Dpkcs11_key_store.cc50 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()
Dattestation_service.cc867 std::string user_hash = crypto::SHA256HashString(user); in ChooseTemporalIndex()
868 std::string origin_hash = crypto::SHA256HashString(origin); in ChooseTemporalIndex()
/system/vold/
DAndroid.mk38 external/scrypt/lib/crypto \
/system/sepolicy/
Dproperty_contexts69 ro.crypto. u:object_r:vold_prop:s0
/system/keymaster/
DMakefile61 LDLIBS=-L$(BASE)/../boringssl/build/crypto -lcrypto -lpthread -lstdc++ -lgcov

12