Home
last modified time | relevance | path

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

/system/core/adb/pairing_auth/tests/
Daes_128_gcm_test.cpp28 std::unique_ptr<Aes128Gcm> cipher; in TEST() local
29 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(nullptr, 42)); }, ""); in TEST()
34 std::unique_ptr<Aes128Gcm> cipher; in TEST() local
35 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(material, 0)); }, ""); in TEST()
/system/vold/
DMetadataCrypt.cpp60 struct CryptoType cipher = invalid_crypto_type; member
86 return KeyGeneration{options.cipher.get_keysize(), true, options.use_hw_wrapped_key}; in makeGen()
208 auto target = std::make_unique<DmTargetDefaultKey>(0, *nr_sec, options.cipher.get_kernel_name(), in create_crypto_blk_dev()
254 options->cipher = lookup_cipher(cipher_name); in parse_options()
255 if (options->cipher.get_kernel_name() == nullptr) { in parse_options()
297 options.cipher = legacy_aes_256_xts; in fscrypt_mount_metadata_encrypted()
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h252 DmTargetCrypt(uint64_t start, uint64_t length, const std::string& cipher, in DmTargetCrypt() argument
256 cipher_(cipher), in DmTargetCrypt()
285 DmTargetDefaultKey(uint64_t start, uint64_t length, const std::string& cipher, in DmTargetDefaultKey() argument
288 cipher_(cipher), in DmTargetDefaultKey()
/system/extras/verity/
DUtils.java154 Cipher cipher = Cipher.getInstance(epkInfo.getAlgName()); in decryptPrivateKey() local
155 cipher.init(Cipher.DECRYPT_MODE, key, epkInfo.getAlgParameters()); in decryptPrivateKey()
158 return epkInfo.getKeySpec(cipher); in decryptPrivateKey()
/system/security/keystore/
Dblob.cpp67 const EVP_CIPHER* cipher = EVP_aes_256_gcm(); in getAesCipherForKey() local
69 cipher = EVP_aes_128_gcm(); in getAesCipherForKey()
71 return cipher; in getAesCipherForKey()
83 const EVP_CIPHER* cipher = getAesCipherForKey(key); in AES_gcm_encrypt() local
87 EVP_EncryptInit_ex(ctx.get(), cipher, nullptr /* engine */, key.data(), iv); in AES_gcm_encrypt()
120 const EVP_CIPHER* cipher = getAesCipherForKey(key); in AES_gcm_decrypt() local
124 EVP_DecryptInit_ex(ctx.get(), cipher, nullptr /* engine */, key.data(), iv); in AES_gcm_decrypt()
/system/keymaster/km_openssl/
Dblock_cipher_operation.cpp227 const EVP_CIPHER* cipher = in InitializeCipher() local
231 if (!EVP_CipherInit_ex(&ctx_, cipher, nullptr /* engine */, key.key_material, iv_.data, in InitializeCipher()