diff options
Diffstat (limited to 'src/lib/libcrypto')
| -rw-r--r-- | src/lib/libcrypto/mlkem/mlkem_internal.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/mlkem/mlkem_internal.h b/src/lib/libcrypto/mlkem/mlkem_internal.h index a8b1a16359..42b5ba03b8 100644 --- a/src/lib/libcrypto/mlkem/mlkem_internal.h +++ b/src/lib/libcrypto/mlkem/mlkem_internal.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: mlkem_internal.h,v 1.13 2026/01/18 08:49:42 tb Exp $ */ | 1 | /* $OpenBSD: mlkem_internal.h,v 1.14 2026/01/18 08:58:31 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023, Google Inc. | 3 | * Copyright (c) 2023, Google Inc. |
| 4 | * Copyright (c) 2025, Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2025, Bob Beck <beck@obtuse.com> |
| @@ -251,8 +251,7 @@ int mlkem_parse_private_key(const uint8_t *input, size_t input_len, | |||
| 251 | * regular callers should use the non-deterministic |MLKEM_generate_key| | 251 | * regular callers should use the non-deterministic |MLKEM_generate_key| |
| 252 | * directly. | 252 | * directly. |
| 253 | */ | 253 | */ |
| 254 | int mlkem_generate_key_external_entropy( | 254 | int mlkem_generate_key_external_entropy(uint8_t *out_encoded_public_key, |
| 255 | uint8_t out_encoded_public_key[MLKEM768_PUBLIC_KEY_BYTES], | ||
| 256 | MLKEM_private_key *out_private_key, | 255 | MLKEM_private_key *out_private_key, |
| 257 | const uint8_t entropy[MLKEM_SEED_LENGTH]); | 256 | const uint8_t entropy[MLKEM_SEED_LENGTH]); |
| 258 | 257 | ||
| @@ -271,8 +270,7 @@ int mlkem_marshal_private_key(const MLKEM_private_key *private_key, | |||
| 271 | * used for tests, regular callers should use the non-deterministic | 270 | * used for tests, regular callers should use the non-deterministic |
| 272 | * |MLKEM_encap| directly. | 271 | * |MLKEM_encap| directly. |
| 273 | */ | 272 | */ |
| 274 | void mlkem_encap_external_entropy( | 273 | void mlkem_encap_external_entropy(uint8_t *out_ciphertext, |
| 275 | uint8_t out_ciphertext[MLKEM768_CIPHERTEXT_BYTES], | ||
| 276 | uint8_t out_shared_secret[MLKEM_SHARED_SECRET_LENGTH], | 274 | uint8_t out_shared_secret[MLKEM_SHARED_SECRET_LENGTH], |
| 277 | const MLKEM_public_key *public_key, | 275 | const MLKEM_public_key *public_key, |
| 278 | const uint8_t entropy[MLKEM_ENCAP_ENTROPY]); | 276 | const uint8_t entropy[MLKEM_ENCAP_ENTROPY]); |
