Stef Bon | 27 May 10:35 2016
Picon

Howto use libgrcypt for signature?

Hi,

I'm writing a fuse fs for sftp, and using libgcrypt for encryption,
hmac, digest and dh.

Now I m working on the checking of the signature of H send by the
sender. The client creates also H,
and has to check the signature of H using the public key.

I've got the signature of H from the server, H and the public hostkey
of the server as string (length, buffer).

How to go futher? I know I have to use the function  gcry_pk_verify, but how?

Do I have to convert the strings to some s-expressions using a format first?

Thanks in advance,

Stef
Jérémie Courrèges-Anglas | 26 May 19:02 2016

DCO


Libgcrypt Developer's Certificate of Origin.  Version 1.0
=========================================================

By making a contribution to the Libgcrypt project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the free software license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the
    best of my knowledge, is covered under an appropriate free
    software license and I have the right under that license to
    submit that work with modifications, whether created in whole
    or in part by me, under the same free software license
    (unless I am permitted to submit under a different license),
    as indicated in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including
    all personal information I submit with it, including my
    sign-off) is maintained indefinitely and may be redistributed
    consistent with this project or the free software license(s)
    involved.

Signed-off-by: Jérémie Courrèges-Anglas <jca <at> wxcvbn.org>
(Continue reading)

Jeremie Courreges-Anglas | 9 May 19:17 2016

[libgcrypt-1.7.0] SSE4.1 in crc-intel-pclmul.c


Hi,

(looks like Werner has already forwarded this here, but the archive
shows the mail as mangled:
https://lists.gnupg.org/pipermail/gcrypt-devel/2016-May/003866.html).

compilation of crc-intel-pclmul.c from libgcrypt-1.7.0 fails on
OpenBSD/amd64:

$ ./configure && make
[...]
/bin/sh ../libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -MT
crc-intel-pclmul.lo -MD -MP -MF .deps/crc-intel-pclmul.Tpo -c -o
crc-intel-pclmul.lo crc-intel-pclmul.c
libtool: compile:
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -g -O2 -fvisibility=hidden -Wall -MT
crc-intel-pclmul.lo -MD -MP -MF .deps/crc-intel-pclmul.Tpo -c
crc-intel-pclmul.c -fPIC -DPIC -o .libs/crc-intel-pclmul.o
/tmp//ccK05MkC.s: Assembler messages:
/tmp//ccK05MkC.s:113: Error: no such instruction: `pextrd $2,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:130: Error: no such instruction: `pinsrd $1,-4(%rsi,%rcx),%xmm0'
/tmp//ccK05MkC.s:153: Error: no such instruction: `pextrd $2,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:210: Error: no such instruction: `pextrd $1,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:359: Error: no such instruction: `pextrd $1,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:530: Error: no such instruction: `pinsrd $1,-4(%rsi,%rcx),%xmm0'
*** Error 1 in cipher (Makefile:643 'crc-intel-pclmul.lo')
*** Error 1 in . (Makefile:502 'all-recursive')
*** Error 1 in /tmp/libgcrypt-1.7.0 (Makefile:408 'all')
(Continue reading)

Werner Koch | 9 May 09:43 2016
Picon

[Jeremie Courreges-Anglas] [libgcrypt-1.7.0] SSE4.1 in crc-intel-pclmul.c

From: Jeremie Courreges-Anglas <jca <at> wxcvbn.org>
Subject: [libgcrypt-1.7.0] SSE4.1 in crc-intel-pclmul.c
Date: 2016-05-09 02:22:14 GMT

Hi,

compilation of crc-intel-pclmul.c from libgcrypt-1.7.0 fails on
OpenBSD/amd64:

$ ./configure && make
[...]
/bin/sh ../libtool  --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H  -I. -I..  -I../src -I../src  
-I/usr/local/include -g -O2 -fvisibility=hidden -Wall -MT crc-intel-pclmul.lo -MD -MP -MF
.deps/crc-intel-pclmul.Tpo -c -o crc-intel-pclmul.lo crc-intel-pclmul.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/usr/local/include -g -O2
-fvisibility=hidden -Wall -MT crc-intel-pclmul.lo -MD -MP -MF .deps/crc-intel-pclmul.Tpo -c
crc-intel-pclmul.c  -fPIC -DPIC -o .libs/crc-intel-pclmul.o
/tmp//ccK05MkC.s: Assembler messages:
/tmp//ccK05MkC.s:113: Error: no such instruction: `pextrd $2,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:130: Error: no such instruction: `pinsrd $1,-4(%rsi,%rcx),%xmm0'
/tmp//ccK05MkC.s:153: Error: no such instruction: `pextrd $2,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:210: Error: no such instruction: `pextrd $1,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:359: Error: no such instruction: `pextrd $1,%xmm0,(%rdi)'
/tmp//ccK05MkC.s:530: Error: no such instruction: `pinsrd $1,-4(%rsi,%rcx),%xmm0'
*** Error 1 in cipher (Makefile:643 'crc-intel-pclmul.lo')
*** Error 1 in . (Makefile:502 'all-recursive')
*** Error 1 in /tmp/libgcrypt-1.7.0 (Makefile:408 'all')

(This is after applying the diff from
http://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;a=commitdiff_plain;h=4545372c0f8dd35aef2a7abc12b588ed1a4a0363;hp=eecc081f8ae02c43454abaee4a4f72efaee42745)

The problem is that PCLMUL support is activated, since the OpenBSD
compiler supports it, but the asm also uses SSE4.1 instructions,
which the compiler doesn't support.

One possible way to fix this would be to implement autoconf tests for
the SSE4.1 instructions used above, and disable the PCLMUL CRC code if
appropriate.  Please find attached a patch for this, tested against gcc
from OpenBSD (pclmul/no sse4.1) and clang-3.7.1 (pclmul/sse4.1).


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
_______________________________________________
Gnupg-devel mailing list
Gnupg-devel <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

--

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
by NIIBE Yutaka | 6 May 06:24 2016
Picon

[git] GCRYPT - branch, master, updated. libgcrypt-1.7.0-4-gc7430aa

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  c7430aa752232aa690c5d8f16575a345442ad8d7 (commit)
      from  ee5a32226a7ca4ab067864e06623fc11a1768900 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c7430aa752232aa690c5d8f16575a345442ad8d7
Author: NIIBE Yutaka <gniibe <at> fsij.org>
Date:   Fri May 6 13:21:17 2016 +0900

    ecc: Fix ecc_verify for cofactor support.

    * cipher/ecc.c (ecc_verify): Fix the argument for cofactor "h".

    --

    Thanks to onitake.
    GnuPG-bug-id: 2347
    Signed-off-by: NIIBE Yutaka <gniibe <at> fsij.org>

diff --git a/cipher/ecc.c b/cipher/ecc.c
index a437a1f..b09902e 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
 <at>  <at>  -1071,7 +1071,7  <at>  <at>  ecc_verify (gcry_sexp_t s_sig, gcry_sexp_t s_data, gcry_sexp_t s_keyparms)
   if ((ctx.flags & PUBKEY_FLAG_PARAM))
     rc = sexp_extract_param (s_keyparms, NULL, "-p?a?b?g?n?h?/q",
                              &pk.E.p, &pk.E.a, &pk.E.b, &mpi_g, &pk.E.n,
-                             &pk.E.n, &mpi_q, NULL);
+                             &pk.E.h, &mpi_q, NULL);
   else
     rc = sexp_extract_param (s_keyparms, NULL, "/q",
                              &mpi_q, NULL);

-----------------------------------------------------------------------

Summary of changes:
 cipher/ecc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

hooks/post-receive
--

-- 
The GNU crypto library
http://git.gnupg.org

_______________________________________________
Gnupg-commits mailing list
Gnupg-commits <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
NIIBE Yutaka | 2 May 01:50 2016

Re: libgcrypt-1.7 fails self-test for all 'basic' with 'Checksum error' (log attached)

On 04/29/2016 03:30 PM, Werner Koch wrote:
>    - check whether this bug has been fixed in a later gcc version

Just FYI, I couldn't reproduce this bug on Debian (with 5.3.1-16 and
with 6.0.1-2).
--

