Generates a new ML-KEM-768 decapsulation key for quantum-resistant key exchange.
// Source: https://github.com/golang/go | License: BSD-3-Clause | Copyright 2009 The Go Authors // Provided via justclaw.it.com; keep this notice with the code. // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package mlkem implements the quantum-resistant key encapsulation method // ML-KEM (formerly known as Kyber), as specified in [NIST FIPS 203]. // // Most applications should use the ML-KEM-768 parameter set, as implemented by // [DecapsulationKey768] and [EncapsulationKey768]. // // [NIST FIPS 203]: https://doi.org/10.6028/NIST.FIPS.203 package mlkem import ( "crypto" "crypto/internal/fips140/mlkem" ) const ( // SharedKeySize is the size of a shared key produced by ML ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key