Searched refs:CurveType (Results 1 – 9 of 9) sorted by relevance
/system/keymint/common/src/crypto/ |
D | ec.rs | 3 use super::{CurveType, KeyMaterial, OpaqueOr}; 147 curve_type: &CurveType, in subject_public_key_info() argument 151 CurveType::Nist => { in subject_public_key_info() 161 CurveType::EdDsa => (X509_ED25519_OID, None), in subject_public_key_info() 162 CurveType::Xdh => (X509_X25519_OID, None), in subject_public_key_info() 174 curve_type: CurveType, in public_cose_key() argument 186 CurveType::Nist => { in public_cose_key() 201 CurveType::EdDsa => coset::CoseKeyBuilder::new_okp_key() in public_cose_key() 211 CurveType::Xdh => coset::CoseKeyBuilder::new_okp_key() in public_cose_key() 264 pub fn curve_type(&self) -> CurveType { in curve_type() argument [all …]
|
/system/keymint/tests/src/bin/ |
D | auth-keyblob-parse.rs | 112 CurveType::Nist, in process() 117 CurveType::Nist, in process() 122 CurveType::Nist, in process() 127 CurveType::Nist, in process() 135 CurveType::Xdh, in process() 141 CurveType::EdDsa, in process()
|
/system/keymint/common/src/ |
D | crypto.rs | 65 pub enum CurveType { enum 119 Ec(EcCurve, CurveType, OpaqueOr<ec::Key>), 262 let curve_type = CurveType::from_cbor_value(a.remove(1))?; in from_cbor_value() 268 (EcCurve::P224, CurveType::Nist) => ec::Key::P224(ec::NistKey(raw_key)), in from_cbor_value() 269 (EcCurve::P256, CurveType::Nist) => ec::Key::P256(ec::NistKey(raw_key)), in from_cbor_value() 270 (EcCurve::P384, CurveType::Nist) => ec::Key::P384(ec::NistKey(raw_key)), in from_cbor_value() 271 (EcCurve::P521, CurveType::Nist) => ec::Key::P521(ec::NistKey(raw_key)), in from_cbor_value() 272 (EcCurve::Curve25519, CurveType::EdDsa) => { in from_cbor_value() 279 (EcCurve::Curve25519, CurveType::Xdh) => { in from_cbor_value()
|
D | tag.rs | 534 KeyMaterial::Ec(curve, CurveType::Nist, _) => *curve, in check_ec_import_params() 535 KeyMaterial::Ec(EcCurve::Curve25519, CurveType::EdDsa, _) => { in check_ec_import_params() 544 KeyMaterial::Ec(EcCurve::Curve25519, CurveType::Xdh, _) => { in check_ec_import_params()
|
/system/keymint/boringssl/src/ |
D | ec.rs | 11 crypto::{ec, ec::Key, AccumulatingOperation, CurveType, OpaqueOr}, 68 Ok(crypto::KeyMaterial::Ec(curve.into(), CurveType::Nist, key.into())) in generate_nist_key() 82 Ok(crypto::KeyMaterial::Ec(EcCurve::Curve25519, CurveType::EdDsa, key.into())) in generate_ed25519_key() 96 Ok(crypto::KeyMaterial::Ec(EcCurve::Curve25519, CurveType::Xdh, key.into())) in generate_x25519_key()
|
/system/keymint/common/src/bin/ |
D | cddl-dump.rs | 26 show_schema::<crypto::CurveType>(); in main()
|
D | keyblob-cddl-dump.rs | 112 schema.add(crypto::CurveType::Nist); in main()
|
/system/keymint/common/src/keyblob/ |
D | keyblob.cddl | 52 [3, bool, [EcCurve, CurveType, bstr]], ; Algorithm_Ec 234 CurveType = &(
|
/system/keymint/common/ |
D | generated.cddl | 33 CurveType = &(
|