Searched refs:ECDHPrivateKey (Results 1 – 2 of 2) sorted by relevance
26 pub struct ECDHPrivateKey(ECKey); struct28 impl ECDHPrivateKey { impl30 pub fn generate() -> Result<ECDHPrivateKey> { in generate()32 .map(ECDHPrivateKey) in generate()37 pub fn from_private_key(buf: &[u8]) -> Result<ECDHPrivateKey> { in from_private_key() argument39 .map(ECDHPrivateKey) in from_private_key()127 let recipient = ECDHPrivateKey::generate()?; in test_crypto_roundtrip()129 ECDHPrivateKey::encrypt_message(&recipient.public_key()?, message)?; in test_crypto_roundtrip()130 let recipient = ECDHPrivateKey::from_private_key(&recipient.private_key()?)?; in test_crypto_roundtrip()
23 ec_crypto::ECDHPrivateKey,474 ECDHPrivateKey::from_private_key(&key.key) in unwrap_key_with_key()768 ECDHPrivateKey::encrypt_message(public_key, key_blob).context(concat!( in handle_super_encryption_on_key_init()840 let key = ECDHPrivateKey::generate() in get_or_create_super_key()