Home
last modified time | relevance | path

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

12

/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/attestation/common/
Dcrypto_utility_impl.cc151 if (!crypto::SecureMemEqual(mac.data(), encrypted_pb.mac().data(), in DecryptData()
168 crypto::ScopedRSA rsa( in GetRSASubjectPublicKeyInfo()
182 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GetRSASubjectPublicKeyInfo()
191 crypto::ScopedRSA rsa( in GetRSAPublicKey()
205 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GetRSAPublicKey()
242 crypto::ScopedRSA rsa( in EncryptIdentityCredential()
279 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in EncryptForUnbind()
296 crypto::ScopedRSA rsa(d2i_RSA_PUBKEY(NULL, &asn1_ptr, public_key.size())); in VerifySignature()
302 std::string digest = crypto::SHA256HashString(data); in VerifySignature()
/system/tpm/trunks/
Dsession_manager_impl.cc55 crypto::EnsureOpenSSLInit(); in SessionManagerImpl()
163 crypto::ScopedRSA salting_key_rsa(RSA_new()); in EncryptSalt()
177 crypto::ScopedEVP_PKEY salting_key(EVP_PKEY_new()); in EncryptSalt()
189 crypto::ScopedEVP_PKEY_CTX salt_encrypt_context( in EncryptSalt()
Dtrunks_client_test.cc65 crypto::EnsureOpenSSLInit(); in TrunksClientTest()
386 std::string hashed_extend_data = crypto::SHA256HashString(extend_data); in PCRTest()
388 crypto::SHA256HashString(old_data + hashed_extend_data); in PCRTest()
528 std::string hashed_extend_data = crypto::SHA256HashString(pcr_extend_data); in PolicyAndTest()
529 next_pcr_value = crypto::SHA256HashString(pcr_value + hashed_extend_data); in PolicyAndTest()
1020 crypto::ScopedRSA rsa(RSA_new()); in GenerateRSAKeyPair()
1021 crypto::ScopedBIGNUM exponent(BN_new()); in GenerateRSAKeyPair()
1026 crypto::ScopedRSA rsa(RSA_generate_key(2048, 0x10001, nullptr, nullptr)); in GenerateRSAKeyPair()
1039 crypto::ScopedOpenSSLBytes scoped_buffer(buffer); in GenerateRSAKeyPair()
1048 crypto::ScopedRSA rsa( in VerifyRSASignature()
[all …]
Dpolicy_session_impl.cc132 pcr_digest = Make_TPM2B_DIGEST(crypto::SHA256HashString(pcr_value)); in PolicyPCR()
DAndroid.mk32 libchrome-crypto \
Dtpm_utility_impl.cc65 return crypto::SHA256HashString(plaintext); in HashString()
77 crypto::EnsureOpenSSLInit(); in TpmUtilityImpl()
323 std::string digest = crypto::SHA256HashString(entropy_data); in StirRandom()
361 crypto::SHA256HashString(extend_data, digests.digests[0].digest.sha256, in ExtendPCR()
362 crypto::kSHA256Length); in ExtendPCR()
1762 crypto::SHA256HashString(serialized_public_area)); in ComputeKeyName()
1790 crypto::SHA256HashString(serialized_public_area)); in ComputeNVSpaceName()
1815 crypto::SHA256HashString(serialized_sensitive_data + object_name)); in EncryptPrivateData()
Dhmac_authorization_delegate.cc162 if (!crypto::SecureMemEqual(digest.data(), auth_response.hmac.buffer, in CheckResponseAuthorization()
Dpolicy_session_test.cc173 crypto::SHA256HashString(pcr_digest)); in TEST_F()
/system/nvram/core/
Dcrypto.h26 namespace crypto {
Dcrypto_boringssl.cpp27 namespace crypto { namespace
Dnvram_manager.cpp239 request.size != crypto::kSHA256DigestSize) { in CreateSpace()
241 crypto::kSHA256DigestSize); in CreateSpace()
424 crypto::SHA256(sha256_input.data(), sha256_input.size(), contents.data(), in WriteSpace()
/system/tpm/attestation/client/
Dmain.cc354 CryptoUtilityImpl crypto(nullptr); in EncryptForActivate3() local
356 if (!crypto.EncryptIdentityCredential( in EncryptForActivate3()
393 CryptoUtilityImpl crypto(nullptr); in Encrypt2() local
395 if (!crypto.EncryptForUnbind(key_info.public_key(), input, &output)) { in Encrypt2()
448 CryptoUtilityImpl crypto(nullptr); in VerifySignature2() local
449 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/core/gatekeeperd/
DAndroid.mk43 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/bootstat/
Dbootstat.rc11 # property:ro.crypto.type=block: FDE device
12 on post-fs-data && property:init.svc.bootanim=running && property:ro.crypto.type=block
/system/tpm/attestation/server/
Ddatabase_impl.cc50 DatabaseImpl::DatabaseImpl(CryptoUtility* crypto) in DatabaseImpl() argument
51 : io_(this), crypto_(crypto) {} in DatabaseImpl()
Ddatabase_impl.h48 explicit DatabaseImpl(CryptoUtility* crypto);
Dpkcs11_key_store.cc50 typedef crypto::ScopedOpenSSL<X509, X509_free> ScopedX509;
243 crypto::ScopedRSA public_key( in Register()
573 crypto::ScopedOpenSSLBytes scoped_subject_buffer(subject_buffer); in GetCertificateFields()
582 crypto::ScopedOpenSSLBytes scoped_issuer_buffer(issuer_buffer); in GetCertificateFields()
592 crypto::ScopedOpenSSLBytes scoped_serial_number_buffer(serial_number_buffer); in GetCertificateFields()
/system/tpm/tpm_manager/client/
Dmain.cc404 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleDefineSpace()
432 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleWriteSpace()
454 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleReadSpace()
470 request.set_authorization_value(crypto::SHA256HashString(password)); in HandleLockSpace()
/system/vold/
DAndroid.mk37 external/scrypt/lib/crypto \
/system/tpm/tpm_manager/
DAndroid.mk34 libchrome-crypto \
/system/core/trusty/keymaster/
DMakefile52 LDLIBS=-L$(BASE)/../boringssl/build/crypto -lcrypto -lpthread -lstdc++

12