pub fn generate_k<D, N>(
x: &ByteArray<N>,
n: &ByteArray<N>,
h: &ByteArray<N>,
data: &[u8],
) -> ByteArray<N>where
D: Digest + BlockSizeUser + FixedOutput<OutputSize = N> + FixedOutputReset,
N: ArrayLength<u8>,Expand description
Deterministically generate ephemeral scalar k.
Accepts the following parameters and inputs:
x: secret keyn: field modulush: hash/digest of input message: must be reduced modulonin advancedata: additional associated data, e.g. CSRNG output used as added entropy