mirror of
https://github.com/creating2morrow/neveko.git
synced 2024-12-22 03:29:22 +00:00
use hex decode for l value derivation
This commit is contained in:
parent
3b6b764bd2
commit
1eada3b11b
1 changed files with 2 additions and 2 deletions
|
@ -32,12 +32,12 @@ pub struct NevekoMessageKeys {
|
|||
}
|
||||
|
||||
|
||||
/// L value as defined at https://eprint.iacr.org/2008/013.pdf
|
||||
/// L value as defined at https://datatracker.ietf.org/doc/html/rfc8032#section-5.1
|
||||
const CURVE_L: &str = "edd3f55c1a631258d69cf7a2def9de1400000000000000000000000000000010";
|
||||
pub const ENCIPHER: &str = "ENCIPHER";
|
||||
|
||||
fn curve_l_as_big_int() -> BigInt {
|
||||
BigInt::from_bytes_le(Sign::Plus, CURVE_L.as_bytes())
|
||||
BigInt::from_bytes_le(Sign::Plus, &hex::decode(CURVE_L).unwrap_or_default())
|
||||
}
|
||||
|
||||
fn big_int_to_string(b: &BigInt) -> String {
|
||||
|
|
Loading…
Reference in a new issue