[gnutls-devel] GnuTLS | Building from master: ` error: 'rsa_oaep_sha256_encrypt' undeclared` (#1930)

(Deprecated) Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Aug 10 15:57:49 CEST 2026




Tim Rühsen commented: https://gitlab.com/gnutls/gnutls/-/work_items/1930#note_3667143258


Maybe my misunderstanding. Then this boils down to "Debian's nettle 3.10.2" doesn work out.

Here it is
```
ii  libnettle8t64:amd64 3.10.2-1+b1  amd64        low level cryptographic library (symmetric and one-way crypto>
ii  libnettle8t64:i386  3.10.2-1+b1  i386         low level cryptographic library (symmetric and one-way crypto>
ii  nettle-dev:amd64    3.10.2-1+b1  amd64        low level cryptographic library (development files)
```

```
$ grep -Rin rsa_oaep_sha256_encrypt /usr/include/nettle/
/usr/include/nettle/rsa.h:91:#define rsa_oaep_sha256_encrypt nettle_rsa_oaep_sha256_encrypt
/usr/include/nettle/rsa.h:438:rsa_oaep_sha256_encrypt (const struct rsa_public_key *key,
```

```
$ make -j1 V=1
depbase=`echo pk.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -DGNUTLS_BUILDING_LIB=1 -I./int -I./backport -I./../../gl -I./../../gl -I./../includes -I./../includes -I./../../gl -I./..     -Wtype-limits -fanalyzer -fstrict-flex-arrays -Wall -Wbad-function-cast -Wcast-align=strict -Wdate-time -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Wflex-array-member-not-at-end -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-flex-arrays -Wstrict-prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsync-nand -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wzero-as-null-pointer-constant -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-show-option -fno-builtin-strcmp    -I/usr/include/p11-kit-1     -g -ggdb3 -Og -Wall -Wextra -MT pk.lo -MD -MP -MF $depbase.Tpo -c -o pk.lo pk.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DGNUTLS_BUILDING_LIB=1 -I./int -I./backport -I./../../gl -I./../../gl -I./../includes -I./../includes -I./../../gl -I./.. -Wtype-limits -fanalyzer -fstrict-flex-arrays -Wall -Wbad-function-cast -Wcast-align=strict -Wdate-time -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Wflex-array-member-not-at-end -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-flex-arrays -Wstrict-prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsync-nand -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wzero-as-null-pointer-constant -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-show-option -fno-builtin-strcmp -I/usr/include/p11-kit-1 -g -ggdb3 -Og -Wall -Wextra -MT pk.lo -MD -MP -MF .deps/pk.Tpo -c pk.c  -fPIC -DPIC -o .libs/pk.o
pk.c: In function ‘_rsa_oaep_encrypt’:
pk.c:1043:32: error: ‘rsa_oaep_sha256_encrypt’ undeclared (first use in this function); did you mean ‘_rsa_oaep_encrypt’?
 1043 |                 encrypt_func = rsa_oaep_sha256_encrypt;
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
      |                                _rsa_oaep_encrypt
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/work_items/1930#note_3667143258
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/namespace/17175643/sent_notifications/6-biwvyxlhl4i4l7l9s0wk8qoeu-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260810/36c81fe6/attachment-0003.html>


More information about the Gnutls-devel mailing list