fips203ipd
C11 implementation of FIPS 203 initial public draft (IPD).
|
C11 implementation of ML-KEM from the FIPS 203 initial public draft. More...
#include <stdint.h>
Go to the source code of this file.
Functions | |
void | fips203ipd_kem512_keygen (uint8_t ek[static FIPS203IPD_KEM512_EK_SIZE], uint8_t dk[static FIPS203IPD_KEM512_DK_SIZE], const uint8_t seed[static 64]) |
Generate KEM512 encapsulation key ek and decapsulation key dk from 64 byte random seed seed . More... | |
void | fips203ipd_kem512_encaps (uint8_t key[static 32], uint8_t ct[static FIPS203IPD_KEM512_CT_SIZE], const uint8_t ek[static FIPS203IPD_KEM512_EK_SIZE], const uint8_t seed[static 32]) |
Generate KEM512 shared key key and ciphertext ct from given encapsulation key ek and randomness seed . More... | |
void | fips203ipd_kem512_decaps (uint8_t key[static 32], const uint8_t ct[static FIPS203IPD_KEM512_CT_SIZE], const uint8_t dk[static FIPS203IPD_KEM512_DK_SIZE]) |
Decapsulate shared key key from ciphertext ct using KEM512 decapsulation key dk with implicit rejection. More... | |
void | fips203ipd_kem768_keygen (uint8_t ek[static FIPS203IPD_KEM768_EK_SIZE], uint8_t dk[static FIPS203IPD_KEM768_DK_SIZE], const uint8_t seed[static 64]) |
Generate KEM768 encapsulation key ek and decapsulation key dk from 64 byte random seed seed . More... | |
void | fips203ipd_kem768_encaps (uint8_t key[static 32], uint8_t ct[static FIPS203IPD_KEM768_CT_SIZE], const uint8_t ek[static FIPS203IPD_KEM768_EK_SIZE], const uint8_t seed[static 32]) |
Generate KEM768 shared key key and ciphertext ct from given encapsulation key ek and randomness seed . More... | |
void | fips203ipd_kem768_decaps (uint8_t key[static 32], const uint8_t ct[static FIPS203IPD_KEM768_CT_SIZE], const uint8_t dk[static FIPS203IPD_KEM768_DK_SIZE]) |
Decapsulate shared key key from ciphertext ct using KEM768 decapsulation key dk with implicit rejection. More... | |
void | fips203ipd_kem1024_keygen (uint8_t ek[static FIPS203IPD_KEM1024_EK_SIZE], uint8_t dk[static FIPS203IPD_KEM1024_DK_SIZE], const uint8_t seed[static 64]) |
Generate KEM1024 encapsulation key ek and decapsulation key dk from 64 byte random seed seed . More... | |
void | fips203ipd_kem1024_encaps (uint8_t key[static 32], uint8_t ct[static FIPS203IPD_KEM1024_CT_SIZE], const uint8_t ek[static FIPS203IPD_KEM1024_EK_SIZE], const uint8_t seed[static 32]) |
Generate KEM1024 shared key key and ciphertext ct from given encapsulation key ek and randomness seed . More... | |
void | fips203ipd_kem1024_decaps (uint8_t key[static 32], const uint8_t ct[static FIPS203IPD_KEM1024_CT_SIZE], const uint8_t dk[static FIPS203IPD_KEM1024_DK_SIZE]) |
Decapsulate shared key key from ciphertext ct using KEM1024 decapsulation key dk with implicit rejection. More... | |
C11 implementation of ML-KEM from the FIPS 203 initial public draft.
fips203ipd https://pablotron.org/fips203ipd
Copyright (c) 2023 Paul Duncan SPDX-License-Identifier: MIT-0
C11 implementation of ML-KEM from the FIPS 203 initial public draft.