[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 11:17:28 CEST 2022
Alexander Sosedkin commented on a discussion on tests/cipher-padding.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1611#note_1035119432
> + ciphertext, size,
> + ciphertext, &size,
> + GNUTLS_CIPHER_PADDING_PKCS7);
> + if (ret < 0) {
> + fail("gnutls_cipher_encrypt3 failed\n");
> + }
> +
> + if (size != plaintext_size) {
> + fail("size does not match: %zu (expected %zu)\n",
> + size, plaintext_size);
> + }
> +
> + if (memcmp(ciphertext, plaintext, size) != 0) {
> + fail("plaintext does not match\n");
> + }
> +
thanks for expanding it
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1611#note_1035119432
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/6678e9af/attachment.html>
More information about the Gnutls-devel
mailing list