|
127 | 127 | * |
128 | 128 | * By default, mldsa-native includes support for generating key |
129 | 129 | * pairs. If you don't need this, set MLD_CONFIG_NO_KEYPAIR_API |
130 | | - * to exclude crypto_sign_keypair, crypto_sign_keypair_internal, |
131 | | - * crypto_sign_pk_from_sk, and all internal APIs only needed by |
| 130 | + * to exclude keypair, keypair_internal, |
| 131 | + * pk_from_sk, and all internal APIs only needed by |
132 | 132 | * those functions. |
133 | 133 | */ |
134 | 134 | /* #define MLD_CONFIG_NO_KEYPAIR_API */ |
|
138 | 138 | * |
139 | 139 | * By default, mldsa-native includes support for creating |
140 | 140 | * signatures. If you don't need this, set MLD_CONFIG_NO_SIGN_API |
141 | | - * to exclude crypto_sign_signature, |
142 | | - * crypto_sign_signature_extmu, crypto_sign_signature_internal, |
143 | | - * crypto_sign_signature_pre_hash_internal, |
144 | | - * crypto_sign_signature_pre_hash_shake256, and all internal APIs |
| 141 | + * to exclude signature, |
| 142 | + * signature_extmu, signature_internal, |
| 143 | + * signature_pre_hash_internal, |
| 144 | + * signature_pre_hash_shake256, and all internal APIs |
145 | 145 | * only needed by those functions. |
146 | 146 | */ |
147 | 147 | /* #define MLD_CONFIG_NO_SIGN_API */ |
|
151 | 151 | * |
152 | 152 | * By default, mldsa-native includes support for verifying |
153 | 153 | * signatures. If you don't need this, set |
154 | | - * MLD_CONFIG_NO_VERIFY_API to exclude crypto_sign_verify, |
155 | | - * crypto_sign_verify_extmu, crypto_sign_verify_internal, |
156 | | - * crypto_sign_verify_pre_hash_internal, |
157 | | - * crypto_sign_verify_pre_hash_shake256, and all internal APIs |
| 154 | + * MLD_CONFIG_NO_VERIFY_API to exclude verify, |
| 155 | + * verify_extmu, verify_internal, |
| 156 | + * verify_pre_hash_internal, |
| 157 | + * verify_pre_hash_shake256, and all internal APIs |
158 | 158 | * only needed by those functions. |
159 | 159 | */ |
160 | 160 | /* #define MLD_CONFIG_NO_VERIFY_API */ |
|
163 | 163 | * MLD_CONFIG_CORE_API_ONLY |
164 | 164 | * |
165 | 165 | * Set this to remove all public APIs except |
166 | | - * crypto_sign_keypair_internal, crypto_sign_signature_internal, |
167 | | - * and crypto_sign_verify_internal. |
| 166 | + * keypair_internal, signature_internal, |
| 167 | + * and verify_internal. |
168 | 168 | */ |
169 | 169 | /* #define MLD_CONFIG_CORE_API_ONLY */ |
170 | 170 |
|
171 | 171 | /** |
172 | 172 | * MLD_CONFIG_NO_RANDOMIZED_API |
173 | 173 | * |
174 | 174 | * If this option is set, mldsa-native will be built without the |
175 | | - * randomized API functions (crypto_sign_keypair, |
176 | | - * crypto_sign_signature, and crypto_sign_signature_extmu). |
| 175 | + * randomized API functions (keypair, |
| 176 | + * signature, and signature_extmu). |
177 | 177 | * This allows users to build mldsa-native without providing a |
178 | 178 | * randombytes() implementation if they only need the |
179 | 179 | * internal deterministic API |
180 | | - * (crypto_sign_keypair_internal, crypto_sign_signature_internal). |
| 180 | + * (keypair_internal, signature_internal). |
181 | 181 | * |
182 | 182 | * @note This option is incompatible with MLD_CONFIG_KEYGEN_PCT |
183 | 183 | * as the current PCT implementation requires |
184 | | - * crypto_sign_signature(). |
| 184 | + * signature(). |
185 | 185 | */ |
186 | 186 | #define MLD_CONFIG_NO_RANDOMIZED_API |
187 | 187 |
|
188 | | -/** |
189 | | - * MLD_CONFIG_NO_SUPERCOP |
190 | | - * |
191 | | - * By default, mldsa_native.h exposes the mldsa-native API in the |
192 | | - * SUPERCOP naming convention (crypto_sign_xxx). If you don't need |
193 | | - * this, set MLD_CONFIG_NO_SUPERCOP. |
194 | | - * |
195 | | - * @note You must set this for a multi-level build as the SUPERCOP |
196 | | - * naming does not disambiguate between the parameter sets. |
197 | | - */ |
198 | | -/* #define MLD_CONFIG_NO_SUPERCOP */ |
199 | | - |
200 | 188 | /** |
201 | 189 | * MLD_CONFIG_CONSTANTS_ONLY |
202 | 190 | * |
|
632 | 620 | * generated keypair before it can be exported. |
633 | 621 | * |
634 | 622 | * Set this option if such a check should be implemented. |
635 | | - * In this case, crypto_sign_keypair_internal and |
636 | | - * crypto_sign_keypair will return a non-zero error code if the |
| 623 | + * In this case, keypair_internal and |
| 624 | + * keypair will return a non-zero error code if the |
637 | 625 | * PCT failed. |
638 | 626 | * |
639 | 627 | * @note This feature will drastically lower the performance of |
640 | 628 | * key generation. |
641 | 629 | * |
642 | 630 | * @note This option is incompatible with MLD_CONFIG_NO_SIGN_API |
643 | 631 | * and MLD_CONFIG_NO_VERIFY_API as the current PCT implementation |
644 | | - * requires crypto_sign_signature() and crypto_sign_verify(). |
| 632 | + * requires signature() and verify(). |
645 | 633 | */ |
646 | 634 | /* #define MLD_CONFIG_KEYGEN_PCT */ |
647 | 635 |
|
|
0 commit comments