-- 
Somchai Smythe | 27 Apr 03:42 2016
Picon

libgcrypt-1.7 fails self-test for all 'basic' with 'Checksum error' (log attached)

Note: If replying to mailing list please cc me since I'm not subscribed.

+ LINGUAS='en th'
+ CC='gcc -std=gnu11'
+ CFLAGS='-O3 -m64 -march=x86-64 -mtune=generic -pipe'
+ ./configure --prefix=/usr --mandir=/usr/man --infodir=/usr/info
--sysconfdir=/etc --disable-static --with-pic
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc -std=gnu11
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu11 accepts -g... yes
checking for gcc -std=gnu11 option to accept ISO C89... none needed
checking whether gcc -std=gnu11 understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc -std=gnu11... gcc3
checking how to run the C preprocessor... gcc -std=gnu11 -E
checking dependency style of gcc -std=gnu11... gcc3
checking for library containing strerror... none required
checking for gawk... (cached) gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cc for build... gcc -std=gnu11
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc -std=gnu11... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to
x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver  <at> FILE support...  <at> 
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu11 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu11 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu11 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu11 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu11 static flag -static works... yes
checking if gcc -std=gnu11 supports -c -o file.o... yes
checking if gcc -std=gnu11 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu11 linker (/usr/bin/ld -m elf_x86_64)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for windres... no
checking whether byte ordering is bigendian... no
checking size of unsigned short... 2
checking size of unsigned int... 4
checking size of unsigned long... 8
checking size of unsigned long long... 8
checking size of void *... 8
checking for uintptr_t... yes
checking for UINT64_C... yes
checking size of uint64_t... 8
checking which symmetric ciphers to include... arcfour blowfish cast5
des aes twofish serpent rfc2268 seed camellia idea salsa20 gost28147
chacha20
checking which public-key ciphers to include... dsa elgamal rsa ecc
checking which message digests to include... crc gostr3411-94  md4 md5
rmd160 sha1 sha256 sha512 sha3 tiger whirlpool stribog
checking which key derivation functions to include... s2k pkdf2 scrypt
checking which random module to use... default
checking whether use of /dev/random is requested... yes
checking whether the experimental random daemon is requested... no
checking whether MPI assembler modules are requested... yes
checking whether memory guard is requested... no
checking whether to run large data tests... no
checking whether use of capabilities is requested... no
checking whether a HMAC binary check is requested... no
checking whether padlock support is requested... yes
checking whether AESNI support is requested... yes
checking whether PCLMUL support is requested... yes
checking whether DRNG support is requested... yes
checking whether AVX support is requested... yes
checking whether AVX2 support is requested... yes
checking whether NEON support is requested... yes
checking whether a -O flag munging is requested... yes
checking whether to enable AMD64 as(1) feature detection... yes
checking for gpg-error-config... /usr/bin/gpg-error-config
checking for GPG Error - version >= 1.13... yes (1.21)
checking for pthread_create in -lpthread... yes
checking for library containing setsockopt... none required
checking for library containing setsockopt... (cached) none required
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking return type of signal handlers... void
checking whether sys_siglist is declared... yes
checking for pid_t... yes
checking for byte typedef... no
checking for ushort typedef... yes
checking for ulong typedef... yes
checking for u16 typedef... no
checking for u32 typedef... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for socklen_t... yes
checking for __builtin_bswap32... yes
checking for __builtin_bswap64... yes
checking for __builtin_ctz... yes
checking whether the variable length arrays are supported... yes
checking whether the visibility attribute is supported... yes
checking for broken visibility attribute... no
checking for broken alias attribute... no
checking if gcc supports -fvisibility=hidden... yes
checking whether the GCC style aligned attribute is supported... yes
checking whether the GCC style packed attribute is supported... yes
checking whether 'asm' assembler keyword is supported... yes
checking whether '__asm__' assembler keyword is supported... yes
checking whether inline assembly memory barrier is supported... yes
checking whether GCC assembler is compatible for ARM assembly
implementations... no
checking for _ prefix in compiled symbols... no
checking architecture and mpi assembler functions... x86
checking whether compiler supports 'ms_abi' function attribute... yes
checking whether compiler supports 'sysv_abi' function attribute... yes
checking whether default calling convention is 'ms_abi'... no
checking whether default calling convention is 'sysv_abi'... yes
checking whether GCC inline assembler supports SSSE3 instructions... yes
checking whether GCC inline assembler supports PCLMUL instructions... yes
checking whether GCC inline assembler supports AVX instructions... yes
checking whether GCC inline assembler supports AVX2 instructions... yes
checking whether GCC inline assembler supports BMI2 instructions... yes
checking whether GCC assembler handles division correctly... yes
checking whether GCC assembler is compatible for amd64 assembly
implementations... yes
checking whether GCC assembler is compatible for Intel syntax assembly
implementations... yes
checking whether compiler is configured for ARMv6 or newer architecture... n/a
checking whether GCC inline assembler supports NEON instructions... n/a
checking for vprintf... yes
checking for _doprnt... no
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strtoul... yes
checking for memmove... yes
checking for stricmp... no
checking for atexit... yes
checking for raise... yes
checking for strerror... yes
checking for rand... yes
checking for mmap... yes
checking for getpagesize... yes
checking for sysconf... yes
checking for waitpid... yes
checking for wait4... yes
checking for gettimeofday... yes
checking for getrusage... yes
checking for gethrtime... no
checking for clock_gettime... yes
checking for syslog... yes
checking for fcntl... yes
checking for ftruncate... yes
checking for flockfile... yes
checking for mlock... yes
checking for sysconf... (cached) yes
checking for getpagesize... (cached) yes
checking whether mlock is broken... no
checking for getpid... yes
checking for clock... yes
checking for random device... yes
checking whether non excutable stack support is requested... yes
checking whether assembler supports --noexecstack option... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating compat/Makefile
config.status: creating mpi/Makefile
config.status: creating cipher/Makefile
config.status: creating random/Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/gcrypt.h
config.status: creating src/libgcrypt-config
config.status: creating src/versioninfo.rc
config.status: creating tests/Makefile
config.status: creating tests/hashtest-256g
config.status: creating config.h
config.status: linking mpi/amd64/mpih-add1.S to mpi/mpih-add1-asm.S
config.status: linking mpi/amd64/mpih-sub1.S to mpi/mpih-sub1-asm.S
config.status: linking mpi/amd64/mpih-mul1.S to mpi/mpih-mul1-asm.S
config.status: linking mpi/amd64/mpih-mul2.S to mpi/mpih-mul2-asm.S
config.status: linking mpi/amd64/mpih-mul3.S to mpi/mpih-mul3-asm.S
config.status: linking mpi/amd64/mpih-lshift.S to mpi/mpih-lshift-asm.S
config.status: linking mpi/amd64/mpih-rshift.S to mpi/mpih-rshift-asm.S
config.status: linking mpi/generic/mpi-asm-defs.h to mpi/mpi-asm-defs.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing gcrypt-conf commands

        Libgcrypt v1.7.0 has been configured as follows:

        Platform:                  GNU/Linux (x86_64-unknown-linux-gnu)
        Hardware detection module: hwf-x86
        Enabled cipher algorithms: arcfour blowfish cast5 des aes twofish
                                   serpent rfc2268 seed camellia idea salsa20
                                   gost28147 chacha20
        Enabled digest algorithms: crc gostr3411-94 md4 md5 rmd160 sha1
                                   sha256 sha512 sha3 tiger whirlpool stribog

        Enabled kdf algorithms:    s2k pkdf2 scrypt
        Enabled pubkey algorithms: dsa elgamal rsa ecc
        Random number generator:   default
        Using linux capabilities:  no
        Try using Padlock crypto:  yes
        Try using AES-NI crypto:   yes
        Try using Intel PCLMUL:    yes
        Try using DRNG (RDRAND):   yes
        Try using Intel AVX:       yes
        Try using Intel AVX2:      yes
        Try using ARM NEON:        n/a

