Lines Matching refs:Ed25519KeyPair
34 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()
161 let key_pair = signature::Ed25519KeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in ed25519_test_public_key_coverage()
168 let _: <Ed25519KeyPair as KeyPair>::PublicKey = key_pair.public_key().clone(); in ed25519_test_public_key_coverage()
171 let _: <Ed25519KeyPair as KeyPair>::PublicKey = *key_pair.public_key(); in ed25519_test_public_key_coverage()