File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -353,8 +353,6 @@ func GenerateKeyMLKEM1024() (DecapsulationKeyMLKEM1024, error) {
353353}
354354
355355// NewDecapsulationKeyMLKEM1024 constructs a decapsulation key from its serialized form.
356- // Note: Unlike the stdlib crypto/mlkem which expects a 64-byte seed, this function
357- // expects the full 3168-byte expanded key material as returned by Bytes().
358356func NewDecapsulationKeyMLKEM1024 (seed []byte ) (DecapsulationKeyMLKEM1024 , error ) {
359357 if len (seed ) != seedSizeMLKEM {
360358 return DecapsulationKeyMLKEM1024 {}, errors .New ("mlkem: invalid decapsulation key size" )
@@ -366,8 +364,6 @@ func NewDecapsulationKeyMLKEM1024(seed []byte) (DecapsulationKeyMLKEM1024, error
366364}
367365
368366// Bytes returns the decapsulation key in its serialized form.
369- // Note: Unlike the stdlib crypto/mlkem which returns a 64-byte seed, this returns
370- // the full 3168-byte expanded key material.
371367//
372368// The decapsulation key must be kept secret.
373369func (dk DecapsulationKeyMLKEM1024 ) Bytes () []byte {
You can’t perform that action at this time.
0 commit comments