3030 * @details
3131 * The signing context defines the parameter set and the hash functions to use.
3232 *
33- * When creating an XmssSigningContext, the XMSS_SIGNING_CONTEXT_SIZE macro can be used to allocate the correct size.
33+ * When creating an XmssSigningContext, the # XMSS_SIGNING_CONTEXT_SIZE macro can be used to allocate the correct size.
3434 *
3535 * XmssSigningContext is an opaque type, do not access its members.
3636 */
@@ -40,7 +40,7 @@ typedef struct XmssSigningContext XmssSigningContext;
4040 * @brief
4141 * The size in bytes of an XmssSigningContext.
4242 */
43- #define XMSS_SIGNING_CONTEXT_SIZE (4u + 4u + 4u + 4u + 11u * sizeof(void(*)()))
43+ #define XMSS_SIGNING_CONTEXT_SIZE (4u + 4u + 4u + 4u + 4u * sizeof(void(*)(void )))
4444
4545/**
4646 * @brief
@@ -60,7 +60,7 @@ void xmss_free_signing_context(XmssSigningContext *signing_context);
6060 * In-memory representation of a loaded cache.
6161 *
6262 * @details
63- * When creating an XmssInternalCache, the XMSS_INTERNAL_CACHE_SIZE macro can be used to allocate the correct size.
63+ * When creating an XmssInternalCache, the # XMSS_INTERNAL_CACHE_SIZE() macro can be used to allocate the correct size.
6464 *
6565 * XmssInternalCache is an opaque type, do not access its members.
6666 */
@@ -70,12 +70,12 @@ typedef struct XmssInternalCache XmssInternalCache;
7070 * @brief
7171 * The number of cached entries for a specific cache configuration.
7272 *
73- * @note The arguments to XMSS_CACHE_ENTRY_COUNT will be evaluated multiple times.
73+ * @note The arguments to # XMSS_CACHE_ENTRY_COUNT() will be evaluated multiple times.
7474 *
7575 * @param[in] cache_type The cache type that is used.
7676 * @param[in] cache_level The cache level that is to be held.
7777 * @param[in] param_set The parameter set of the key for which the cache will be used.
78- * @see xmss_generate_public_key for more information about the cache type and level.
78+ * @see xmss_generate_public_key() for more information about the cache type and level.
7979 */
8080#define XMSS_CACHE_ENTRY_COUNT (cache_type , cache_level , param_set ) \
8181 ((cache_type) == XMSS_CACHE_NONE ? 0u : \
@@ -92,12 +92,12 @@ typedef struct XmssInternalCache XmssInternalCache;
9292 * @brief
9393 * The size in bytes of an XmssInternalCache.
9494 *
95- * @note The arguments to XMSS_INTERNAL_CACHE_SIZE will be evaluated multiple times.
95+ * @note The arguments to # XMSS_INTERNAL_CACHE_SIZE() will be evaluated multiple times.
9696 *
9797 * @param[in] cache_type The cache type that is used.
9898 * @param[in] cache_level The cache level that is to be held.
9999 * @param[in] param_set The parameter set of the key for which the cache will be used.
100- * @see xmss_generate_public_key for more information about the cache type and level.
100+ * @see xmss_generate_public_key() for more information about the cache type and level.
101101 */
102102#define XMSS_INTERNAL_CACHE_SIZE (cache_type , cache_level , param_set ) \
103103 (4 + 4 + sizeof(XmssValue256) * XMSS_CACHE_ENTRY_COUNT((cache_type), (cache_level), (param_set)))
@@ -116,7 +116,7 @@ typedef struct XmssInternalCache XmssInternalCache;
116116 * Context for using the signature generation part of the library, with a loaded private key partition.
117117 *
118118 * @details
119- * When creating an XmssKeyContext, the XMSS_KEY_CONTEXT_SIZE macro can be used to allocate the correct size.
119+ * When creating an XmssKeyContext, the # XMSS_KEY_CONTEXT_SIZE macro can be used to allocate the correct size.
120120 *
121121 * XmssKeyContext is an opaque type, do not access its members.
122122 */
@@ -144,10 +144,10 @@ typedef struct XmssKeyContext XmssKeyContext;
144144 * @brief
145145 * The size in bytes of an XmssKeyContext.
146146 *
147- * @note The param_set argument will be evaluated multiple times.
147+ * @note The ` param_set` argument will be evaluated multiple times.
148148 *
149- * @param[in] param_set The XmssParameterSetOID that is to be used for the private key.
150- * @param[in] obfuscation_setting The XmssIndexObfuscationSetting that is to be used with the private key.
149+ * @param[in] param_set The # XmssParameterSetOID that is to be used for the private key.
150+ * @param[in] obfuscation_setting The # XmssIndexObfuscationSetting that is to be used with the private key.
151151 */
152152#define XMSS_KEY_CONTEXT_SIZE (param_set , obfuscation_setting ) \
153153 (4u + 4u + XMSS_SIGNING_CONTEXT_SIZE + XMSS_PRIVATE_KEY_STATELESS_PART_SIZE + \
@@ -170,7 +170,7 @@ void xmss_free_key_context(XmssKeyContext *key_context);
170170 * The temporary context to gather all the results of generating a public key.
171171 *
172172 * @details
173- * When creating an XmssKeyGenerationContext, the XMSS_KEY_GENERATION_CONTEXT_SIZE macro may be used to allocate the
173+ * When creating an XmssKeyGenerationContext, the # XMSS_KEY_GENERATION_CONTEXT_SIZE macro may be used to allocate the
174174 * correct size.
175175 *
176176 * The elements of an XmssKeyGenerationContext are generally to be considered invalid outside of their specific use in
@@ -185,7 +185,7 @@ typedef struct XmssKeyGenerationContext XmssKeyGenerationContext;
185185 * The size in bytes of XmssKeyGenerationContext.
186186 *
187187 * @param[in] generation_partitions The number of calculation partitions that will divide the work.
188- * @see xmss_generate_public_key for more information about generation_partitions
188+ * @see xmss_generate_public_key() for more information about generation_partitions.
189189 */
190190#define XMSS_KEY_GENERATION_CONTEXT_SIZE (generation_partitions ) \
191191 (sizeof(void*) + sizeof(uint32_t) + sizeof(uint32_t) + sizeof(void*) + sizeof(void*) + \
0 commit comments