ml_kem.h 959 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef OPENSSL_ML_KEM_H
  10. #define OPENSSL_ML_KEM_H
  11. #pragma once
  12. #define OSSL_ML_KEM_SHARED_SECRET_BYTES 32
  13. #define OSSL_ML_KEM_512_BITS 512
  14. #define OSSL_ML_KEM_512_SECURITY_BITS 128
  15. #define OSSL_ML_KEM_512_CIPHERTEXT_BYTES 768
  16. #define OSSL_ML_KEM_512_PUBLIC_KEY_BYTES 800
  17. #define OSSL_ML_KEM_768_BITS 768
  18. #define OSSL_ML_KEM_768_SECURITY_BITS 192
  19. #define OSSL_ML_KEM_768_CIPHERTEXT_BYTES 1088
  20. #define OSSL_ML_KEM_768_PUBLIC_KEY_BYTES 1184
  21. #define OSSL_ML_KEM_1024_BITS 1024
  22. #define OSSL_ML_KEM_1024_SECURITY_BITS 256
  23. #define OSSL_ML_KEM_1024_CIPHERTEXT_BYTES 1568
  24. #define OSSL_ML_KEM_1024_PUBLIC_KEY_BYTES 1568
  25. #endif