package mlkem
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Pure OCaml implementation of FIPS 203 ML-KEM
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.2.0.tar.gz
md5=8134ec4c6a35345a91223c34d5a133db
sha512=617282d33c5fb909be5b9b2e4b2c1830447c80206ad1e8f3ddb56459c40e9ff810489fa3ec927ffaa61148f826d81e71520816badce7bbebfde08a61eeea0b85
doc/mlkem.for_testing/Mlkem_for_testing/index.html
Module Mlkem_for_testingSource
Deterministic FIPS 203 entry points for known-answer testing only.
This library exposes test entropy and expanded decapsulation keys. It must not be used by production protocols. Use the corresponding module from Mlkem instead.
Internal hash entry points exposed for primitive known-answer tests.
The comparison behind implicit rejection: 1 if the two strings are equal, 0 otherwise, including when their lengths differ.
Source
val encapsulate_512 :
encapsulation_key:string ->
randomness:string ->
(string * string, Mlkem.Mlkem512.error) resultSource
val decapsulate_512 :
expanded_decapsulation_key:string ->
ciphertext:string ->
(string, Mlkem.Mlkem512.error) resultReturns (expanded_decapsulation_key, encapsulation_key). Both d and z must be 32 bytes.
Source
val encapsulate_768 :
encapsulation_key:string ->
randomness:string ->
(string * string, Mlkem.Mlkem768.error) resultReturns (ciphertext, shared_secret) using the supplied 32-byte test randomness.
Source
val decapsulate_768 :
expanded_decapsulation_key:string ->
ciphertext:string ->
(string, Mlkem.Mlkem768.error) resultDecapsulates an ACVP-format 2400-byte key.
Source
val encapsulate_1024 :
encapsulation_key:string ->
randomness:string ->
(string * string, Mlkem.Mlkem1024.error) resultSource
val decapsulate_1024 :
expanded_decapsulation_key:string ->
ciphertext:string ->
(string, Mlkem.Mlkem1024.error) result sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>