Skip to content

Commit 63d23e5

Browse files
gdamsqmuntal
andauthored
mlkem: initial implementation (#119)
* mlkem: initial implementation * quim fixes * fixup and add tests * only store raw key in types * deduplicate code * remove allocation * Apply suggestions from code review Co-authored-by: Quim Muntal <qmuntaldiaz@microsoft.com> * refactor newMLKEMEncapsulationKeyFromBytes * return err in all cases --------- Co-authored-by: Quim Muntal <qmuntaldiaz@microsoft.com>
1 parent 37ac0f6 commit 63d23e5

File tree

7 files changed

+1046
-2
lines changed

7 files changed

+1046
-2
lines changed

cng/export_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT License.
3+
4+
//go:build windows
5+
// +build windows
6+
7+
package cng
8+
9+
// MLKEM constants for testing against the stdlib
10+
var (
11+
SharedKeySizeMLKEM = sharedKeySizeMLKEM
12+
SeedSizeMLKEM = seedSizeMLKEM
13+
CiphertextSizeMLKEM768 = ciphertextSizeMLKEM768
14+
EncapsulationKeySizeMLKEM768 = encapsulationKeySizeMLKEM768
15+
CiphertextSizeMLKEM1024 = ciphertextSizeMLKEM1024
16+
EncapsulationKeySizeMLKEM1024 = encapsulationKeySizeMLKEM1024
17+
)

0 commit comments

Comments
 (0)