Fixed modular reduction bug in the special field for P-256 (in some rare cases, value...
[BearSSL] / inc / bearssl_block.h
index df069a1..415bc28 100644 (file)
 #include <stddef.h>
 #include <stdint.h>
 
 #include <stddef.h>
 #include <stdint.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file bearssl_block.h
  *
  * # Block Ciphers and Symmetric Ciphers
 /** \file bearssl_block.h
  *
  * # Block Ciphers and Symmetric Ciphers
@@ -1356,11 +1360,11 @@ uint32_t br_aes_pwr8_ctr_run(const br_aes_pwr8_ctr_keys *ctx,
  * available.
  *
  * This function returns a pointer to `br_aes_pwr8_cbcenc_vtable`, if
  * available.
  *
  * This function returns a pointer to `br_aes_pwr8_cbcenc_vtable`, if
- * that implementation was compiled in the library _and_ the x86 AES
- * opcodes are available on the currently running CPU. If either of
- * these conditions is not met, then this function returns `NULL`.
+ * that implementation was compiled in the library _and_ the POWER8
+ * crypto opcodes are available on the currently running CPU. If either
+ * of these conditions is not met, then this function returns `NULL`.
  *
  *
- * \return  the `aes_x868ni` AES-CBC (encryption) implementation, or `NULL`.
+ * \return  the `aes_pwr8` AES-CBC (encryption) implementation, or `NULL`.
  */
 const br_block_cbcenc_class *br_aes_pwr8_cbcenc_get_vtable(void);
 
  */
 const br_block_cbcenc_class *br_aes_pwr8_cbcenc_get_vtable(void);
 
@@ -1369,23 +1373,23 @@ const br_block_cbcenc_class *br_aes_pwr8_cbcenc_get_vtable(void);
  * available.
  *
  * This function returns a pointer to `br_aes_pwr8_cbcdec_vtable`, if
  * available.
  *
  * This function returns a pointer to `br_aes_pwr8_cbcdec_vtable`, if
- * that implementation was compiled in the library _and_ the x86 AES
- * opcodes are available on the currently running CPU. If either of
- * these conditions is not met, then this function returns `NULL`.
+ * that implementation was compiled in the library _and_ the POWER8
+ * crypto opcodes are available on the currently running CPU. If either
+ * of these conditions is not met, then this function returns `NULL`.
  *
  *
- * \return  the `aes_x868ni` AES-CBC (decryption) implementation, or `NULL`.
+ * \return  the `aes_pwr8` AES-CBC (decryption) implementation, or `NULL`.
  */
 const br_block_cbcdec_class *br_aes_pwr8_cbcdec_get_vtable(void);
 
 /**
  * \brief Obtain the `aes_pwr8` AES-CTR implementation, if available.
  *
  */
 const br_block_cbcdec_class *br_aes_pwr8_cbcdec_get_vtable(void);
 
 /**
  * \brief Obtain the `aes_pwr8` AES-CTR implementation, if available.
  *
- * This function returns a pointer to `br_aes_pwr8_ctr_vtable`, if
- * that implementation was compiled in the library _and_ the x86 AES
+ * This function returns a pointer to `br_aes_pwr8_ctr_vtable`, if that
+ * implementation was compiled in the library _and_ the POWER8 crypto
  * opcodes are available on the currently running CPU. If either of
  * these conditions is not met, then this function returns `NULL`.
  *
  * opcodes are available on the currently running CPU. If either of
  * these conditions is not met, then this function returns `NULL`.
  *
- * \return  the `aes_x868ni` AES-CTR implementation, or `NULL`.
+ * \return  the `aes_pwr8` AES-CTR implementation, or `NULL`.
  */
 const br_block_ctr_class *br_aes_pwr8_ctr_get_vtable(void);
 
  */
 const br_block_ctr_class *br_aes_pwr8_ctr_get_vtable(void);
 
@@ -1802,4 +1806,8 @@ void br_poly1305_ctmulq_run(const void *key, const void *iv,
  */
 br_poly1305_run br_poly1305_ctmulq_get(void);
 
  */
 br_poly1305_run br_poly1305_ctmulq_get(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 #endif