Lines Matching refs:key_pair
54 let key_pair = Ed25519KeyPair::from_seed_and_public_key(&seed, &public_key).unwrap(); in test_signature_ed25519() localVariable
55 let actual_sig = key_pair.sign(&msg); in test_signature_ed25519()
62 let key_pair = Ed25519KeyPair::from_pkcs8(pkcs8.as_ref()).unwrap(); in test_signature_ed25519() localVariable
63 assert_eq!(public_key, key_pair.public_key().as_ref()); in test_signature_ed25519()
66 let actual_sig = key_pair.sign(&msg); in test_signature_ed25519()
161 let key_pair = signature::Ed25519KeyPair::from_pkcs8(PRIVATE_KEY).unwrap(); in ed25519_test_public_key_coverage() localVariable
164 assert_eq!(key_pair.public_key().as_ref(), PUBLIC_KEY); 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()
174 assert_eq!(PUBLIC_KEY_DEBUG, format!("{:?}", key_pair.public_key())); in ed25519_test_public_key_coverage()
178 key_pair.public_key() in ed25519_test_public_key_coverage()
180 format!("{:?}", key_pair) in ed25519_test_public_key_coverage()