Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-07 10:14:16

0001 /*
0002  * Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 #ifndef OPENSSL_ML_KEM_H
0011 # define OPENSSL_ML_KEM_H
0012 # pragma once
0013 
0014 # define OSSL_ML_KEM_SHARED_SECRET_BYTES    32
0015 
0016 # define OSSL_ML_KEM_512_BITS               512
0017 # define OSSL_ML_KEM_512_SECURITY_BITS      128
0018 # define OSSL_ML_KEM_512_CIPHERTEXT_BYTES   768
0019 # define OSSL_ML_KEM_512_PUBLIC_KEY_BYTES   800
0020 
0021 # define OSSL_ML_KEM_768_BITS               768
0022 # define OSSL_ML_KEM_768_SECURITY_BITS      192
0023 # define OSSL_ML_KEM_768_CIPHERTEXT_BYTES   1088
0024 # define OSSL_ML_KEM_768_PUBLIC_KEY_BYTES   1184
0025 
0026 # define OSSL_ML_KEM_1024_BITS              1024
0027 # define OSSL_ML_KEM_1024_SECURITY_BITS     256
0028 # define OSSL_ML_KEM_1024_CIPHERTEXT_BYTES  1568
0029 # define OSSL_ML_KEM_1024_PUBLIC_KEY_BYTES  1568
0030 
0031 #endif