Lines Matching refs:ec
17 use crate::{crypto::ec::Key, der_err, explicit, keyblob, vec_try, Error};
48 pub ec: Box<dyn Ec>, field
303 curve: ec::NistCurve, in generate_nist_key()
330 ec::import_pkcs8_key(data) in import_pkcs8_key()
340 ec::import_raw_ed25519_key(data) in import_raw_ed25519_key()
350 ec::import_raw_x25519_key(data) in import_raw_x25519_key()
359 fn subject_public_key(&self, key: &OpaqueOr<ec::Key>) -> Result<Vec<u8>, Error> { in subject_public_key()
373 let nist_curve: ec::NistCurve = ec_key.curve().try_into()?; in subject_public_key()
385 fn nist_public_key(&self, key: &ec::NistKey, curve: ec::NistCurve) -> Result<Vec<u8>, Error>; in nist_public_key()
388 fn ed25519_public_key(&self, key: &ec::Ed25519Key) -> Result<Vec<u8>, Error>; in ed25519_public_key()
391 fn x25519_public_key(&self, key: &ec::X25519Key) -> Result<Vec<u8>, Error>; in x25519_public_key()
396 fn begin_agree(&self, key: OpaqueOr<ec::Key>) -> Result<Box<dyn AccumulatingOperation>, Error>; in begin_agree()
403 key: OpaqueOr<ec::Key>, in begin_sign()
629 _curve: ec::NistCurve, in generate_nist_key()
651 fn nist_public_key(&self, _key: &ec::NistKey, _curve: ec::NistCurve) -> Result<Vec<u8>, Error> { in nist_public_key()
655 fn ed25519_public_key(&self, _key: &ec::Ed25519Key) -> Result<Vec<u8>, Error> { in ed25519_public_key()
659 fn x25519_public_key(&self, _key: &ec::X25519Key) -> Result<Vec<u8>, Error> { in x25519_public_key()
665 _key: OpaqueOr<ec::Key>, in begin_agree()
672 _key: OpaqueOr<ec::Key>, in begin_sign()