[gnutls-devel] GnuTLS | crypto-api: add block cipher API with automatic padding (!1611)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Jul 22 12:51:54 CEST 2022
Daiki Ueno commented on a discussion on tests/cipher-padding.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1611#note_1035251226
> + plaintext, SIZE_MAX,
> + NULL, &size,
> + GNUTLS_CIPHER_PADDING_PKCS7);
> + if (ret != GNUTLS_E_INVALID_REQUEST) {
> + fail("gnutls_cipher_encrypt3 succeeded\n");
> + }
> +
> + /* Get the ciphertext size */
> + ret = gnutls_cipher_encrypt3(ch,
> + plaintext, plaintext_size,
> + NULL, &size,
> + GNUTLS_CIPHER_PADDING_PKCS7);
> + if (ret < 0) {
> + fail("gnutls_cipher_encrypt3 failed\n");
> + }
> +
Yeah, that makes sense; I've added the check.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1611#note_1035251226
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/20220722/1fea1635/attachment.html>
More information about the Gnutls-devel
mailing list