Speed-up SHA-1 NEON assembly implementation

* cipher/sha1-armv7-neon.S: Tweak implementation for speed-up.
--

Benchmark on Cortex-A8 1008Mhz:

New:
                |  nanosecs/byte   mebibytes/sec   cycles/byte
 SHA1           |      7.04 ns/B     135.4 MiB/s      7.10 c/B

Old:
                |  nanosecs/byte   mebibytes/sec   cycles/byte
 SHA1           |      7.79 ns/B     122.4 MiB/s      7.85 c/B

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Drop automake-installed files

Drop files that are provided by automake. They are better to be in sync
with automake used.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Update .gitingore to ignore more files

* .gitignore: add more tests, temporary files, etc to the list of
ignored files.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Implement GOST 28147-89 "gammirovanie" mode

* cipher/Makefile.am, cipher/cipher-internal.h,
 cipher/cipher-ofbgost.c cipher/cipher.c src/gcrypt.h.in: GOST 28147-89
 declares special mode named "gammirovanie". It looks mostly like OFB
 mode, except that encrypted cipherstream is processed a little bit
 more. Implement it as a generic encryption mode (like it is done for
 AESWRAP).
* doc/gcrypt.texi: document GCRY_CIPHER_MODE_OFBGOST.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

start adding ofbgost checks

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

OFBGOST improvements

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

OFBGOST -> CNTGOST

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>

cntgost

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fixup tests ordering for new automake

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Check that secret keys are valid while running basic pubkey tests

* tests/basic.c (do_check_one_pubkey): call gcry_pk_testkey on passed
  secret keys.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
stribog: change endianness

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Add Stribog OIDs from TC26 space

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
XXX: Add PBKDF2 tests for Stribog512 - failing for now

* tests/t-kdf.c (check_pbkdf2): Add Stribog512 test cases.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
XXX: ECC: GOST interprets numbers as LE, so we need to adapt

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Allow to use s-exp with hash with GOST signature code

* cipher/pubkey-util.c (_gcry_pk_util_parse_flaglist): set
  PUBKEY_FLAG_RAW_FLAG if 'gost' flag was parsed.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Add more S-Boxes (from Ukrainian standard)

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Add gost signature tests

* tests/basic.c (check_pubkey_sign_ecdsa): Add testcases for calculating
  GOST R 34.11 signatures.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Draft implementation of GOST IMIT mode

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>