Home
last modified time | relevance | path

Searched refs:Ed25519KeyPair (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/ring/tests/
Ded25519_tests.rs34 signature::{self, Ed25519KeyPair, KeyPair},
54 let key_pair = Ed25519KeyPair::from_seed_and_public_key(&seed, &public_key).unwrap(); in test_signature_ed25519()
61 let pkcs8 = Ed25519KeyPair::generate_pkcs8(&rng).unwrap(); in test_signature_ed25519()
62 let key_pair = Ed25519KeyPair::from_pkcs8(pkcs8.as_ref()).unwrap(); in test_signature_ed25519()
95 assert!(Ed25519KeyPair::from_seed_and_public_key(PRIVATE_KEY, PUBLIC_KEY).is_ok()); in test_ed25519_from_seed_and_public_key_misuse()
98 assert!(Ed25519KeyPair::from_seed_and_public_key(&PRIVATE_KEY[..31], PUBLIC_KEY).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
101 assert!(Ed25519KeyPair::from_seed_and_public_key(PRIVATE_KEY, &PUBLIC_KEY[..31]).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
104 assert!(Ed25519KeyPair::from_seed_and_public_key(PUBLIC_KEY, PRIVATE_KEY).is_err()); in test_ed25519_from_seed_and_public_key_misuse()
118 Ed25519KeyPair::from_pkcs8_maybe_unchecked(&input), in test_ed25519_from_pkcs8_unchecked()
142 match (Ed25519KeyPair::from_pkcs8(&input), error.clone()) { in test_ed25519_from_pkcs8()
[all …]
/external/rust/crates/ring/src/ec/curve25519/ed25519/
Dsigning.rs27 pub struct Ed25519KeyPair { struct
38 derive_debug_via_field!(Ed25519KeyPair, stringify!(Ed25519KeyPair), public_key); argument
40 impl Ed25519KeyPair { implementation
221 impl signature::KeyPair for Ed25519KeyPair { implementation
/external/rust/crates/ring/src/
Dsignature.rs261 signing::Ed25519KeyPair,