X-Git-Url: https://www.bearssl.org/gitweb//home/git/?p=BearSSL;a=blobdiff_plain;f=inc%2Fbearssl_block.h;h=415bc28fb61b0625c479015903a8620bd701dfbd;hp=df069a193351d5339c3f472d0d0c753ef2dc0f37;hb=127fb4a31d24e58fa8e04a154c6e87a2cb28245b;hpb=5db2d48b128326704cd33aff56c8b46e463f3bf6 diff --git a/inc/bearssl_block.h b/inc/bearssl_block.h index df069a1..415bc28 100644 --- a/inc/bearssl_block.h +++ b/inc/bearssl_block.h @@ -28,6 +28,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** \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 - * 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); @@ -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 - * 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. * - * 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`. * - * \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); @@ -1802,4 +1806,8 @@ void br_poly1305_ctmulq_run(const void *key, const void *iv, */ br_poly1305_run br_poly1305_ctmulq_get(void); +#ifdef __cplusplus +} +#endif + #endif