From dcbd53bcbd78c031d6d012192ac183de96a3082f Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 16 Jan 2026 18:29:58 +0000 Subject: mlkem_internal.h: some very basic copy editing --- src/lib/libcrypto/mlkem/mlkem_internal.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/libcrypto') diff --git a/src/lib/libcrypto/mlkem/mlkem_internal.h b/src/lib/libcrypto/mlkem/mlkem_internal.h index 2b3157256e..30141a4faf 100644 --- a/src/lib/libcrypto/mlkem/mlkem_internal.h +++ b/src/lib/libcrypto/mlkem/mlkem_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mlkem_internal.h,v 1.10 2025/09/05 23:30:12 beck Exp $ */ +/* $OpenBSD: mlkem_internal.h,v 1.11 2026/01/16 18:29:58 tb Exp $ */ /* * Copyright (c) 2023, Google Inc. * Copyright (c) 2025, Bob Beck @@ -186,9 +186,9 @@ int mlkem_generate_key(uint8_t *out_encoded_public_key, uint8_t *optional_out_seed, MLKEM_private_key *out_private_key); /* - * mlkem_private_key_from_seed modifies |out_private_key| to generate a key of + * mlkem_private_key_from_seed modifies |out_private_key| to contain a key of * the rank of |*out_private_key| from a seed that was generated by - * |mlkem_generate_key|. It fails and returns 0 if |seed_len| is incorrect, or + * |MLKEM_generate_key|. It fails and returns 0 if |seed_len| is incorrect, or * if |*out_private_key| has not been initialized. otherwise it writes to * |*out_private_key| and returns 1. */ @@ -266,8 +266,8 @@ int mlkem_parse_private_key(const uint8_t *input, size_t input_len, /* * mlkem_generate_key_external_entropy is a deterministic function to create a - * pair of ML-KEM 768 keys, using the supplied entropy. The entropy needs to be - * uniformly random generated. This function is should only be used for tests, + * pair of ML-KEM keys, using the supplied entropy. The entropy needs to be + * uniformly random generated. This function should only be used for tests, * regular callers should use the non-deterministic |MLKEM_generate_key| * directly. */ @@ -285,7 +285,7 @@ int mlkem_marshal_private_key(const MLKEM_private_key *private_key, uint8_t **out_private_key, size_t *out_private_key_len); /* - * mlkem_encap_external_entropy behaves like |mlkem_encap|, but uses + * mlkem_encap_external_entropy behaves like |MLKEM_encap|, but uses * |MLKEM_ENCAP_ENTROPY| bytes of |entropy| for randomization. The decapsulating * side will be able to recover |entropy| in full. This function should only be * used for tests, regular callers should use the non-deterministic -- cgit v1.2.3-55-g6feb