Home | History | Annotate | Download | only in vold

Lines Matching refs:CryptoType

267 struct CryptoType;
269 // Use to get the CryptoType in use on this device.
270 const CryptoType &get_crypto_type();
272 struct CryptoType {
278 constexpr CryptoType() : CryptoType(nullptr, nullptr, 0xFFFFFFFF) {}
279 constexpr CryptoType set_keysize(uint32_t size) const {
280 return CryptoType(this->property_name, this->crypto_name, size);
282 constexpr CryptoType set_property_name(const char *property) const {
283 return CryptoType(property, this->crypto_name, this->keysize);
285 constexpr CryptoType set_crypto_name(const char *crypto) const {
286 return CryptoType(this->property_name, crypto, this->keysize);
298 constexpr CryptoType(const char *property, const char *crypto,
301 friend const CryptoType &get_crypto_type();
302 static const CryptoType &get_device_crypto_algorithm();
308 const CryptoType &get_crypto_type() {
309 static CryptoType crypto_type = CryptoType::get_device_crypto_algorithm();
313 constexpr CryptoType default_crypto_type = CryptoType()
318 constexpr CryptoType supported_crypto_types[] = {
320 CryptoType()
339 constexpr bool isValidCryptoType(const CryptoType &crypto_type) {
355 "We have a CryptoType with keysize > MAX_KEY_LEN or which was "
361 const CryptoType &CryptoType::get_device_crypto_algorithm() {