Searched refs:CurveType (Results 1 – 9 of 9) sorted by relevance
/system/keymint/common/src/crypto/ |
D | ec.rs | 17 use super::{CurveType, KeyMaterial, OpaqueOr}; 165 curve_type: &CurveType, in subject_public_key_info() argument 169 CurveType::Nist => { in subject_public_key_info() 179 CurveType::EdDsa => (X509_ED25519_OID, None), in subject_public_key_info() 180 CurveType::Xdh => (X509_X25519_OID, None), in subject_public_key_info() 193 curve_type: CurveType, in public_cose_key() argument 205 CurveType::Nist => { in public_cose_key() 220 CurveType::EdDsa => coset::CoseKeyBuilder::new_okp_key() in public_cose_key() 230 CurveType::Xdh => coset::CoseKeyBuilder::new_okp_key() in public_cose_key() 291 pub fn curve_type(&self) -> CurveType { in curve_type() argument [all …]
|
/system/keymint/tests/src/bin/ |
D | auth-keyblob-parse.rs | 117 CurveType::Nist, in process() 122 CurveType::Nist, in process() 127 CurveType::Nist, in process() 132 CurveType::Nist, in process()
|
/system/keymint/common/src/ |
D | crypto.rs | 89 pub enum CurveType { enum 153 Ec(EcCurve, CurveType, OpaqueOr<ec::Key>), 296 let curve_type = CurveType::from_cbor_value(a.remove(1))?; in from_cbor_value() 302 (EcCurve::P224, CurveType::Nist) => ec::Key::P224(ec::NistKey(raw_key)), in from_cbor_value() 303 (EcCurve::P256, CurveType::Nist) => ec::Key::P256(ec::NistKey(raw_key)), in from_cbor_value() 304 (EcCurve::P384, CurveType::Nist) => ec::Key::P384(ec::NistKey(raw_key)), in from_cbor_value() 305 (EcCurve::P521, CurveType::Nist) => ec::Key::P521(ec::NistKey(raw_key)), in from_cbor_value() 306 (EcCurve::Curve25519, CurveType::EdDsa) => { in from_cbor_value() 313 (EcCurve::Curve25519, CurveType::Xdh) => { in from_cbor_value()
|
D | tag.rs | 550 KeyMaterial::Ec(curve, CurveType::Nist, _) => *curve, in check_ec_import_params() 551 KeyMaterial::Ec(EcCurve::Curve25519, CurveType::EdDsa, _) => { in check_ec_import_params() 560 KeyMaterial::Ec(EcCurve::Curve25519, CurveType::Xdh, _) => { in check_ec_import_params()
|
/system/keymint/boringssl/src/ |
D | ec.rs | 27 crypto::{ec, ec::Key, AccumulatingOperation, CurveType, OpaqueOr}, 84 Ok(crypto::KeyMaterial::Ec(curve.into(), CurveType::Nist, key.into())) in generate_nist_key() 98 Ok(crypto::KeyMaterial::Ec(EcCurve::Curve25519, CurveType::EdDsa, key.into())) in generate_ed25519_key() 112 Ok(crypto::KeyMaterial::Ec(EcCurve::Curve25519, CurveType::Xdh, key.into())) in generate_x25519_key()
|
/system/keymint/common/src/bin/ |
D | cddl-dump.rs | 40 show_schema::<crypto::CurveType>(); in main()
|
D | keyblob-cddl-dump.rs | 126 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 = &(
|