xref: /freebsd/crypto/openssl/include/openssl/ml_kem.h (revision e7be843b4a162e68651d3911f0357ed464915629)
1 /*
2  * Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #ifndef OPENSSL_ML_KEM_H
11 # define OPENSSL_ML_KEM_H
12 # pragma once
13 
14 # define OSSL_ML_KEM_SHARED_SECRET_BYTES    32
15 
16 # define OSSL_ML_KEM_512_BITS               512
17 # define OSSL_ML_KEM_512_SECURITY_BITS      128
18 # define OSSL_ML_KEM_512_CIPHERTEXT_BYTES   768
19 # define OSSL_ML_KEM_512_PUBLIC_KEY_BYTES   800
20 
21 # define OSSL_ML_KEM_768_BITS               768
22 # define OSSL_ML_KEM_768_SECURITY_BITS      192
23 # define OSSL_ML_KEM_768_CIPHERTEXT_BYTES   1088
24 # define OSSL_ML_KEM_768_PUBLIC_KEY_BYTES   1184
25 
26 # define OSSL_ML_KEM_1024_BITS              1024
27 # define OSSL_ML_KEM_1024_SECURITY_BITS     256
28 # define OSSL_ML_KEM_1024_CIPHERTEXT_BYTES  1568
29 # define OSSL_ML_KEM_1024_PUBLIC_KEY_BYTES  1568
30 
31 #endif
32