[gnutls-devel] Guile-GnuTLS | aead.scm fails on Mac OS (#13)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Jul 18 18:36:01 CEST 2023

Vivien Kraus Would Rather Not Be On Gitlab_com commented: https://gitlab.com/gnutls/guile/-/issues/13#note_1475104454

So, line 4508 of guile/src/core.c, right before the call to `gnutls_aead_cipher_encrypt`, you should be able to add  these asserts:

  assert (c_nonce_len == strlen ("Never encrypt more data with this nonce"));
  assert (memcmp (c_nonce, "Never encrypt more data with this nonce", c_nonce_len) == 0);
  assert (c_auth_len == strlen ("Additional secret data"));
  assert (memcmp (c_auth, "Additional secret data", c_auth_len) == 0);
  assert (c_tag_size == 16);
  assert (c_data_len == strlen ("Confidential data."));
  assert (memcmp (c_data, "Confidential data.", c_data_len) == 0);

And just before returning, these:

  assert (used_size == output_size);
  assert (scm_c_bytevector_length (ret) == 34);
  assert ((char) (SCM_BYTEVECTOR_CONTENTS (ret)[0]) == (char) 165);

And it should work.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/issues/13#note_1475104454
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/20230718/8e60ecf6/attachment.html>

More information about the Gnutls-devel mailing list