Skip to content

Commit 268c84f

Browse files
alinush0xmaayan
andcommitted
avoid hard-coding the 48-byte SK size
Co-authored-by: Maayan <maayan@aptoslabs.com>
1 parent c087b4c commit 268c84f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/crypto/slhDsaSha2128s.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export class SlhDsaSha2128sPrivateKey extends Serializable implements PrivateKey
337337
},
338338
);
339339

340-
const threeSeeds = new Uint8Array(48);
340+
const threeSeeds = new Uint8Array(SlhDsaSha2128sPrivateKey.LENGTH);
341341
threeSeeds.set(privateKey, 0); // First 32 bytes from the derived secret key
342342

343343
// TODO: We would need to reason about the security of this.

0 commit comments

Comments
 (0)