[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 17:51:40 CEST 2023




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

If you are willing to have your hands dirty, it may be useful to check in core.c that `scm_gnutls_make_aead_cipher` always receives the `GNUTLS_CIPHER_AES_256_GCM` value (should be 11) for `c_algorithm`, and `"the secret key is 32 bytes long."` as datum_key.data.

Can you add a couple of asserts, right before line 4465, so when datum_key and c_algorithm have their final value?

```c
  assert (memcmp (datum_key.data, "the secret key is 32 bytes long.", 32) == 0);
  assert (c_algorithm == GNUTLS_CIPHER_AES_256_GCM);
```

Then run the tests.

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


More information about the Gnutls-devel mailing list