[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:18:48 CEST 2023
Simon Josefsson commented: https://gitlab.com/gnutls/guile/-/issues/13#note_1474923725
A bit more data:
```
jas at kaka:~/src/guile-gnutls$ echo SeOCioFZy4/ZBq1qlY0d/Zj8MU9d1MV2poHVyst/inWAYQ== | base64 -d > foo
jas at kaka:~/src/guile-gnutls$ GNUTLS_GUILE_EXTENSION_DIR=$PWD/guile/src guile -L $PWD/guile/modules -s guile/examples/aead-decrypt-example.scm
;;; note: source file /home/jas/src/guile-gnutls/guile/modules/gnutls.scm
;;; newer than compiled /usr/lib/x86_64-linux-gnu/guile/3.0/site-ccache/gnutls.go
;;; found fresh local cache at /home/jas/.cache/guile/ccache/3.0-LE-8-4.5/home/jas/src/guile-gnutls/guile/modules/gnutls.scm.go
What is the secret?
the secret key is 32 bytes long.
Which file do you want to decrypt?
foo
Backtrace:
In ice-9/boot-9.scm:
1752:10 10 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
9 (apply-smob/0 #<thunk 7f1a04d24540>)
In ice-9/boot-9.scm:
724:2 8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 7 (_ #(#(#<directory (guile-user) 7f1a04d28c80>)))
In ice-9/boot-9.scm:
2835:4 6 (save-module-excursion _)
4380:12 5 (_)
In /home/jas/src/guile-gnutls/guile/examples/aead-decrypt-example.scm:
36:6 4 (_)
In ice-9/ports.scm:
433:17 3 (call-with-output-file _ _ #:binary _ #:encoding _)
433:17 2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
In /home/jas/src/guile-gnutls/guile/examples/aead-decrypt-example.scm:
45:27 1 (_ #<input: foo 10>)
In unknown file:
0 (aead-cipher-decrypt #<aead-cipher 7f1a04d82b30> # # 0 #)
ERROR: In procedure aead-cipher-decrypt:
Throw to key `gnutls-error' with args `(#<gnutls-error-enum Decryption has failed.> aead-cipher-decrypt)'.
jas at kaka:~/src/guile-gnutls$
```
This is on my trisquel machine, but the output looks the same on Mac.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/issues/13#note_1474923725
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/73d6a677/attachment-0001.html>
More information about the Gnutls-devel
mailing list