Searched refs:der_err (Results 1 – 6 of 6) sorted by relevance
/system/keymint/common/src/crypto/ |
D | rsa.rs | 18 use crate::{der_err, km_err, tag, try_to_vec, Error, FallibleAllocExt}; 76 .map_err(|e| der_err!(e, "failed to parse RsaPrivateKey"))?; in subject_public_key() 82 .map_err(|e| der_err!(e, "failed to encode RSA PublicKey"))?; in subject_public_key()
|
D | traits.rs | 17 use crate::{crypto::ec::Key, der_err, explicit, keyblob, vec_try, Error}; 368 .map_err(|e| der_err!(e, "failed to parse DER NIST EC PrivateKey"))?; in subject_public_key()
|
D | ec.rs | 18 use crate::{der_err, km_err, try_to_vec, vec_try, Error, FallibleAllocExt}; 382 .map_err(|e| der_err!(e, "failed to parse ECPrivateKey"))?; in import_sec1_private_key()
|
/system/keymint/ta/src/ |
D | keys.rs | 24 der_err, get_bool_tag_value, get_opt_tag_value, get_tag_value, keyblob, km_err, tag, 155 .map_err(|e| der_err!(e, "failed to encode KeyUsage {:?}", key_usage_ext_bits))?; in generate_cert() 163 der_err!(e, "failed to encode basic constraints {:?}", basic_constraints) in generate_cert() 188 .map_err(|e| der_err!(e, "failed to encode attestation extension"))?, in generate_cert() 204 .map_err(|e| der_err!(e, "failed to encode tbsCert"))?; in generate_cert() 213 .map_err(|e| der_err!(e, "failed to encode certificate"))?; in generate_cert() 535 .map_err(|e| der_err!(e, "failed to parse SecureKeyWrapper"))?; in import_wrapped_key() 632 .map_err(|e| der_err!(e, "failed to re-encode SecureKeyWrapper"))?, in import_wrapped_key()
|
D | cert.rs | 30 crypto, der_err, get_tag_value, km_err, tag, try_to_vec, vec_try_with_capacity, Error, 64 .map_err(|e| der_err!(e, "failed to build BitString"))?, in certificate() 120 .map_err(|e| der_err!(e, "failed to build OctetString"))?, in tbs_certificate() 131 .map_err(|e| der_err!(e, "failed to build OctetString"))?, in tbs_certificate() 141 .map_err(|e| der_err!(e, "failed to build OctetString"))?, in tbs_certificate() 149 .map_err(|e| der_err!(e, "failed to build serial number for {:?}", cert_serial))?, in tbs_certificate() 152 .map_err(|e| der_err!(e, "failed to build issuer"))?, in tbs_certificate() 158 .map_err(|e| der_err!(e, "failed to build subject"))?, in tbs_certificate() 192 .map_err(|e| der_err!(e, "failed to build GeneralTime for {:?}", when))?, in validity_time_from_datetime() 197 .map_err(|e| der_err!(e, "failed to build UtcTime for {:?}", when))?, in validity_time_from_datetime() [all …]
|
/system/keymint/common/src/ |
D | lib.rs | 91 macro_rules! der_err { macro
|