Implements ML‑KEM seed expansion and key handling for FIPS 203.
// Source: https://github.com/denoland/deno | License: MIT | Copyright 2018-2026 the Deno authors
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2018-2026 the Deno authors. MIT license.
use aws_lc_rs::kem;
use deno_core::convert::Uint8Array;
use fips203::traits::KeyGen;
use fips203::traits::SerDes;
use rsa::pkcs8;
use serde::Deserialize;
use serde::Serialize;
use spki::der::Decode;
use spki::der::Encode;
use spki::der::TagMode;
use spki::der::TagNumber;
use spki::der::asn1::BitString;
use spki::der::asn1::ContextSpecific;
use spki::der::asn1::OctetStringRef;
// FIPS 203 OIDs (NIST 2.16.840.1.101.3.4.4.{1,2,3}).
pub const ML_KEM_512_OID: const_oid::ObjectIdentifier =
const_oid::ObjectIdentifier::new_unwrap("2.16.840.1.101.3.4.4.1");
pub const ML_KEM_768_OI
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key