int ret;
if (check_optimized_aes()) {
fprintf(stderr, "Intel AES accelerator was detected\n");
- ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_128_CBC, 90, &cipher_struct);
+ ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_128_CBC, 80, &cipher_struct);
if (ret < 0)
{
gnutls_assert ();
}
- ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_192_CBC, 90, &cipher_struct);
+ ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_192_CBC, 80, &cipher_struct);
if (ret < 0)
{
gnutls_assert ();
}
- ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_256_CBC, 90, &cipher_struct);
+ ret = gnutls_crypto_single_cipher_register (GNUTLS_CIPHER_AES_256_CBC, 80, &cipher_struct);
if (ret < 0)
{
gnutls_assert ();
* This function will register a cipher algorithm to be used by
* gnutls. Any algorithm registered will override the included
* algorithms and by convention kernel implemented algorithms have
- * priority of 90. The algorithm with the lowest priority will be
+ * priority of 90 and CPU-assisted of 80. The algorithm with the lowest priority will be
* used by gnutls.
*
* This function should be called before gnutls_global_init().
* This function will register a random generator to be used by
* gnutls. Any generator registered will override the included
* generator and by convention kernel implemented generators have
- * priority of 90. The generator with the lowest priority will be
+ * priority of 90 and CPU-assisted of 80. The generator with the lowest priority will be
* used by gnutls.
*
* This function should be called before gnutls_global_init().
*
* This function will register a MAC algorithm to be used by gnutls.
* Any algorithm registered will override the included algorithms and
- * by convention kernel implemented algorithms have priority of 90.
+ * by convention kernel implemented algorithms have priority of 90
+ * and CPU-assisted of 80.
* The algorithm with the lowest priority will be used by gnutls.
*
* This function should be called before gnutls_global_init().
* This function will register a digest (hash) algorithm to be used by
* gnutls. Any algorithm registered will override the included
* algorithms and by convention kernel implemented algorithms have
- * priority of 90. The algorithm with the lowest priority will be
+ * priority of 90 and CPU-assisted of 80. The algorithm with the lowest priority will be
* used by gnutls.
*
* This function should be called before gnutls_global_init().
* This function will register a cipher interface to be used by
* gnutls. Any interface registered will override the included engine
* and by convention kernel implemented interfaces should have
- * priority of 90. The interface with the lowest priority will be used
+ * priority of 90 and CPU-assisted of 80. The interface with the lowest priority will be used
* by gnutls.
*
* This function should be called before gnutls_global_init().
* This function will register a mac interface to be used by
* gnutls. Any interface registered will override the included engine
* and by convention kernel implemented interfaces should have
- * priority of 90. The interface with the lowest priority will be used
+ * priority of 90 and CPU-assisted of 80. The interface with the lowest priority will be used
* by gnutls.
*
* This function should be called before gnutls_global_init().
* This function will register a digest interface to be used by
* gnutls. Any interface registered will override the included engine
* and by convention kernel implemented interfaces should have
- * priority of 90. The interface with the lowest priority will be used
+ * priority of 90 and CPU-assisted of 80. The interface with the lowest priority will be used
* by gnutls.
*
* This function should be called before gnutls_global_init().
int gnutls_cipher_decrypt2 (gnutls_cipher_hd_t handle,
const void *ciphertext, size_t ciphertextlen,
void *text, size_t textlen);
- int gnutls_cipher_encrypt2 (gnutls_cipher_hd_t handle, void *text,
+ int gnutls_cipher_encrypt2 (gnutls_cipher_hd_t handle, const void *text,
size_t textlen, void *ciphertext,
size_t ciphertextlen);