Home
last modified time | relevance | path

Searched refs:ECDHPrivateKey (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/src/
Dec_crypto.rs26 pub struct ECDHPrivateKey(ECKey); struct
28 impl ECDHPrivateKey { impl
30 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() argument
39 .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()
Dsuper_key.rs23 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()