[gnutls-devel] GnuTLS | WIP: AF_ALG support for GnuTLS (!555)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Oct 3 15:58:16 CEST 2018


Dmitry Eremin-Solenikov started a new discussion on lib/accelerated/afalg.c:

> +	[GNUTLS_CIPHER_AES_192_CBC] = "cbc(aes)",
> +	[GNUTLS_CIPHER_AES_256_CBC] = "cbc(aes)",
> +	[GNUTLS_CIPHER_3DES_CBC] = "cbc(des3_ede)",
> +	[GNUTLS_CIPHER_CAMELLIA_128_CBC] = "cbc(camellia)",
> +	[GNUTLS_CIPHER_CAMELLIA_192_CBC] = "cbc(camellia)",
> +	[GNUTLS_CIPHER_CAMELLIA_256_CBC] = "cbc(camellia)",
> +	[GNUTLS_CIPHER_SALSA20_256] = "salsa20",
> +};
> +
> +static int
> +afalg_cipher_init(gnutls_cipher_algorithm_t algorithm, void **_ctx, int enc)
> +{
> +	struct kcapi_handle *handle = NULL;
> +	struct kcapi_ctx *ctx;
> +
> +	if (kcapi_cipher_init(&handle, gnutls_cipher_map[algorithm], 0) < 0) {

A check is needed that `algorithm < ARRAY_SIZE(gnutls_cipher_map)`

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/555#note_106147368
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181003/d914abbc/attachment.html>


More information about the Gnutls-devel mailing list