Re: gnutls_cipher_init Error on armv7 architecture but not on amd64
Daiki Ueno <[email protected]> Wed, 22 Sep 2021 14:44:42 +0200
| Newsgroups | gmane.network.gnutls.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Nicolas, Nicolas Mora <[email protected]> writes: > On an ARMV7 CPU (Odroid C2 or Raspberry Pi), gnutls_cipher_init > returns an error: > $ gcc -o gnutls-cipher-init gnutls-cipher-init.c -lgnutls && > ./gnutls-cipher-init > gnutls_cipher_init Error: The request is invalid. Given the error is GNUTLS_E_INVALID_REQUEST, I guess it is failing because some parameters are incorrect. At first glance IV length for AES-128-GCM seems to be correct (= 12), while the key length is a bit longer (= 24). I tried to reproduce it with qemu-user-static and a docker image from: https://hub.docker.com/layers/multiarch/fedora/34-aarch64/images/sha256-0f4ec96493357cfb3465368d93094d54ecacdd39c1d7ce53d7e2ae843a55273b?context=explore but couldn't. Would it be possible to identify the point where the error is returned? Regards, -- Daiki Ueno