Then a normal build with a few warnings.
Then make check fails like this:

+ make check
Making check in compat
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/compat'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/compat'
Making check in mpi
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/mpi'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/mpi'
Making check in cipher
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/cipher'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/cipher'
Making check in random
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/random'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/random'
Making check in src
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/src'
Making check in doc
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/doc'
make  check-am
make[2]: Entering directory '/home/tmp/libgcrypt-1.7.0/doc'
make[2]: Nothing to be done for 'check-am'.
make[2]: Leaving directory '/home/tmp/libgcrypt-1.7.0/doc'
make[1]: Leaving directory '/home/tmp/libgcrypt-1.7.0/doc'
Making check in tests
make[1]: Entering directory '/home/tmp/libgcrypt-1.7.0/tests'
make  check-TESTS
make[2]: Entering directory '/home/tmp/libgcrypt-1.7.0/tests'
version:1.7.0:
ciphers:arcfour:blowfish:cast5:des:aes:twofish:serpent:rfc2268:seed:camellia:idea:salsa20:gost28147:chacha20:
pubkeys:dsa:elgamal:rsa:ecc:
digests:crc:gostr3411-94::md4:md5:rmd160:sha1:sha256:sha512:sha3:tiger:whirlpool:stribog:
rnd-mod:linux:
cpu-arch:x86:
mpi-asm:amd64/mpih-add1.S:amd64/mpih-sub1.S:amd64/mpih-mul1.S:amd64/mpih-mul2.S:amd64/mpih-mul3.S:amd64/mpih-lshift.S:amd64/mpih-rshift.S:
hwflist:intel-cpu:intel-fast-shld:intel-bmi2:intel-ssse3:intel-sse4.1:intel-pclmul:intel-aesni:intel-rdrand:intel-avx:intel-avx2:
fips-mode:n:n:
rng-type:standard:1:
PASS: version
PASS: mpitests
PASS: t-sexp
PASS: t-convert
PASS: t-mpi-bit
PASS: t-mpi-point
PASS: curves
PASS: t-lock
PASS: prime
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: 28 23 38 45 2b fd 42 45 43 64 7e 67 7f f4 8b cd
computed: 02 c3 67 44 93 ce 3f 19 dc d4 17 f0 22 9c e3 c6
cipher-ocb, encrypt tag mismatch (large, algo 310)
cipher-ocb, gcry_cipher_checktag failed (large, algo 310): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: ee ca e5 39 27 2d 33 e7 79 74 b0 1d 37 12 d5 6c
computed: 20 b9 b8 3e 07 af de e6 12 16 42 56 6c ab 55 c8
cipher-ocb, encrypt tag mismatch (large, algo 311)
cipher-ocb, gcry_cipher_checktag failed (large, algo 311): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 39 39 d0 2d 05 68 74 ee 18 6b ea 3d 0b d3 58 ae
computed: bc d9 bd f2 bc eb e2 4c 38 0e 78 8c af 9e d0 3c
cipher-ocb, encrypt tag mismatch (large, algo 312)
cipher-ocb, gcry_cipher_checktag failed (large, algo 312): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 3c fb 66 14 3c c8 6c 67 26 b8 23 eb af 43 98 69
computed: c9 d3 37 c8 c0 eb dc 5c 6b f5 ff 55 31 89 e1 32
cipher-ocb, encrypt tag mismatch (large, algo 304)
cipher-ocb, gcry_cipher_checktag failed (large, algo 304): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: 5e 62 27 c5 32 c3 1d e6 2e 65 e7 d6 fb 05 d7 b2
computed: fd cc 11 3a 3e 80 a8 2e ad f9 2e ee 31 35 5d 5a
cipher-ocb, encrypt tag mismatch (large, algo 305)
cipher-ocb, gcry_cipher_checktag failed (large, algo 305): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
expected: e7 8b e6 d4 2f 7a 36 4c ba ee 20 e2 68 f4 cb cc
computed: ff b9 14 87 51 21 71 82 c0 17 e4 a5 f8 ac 9f cd
cipher-ocb, encrypt tag mismatch (large, algo 306)
cipher-ocb, gcry_cipher_checktag failed (large, algo 306): Checksum error
FAIL: basic

