mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
explicit lifetimes
This commit is contained in:
parent
2619200aae
commit
7f822ff3dd
1 changed files with 2 additions and 2 deletions
|
|
@ -69,10 +69,10 @@ impl EphemeralSecret {
|
|||
|
||||
}
|
||||
|
||||
impl From<&EphemeralSecret> for EphemeralPublic {
|
||||
impl<'a> From<&'a EphemeralSecret> for EphemeralPublic {
|
||||
/// Given an x25519 `EphemeralSecret` key, compute its corresponding
|
||||
/// `EphemeralPublic` key.
|
||||
fn from(secret: &EphemeralSecret) -> EphemeralPublic {
|
||||
fn from(secret: &'a EphemeralSecret) -> EphemeralPublic {
|
||||
EphemeralPublic((&ED25519_BASEPOINT_TABLE * &secret.0).to_montgomery())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue