configure | 37 +++++++ crypto/Makefile.objs | 3 + crypto/afalg.c | 116 +++++++++++++++++++ crypto/afalgpriv.h | 64 +++++++++++ crypto/cipher-afalg.c | 226 ++++++++++++++++++++++++++++++++++++++ crypto/cipher-builtin.c | 125 ++++++++++----------- crypto/cipher-gcrypt.c | 105 ++++++++++-------- crypto/cipher-nettle.c | 84 ++++++++------ crypto/cipher.c | 80 ++++++++++++++ crypto/cipherpriv.h | 56 ++++++++++ crypto/hash-afalg.c | 214 ++++++++++++++++++++++++++++++++++++ crypto/hash-gcrypt.c | 19 +++- crypto/hash-glib.c | 19 +++- crypto/hash-nettle.c | 19 +++- crypto/hash.c | 30 +++++ crypto/hashpriv.h | 39 +++++++ crypto/hmac-gcrypt.c | 42 ++++--- crypto/hmac-glib.c | 63 ++++++----- crypto/hmac-nettle.c | 42 ++++--- crypto/hmac.c | 58 ++++++++++ crypto/hmacpriv.h | 48 ++++++++ include/crypto/cipher.h | 1 + {crypto => include/crypto}/hmac.h | 1 + tests/.gitignore | 3 + tests/Makefile.include | 13 ++- tests/benchmark-crypto-cipher.c | 88 +++++++++++++++ tests/benchmark-crypto-hash.c | 67 +++++++++++ tests/benchmark-crypto-hmac.c | 82 ++++++++++++++ 28 files changed, 1499 insertions(+), 245 deletions(-) create mode 100644 crypto/afalg.c create mode 100644 crypto/afalgpriv.h create mode 100644 crypto/cipher-afalg.c create mode 100644 crypto/cipherpriv.h create mode 100644 crypto/hash-afalg.c create mode 100644 crypto/hashpriv.h create mode 100644 crypto/hmacpriv.h rename {crypto => include/crypto}/hmac.h (99%) create mode 100644 tests/benchmark-crypto-cipher.c create mode 100644 tests/benchmark-crypto-hash.c create mode 100644 tests/benchmark-crypto-hmac.c