and the rest passes.

I tried on a home-built system (LFS derived) and got the failure, so
tried again on an up-to-date Ubuntu 16.04 system and got identical
results (the failure).  I'm on an adm64 platform if it matters.

Full 'make check' output from Ubuntu 16.04 system attached.
Attachment (log): application/octet-stream, 58 KiB
_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
by Werner Koch | 26 Apr 15:47 2016
Picon

[git] GCRYPT - branch, master, updated. libgcrypt-1.7.0-3-gee5a322

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  ee5a32226a7ca4ab067864e06623fc11a1768900 (commit)
      from  4545372c0f8dd35aef2a7abc12b588ed1a4a0363 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ee5a32226a7ca4ab067864e06623fc11a1768900
Author: Werner Koch <wk <at> gnupg.org>
Date:   Tue Apr 26 15:46:30 2016 +0200

    random: Try to use getrandom() instead of /dev/urandom (Linux only).

    * configure.ac: Check for syscall.
    * random/rndlinux.c [HAVE_SYSCALL]: Include sys/syscall.h.
    (_gcry_rndlinux_gather_random): Use getrandom is available.

    Signed-off-by: Werner Koch <wk <at> gnupg.org>

diff --git a/configure.ac b/configure.ac
index 5f9f711..ad06dfd 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -1514,7 +1514,7  <at>  <at>  AC_CHECK_FUNCS(strtoul memmove stricmp atexit raise)
 # Other checks
 AC_CHECK_FUNCS(strerror rand mmap getpagesize sysconf waitpid wait4)
 AC_CHECK_FUNCS(gettimeofday getrusage gethrtime clock_gettime syslog)
