mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Drop the static lifetime for context in sign_prehashed
This commit is contained in:
parent
a65683accd
commit
1c9f484d97
2 changed files with 3 additions and 3 deletions
|
|
@ -358,7 +358,7 @@ impl Keypair {
|
||||||
pub fn sign_prehashed<D>(
|
pub fn sign_prehashed<D>(
|
||||||
&self,
|
&self,
|
||||||
prehashed_message: D,
|
prehashed_message: D,
|
||||||
context: Option<&'static [u8]>,
|
context: Option<&[u8]>,
|
||||||
) -> Signature
|
) -> Signature
|
||||||
where
|
where
|
||||||
D: Digest<OutputSize = U64>,
|
D: Digest<OutputSize = U64>,
|
||||||
|
|
|
||||||
|
|
@ -462,11 +462,11 @@ impl ExpandedSecretKey {
|
||||||
///
|
///
|
||||||
/// [rfc8032]: https://tools.ietf.org/html/rfc8032#section-5.1
|
/// [rfc8032]: https://tools.ietf.org/html/rfc8032#section-5.1
|
||||||
#[allow(non_snake_case)]
|
#[allow(non_snake_case)]
|
||||||
pub fn sign_prehashed<D>(
|
pub fn sign_prehashed<'a, D>(
|
||||||
&self,
|
&self,
|
||||||
prehashed_message: D,
|
prehashed_message: D,
|
||||||
public_key: &PublicKey,
|
public_key: &PublicKey,
|
||||||
context: Option<&'static [u8]>,
|
context: Option<&'a [u8]>,
|
||||||
) -> Signature
|
) -> Signature
|
||||||
where
|
where
|
||||||
D: Digest<OutputSize = U64>,
|
D: Digest<OutputSize = U64>,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue