From 10bebbca92ef87af97bc15c6337afbbe050bb96e Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 1 Jan 2026 12:47:52 +0000 Subject: Rename RANK{768,1024} to MLKEM{768,1024}_RANK RANK768 and RANK1024 are awfully short and generic names for public constants. Before we make it worse with similarly named constants for ML-DSA, let's fix this. This follows the naming convention used by the other macros in the mlkem code. ok kenjiro jsing --- src/lib/libssl/tls_key_share.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl') diff --git a/src/lib/libssl/tls_key_share.c b/src/lib/libssl/tls_key_share.c index 3f4c44f558..9e04cb7b75 100644 --- a/src/lib/libssl/tls_key_share.c +++ b/src/lib/libssl/tls_key_share.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_key_share.c,v 1.9 2025/12/04 21:03:42 beck Exp $ */ +/* $OpenBSD: tls_key_share.c,v 1.10 2026/01/01 12:47:52 tb Exp $ */ /* * Copyright (c) 2020, 2021 Joel Sing * @@ -285,7 +285,7 @@ tls_key_share_generate_mlkem(struct tls_key_share *ks, int rank) static int tls_key_share_client_generate_mlkem768x25519(struct tls_key_share *ks) { - if (!tls_key_share_generate_mlkem(ks, RANK768)) + if (!tls_key_share_generate_mlkem(ks, MLKEM768_RANK)) return 0; if (!tls_key_share_generate_x25519(ks)) @@ -586,7 +586,7 @@ tls_key_share_server_peer_public_mlkem768x25519(struct tls_key_share *ks, return 0; /* Nein, ist nur normal (1024 ist gigantisch) */ - if ((ks->mlkem_peer_public = MLKEM_public_key_new(RANK768)) == NULL) + if ((ks->mlkem_peer_public = MLKEM_public_key_new(MLKEM768_RANK)) == NULL) goto err; if (!CBS_get_bytes(cbs, &mlkem768_cbs, -- cgit v1.2.3-55-g6feb