Home
last modified time | relevance | path

Searched refs:CryptoType (Results 1 – 5 of 5) sorted by relevance

/aosp12/system/vold/
H A DCryptoType.h29 struct CryptoType { struct
35 constexpr CryptoType() : CryptoType(nullptr, nullptr, 0xFFFFFFFF) {} in CryptoType() function
36 constexpr CryptoType set_keysize(size_t size) const { in set_keysize() argument
37 return CryptoType(this->config_name, this->kernel_name, size); in set_keysize()
39 constexpr CryptoType set_config_name(const char* property) const { in set_config_name() argument
42 constexpr CryptoType set_kernel_name(const char* crypto) const { in set_kernel_name() argument
43 return CryptoType(this->config_name, crypto, this->keysize); in set_kernel_name()
61 const CryptoType& lookup_crypto_algorithm(const CryptoType table[], int table_len,
66 constexpr CryptoType invalid_crypto_type = CryptoType();
68 constexpr CryptoType aes_256_xts = CryptoType()
[all …]
H A DCryptoType.cpp27 const CryptoType& lookup_crypto_algorithm(const CryptoType table[], int table_len, in lookup_crypto_algorithm()
28 const CryptoType& default_alg, const char* property) { in lookup_crypto_algorithm()
H A DMetadataCrypt.cpp57 struct CryptoType cipher = invalid_crypto_type;
66 constexpr CryptoType supported_crypto_types[] = {aes_256_xts, adiantum};
72 constexpr CryptoType legacy_aes_256_xts =
73 CryptoType().set_config_name("aes-256-xts").set_kernel_name("AES-256-XTS").set_keysize(64);
180 static const CryptoType& lookup_cipher(const std::string& cipher_name) { in lookup_cipher()
H A Dcryptfs.cpp81 using android::vold::CryptoType;
303 constexpr CryptoType aes_128_cbc = CryptoType()
308 constexpr CryptoType supported_crypto_types[] = {aes_128_cbc, android::vold::adiantum};
315 static const CryptoType& get_crypto_type() { in get_crypto_type()
319 static CryptoType crypto_type = in get_crypto_type()
H A DAndroid.bp117 "CryptoType.cpp",