... make check-TESTS make[2]: Entering directory `/data/g2/tmp/portage/beecrypt-3.1.0-r2/work/beecrypt-3.1.0/tests' PASS: testmd5 PASS: testsha1 PASS: testsha256 PASS: testhmacmd5 PASS: testhmacsha1 failed vector 1 failed vector 2 failed vector 3 failed vector 4 failed vector 5 failed vector 6 FAIL: testaes PASS: testblowfish PASS: testmp PASS: testmpinv PASS: testdsa PASS: testrsa PASS: testdldp ======================================= 1 of 12 tests failed Please report to bob.deblier@pandora.be ======================================= I modified testaes.c slightly to display src (the input data), dst (the output data) and chk (the expected output data) and the vectors are as follows: ./testaes failed vector 1 src: 00112233445566778899AABBCCDDEEFF dst: 13111D7FE3944A17F307A78B4D2B30C5 chk: 69C4E0D86A7B0430D8CDB78070B4C55A failed vector 2 src: 69C4E0D86A7B0430D8CDB78070B4C55A dst: B7011C03E60506070809150B0C0D4C5B chk: 00112233445566778899AABBCCDDEEFF failed vector 3 src: 00112233445566778899AABBCCDDEEFF dst: A4970A331A78DC09C418C271E3A41D0C chk: DDA97CA4864CDFE06EAF70A0EC0D7191 failed vector 4 src: DDA97CA4864CDFE06EAF70A0EC0D7191 dst: 8E010203DE2E0607A30957290C0C4CBF chk: 00112233445566778899AABBCCDDEEFF failed vector 5 src: 00112233445566778899AABBCCDDEEFF dst: 24FC79CCBFAF79E9371AC23C6D68DE36 chk: 8EA2B7CA516745BFEAFC49904B496089 failed vector 6 src: 8EA2B7CA516745BFEAFC49904B496089 dst: DBD80255B20506487F33000B27A30E0F chk: 00112233445566778899AABBCCDDEEFF which implies the AES encryption isn't working properly (unless the test data is broken). I've CC'ed crypto@ - it might be a good idea to add this package to the crypto herd. Portage 2.1.1_pre4-r2 (hardened/x86/2.6, gcc-3.4.6/hardened, glibc-2.4-r1, 2.6.16-hardened-r10 i686) ================================================================= System uname: 2.6.16-hardened-r10 i686 Mobile Intel(R) Pentium(R) III CPU - M 1200MHz Gentoo Base System version 1.6.15 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.15.92.0.2-r9, 2.15.92.0.2-r10, 2.16-r1, 2.16.1-r3 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-ggdb2 -O2 -march=pentium3 -pipe -Wall -Wstack-protector -Wtrampolines" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-ggdb2 -O2 -march=pentium3 -pipe -Wall -Wstack-protector -Wtrampolines" DISTDIR="/data/g2/distfiles" FEATURES="autoaddcvs autoconfig collision-protect cvs distlocks fixpackages installsources metadata-transfer pax sandbox sfperms sign splitdebug strict stricter test userpriv" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.osuosl.org/" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en it de es fr" MAKEOPTS="-j1" PKGDIR="/data/g2/pkgdir" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/data/g2/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/data/g2/dev-overlays/kevquinn/hardened/toolchain /data/g2/dev-overlays/kevquinn/hardened/xorg /var/portage" SYNC="cvs://kevquinn@cvs.gentoo.org:/var/cvsroot" USE="X a52 aac acl acpi alsa apache2 arts berkdb bluetooth boundschecking bzip2 caps cdr crypt cups dbus dlloader dri dts dv dvd dvdr dvdread encode faad fbcon ffmpeg fortran gcj gif gnokii gtk gtk2 hal hardened hardenedphp ieee1394 imagemagick java javascript jikes jpeg jpeg2k kde kdeenablefinal kerberos ldap libcaca mad madwifi mailwrapper mbox mmx mozilla mp3 mpeg mysql nas nls nptl nsplugin odbc ogg openexr opengl oss pam pda perl pic png postgres python qt qt3 qt4 quicktime readline samba scanner sdl slp sndfile spell sse ssl tcl tcltk tcpd test theora threads tidy tiff tk truetype unicode usb userlocales v4l vorbis wifi x86 xinerama xml xml2 xorg xprint xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB linguas_en linguas_it linguas_de linguas_es linguas_fr userland_GNU video_cards_radeon video_cards_vesa video_cards_vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Oh - and I did try it with the vanilla (i.e. non-hardened) compiler so it's nothing to do with hardened.
*** Bug 142841 has been marked as a duplicate of this bug. ***
Hmmm.... I cannot compile any version with gcc-4.1. Sent a not to upstream, I don't see any activity there...
dev-libs/beecrypt-4.1.2-r1 passes all tests now, compiles on gcc-4 and even none-threading configuration work. Please upgrade, reopen if you have problem with the new release.
(In reply to comment #3) > Hmmm.... I cannot compile any version with gcc-4.1. > Sent a not to upstream, I don't see any activity there... > Please add 4.1.2-r1 to your package keywords. Upstream was already aware of the problems we have with beecrypt. I plan to dedicate the most of the last week of October to beecrypt, helping upstream to close any open issues. Many thanks for your fixes Alon Bar-Lev, and many thanks also to Mike Frysinger for his fixes.