-AC_CHECK_FUNCS(fcntl ftruncate flockfile)
+AC_CHECK_FUNCS(syscall fcntl ftruncate flockfile)

 GNUPG_CHECK_MLOCK

diff --git a/random/rndlinux.c b/random/rndlinux.c
index 0cb65df..592b9ac 100644
--- a/random/rndlinux.c
+++ b/random/rndlinux.c
 <at>  <at>  -32,6 +32,10  <at>  <at> 
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
+#if defined(__linux__) && defined(HAVE_SYSCALL)
+# include <sys/syscall.h>
+#endif
+
 #include "types.h"
 #include "g10lib.h"
 #include "rand-internal.h"
 <at>  <at>  -232,6 +236,50  <at>  <at>  _gcry_rndlinux_gather_random (void (*add)(const void*, size_t,
             }
         }

+      /* If we have a modern Linux kernel and we want to read from the
+       * the non-blocking /dev/urandom, we first try to use the new
+       * getrandom syscall.  That call guarantees that the kernel's
+       * RNG has been properly seeded before returning any data.  This
+       * is different from /dev/urandom which may, due to its
+       * non-blocking semantics, return data even if the kernel has
+       * not been properly seeded.  Unfortunately we need to use a
+       * syscall and not a new device and thus we are not able to use
+       * select(2) to have a timeout. */
+#if defined(__linux__) && defined(HAVE_SYSCALL) && defined(__NR_getrandom)
+      if (fd == fd_urandom)
+        {
+          long ret;
+          size_t nbytes;
+
+          do
+            {
+              nbytes = length < sizeof(buffer)? length : sizeof(buffer);
+              if (nbytes > 256)
+                nbytes = 256;
+              ret = syscall (__NR_getrandom,
+                             (void*)buffer, (size_t)nbytes, (unsigned int)0);
+            }
+          while (ret == -1 && errno == EINTR);
+          if (ret == -1 && errno == ENOSYS)
+            ; /* The syscall is not supported - fallback to /dev/urandom.  */
+          else
+            { /* The syscall is supported.  Some sanity checks.  */
+              if (ret == -1)
+                log_fatal ("unexpected error from getrandom: %s\n",
+                           strerror (errno));
+              else if (ret != nbytes)
+                log_fatal ("getrandom returned only"
+                           " %ld of %zu requested bytes\n", ret, nbytes);
+
+              log_debug ("getrandom returned %zu requested bytes\n", nbytes);
+              (*add)(buffer, nbytes, origin);
+              length -= nbytes;
+              continue; /* until LENGTH is zero.  */
+            }
+          log_debug ("syscall(getrandom) not supported; errno = %d\n", errno);
+        }
+#endif
+
       do
         {
           size_t nbytes;

-----------------------------------------------------------------------

Summary of changes:
 configure.ac      |  2 +-
 random/rndlinux.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 1 deletion(-)

hooks/post-receive
--

-- 
The GNU crypto library
http://git.gnupg.org

_______________________________________________
Gnupg-commits mailing list
Gnupg-commits <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
Andreas Metzler | 21 Apr 18:53 2016
Picon

libgcrypt 1.7.0 segfault (libcrypt-gcrypt-perl)

Hello,

libcrypt-gcrypt-perl triggers a segfault in libgcrypt 1.7.0. This does
not show with libgcrypt 1.6.

Quoting Niko Tyni ----------------------------------------------
The failure can be triggered with this:

 % perl -MCrypt::GCrypt -e
'$c=Crypt::GCrypt->new(type=>"cipher",algorithm=>"aes");$c->start("encrypting"); $c->encrypt("a").$c->finish'

which gets a SIGSEGV in libgcrypt. Backtrace below.

Adding a $c->setkey('whatever') before calling encrypt() makes it go
away. The test isn't trying to do anything meaningful at that point,
it's just checking that it gets a warning when not calling $c->finish()
or something like that. Later tests of actual encrypting pass.

Is this something to be fixed on the libgcrypt side?

I guess I can come up with a C test case if needed, but maybe you
can cook up one easier? The perl side setkey() just seems to wrap
gcry_cipher_setkey().

  Core was generated by `debugperl -Iblib/lib -Iblib/arch -MCrypt::GCrypt -e $c=Crypt::GCrypt->new(type='.
  Program terminated with signal SIGSEGV, Segmentation fault.
  #0  0x0000000000000000 in ?? ()
  (gdb) bt
  #0  0x0000000000000000 in ?? ()
  #1  0x00007f5a5bce89c5 in _gcry_aes_cbc_enc (context=0x280a8e0, iv=0x280a6d0 "",
outbuf_arg=<optimized out>, 
      inbuf_arg=<optimized out>, nblocks=1, cbc_mac=0) at ../../cipher/rijndael.c:811
  #2  0x00007f5a5bcc6565 in _gcry_cipher_cbc_encrypt (c=0x280a660, 
      outbuf=outbuf <at> entry=0x27cf850 "a", '\017' <repeats 15 times>, outbuflen=outbuflen <at> entry=16, 
      inbuf=inbuf <at> entry=0x2840650 "a", '\017' <repeats 15 times>, inbuflen=<optimized out>)
      at ../../cipher/cipher-cbc.c:65
  #3  0x00007f5a5bcc5400 in cipher_encrypt (inbuflen=<optimized out>, 
      inbuf=0x2840650 "a", '\017' <repeats 15 times>, outbuflen=16, 
      outbuf=0x27cf850 "a", '\017' <repeats 15 times>, c=<optimized out>) at ../../cipher/cipher.c:826
  #4  _gcry_cipher_encrypt (h=<optimized out>, out=out <at> entry=0x27cf850, outsize=outsize <at> entry=16, 
      in=in <at> entry=0x2840650, inlen=<optimized out>, inlen <at> entry=16) at ../../cipher/cipher.c:913
  #5  0x00007f5a5bcba91e in gcry_cipher_encrypt (h=<optimized out>, out=0x27cf850, outsize=16,
in=0x2840650, 
      inlen=16) at ../../src/visibility.c:828
  #6  0x00007f5a5bfc1a53 in XS_Crypt__GCrypt_finish (my_perl=0x2785010, cv=0x27d47f0) at GCrypt.xs:439
  #7  0x000000000050f456 in Perl_pp_entersub (my_perl=0x2785010) at pp_hot.c:3270
  #8  0x00000000004da689 in Perl_runops_debug (my_perl=0x2785010) at dump.c:2234
  #9  0x0000000000450e92 in S_run_body (oldscope=1, my_perl=0x2785010) at perl.c:2453
  #10 perl_run (my_perl=0x2785010) at perl.c:2376
  #11 0x000000000041d09b in main (argc=6, argv=0x7ffc0f9ebfe8, env=0x7ffc0f9ec020) at perlmain.c:116
----------------------------------------------------------------

cu Andreas
--

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
by Werner Koch | 19 Apr 20:06 2016
Picon

[git] GCRYPT - branch, master, updated. libgcrypt-1.7.0-2-g4545372

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  4545372c0f8dd35aef2a7abc12b588ed1a4a0363 (commit)
      from  eecc081f8ae02c43454abaee4a4f72efaee42745 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4545372c0f8dd35aef2a7abc12b588ed1a4a0363
Author: Werner Koch <wk <at> gnupg.org>
Date:   Tue Apr 19 20:05:07 2016 +0200

    asm fix for older gcc versions.

    * cipher/crc-intel-pclmul.c: Remove extra trailing colon from
    asm statements.
    --

    gcc 4.2 is not able to grok a third colon without clobber
    expressions.  Reported for FreeBSD 9.

    GnuPG-bug-id: 2326
    Signed-off-by: Werner Koch <wk <at> gnupg.org>

diff --git a/cipher/crc-intel-pclmul.c b/cipher/crc-intel-pclmul.c
index 5002f80..c034e2e 100644
--- a/cipher/crc-intel-pclmul.c
+++ b/cipher/crc-intel-pclmul.c
 <at>  <at>  -143,7 +143,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [inbuf_2] "m" (inbuf[2 * 16]),
 		      [inbuf_3] "m" (inbuf[3 * 16]),
 		      [crc] "m" (*pcrc)
-		    : );
+		    );

       inbuf += 4 * 16;
       inlen -= 4 * 16;
 <at>  <at>  -151,7 +151,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
       asm volatile ("movdqa %[k1k2], %%xmm4\n\t"
 		    :
 		    : [k1k2] "m" (consts->k[1 - 1])
-		    : );
+		    );

       /* Fold by 4. */
       while (inlen >= 4 * 16)
 <at>  <at>  -188,7 +188,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 			  [inbuf_1] "m" (inbuf[1 * 16]),
 			  [inbuf_2] "m" (inbuf[2 * 16]),
 			  [inbuf_3] "m" (inbuf[3 * 16])
-			: );
+			);

 	  inbuf += 4 * 16;
 	  inlen -= 4 * 16;
 <at>  <at>  -199,7 +199,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    :
 		    : [k3k4] "m" (consts->k[3 - 1]),
 		      [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       /* Fold 4 to 1. */

 <at>  <at>  -222,7 +222,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    "pxor %%xmm4, %%xmm0\n\t"
 		    :
 		    :
-		    : );
+		    );
     }
   else
     {
 <at>  <at>  -236,7 +236,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [crc] "m" (*pcrc),
 		      [k3k4] "m" (consts->k[3 - 1]),
 		      [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       inbuf += 16;
       inlen -= 16;
 <at>  <at>  -256,7 +256,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 			"pxor %%xmm1, %%xmm0\n\t"
 			:
 			: [inbuf] "m" (*inbuf)
-			: );
+			);

 	  inbuf += 16;
 	  inlen -= 16;
 <at>  <at>  -288,7 +288,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [mask] "m" (crc32_partial_fold_input_mask[inlen]),
 		      [shl_shuf] "m" (crc32_refl_shuf_shift[inlen]),
 		      [shr_shuf] "m" (crc32_refl_shuf_shift[inlen + 16])
-		    : );
+		    );

       inbuf += inlen;
       inlen -= inlen;
 <at>  <at>  -318,7 +318,7  <at>  <at>  crc32_reflected_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		"pextrd $2, %%xmm0, %[out]\n\t"
 		: [out] "=m" (*pcrc)
 		: [k5] "m" (consts->k[5 - 1])
-	        : );
+	        );
 }

 static inline void
 <at>  <at>  -333,7 +333,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
       asm volatile ("movdqa %[my_p], %%xmm5\n\t"
 		    :
 		    : [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       if (inlen == 1)
 	{
 <at>  <at>  -372,7 +372,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    : [out] "=m" (*pcrc)
 		    : [in] "rm" (data),
 		      [crc] "rm" (crc)
-		    : );
+		    );
     }
   else if (inlen == 4)
     {
 <at>  <at>  -391,7 +391,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    : [in] "m" (*inbuf),
 		      [crc] "m" (*pcrc),
 		      [my_p] "m" (consts->my_p[0])
-		    : );
+		    );
     }
   else
     {
 <at>  <at>  -404,14 +404,14  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [crc] "m" (*pcrc),
 		      [my_p] "m" (consts->my_p[0]),
 		      [k3k4] "m" (consts->k[3 - 1])
-		    : );
+		    );

       if (inlen >= 8)
 	{
 	  asm volatile ("movq %[inbuf], %%xmm0\n\t"
 			:
 			: [inbuf] "m" (*inbuf)
-			: );
+			);
 	  if (inlen > 8)
 	    {
 	      asm volatile (/*"pinsrq $1, %[inbuf_tail], %%xmm0\n\t"*/
 <at>  <at>  -422,7 +422,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 			    : [inbuf_tail] "m" (inbuf[inlen - 8]),
 			      [merge_shuf] "m"
 				(*crc32_merge9to15_shuf[inlen - 9])
-			    : );
+			    );
 	    }
 	}
       else
 <at>  <at>  -435,7 +435,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 			  [inbuf_tail] "m" (inbuf[inlen - 4]),
 			  [merge_shuf] "m"
 			    (*crc32_merge5to7_shuf[inlen - 5])
-			: );
+			);
 	}

       /* Final fold. */
 <at>  <at>  -465,7 +465,7  <at>  <at>  crc32_reflected_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    "pextrd $2, %%xmm0, %[out]\n\t"
 		    : [out] "=m" (*pcrc)
 		    : [k5] "m" (consts->k[5 - 1])
-		    : );
+		    );
     }
 }

 <at>  <at>  -477,7 +477,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
   asm volatile ("movdqa %[bswap], %%xmm7\n\t"
 		:
 		: [bswap] "m" (*crc32_bswap_shuf)
-		: );
+		);

   if (inlen >= 8 * 16)
     {
 <at>  <at>  -497,7 +497,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [inbuf_2] "m" (inbuf[2 * 16]),
 		      [inbuf_3] "m" (inbuf[3 * 16]),
 		      [crc] "m" (*pcrc)
-		    : );
+		    );

       inbuf += 4 * 16;
       inlen -= 4 * 16;
 <at>  <at>  -505,7 +505,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
       asm volatile ("movdqa %[k1k2], %%xmm4\n\t"
 		    :
 		    : [k1k2] "m" (consts->k[1 - 1])
-		    : );
+		    );

       /* Fold by 4. */
       while (inlen >= 4 * 16)
 <at>  <at>  -546,7 +546,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 			  [inbuf_1] "m" (inbuf[1 * 16]),
 			  [inbuf_2] "m" (inbuf[2 * 16]),
 			  [inbuf_3] "m" (inbuf[3 * 16])
-			: );
+			);

 	  inbuf += 4 * 16;
 	  inlen -= 4 * 16;
 <at>  <at>  -557,7 +557,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    :
 		    : [k3k4] "m" (consts->k[3 - 1]),
 		      [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       /* Fold 4 to 1. */

 <at>  <at>  -580,7 +580,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		    "pxor %%xmm4, %%xmm0\n\t"
 		    :
 		    :
-		    : );
+		    );
     }
   else
     {
 <at>  <at>  -595,7 +595,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [crc] "m" (*pcrc),
 		      [k3k4] "m" (consts->k[3 - 1]),
 		      [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       inbuf += 16;
       inlen -= 16;
 <at>  <at>  -616,7 +616,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 			"pxor %%xmm1, %%xmm0\n\t"
 			:
 			: [inbuf] "m" (*inbuf)
-			: );
+			);

 	  inbuf += 16;
 	  inlen -= 16;
 <at>  <at>  -650,7 +650,7  <at>  <at>  crc32_bulk (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [mask] "m" (crc32_partial_fold_input_mask[inlen]),
 		      [shl_shuf] "m" (crc32_refl_shuf_shift[32 - inlen]),
 		      [shr_shuf] "m" (crc32_shuf_shift[inlen + 16])
-		    : );
+		    );

       inbuf += inlen;
       inlen -= inlen;
 <at>  <at>  -697,7 +697,7  <at>  <at>  crc32_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
       asm volatile ("movdqa %[my_p], %%xmm5\n\t"
 		    :
 		    : [my_p] "m" (consts->my_p[0])
-		    : );
+		    );

       if (inlen == 1)
 	{
 <at>  <at>  -774,14 +774,14  <at>  <at>  crc32_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 		      [crc] "m" (*pcrc),
 		      [my_p] "m" (consts->my_p[0]),
 		      [k3k4] "m" (consts->k[3 - 1])
-		    : );
+		    );

       if (inlen >= 8)
 	{
 	  asm volatile ("movq %[inbuf], %%xmm0\n\t"
 			:
 			: [inbuf] "m" (*inbuf)
-			: );
+			);
 	  if (inlen > 8)
 	    {
 	      asm volatile (/*"pinsrq $1, %[inbuf_tail], %%xmm0\n\t"*/
 <at>  <at>  -792,7 +792,7  <at>  <at>  crc32_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 			    : [inbuf_tail] "m" (inbuf[inlen - 8]),
 			      [merge_shuf] "m"
 				(*crc32_merge9to15_shuf[inlen - 9])
-			    : );
+			    );
 	    }
 	}
       else
 <at>  <at>  -805,7 +805,7  <at>  <at>  crc32_less_than_16 (u32 *pcrc, const byte *inbuf, size_t inlen,
 			  [inbuf_tail] "m" (inbuf[inlen - 4]),
 			  [merge_shuf] "m"
 			    (*crc32_merge5to7_shuf[inlen - 5])
-			: );
+			);
 	}

       /* Final fold. */

-----------------------------------------------------------------------

Summary of changes:
 cipher/crc-intel-pclmul.c | 62 +++++++++++++++++++++++------------------------
 1 file changed, 31 insertions(+), 31 deletions(-)

hooks/post-receive
--

-- 
The GNU crypto library
http://git.gnupg.org

_______________________________________________
Gnupg-commits mailing list
Gnupg-commits <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits
by Werner Koch | 15 Apr 16:07 2016
Picon

[git] GCRYPT - branch, master, updated. libgcrypt-1.7.0-1-geecc081

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  eecc081f8ae02c43454abaee4a4f72efaee42745 (commit)
       via  795f9cb090c776658a0e3117996e3fb7e2ebd94a (commit)
      from  1737c546dc7268fa9edcd4a23b7439c56d37ee4f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 AUTHORS               |  19 +++--
 NEWS                  | 209 ++++++++++++++++++++++++++++++++++++--------------
 README                |  54 +++++--------
 compat/compat.c       |   6 +-
 configure.ac          |   5 +-
 src/gcrypt.h.in       |   6 +-
 src/versioninfo.rc.in |   2 +-
 7 files changed, 186 insertions(+), 115 deletions(-)

hooks/post-receive
--

-- 
The GNU crypto library
http://git.gnupg.org

_______________________________________________
Gnupg-commits mailing list
Gnupg-commits <at> gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits

Gmane