1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00

Do not assume mlkem.h and bytestring.h are public in libcrypto

As long as is not quite clear what we want to do about the public API
aspect of MLKEM, keep things internal for now.

discussed with beck and jsing
This commit is contained in:
tb 2024-12-19 23:52:26 +00:00
parent d65e817093
commit ef1019e622
4 changed files with 8 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mlkem.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */
/* $OpenBSD: mlkem.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */
/*
* Copyright (c) 2024, Google Inc.
*
@ -21,11 +21,6 @@
#include <sys/types.h>
#include <stdint.h>
#ifdef LIBRESSL_HAS_MLKEM
/* This needs to become public */
#include <openssl/bytestring.h>
#endif
#if defined(__cplusplus)
extern "C" {
#endif

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mlkem1024.c,v 1.4 2024/12/18 10:55:21 tb Exp $ */
/* $OpenBSD: mlkem1024.c,v 1.5 2024/12/19 23:52:26 tb Exp $ */
/*
* Copyright (c) 2024, Google Inc.
* Copyright (c) 2024, Bob Beck <beck@obtuse.com>
@ -16,13 +16,12 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <openssl/mlkem.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bytestring.h"
#include "mlkem.h"
#include "sha3_internal.h"
#include "mlkem_internal.h"

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mlkem768.c,v 1.5 2024/12/18 10:55:21 tb Exp $ */
/* $OpenBSD: mlkem768.c,v 1.6 2024/12/19 23:52:26 tb Exp $ */
/*
* Copyright (c) 2024, Google Inc.
* Copyright (c) 2024, Bob Beck <beck@obtuse.com>
@ -16,13 +16,12 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <openssl/mlkem.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bytestring.h"
#include "mlkem.h"
#include "sha3_internal.h"
#include "mlkem_internal.h"

View File

@ -1,4 +1,4 @@
/* $OpenBSD: mlkem_internal.h,v 1.3 2024/12/17 06:43:32 tb Exp $ */
/* $OpenBSD: mlkem_internal.h,v 1.4 2024/12/19 23:52:26 tb Exp $ */
/*
* Copyright (c) 2023, Google Inc.
*
@ -18,7 +18,8 @@
#ifndef OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H
#define OPENSSL_HEADER_CRYPTO_MLKEM_INTERNAL_H
#include <openssl/mlkem.h>
#include "bytestring.h"
#include "mlkem.h"
#if defined(__cplusplus)
extern "C" {