]> Cypherpunks repositories - gostls13.git/commit
crypto/mlkem: merge mlkem768.go and mlkem1024.go to improve godoc
authorFilippo Valsorda <filippo@golang.org>
Wed, 8 Jan 2025 09:40:39 +0000 (10:40 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 8 Jan 2025 22:34:45 +0000 (14:34 -0800)
commitc87a6f932efd3643c73f6b972da5500755048f85
tree91385d3dd11e139f98fb34fad23100491f69f9cf
parentf57a3a7c047f16da76b0f7afbb6684dbad9be4ec
crypto/mlkem: merge mlkem768.go and mlkem1024.go to improve godoc

The constants appeared badly ordered and grouped in the godoc before

    const (
        CiphertextSize1024 = 1568
        EncapsulationKeySize1024 = 1568
    )
    const (
        SharedKeySize = 32
        SeedSize = 64
        CiphertextSize768 = 1088
        EncapsulationKeySize768 = 1184
    )

while now they are a single group with the good size first

    const (
        SharedKeySize = 32
        SeedSize = 64
        CiphertextSize768 = 1088
        EncapsulationKeySize768 = 1184
        CiphertextSize1024 = 1568
        EncapsulationKeySize1024 = 1568
    )

No code changes.

Change-Id: I6a6a4656961b1e8c8bca3992aafa33e0575af8a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/640997
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
src/crypto/mlkem/mlkem.go [moved from src/crypto/mlkem/mlkem768.go with 55% similarity]
src/crypto/mlkem/mlkem1024.go [deleted file]