@@ -9532,14 +9532,15 @@ static int mapOidToSecLevel(word32 oid)
95329532 * @param [in, out] inOutIdx On in, index into array of start of DER encoding.
95339533 * On out, index into array after DER encoding.
95349534 * @param [in, out] key Dilithium key structure to hold the decoded key.
9535- * If the security level is set in the key structure on
9536- * input, the DER key will be decoded as such and will
9537- * fail if there is a mismatch. If the level and
9538- * parameters are not set in the key structure on
9535+ * If the security level is set in the key structure
9536+ * on input, the DER key will be decoded as such and
9537+ * will fail if there is a mismatch. If the level
9538+ * and parameters are not set in the key structure on
95399539 * input, the level will be detected from the DER
95409540 * file based on the algorithm OID, appropriately
95419541 * decoded, then updated in the key structure on
9542- * output.
9542+ * output. Auto-detection of the security level is
9543+ * not supported if compiled for FIPS 204 draft mode.
95439544 * @param [in] inSz Total size of the input DER buffer array.
95449545 * @return 0 on success.
95459546 * @return BAD_FUNC_ARG when input, inOutIdx or key is NULL or inSz is 0.
@@ -9803,10 +9804,12 @@ static int dilithium_check_type(const byte* input, word32* inOutIdx, byte type,
98039804 * on input, the DER key will be decoded as such
98049805 * and will fail if there is a mismatch. If the level
98059806 * and parameters are not set in the key structure on
9806- * input, the level will be detected from the DER file
9807- * based on the algorithm OID, appropriately decoded,
9808- * then updated in the key structure on output.
9809- * updated in the key structure on output.
9807+ * input, the level will be detected from the DER
9808+ * file based on the algorithm OID, appropriately
9809+ * decoded, then updated in the key structure on
9810+ * output. Auto-detection of the security level is
9811+ * not supported if compiled for FIPS 204
9812+ * draft mode.
98109813 * @param [in] inSz Total size of data in array.
98119814 * @return 0 on success.
98129815 * @return BAD_FUNC_ARG when input, inOutIdx or key is NULL or inSz is 0.
0 commit comments