ed448: clarify why there are 56 or 57 byte keys
This commit is contained in:
parent
6bcab6c24b
commit
77bee0d54e
@ -103,6 +103,7 @@ const ED448_DEF = {
|
|||||||
n: BigInt(
|
n: BigInt(
|
||||||
'181709681073901722637330951972001133588410340171829515070372549795146003961539585716195755291692375963310293709091662304773755859649779'
|
'181709681073901722637330951972001133588410340171829515070372549795146003961539585716195755291692375963310293709091662304773755859649779'
|
||||||
),
|
),
|
||||||
|
// RFC 7748 has 56-byte keys, RFC 8032 has 57-byte keys
|
||||||
nBitLength: 456,
|
nBitLength: 456,
|
||||||
// Cofactor
|
// Cofactor
|
||||||
h: BigInt(4),
|
h: BigInt(4),
|
||||||
@ -137,6 +138,7 @@ export const ed448ph = /* @__PURE__ */ twistedEdwards({ ...ED448_DEF, prehash: s
|
|||||||
export const x448 = /* @__PURE__ */ (() =>
|
export const x448 = /* @__PURE__ */ (() =>
|
||||||
montgomery({
|
montgomery({
|
||||||
a: BigInt(156326),
|
a: BigInt(156326),
|
||||||
|
// RFC 7748 has 56-byte keys, RFC 8032 has 57-byte keys
|
||||||
montgomeryBits: 448,
|
montgomeryBits: 448,
|
||||||
nByteLength: 57,
|
nByteLength: 57,
|
||||||
P: ed448P,
|
P: ed448P,
|
||||||
|
Loading…
Reference in New Issue
Block a user