diff options
-rw-r--r-- | src/lib/libcrypto/mlkem/mlkem768.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/mlkem/mlkem768.c b/src/lib/libcrypto/mlkem/mlkem768.c index 82adea7b42..653b92d8d8 100644 --- a/src/lib/libcrypto/mlkem/mlkem768.c +++ b/src/lib/libcrypto/mlkem/mlkem768.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mlkem768.c,v 1.11 2025/05/19 07:53:00 beck Exp $ */ | 1 | /* $OpenBSD: mlkem768.c,v 1.12 2025/05/20 00:30:38 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2024, Google Inc. | 3 | * Copyright (c) 2024, Google Inc. |
4 | * Copyright (c) 2024, Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2024, Bob Beck <beck@obtuse.com> |
@@ -89,6 +89,7 @@ static const int kLog2Prime = 12; | |||
89 | static const uint16_t kHalfPrime = (/*kPrime=*/3329 - 1) / 2; | 89 | static const uint16_t kHalfPrime = (/*kPrime=*/3329 - 1) / 2; |
90 | static const int kDU768 = 10; | 90 | static const int kDU768 = 10; |
91 | static const int kDV768 = 4; | 91 | static const int kDV768 = 4; |
92 | |||
92 | /* | 93 | /* |
93 | * kInverseDegree is 128^-1 mod 3329; 128 because kPrime does not have a 512th | 94 | * kInverseDegree is 128^-1 mod 3329; 128 because kPrime does not have a 512th |
94 | * root of unity. | 95 | * root of unity. |
@@ -911,6 +912,7 @@ MLKEM768_generate_key_external_entropy( | |||
911 | memcpy(priv->fo_failure_secret, entropy + 32, 32); | 912 | memcpy(priv->fo_failure_secret, entropy + 32, 32); |
912 | 913 | ||
913 | ret = 1; | 914 | ret = 1; |
915 | |||
914 | err: | 916 | err: |
915 | CBB_cleanup(&cbb); | 917 | CBB_cleanup(&cbb); |
916 | 918 | ||
@@ -1075,6 +1077,7 @@ MLKEM768_marshal_public_key(uint8_t **output, size_t *output_len, | |||
1075 | goto err; | 1077 | goto err; |
1076 | 1078 | ||
1077 | ret = 1; | 1079 | ret = 1; |
1080 | |||
1078 | err: | 1081 | err: |
1079 | CBB_cleanup(&cbb); | 1082 | CBB_cleanup(&cbb); |
1080 | 1083 | ||