summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.c-style1
-rw-r--r--.gitattributes1
-rw-r--r--.gitignore74
-rw-r--r--.gitlab-ci.yml230
-rw-r--r--config.h.in274
-rwxr-xr-xconfigure10143
-rw-r--r--desdata.stamp (renamed from testsuite/test-rules.stamp)0
-rw-r--r--eccparams.c38
-rw-r--r--examples/.c-style1
-rw-r--r--examples/.gitignore19
-rw-r--r--index.html101
-rw-r--r--keymap.h138
-rwxr-xr-xlist-obj-sizes.awk67
-rw-r--r--misc/.gitignore6
-rw-r--r--misc/Makefile9
-rwxr-xr-xmisc/c8916
-rw-r--r--misc/ecc-formulas.tex337
-rw-r--r--misc/ecc-ref.gp131
-rw-r--r--misc/nettle-2.0.tar.gz.directive3
-rw-r--r--misc/nettle-2.1.tar.gz.directive3
-rw-r--r--misc/nettle-2.2.tar.gz.directive3
-rw-r--r--misc/nettle-2.3.tar.gz.directive3
-rw-r--r--misc/nettle-2.4.tar.gz.directive3
-rw-r--r--misc/nettle-2.5.tar.gz.directive3
-rw-r--r--misc/nettle-3.1.1.tar.gz.directive3
-rw-r--r--misc/nettle-3.1.tar.gz.directive3
-rw-r--r--misc/nettle-3.2.tar.gz.directive3
-rw-r--r--misc/plan.html145
-rwxr-xr-xmisc/poly1305-gen-example.pike42
-rw-r--r--misc/serpent-sbox0i.dot46
-rw-r--r--misc/serpent-sbox1i.dot46
-rw-r--r--misc/serpent-sbox2i.dot44
-rw-r--r--misc/serpent-sbox3.dot20
-rw-r--r--misc/serpent-sbox3i.dot42
-rw-r--r--misc/serpent-sbox4.dot56
-rw-r--r--misc/serpent-sbox4i.dot42
-rw-r--r--misc/serpent-sbox5.dot42
-rw-r--r--misc/serpent-sbox5i.dot42
-rw-r--r--misc/serpent-sbox6.dot46
-rw-r--r--misc/serpent-sbox6i.dot57
-rw-r--r--misc/serpent-sbox7.dot60
-rw-r--r--misc/serpent-sbox7i.dot52
-rw-r--r--misc/todo.css67
-rw-r--r--misc/umac/.gitignore1
-rw-r--r--misc/umac/Makefile4
-rwxr-xr-xmisc/umac/mkvectors90
-rw-r--r--misc/umac/repeat.py19
-rw-r--r--misc/umac/rijndael.py376
-rw-r--r--misc/umac/umac.py154
-rw-r--r--misc/umac/vectors.out432
-rwxr-xr-xmisc/xenofarm.sh238
-rw-r--r--nettle.html8867
-rw-r--r--nettle.info7665
-rw-r--r--nettle.pdfbin0 -> 605399 bytes
-rw-r--r--rotors.h82
-rw-r--r--stamp-h.in1
-rw-r--r--testsuite/.c-style1
-rw-r--r--testsuite/.gitignore122
-rw-r--r--testsuite/aes-test.out1382
-rw-r--r--testsuite/shake.awk14
-rw-r--r--testsuite/yarrow-test.out4617
-rw-r--r--tools/.c-style1
-rw-r--r--tools/.gdbinit1
-rw-r--r--tools/.gitignore7
-rw-r--r--x86/sha1-compress.nlms1684
-rw-r--r--x86/sha1-f1-noexp.nlms76
-rw-r--r--x86/sha1-f2.nlms81
67 files changed, 27170 insertions, 11207 deletions
diff --git a/.c-style b/.c-style
deleted file mode 100644
index 1112b4b1..00000000
--- a/.c-style
+++ /dev/null
@@ -1 +0,0 @@
-"gnu"
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 5cca731e..00000000
--- a/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-* text -ident
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 48e2b7f4..00000000
--- a/.gitignore
+++ /dev/null
@@ -1,74 +0,0 @@
-tags
-TAGS
-*~
-.#*
-*.old
-*.orig
-*.rej
-*.a
-*.o
-*.obj
-*.so
-*.exe
-*.dll
-*.dylib
-core
-/*.d
-/*.s
-/*.tar.gz
-/*.tar.gz.asc
-/.lib
-/*.asm
-/Makefile
-/config.cache
-/config.h
-/config.h.in
-/config.log
-/config.m4
-/config.make
-/config.status
-/configure
-/autom4te.cache
-/stamp-h
-/stamp-h.in
-/*.pc
-/machine.m4
-/aesdata
-/desdata
-/eccdata
-/*.stamp
-/gcmdata
-/shadata
-/twofishdata
-/keymap.h
-/parity.h
-/rotors.h
-/ecc-curve25519.h
-/ecc-curve448.h
-/ecc-gost-gc256b.h
-/ecc-gost-gc512a.h
-/ecc-secp192r1.h
-/ecc-secp224r1.h
-/ecc-secp256r1.h
-/ecc-secp384r1.h
-/ecc-secp521r1.h
-/version.h
-/nettle.aux
-/nettle.cp
-/nettle.cps
-/nettle.dvi
-/nettle.fn
-/nettle.html
-/nettle.info*
-/nettle.ky
-/nettle.log
-/nettle.pdf
-/nettle.pg
-/nettle.ps
-/nettle.toc
-/nettle.tp
-/nettle.tps
-/nettle.vr
-/nettle.vrs
-/libhogweed.map
-/libnettle.map
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 71d378bb..00000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,230 +0,0 @@
-variables:
- BUILDENV_NATIVE_IMAGE: gnutls/nettle-build-images:buildenv-native
- BUILDENV_CLANG_IMAGE: gnutls/nettle-build-images:buildenv-clang
- BUILDENV_CROSS_IMAGE: gnutls/nettle-build-images:buildenv-cross
- GET_SOURCES_ATTEMPTS: "3"
-
-# "Native" means x86-64; no jobs run on anything else.
-.native-build:
- image: $CI_REGISTRY/$BUILDENV_NATIVE_IMAGE
- script:
- - ./.bootstrap
- - './configure $EXTRA_CONFIGURE_ARGS --disable-documentation'
- - 'make -j$(nproc)'
- - 'make -j$(nproc) check $EXTRA_CHECK_TARGET'
- tags:
- - saas-linux-small-amd64
- except:
- - tags
- variables:
- NETTLE_TEST_SEED: '0'
- artifacts:
- expire_in: 1 week
- when: always
- paths:
- - "config.log"
-
-native/fat:
- extends: .native-build
- variables:
- EXTRA_CHECK: check-fat
-
-native/no-fat:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-fat'
-
-native/no-static:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-static'
-
-native/no-shared:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-static'
-
-native/32-bit:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--enable-mini-gmp'
- CC: 'gcc -m32'
- CXX: '/bin/false'
-
-native/mini-gmp:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--enable-mini-gmp'
-
-native/c89:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-assembler'
- CC: '$CI_PROJECT_DIR/misc/c89'
-
-native/extra-asserts:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--enable-extra-asserts'
-
-native/ndebug:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: 'CPPFLAGS=-DNDEBUG --disable-assembler'
-
-native/ubsan:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-assembler'
- CFLAGS: '-fsanitize=undefined -fno-sanitize-recover -g -O2'
- CXXFLAGS: '-fsanitize=undefined -fno-sanitize-recover -g -O2'
-
-native/asan:
- extends: .native-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-assembler'
- CFLAGS: '-fsanitize=address -g -O2'
- CXXFLAGS: '-fsanitize=address -g -O2'
-
-build/static-analyzers:
- image: $CI_REGISTRY/$BUILDENV_CLANG_IMAGE
- script:
- - ./.bootstrap
- - scan-build ./configure --disable-documentation --disable-assembler
- - scan-build --status-bugs -o scan-build-lib make -j$(nproc)
- tags:
- - saas-linux-small-amd64
- except:
- - tags
- artifacts:
- expire_in: 1 week
- when: on_failure
- paths:
- - scan-build-lib/*
-
-build/gnutls:
- image: $CI_REGISTRY/$BUILDENV_NATIVE_IMAGE
- script:
- - ./.bootstrap &&
- ./configure --disable-documentation --prefix="$(pwd)/local" --libdir="$(pwd)/local/lib" &&
- make -j4 && make install
- - git clone --depth 1 --branch master https://gitlab.com/gnutls/gnutls.git gnutls-git
- - cd gnutls-git && git submodule update --init && ./bootstrap &&
- ./configure PKG_CONFIG_PATH="$(pwd)/../local/lib/pkgconfig" CPPFLAGS="-I$(pwd)/../local/include"
- LDFLAGS="-L$(pwd)/../local/lib -Wl,-rpath,$(pwd)/../local/lib"
- --disable-cxx --disable-guile --without-p11-kit --disable-doc &&
- make -j$(nproc) && make -j $(nproc) check
- tags:
- - saas-linux-small-amd64
- except:
- - tags
- artifacts:
- expire_in: 1 week
- when: on_failure
- paths:
- - gnutls-git/guile/tests/*.log
- - gnutls-git/tests/*.log
- - gnutls-git/*.log
- - gnutls-git/tests/*/*.log
- - gnutls-git/tests/suite/*/*.log
-
-remote/s390x:
- image: $CI_REGISTRY/$BUILDENV_NATIVE_IMAGE
- before_script:
- # File created as world-readable by gitlab ci machinery.
- - chmod 0600 $SSH_PRIVATE_KEY
- - ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "mkdir -p ci-work/$CI_PIPELINE_IID"
- script:
- - echo $CI_PIPELINE_IID
- - ./.bootstrap &&
- ./configure && make PACKAGE_VERSION=snapshot dist &&
- ls -l *.tar.gz
- - cat nettle-snapshot.tar.gz |
- ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "cd ci-work/$CI_PIPELINE_IID && tar xzf -"
- - ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && ./configure --disable-documentation --enable-s390x-msa"
- - ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && make"
- - ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && NETTLE_TEST_SEED=0 make check"
- after_script:
- - ssh -o 'StrictHostKeyChecking no' -i "$SSH_PRIVATE_KEY" "$S390X_ACCOUNT"
- "rm -rf ci-work/$CI_PIPELINE_IID"
- only:
- variables:
- - $SSH_PRIVATE_KEY != ""
- - $S390X_ACCOUNT != ""
- tags:
- - saas-linux-small-amd64
- except:
- - tags
-
-.cross-build:
- image: $CI_REGISTRY/$BUILDENV_CROSS_IMAGE
- script:
- - build=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
- - host="${CI_JOB_NAME#cross/}"
- # Not setting CC_FOR_BUILD paired with qemu-user/binfmt somehow causes
- # config.guess to detect the target as the build platform and not activate
- # cross-compile mode, even though --build is given.
- - export CC_FOR_BUILD="gcc"
- - export CC="$host-gcc"
- # Disable C++, to not depend on cross g++.
- - export CXX=/bin/false
- - ./.bootstrap
- - ./configure --disable-documentation $EXTRA_CONFIGURE_ARGS --build=$build --host=$host
- - make -j$(nproc)
- - make EMULATOR=${EMULATOR} -j$(nproc) check
- - make EMULATOR=${EMULATOR} -j$(nproc) check-fat
- tags:
- - saas-linux-small-amd64
- except:
- - tags
- variables:
- NETTLE_TEST_SEED: '0'
- artifacts:
- expire_in: 1 week
- when: always
- paths:
- - "config.log"
-
-cross/arm-linux-gnueabihf:
- extends: .cross-build
- variables:
- EMULATOR: qemu-arm
-
-cross/aarch64-linux-gnu:
- extends: .cross-build
- variables:
- EMULATOR: qemu-aarch64
-
-# Setting QEMU_LD_PREFIX works around the error "qemu-ppc64: Could not
-# open '/lib64/ld64.so.1".
-cross/powerpc64-linux-gnu:
- extends: .cross-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--enable-mini-gmp'
- QEMU_LD_PREFIX: /usr/powerpc64-linux-gnu
- EMULATOR: qemu-ppc64
-
-cross/powerpc64le-linux-gnu:
- extends: .cross-build
- variables:
- EMULATOR: qemu-ppc64le
-
-# Disable assembly files, because current qemu doesn't support all
-# needed instructions.
-cross/s390x-linux-gnu:
- extends: .cross-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--disable-assembler'
- EMULATOR: qemu-s390x
-
-cross/sparc64-linux-gnu:
- extends: .cross-build
- variables:
- EXTRA_CONFIGURE_ARGS: '--enable-mini-gmp'
- QEMU_LD_PREFIX: /usr/sparc64-linux-gnu
- EMULATOR: qemu-sparc64
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 00000000..21018dd3
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,274 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
+/* Define to 1 if using 'alloca.c'. */
+#undef C_ALLOCA
+
+/* Define to 1 if you have 'alloca', as a function or macro. */
+#undef HAVE_ALLOCA
+
+/* Define to 1 if <alloca.h> works. */
+#undef HAVE_ALLOCA_H
+
+/* Define if __builtin_bswap64 is available */
+#undef HAVE_BUILTIN_BSWAP64
+
+/* Define if clock_gettime is available */
+#undef HAVE_CLOCK_GETTIME
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the `elf_aux_info' function. */
+#undef HAVE_ELF_AUX_INFO
+
+/* Define if fcntl file locking is available */
+#undef HAVE_FCNTL_LOCKING
+
+/* Define if the compiler understands __attribute__ */
+#undef HAVE_GCC_ATTRIBUTE
+
+/* Define to 1 if you have the `getline' function. */
+#undef HAVE_GETLINE
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have dlopen (with -ldl). */
+#undef HAVE_LIBDL
+
+/* Define to 1 if you have the `gmp' library (-lgmp). */
+#undef HAVE_LIBGMP
+
+/* Define if compiler and linker supports __attribute__ ifunc */
+#undef HAVE_LINK_IFUNC
+
+/* Define to 1 if you have the <malloc.h> header file. */
+#undef HAVE_MALLOC_H
+
+/* Define to 1 each of the following for which a native (ie. CPU specific)
+ implementation of the corresponding routine exists. */
+#undef HAVE_NATIVE_memxor3
+#undef HAVE_NATIVE_aes_decrypt
+#undef HAVE_NATIVE_aes_encrypt
+#undef HAVE_NATIVE_aes_invert
+#undef HAVE_NATIVE_aes128_decrypt
+#undef HAVE_NATIVE_aes128_encrypt
+#undef HAVE_NATIVE_aes128_invert_key
+#undef HAVE_NATIVE_aes128_set_decrypt_key
+#undef HAVE_NATIVE_aes128_set_encrypt_key
+#undef HAVE_NATIVE_aes192_decrypt
+#undef HAVE_NATIVE_aes192_encrypt
+#undef HAVE_NATIVE_aes192_invert_key
+#undef HAVE_NATIVE_aes192_set_decrypt_key
+#undef HAVE_NATIVE_aes192_set_encrypt_key
+#undef HAVE_NATIVE_aes256_decrypt
+#undef HAVE_NATIVE_aes256_encrypt
+#undef HAVE_NATIVE_aes256_invert_key
+#undef HAVE_NATIVE_aes256_set_decrypt_key
+#undef HAVE_NATIVE_aes256_set_encrypt_key
+#undef HAVE_NATIVE_cbc_aes128_encrypt
+#undef HAVE_NATIVE_cbc_aes192_encrypt
+#undef HAVE_NATIVE_cbc_aes256_encrypt
+#undef HAVE_NATIVE_chacha_core
+#undef HAVE_NATIVE_chacha_2core
+#undef HAVE_NATIVE_chacha_3core
+#undef HAVE_NATIVE_chacha_4core
+#undef HAVE_NATIVE_fat_chacha_2core
+#undef HAVE_NATIVE_fat_chacha_3core
+#undef HAVE_NATIVE_fat_chacha_4core
+#undef HAVE_NATIVE_ecc_curve25519_modp
+#undef HAVE_NATIVE_ecc_curve448_modp
+#undef HAVE_NATIVE_ecc_secp192r1_modp
+#undef HAVE_NATIVE_ecc_secp192r1_redc
+#undef HAVE_NATIVE_ecc_secp224r1_modp
+#undef HAVE_NATIVE_ecc_secp224r1_redc
+#undef HAVE_NATIVE_ecc_secp256r1_modp
+#undef HAVE_NATIVE_ecc_secp256r1_redc
+#undef HAVE_NATIVE_ecc_secp384r1_modp
+#undef HAVE_NATIVE_ecc_secp384r1_redc
+#undef HAVE_NATIVE_ecc_secp521r1_modp
+#undef HAVE_NATIVE_ecc_secp521r1_redc
+#undef HAVE_NATIVE_poly1305_set_key
+#undef HAVE_NATIVE_poly1305_block
+#undef HAVE_NATIVE_poly1305_digest
+#undef HAVE_NATIVE_poly1305_blocks
+#undef HAVE_NATIVE_fat_poly1305_blocks
+#undef HAVE_NATIVE_ghash_set_key
+#undef HAVE_NATIVE_ghash_update
+#undef HAVE_NATIVE_gcm_aes_encrypt
+#undef HAVE_NATIVE_gcm_aes_decrypt
+#undef HAVE_NATIVE_salsa20_core
+#undef HAVE_NATIVE_salsa20_2core
+#undef HAVE_NATIVE_fat_salsa20_2core
+#undef HAVE_NATIVE_sha1_compress
+#undef HAVE_NATIVE_sha256_compress_n
+#undef HAVE_NATIVE_sha512_compress
+#undef HAVE_NATIVE_sha3_permute
+#undef HAVE_NATIVE_umac_nh
+#undef HAVE_NATIVE_umac_nh_n
+
+/* Define to 1 if you have the <openssl/ec.h> header file. */
+#undef HAVE_OPENSSL_EC_H
+
+/* Define to 1 if you have the <openssl/evp.h> header file. */
+#undef HAVE_OPENSSL_EVP_H
+
+/* Define to 1 if you have the <openssl/rsa.h> header file. */
+#undef HAVE_OPENSSL_RSA_H
+
+/* Define to 1 if you have the `secure_getenv' function. */
+#undef HAVE_SECURE_GETENV
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <valgrind/memcheck.h> header file. */
+#undef HAVE_VALGRIND_MEMCHECK_H
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* The size of `long', as computed by sizeof. */
+#undef SIZEOF_LONG
+
+/* The size of `size_t', as computed by sizeof. */
+#undef SIZEOF_SIZE_T
+
+/* If using the C implementation of alloca, define if you know the
+ direction of stack growth for your system; otherwise it will be
+ automatically deduced at runtime.
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
+#undef STACK_DIRECTION
+
+/* Define to 1 if all of the C90 standard headers exist (not just the ones
+ required in a freestanding environment). This macro is provided for
+ backward compatibility; new code need not use it. */
+#undef STDC_HEADERS
+
+/* Defined to enable additional asserts */
+#undef WITH_EXTRA_ASSERTS
+
+/* Defined if public key features are enabled */
+#undef WITH_HOGWEED
+
+/* Define if you have openssl libcrypto (used for benchmarking) */
+#undef WITH_OPENSSL
+
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
+#endif
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef gid_t
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to `int' if <sys/types.h> doesn't define. */
+#undef uid_t
+
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+/* Needed for alloca on windows */
+# if HAVE_MALLOC_H
+# include <malloc.h>
+# endif
+# endif
+#else /* defined __GNUC__ */
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+/* Needed for alloca on windows, also with gcc */
+# if HAVE_MALLOC_H
+# include <malloc.h>
+# endif
+# endif
+#endif
+
+
+#if __GNUC__ && HAVE_GCC_ATTRIBUTE
+# define NORETURN __attribute__ ((__noreturn__))
+# define PRINTF_STYLE(f, a) __attribute__ ((__format__ (__printf__, f, a)))
+# define UNUSED __attribute__ ((__unused__))
+#else
+# define NORETURN
+# define PRINTF_STYLE(f, a)
+# define UNUSED
+#endif
+
+
+#if defined(__x86_64__) || defined(__arch64__)
+# define HAVE_NATIVE_64_BIT 1
+#else
+/* Needs include of <limits.h> before use. */
+# define HAVE_NATIVE_64_BIT (SIZEOF_LONG * CHAR_BIT >= 64)
+#endif
+
diff --git a/configure b/configure
new file mode 100755
index 00000000..b66739e9
--- /dev/null
+++ b/configure
@@ -0,0 +1,10143 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.71 for nettle 3.10.1.
+#
+# Report bugs to <nettle-bugs@lists.lysator.liu.se>.
+#
+#
+# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
+# Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+as_nop=:
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else $as_nop
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+
+# Reset variables that may have inherited troublesome values from
+# the environment.
+
+# IFS needs to be set, to space, tab, and newline, in precisely that order.
+# (If _AS_PATH_WALK were called with IFS unset, it would have the
+# side effect of setting IFS to empty, thus disabling word splitting.)
+# Quoting is to prevent editors from complaining about space-tab.
+as_nl='
+'
+export as_nl
+IFS=" "" $as_nl"
+
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# Ensure predictable behavior from utilities with locale-dependent output.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# We cannot yet rely on "unset" to work, but we need these variables
+# to be unset--not just set to an empty or harmless value--now, to
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
+# also avoids known problems related to "unset" and subshell syntax
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
+do eval test \${$as_var+y} \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+
+# Ensure that fds 0, 1, and 2 are open.
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
+
+# The user is always right.
+if ${PATH_SEPARATOR+false} :; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+
+# Use a proper internal environment variable to ensure we don't fall
+ # into an infinite loop, continuously re-executing ourselves.
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+ _as_can_reexec=no; export _as_can_reexec;
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+ fi
+ # We don't want this to propagate to other subprocesses.
+ { _as_can_reexec=; unset _as_can_reexec;}
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="as_nop=:
+if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else \$as_nop
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" )
+then :
+
+else \$as_nop
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1
+blah=\$(echo \$(echo blah))
+test x\"\$blah\" = xblah || exit 1
+test -x / || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null
+then :
+ as_have_required=yes
+else $as_nop
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
+then :
+
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
+then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
+then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+IFS=$as_save_IFS
+if $as_found
+then :
+
+else $as_nop
+ if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
+then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi
+fi
+
+
+ if test "x$CONFIG_SHELL" != x
+then :
+ export CONFIG_SHELL
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+fi
+
+ if test x$as_have_required = xno
+then :
+ printf "%s\n" "$0: This script requires a shell more modern than all"
+ printf "%s\n" "$0: the shells that I found on your system."
+ if test ${ZSH_VERSION+y} ; then
+ printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
+$0: nettle-bugs@lists.lysator.liu.se about your system,
+$0: including any error possibly output before this
+$0: message. Then install a modern shell, or manually run
+$0: the script under such a shell if you do have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+# as_fn_nop
+# ---------
+# Do nothing but, unlike ":", preserve the value of $?.
+as_fn_nop ()
+{
+ return $?
+}
+as_nop=as_fn_nop
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
+then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else $as_nop
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
+then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else $as_nop
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+# as_fn_nop
+# ---------
+# Do nothing but, unlike ":", preserve the value of $?.
+as_fn_nop ()
+{
+ return $?
+}
+as_nop=as_fn_nop
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ printf "%s\n" "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+# Determine whether it's possible to make 'echo' print without a newline.
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
+# for compatibility with existing Makefiles.
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+# For backward compatibility with old third-party macros, we provide
+# the shell variables $as_echo and $as_echo_n. New code should use
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
+as_echo='printf %s\n'
+as_echo_n='printf %s'
+
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='nettle'
+PACKAGE_TARNAME='nettle'
+PACKAGE_VERSION='3.10.1'
+PACKAGE_STRING='nettle 3.10.1'
+PACKAGE_BUGREPORT='nettle-bugs@lists.lysator.liu.se'
+PACKAGE_URL=''
+
+ac_unique_file="nettle-types.h"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stddef.h>
+#ifdef HAVE_STDIO_H
+# include <stdio.h>
+#endif
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
+# include <string.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_header_c_list=
+ac_subst_vars='LTLIBOBJS
+LIBOBJS
+BENCH_LIBS
+OPENSSL_LIBFLAGS
+IF_MINI_GMP
+IF_DLL
+IF_DOCUMENTATION
+IF_DLOPEN_TEST
+IF_NOT_SHARED
+IF_SHARED
+IF_STATIC
+IF_HOGWEED
+MAKEINFO
+M4
+LIBHOGWEED_LIBS
+LIBHOGWEED_LINK
+LIBHOGWEED_FILE_SRC
+LIBHOGWEED_FILE
+LIBHOGWEED_SONAME
+LIBHOGWEED_FORLINK
+LIBHOGWEED_MINOR
+LIBHOGWEED_MAJOR
+LIBNETTLE_LIBS
+LIBNETTLE_LINK
+LIBNETTLE_FILE_SRC
+LIBNETTLE_FILE
+LIBNETTLE_SONAME
+LIBNETTLE_FORLINK
+LIBNETTLE_MINOR
+LIBNETTLE_MAJOR
+ASM_X86_MARK_CET_ALIGN
+ASM_X86_MARK_CET
+ASM_X86_ENDBR
+EMULATOR
+ASM_WORDS_BIGENDIAN
+W64_ABI
+ELFV2_ABI
+ASM_ALIGN_LOG
+ASM_MARK_NOEXEC_STACK
+ASM_TYPE_PROGBITS
+ASM_TYPE_FUNCTION
+ASM_COFF_STYLE
+ASM_ELF_STYLE
+ASM_SYMBOL_PREFIX
+CCPIC
+ASM_PPC_WANT_R_REGISTERS
+IF_ASM
+ASM_RODATA
+FAT_TEST_LIST
+OPT_NETTLE_SOURCES
+OPT_HOGWEED_OBJS
+OPT_NETTLE_OBJS
+GMP_NUMB_BITS
+NUMB_BITS
+ALLOCA
+EGREP
+GREP
+CPP
+DEP_PROCESS
+DEP_FLAGS
+IF_VALGRIND
+EXEEXT_FOR_BUILD
+CC_FOR_BUILD
+LN_S
+MKDIR_P
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+AR
+OBJDUMP
+NM
+RANLIB
+SET_MAKE
+EXTRA_HOGWEED_LINKER_FLAGS
+EXTRA_LINKER_FLAGS
+IF_CXX
+ac_ct_CXX
+CXXFLAGS
+CXX
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+HOGWEED_EXTRA_SYMBOLS
+NETTLE_USE_MINI_GMP
+ASM_FLAGS
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+MINOR_VERSION
+MAJOR_VERSION
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+runstatedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+with_include_path
+with_lib_path
+enable_public_key
+enable_assembler
+enable_static
+enable_shared
+enable_pic
+enable_openssl
+enable_gcov
+enable_documentation
+enable_fat
+enable_arm_neon
+enable_arm64_crypto
+enable_x86_aesni
+enable_x86_sha_ni
+enable_x86_pclmul
+enable_power_crypto_ext
+enable_power_altivec
+enable_power9
+enable_s390x_vf
+enable_s390x_msa
+enable_extra_asserts
+enable_mini_gmp
+enable_ld_version_script
+enable_dependency_tracking
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+ASM_FLAGS
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CXX
+CXXFLAGS
+CCC
+CC_FOR_BUILD
+CPP'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=*)
+ runstatedir=$ac_optarg ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: \`$ac_useropt'"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir runstatedir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures nettle 3.10.1 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/nettle]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of nettle 3.10.1:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-public-key Disable public key algorithms
+ --disable-assembler Disable assembler code
+ --disable-static Do not build any static library
+ --disable-shared Do not build any shared library
+ --disable-pic Do not try to compile library files as position
+ independent code
+ --disable-openssl Do not include openssl glue in the benchmark program
+ --enable-gcov Instrument for gcov (requires a modern gcc)
+ --disable-documentation Omit building and installing the documentation.
+ (default=auto)
+ --disable-fat Disable fat library build
+ --enable-arm-neon Enable ARM Neon assembly. (default=auto)
+ --enable-arm64-crypto Enable Arm64 crypto extension. (default=no)
+ --enable-x86-aesni Enable x86_64 aes instructions. (default=no)
+ --enable-x86-sha-ni Enable x86_64 sha_ni instructions. (default=no)
+ --enable-x86-pclmul Enable x86_64 pclmulqdq instructions. (default=no)
+ --enable-power-crypto-ext
+ Enable POWER crypto extensions. (default=no)
+ --enable-power-altivec Enable POWER altivec and vsx extensions.
+ (default=no)
+ --enable-power9 Enable POWER ISA v3.0. (default=no)
+ --enable-s390x-vf Enable vector facility on z/Architecture.
+ (default=no)
+ --enable-s390x-msa Enable message-security assist extensions on
+ z/Architecture. (default=no)
+ --enable-extra-asserts Enable additional asserts in ECC code (incompatible
+ side-channel tests)
+ --enable-mini-gmp Enable mini-gmp, used instead of libgmp.
+ --enable-ld-version-script
+ enable linker version script (default is enabled
+ when possible)
+ --disable-dependency-tracking
+ Disable dependency tracking. Dependency tracking
+ doesn't work with BSD make
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-include-path A colon-separated list of directories to search for
+ include files
+ --with-lib-path A colon-separated list of directories to search for
+ libraries
+
+Some influential environment variables:
+ ASM_FLAGS Extra flags for processing assembly source files
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CXX C++ compiler command
+ CXXFLAGS C++ compiler flags
+ CC_FOR_BUILD
+ build system C compiler
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <nettle-bugs@lists.lysator.liu.se>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for configure.gnu first; this name is used for a wrapper for
+ # Metaconfig's "Configure" on case-insensitive file systems.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+nettle configure 3.10.1
+generated by GNU Autoconf 2.71
+
+Copyright (C) 2021 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_cxx_try_compile LINENO
+# ----------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest.beam
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_compile
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ eval "$3=no"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+if (sizeof ($2))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+if (sizeof (($2)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ eval "$3=yes"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_type
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
+# executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }
+then :
+ ac_retval=0
+else $as_nop
+ printf "%s\n" "$as_me: program exited with status $ac_status" >&5
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
+# --------------------------------------------
+# Tries to find the compile-time value of EXPR in a program that includes
+# INCLUDES, setting VAR accordingly. Returns whether the value could be
+# computed
+ac_fn_c_compute_int ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($2) >= 0)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_hi=$ac_mid; break
+else $as_nop
+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ done
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($2) < 0)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_lo=$ac_mid; break
+else $as_nop
+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ done
+else $as_nop
+ ac_lo= ac_hi=
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main (void)
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_hi=$ac_mid
+else $as_nop
+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+done
+case $ac_lo in #((
+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
+'') ac_retval=1 ;;
+esac
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+static long int longval (void) { return $2; }
+static unsigned long int ulongval (void) { return $2; }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main (void)
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (($2) < 0)
+ {
+ long int i = longval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"
+then :
+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0
+else $as_nop
+ ac_retval=1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+rm -f conftest.val
+
+ fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_compute_int
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+printf %s "checking for $2... " >&6; }
+if eval test \${$3+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below. */
+
+#include <limits.h>
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main (void)
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ eval "$3=yes"
+else $as_nop
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+printf "%s\n" "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+ac_configure_args_raw=
+for ac_arg
+do
+ case $ac_arg in
+ *\'*)
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append ac_configure_args_raw " '$ac_arg'"
+done
+
+case $ac_configure_args_raw in
+ *$as_nl*)
+ ac_safe_unquote= ;;
+ *)
+ ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
+ ac_unsafe_a="$ac_unsafe_z#~"
+ ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
+ ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
+esac
+
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by nettle $as_me 3.10.1, which was
+generated by GNU Autoconf 2.71. Invocation command line was
+
+ $ $0$ac_configure_args_raw
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ printf "%s\n" "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Sanitize IFS.
+ IFS=" "" $as_nl"
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ printf "%s\n" "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ printf "%s\n" "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ printf "%s\n" "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ printf "%s\n" "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ printf "%s\n" "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ printf "%s\n" "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ printf "%s\n" "$as_me: caught signal $ac_signal"
+ printf "%s\n" "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+printf "%s\n" "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
+
+printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+if test -n "$CONFIG_SITE"; then
+ ac_site_files="$CONFIG_SITE"
+elif test "x$prefix" != xNONE; then
+ ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
+else
+ ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+fi
+
+for ac_site_file in $ac_site_files
+do
+ case $ac_site_file in #(
+ */*) :
+ ;; #(
+ *) :
+ ac_site_file=./$ac_site_file ;;
+esac
+ if test -f "$ac_site_file" && test -r "$ac_site_file"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Test code for whether the C compiler supports C89 (global declarations)
+ac_c_conftest_c89_globals='
+/* Does the compiler advertise C89 conformance?
+ Do not test the value of __STDC__, because some compilers set it to 0
+ while being otherwise adequately conformant. */
+#if !defined __STDC__
+# error "Compiler does not advertise C89 conformance"
+#endif
+
+#include <stddef.h>
+#include <stdarg.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
+struct buf { int x; };
+struct buf * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not \xHH hex character constants.
+ These do not provoke an error unfortunately, instead are silently treated
+ as an "x". The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously \x00 != x always comes out true, for an
+ array size at least. It is necessary to write \x00 == 0 to get something
+ that is true only with -std. */
+int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) '\''x'\''
+int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
+ int, int);'
+
+# Test code for whether the C compiler supports C89 (body of main).
+ac_c_conftest_c89_main='
+ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
+'
+
+# Test code for whether the C compiler supports C99 (global declarations)
+ac_c_conftest_c99_globals='
+// Does the compiler advertise C99 conformance?
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
+# error "Compiler does not advertise C99 conformance"
+#endif
+
+#include <stdbool.h>
+extern int puts (const char *);
+extern int printf (const char *, ...);
+extern int dprintf (int, const char *, ...);
+extern void *malloc (size_t);
+
+// Check varargs macros. These examples are taken from C99 6.10.3.5.
+// dprintf is used instead of fprintf to avoid needing to declare
+// FILE and stderr.
+#define debug(...) dprintf (2, __VA_ARGS__)
+#define showlist(...) puts (#__VA_ARGS__)
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+static void
+test_varargs_macros (void)
+{
+ int x = 1234;
+ int y = 5678;
+ debug ("Flag");
+ debug ("X = %d\n", x);
+ showlist (The first, second, and third items.);
+ report (x>y, "x is %d but y is %d", x, y);
+}
+
+// Check long long types.
+#define BIG64 18446744073709551615ull
+#define BIG32 4294967295ul
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+#if !BIG_OK
+ #error "your preprocessor is broken"
+#endif
+#if BIG_OK
+#else
+ #error "your preprocessor is broken"
+#endif
+static long long int bignum = -9223372036854775807LL;
+static unsigned long long int ubignum = BIG64;
+
+struct incomplete_array
+{
+ int datasize;
+ double data[];
+};
+
+struct named_init {
+ int number;
+ const wchar_t *name;
+ double average;
+};
+
+typedef const char *ccp;
+
+static inline int
+test_restrict (ccp restrict text)
+{
+ // See if C++-style comments work.
+ // Iterate through items via the restricted pointer.
+ // Also check for declarations in for loops.
+ for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
+ continue;
+ return 0;
+}
+
+// Check varargs and va_copy.
+static bool
+test_varargs (const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ va_list args_copy;
+ va_copy (args_copy, args);
+
+ const char *str = "";
+ int number = 0;
+ float fnumber = 0;
+
+ while (*format)
+ {
+ switch (*format++)
+ {
+ case '\''s'\'': // string
+ str = va_arg (args_copy, const char *);
+ break;
+ case '\''d'\'': // int
+ number = va_arg (args_copy, int);
+ break;
+ case '\''f'\'': // float
+ fnumber = va_arg (args_copy, double);
+ break;
+ default:
+ break;
+ }
+ }
+ va_end (args_copy);
+ va_end (args);
+
+ return *str && number && fnumber;
+}
+'
+
+# Test code for whether the C compiler supports C99 (body of main).
+ac_c_conftest_c99_main='
+ // Check bool.
+ _Bool success = false;
+ success |= (argc != 0);
+
+ // Check restrict.
+ if (test_restrict ("String literal") == 0)
+ success = true;
+ char *restrict newvar = "Another string";
+
+ // Check varargs.
+ success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
+ test_varargs_macros ();
+
+ // Check flexible array members.
+ struct incomplete_array *ia =
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+ ia->datasize = 10;
+ for (int i = 0; i < ia->datasize; ++i)
+ ia->data[i] = i * 1.234;
+
+ // Check named initializers.
+ struct named_init ni = {
+ .number = 34,
+ .name = L"Test wide string",
+ .average = 543.34343,
+ };
+
+ ni.number = 58;
+
+ int dynamic_array[ni.number];
+ dynamic_array[0] = argv[0][0];
+ dynamic_array[ni.number - 1] = 543;
+
+ // work around unused variable warnings
+ ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
+ || dynamic_array[ni.number - 1] != 543);
+'
+
+# Test code for whether the C compiler supports C11 (global declarations)
+ac_c_conftest_c11_globals='
+// Does the compiler advertise C11 conformance?
+#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
+# error "Compiler does not advertise C11 conformance"
+#endif
+
+// Check _Alignas.
+char _Alignas (double) aligned_as_double;
+char _Alignas (0) no_special_alignment;
+extern char aligned_as_int;
+char _Alignas (0) _Alignas (int) aligned_as_int;
+
+// Check _Alignof.
+enum
+{
+ int_alignment = _Alignof (int),
+ int_array_alignment = _Alignof (int[100]),
+ char_alignment = _Alignof (char)
+};
+_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
+
+// Check _Noreturn.
+int _Noreturn does_not_return (void) { for (;;) continue; }
+
+// Check _Static_assert.
+struct test_static_assert
+{
+ int x;
+ _Static_assert (sizeof (int) <= sizeof (long int),
+ "_Static_assert does not work in struct");
+ long int y;
+};
+
+// Check UTF-8 literals.
+#define u8 syntax error!
+char const utf8_literal[] = u8"happens to be ASCII" "another string";
+
+// Check duplicate typedefs.
+typedef long *long_ptr;
+typedef long int *long_ptr;
+typedef long_ptr long_ptr;
+
+// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
+struct anonymous
+{
+ union {
+ struct { int i; int j; };
+ struct { int k; long int l; } w;
+ };
+ int m;
+} v1;
+'
+
+# Test code for whether the C compiler supports C11 (body of main).
+ac_c_conftest_c11_main='
+ _Static_assert ((offsetof (struct anonymous, i)
+ == offsetof (struct anonymous, w.k)),
+ "Anonymous union alignment botch");
+ v1.i = 2;
+ v1.w.k = 5;
+ ok |= v1.i != 5;
+'
+
+# Test code for whether the C compiler supports C11 (complete).
+ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
+${ac_c_conftest_c99_globals}
+${ac_c_conftest_c11_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ ${ac_c_conftest_c99_main}
+ ${ac_c_conftest_c11_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C99 (complete).
+ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
+${ac_c_conftest_c99_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ ${ac_c_conftest_c99_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C89 (complete).
+ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_c_conftest_c89_main}
+ return ok;
+}
+"
+
+# Test code for whether the C++ compiler supports C++98 (global declarations)
+ac_cxx_conftest_cxx98_globals='
+// Does the compiler advertise C++98 conformance?
+#if !defined __cplusplus || __cplusplus < 199711L
+# error "Compiler does not advertise C++98 conformance"
+#endif
+
+// These inclusions are to reject old compilers that
+// lack the unsuffixed header files.
+#include <cstdlib>
+#include <exception>
+
+// <cassert> and <cstring> are *not* freestanding headers in C++98.
+extern void assert (int);
+namespace std {
+ extern int strcmp (const char *, const char *);
+}
+
+// Namespaces, exceptions, and templates were all added after "C++ 2.0".
+using std::exception;
+using std::strcmp;
+
+namespace {
+
+void test_exception_syntax()
+{
+ try {
+ throw "test";
+ } catch (const char *s) {
+ // Extra parentheses suppress a warning when building autoconf itself,
+ // due to lint rules shared with more typical C programs.
+ assert (!(strcmp) (s, "test"));
+ }
+}
+
+template <typename T> struct test_template
+{
+ T const val;
+ explicit test_template(T t) : val(t) {}
+ template <typename U> T add(U u) { return static_cast<T>(u) + val; }
+};
+
+} // anonymous namespace
+'
+
+# Test code for whether the C++ compiler supports C++98 (body of main)
+ac_cxx_conftest_cxx98_main='
+ assert (argc);
+ assert (! argv[0]);
+{
+ test_exception_syntax ();
+ test_template<double> tt (2.0);
+ assert (tt.add (4) == 6.0);
+ assert (true && !false);
+}
+'
+
+# Test code for whether the C++ compiler supports C++11 (global declarations)
+ac_cxx_conftest_cxx11_globals='
+// Does the compiler advertise C++ 2011 conformance?
+#if !defined __cplusplus || __cplusplus < 201103L
+# error "Compiler does not advertise C++11 conformance"
+#endif
+
+namespace cxx11test
+{
+ constexpr int get_val() { return 20; }
+
+ struct testinit
+ {
+ int i;
+ double d;
+ };
+
+ class delegate
+ {
+ public:
+ delegate(int n) : n(n) {}
+ delegate(): delegate(2354) {}
+
+ virtual int getval() { return this->n; };
+ protected:
+ int n;
+ };
+
+ class overridden : public delegate
+ {
+ public:
+ overridden(int n): delegate(n) {}
+ virtual int getval() override final { return this->n * 2; }
+ };
+
+ class nocopy
+ {
+ public:
+ nocopy(int i): i(i) {}
+ nocopy() = default;
+ nocopy(const nocopy&) = delete;
+ nocopy & operator=(const nocopy&) = delete;
+ private:
+ int i;
+ };
+
+ // for testing lambda expressions
+ template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
+ {
+ return f(v);
+ }
+
+ // for testing variadic templates and trailing return types
+ template <typename V> auto sum(V first) -> V
+ {
+ return first;
+ }
+ template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
+ {
+ return first + sum(rest...);
+ }
+}
+'
+
+# Test code for whether the C++ compiler supports C++11 (body of main)
+ac_cxx_conftest_cxx11_main='
+{
+ // Test auto and decltype
+ auto a1 = 6538;
+ auto a2 = 48573953.4;
+ auto a3 = "String literal";
+
+ int total = 0;
+ for (auto i = a3; *i; ++i) { total += *i; }
+
+ decltype(a2) a4 = 34895.034;
+}
+{
+ // Test constexpr
+ short sa[cxx11test::get_val()] = { 0 };
+}
+{
+ // Test initializer lists
+ cxx11test::testinit il = { 4323, 435234.23544 };
+}
+{
+ // Test range-based for
+ int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
+ 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
+ for (auto &x : array) { x += 23; }
+}
+{
+ // Test lambda expressions
+ using cxx11test::eval;
+ assert (eval ([](int x) { return x*2; }, 21) == 42);
+ double d = 2.0;
+ assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
+ assert (d == 5.0);
+ assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
+ assert (d == 5.0);
+}
+{
+ // Test use of variadic templates
+ using cxx11test::sum;
+ auto a = sum(1);
+ auto b = sum(1, 2);
+ auto c = sum(1.0, 2.0, 3.0);
+}
+{
+ // Test constructor delegation
+ cxx11test::delegate d1;
+ cxx11test::delegate d2();
+ cxx11test::delegate d3(45);
+}
+{
+ // Test override and final
+ cxx11test::overridden o1(55464);
+}
+{
+ // Test nullptr
+ char *c = nullptr;
+}
+{
+ // Test template brackets
+ test_template<::test_template<int>> v(test_template<int>(12));
+}
+{
+ // Unicode literals
+ char const *utf8 = u8"UTF-8 string \u2500";
+ char16_t const *utf16 = u"UTF-8 string \u2500";
+ char32_t const *utf32 = U"UTF-32 string \u2500";
+}
+'
+
+# Test code for whether the C compiler supports C++11 (complete).
+ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
+${ac_cxx_conftest_cxx11_globals}
+
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_cxx_conftest_cxx98_main}
+ ${ac_cxx_conftest_cxx11_main}
+ return ok;
+}
+"
+
+# Test code for whether the C compiler supports C++98 (complete).
+ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
+int
+main (int argc, char **argv)
+{
+ int ok = 0;
+ ${ac_cxx_conftest_cxx98_main}
+ return ok;
+}
+"
+
+as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
+as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
+as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
+as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
+as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
+as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
+as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
+as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
+as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
+
+# Auxiliary files required by this configure script.
+ac_aux_files="install-sh config.guess config.sub"
+
+# Locations in which to look for auxiliary files.
+ac_aux_dir_candidates="${srcdir}/."
+
+# Search for a directory containing all of the required auxiliary files,
+# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
+# If we don't find one directory that contains all the files we need,
+# we report the set of missing files from the *first* directory in
+# $ac_aux_dir_candidates and give up.
+ac_missing_aux_files=""
+ac_first_candidate=:
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in $ac_aux_dir_candidates
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ as_found=:
+
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
+ ac_aux_dir_found=yes
+ ac_install_sh=
+ for ac_aux in $ac_aux_files
+ do
+ # As a special case, if "install-sh" is required, that requirement
+ # can be satisfied by any of "install-sh", "install.sh", or "shtool",
+ # and $ac_install_sh is set appropriately for whichever one is found.
+ if test x"$ac_aux" = x"install-sh"
+ then
+ if test -f "${as_dir}install-sh"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
+ ac_install_sh="${as_dir}install-sh -c"
+ elif test -f "${as_dir}install.sh"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
+ ac_install_sh="${as_dir}install.sh -c"
+ elif test -f "${as_dir}shtool"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
+ ac_install_sh="${as_dir}shtool install -c"
+ else
+ ac_aux_dir_found=no
+ if $ac_first_candidate; then
+ ac_missing_aux_files="${ac_missing_aux_files} install-sh"
+ else
+ break
+ fi
+ fi
+ else
+ if test -f "${as_dir}${ac_aux}"; then
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
+ else
+ ac_aux_dir_found=no
+ if $ac_first_candidate; then
+ ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
+ else
+ break
+ fi
+ fi
+ fi
+ done
+ if test "$ac_aux_dir_found" = yes; then
+ ac_aux_dir="$as_dir"
+ break
+ fi
+ ac_first_candidate=false
+
+ as_found=false
+done
+IFS=$as_save_IFS
+if $as_found
+then :
+
+else $as_nop
+ as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
+fi
+
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+if test -f "${ac_aux_dir}config.guess"; then
+ ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
+fi
+if test -f "${ac_aux_dir}config.sub"; then
+ ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
+fi
+if test -f "$ac_aux_dir/configure"; then
+ ac_configure="$SHELL ${ac_aux_dir}configure"
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
+ and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+# Needed to stop autoconf from looking for files in parent directories.
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+
+LIBNETTLE_MAJOR=8
+LIBNETTLE_MINOR=10
+
+LIBHOGWEED_MAJOR=6
+LIBHOGWEED_MINOR=10
+
+MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/^\([^.]*\)\..*/\1/'`
+MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*\.\([0-9]*\).*/\1/'`
+
+
+
+
+
+
+ # Make sure we can run config.sub.
+$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+printf %s "checking build system type... " >&6; }
+if test ${ac_cv_build+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+printf "%s\n" "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+printf %s "checking host system type... " >&6; }
+if test ${ac_cv_host+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+printf "%s\n" "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+
+# Command line options
+
+# Check whether --with-include-path was given.
+if test ${with_include_path+y}
+then :
+ withval=$with_include_path;
+else $as_nop
+ with_include_path=''
+fi
+
+
+if test x$with_include_path != x ; then
+ CPPFLAGS="$CPPFLAGS -I`echo $with_include_path | sed 's/:/ -I/g'`"
+fi
+
+
+# Check whether --with-lib-path was given.
+if test ${with_lib_path+y}
+then :
+ withval=$with_lib_path;
+else $as_nop
+ with_lib_path=''
+fi
+
+
+if test x$with_lib_path != x ; then
+ LDFLAGS="$LDFLAGS -L`echo $with_lib_path | sed 's/:/ -L/g'`"
+fi
+
+# Check whether --enable-public-key was given.
+if test ${enable_public_key+y}
+then :
+ enableval=$enable_public_key;
+else $as_nop
+ enable_public_key=yes
+fi
+
+
+# Check whether --enable-assembler was given.
+if test ${enable_assembler+y}
+then :
+ enableval=$enable_assembler;
+else $as_nop
+ enable_assembler=yes
+fi
+
+
+# Check whether --enable-static was given.
+if test ${enable_static+y}
+then :
+ enableval=$enable_static;
+else $as_nop
+ enable_static=yes
+fi
+
+
+# Check whether --enable-shared was given.
+if test ${enable_shared+y}
+then :
+ enableval=$enable_shared;
+else $as_nop
+ enable_shared=yes
+fi
+
+
+# Check whether --enable-pic was given.
+if test ${enable_pic+y}
+then :
+ enableval=$enable_pic;
+else $as_nop
+ enable_pic=yes
+fi
+
+
+# Check whether --enable-openssl was given.
+if test ${enable_openssl+y}
+then :
+ enableval=$enable_openssl;
+else $as_nop
+ enable_openssl=yes
+fi
+
+
+# Check whether --enable-gcov was given.
+if test ${enable_gcov+y}
+then :
+ enableval=$enable_gcov;
+else $as_nop
+ enable_gcov=no
+fi
+
+
+# Check whether --enable-documentation was given.
+if test ${enable_documentation+y}
+then :
+ enableval=$enable_documentation;
+else $as_nop
+ enable_documentation=auto
+fi
+
+
+# Check whether --enable-fat was given.
+if test ${enable_fat+y}
+then :
+ enableval=$enable_fat;
+else $as_nop
+ enable_fat=yes
+fi
+
+
+# Check whether --enable-arm-neon was given.
+if test ${enable_arm_neon+y}
+then :
+ enableval=$enable_arm_neon;
+else $as_nop
+ enable_arm_neon=auto
+fi
+
+
+# Check whether --enable-arm64-crypto was given.
+if test ${enable_arm64_crypto+y}
+then :
+ enableval=$enable_arm64_crypto;
+else $as_nop
+ enable_arm64_crypto=no
+fi
+
+
+# Check whether --enable-x86-aesni was given.
+if test ${enable_x86_aesni+y}
+then :
+ enableval=$enable_x86_aesni;
+else $as_nop
+ enable_x86_aesni=no
+fi
+
+
+# Check whether --enable-x86-sha-ni was given.
+if test ${enable_x86_sha_ni+y}
+then :
+ enableval=$enable_x86_sha_ni;
+else $as_nop
+ enable_x86_sha_ni=no
+fi
+
+
+# Check whether --enable-x86-pclmul was given.
+if test ${enable_x86_pclmul+y}
+then :
+ enableval=$enable_x86_pclmul;
+else $as_nop
+ enable_x86_pclmul=no
+fi
+
+
+# Check whether --enable-power-crypto-ext was given.
+if test ${enable_power_crypto_ext+y}
+then :
+ enableval=$enable_power_crypto_ext;
+else $as_nop
+ enable_power_crypto_ext=no
+fi
+
+
+# Check whether --enable-power-altivec was given.
+if test ${enable_power_altivec+y}
+then :
+ enableval=$enable_power_altivec;
+else $as_nop
+ enable_altivec=no
+fi
+
+
+# Check whether --enable-power9 was given.
+if test ${enable_power9+y}
+then :
+ enableval=$enable_power9;
+else $as_nop
+ enable_power9=no
+fi
+
+
+# Check whether --enable-s390x-vf was given.
+if test ${enable_s390x_vf+y}
+then :
+ enableval=$enable_s390x_vf;
+else $as_nop
+ enable_s390x_vf=no
+fi
+
+
+# Check whether --enable-s390x-msa was given.
+if test ${enable_s390x_msa+y}
+then :
+ enableval=$enable_s390x_msa;
+else $as_nop
+ enable_s390x_msa=no
+fi
+
+
+# Check whether --enable-extra-asserts was given.
+if test ${enable_extra_asserts+y}
+then :
+ enableval=$enable_extra_asserts;
+else $as_nop
+ enable_extra_asserts=no
+fi
+
+
+# Check whether --enable-mini-gmp was given.
+if test ${enable_mini_gmp+y}
+then :
+ enableval=$enable_mini_gmp;
+else $as_nop
+ enable_mini_gmp=no
+fi
+
+
+
+
+if test "x$enable_mini_gmp" = xyes ; then
+ NETTLE_USE_MINI_GMP=1
+ HOGWEED_EXTRA_SYMBOLS="mpz_*;gmp_*;mpn_*;mp_*;"
+else
+ NETTLE_USE_MINI_GMP=0
+ HOGWEED_EXTRA_SYMBOLS=""
+fi
+
+
+
+
+if test "$enable_extra_asserts" = yes ; then
+ printf "%s\n" "#define WITH_EXTRA_ASSERTS 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -R flag" >&5
+printf %s "checking for -R flag... " >&6; }
+RPATHFLAG=''
+case "$host_os" in
+ osf1*) RPATHFLAG="-rpath " ;;
+ irix6.*|irix5.*) RPATHFLAG="-rpath " ;;
+ solaris*)
+ if test "$TCC" = "yes"; then
+ # tcc doesn't know about -R
+ RPATHFLAG="-Wl,-R,"
+ else
+ RPATHFLAG=-R
+ fi
+ ;;
+ linux*|freebsd*) RPATHFLAG="-Wl,-rpath," ;;
+ *) RPATHFLAG="" ;;
+esac
+
+if test x$RPATHFLAG = x ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
+printf "%s\n" "none" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $RPATHFLAG" >&5
+printf "%s\n" "using $RPATHFLAG" >&6; }
+fi
+
+RPATH_CANDIDATE_REAL_DIRS=''
+RPATH_CANDIDATE_DIRS=''
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Searching for libraries" >&5
+printf "%s\n" "Searching for libraries" >&6; }
+
+for d in `echo $with_lib_path | sed 's/:/ /g'` \
+ `echo $exec_prefix | sed "s@^NONE@$prefix/lib@g" | sed "s@^NONE@$ac_default_prefix/lib@g"` \
+ /usr/local/lib /sw/local/lib /sw/lib \
+ /usr/gnu/lib /opt/gnu/lib /sw/gnu/lib /usr/freeware/lib /usr/pkg/lib ; do
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $d" >&5
+printf %s "checking $d... " >&6; }
+ac_exists=no
+if test -d "$d/." ; then
+ ac_real_dir=`cd $d && pwd`
+ if test -n "$ac_real_dir" ; then
+ ac_exists=yes
+ for old in RPATH_CANDIDATE_REAL_DIRS ; do
+ ac_found=no
+ if test x$ac_real_dir = x$old ; then
+ ac_found=yes;
+ break;
+ fi
+ done
+ if test $ac_found = yes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: already added" >&5
+printf "%s\n" "already added" >&6; }
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: added" >&5
+printf "%s\n" "added" >&6; }
+ # LDFLAGS="$LDFLAGS -L $d"
+ RPATH_CANDIDATE_REAL_DIRS="$ac_real_dir $RPATH_CANDIDATE_REAL_DIRS"
+ RPATH_CANDIDATE_DIRS="$d $RPATH_CANDIDATE_DIRS"
+ fi
+ fi
+fi
+if test $ac_exists = no ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
+printf "%s\n" "not found" >&6; }
+fi
+
+done
+
+
+# Checks for programs.
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
+set dummy ${ac_tool_prefix}clang; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}clang"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+printf "%s\n" "$CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "clang", so it can be a program name with args.
+set dummy clang; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CC+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="clang"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+printf "%s\n" "$ac_ct_CC" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+fi
+
+
+test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion -version; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+printf %s "checking whether the C compiler works... " >&6; }
+ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else $as_nop
+ ac_file=''
+fi
+if test -z "$ac_file"
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+printf %s "checking for C compiler default output file name... " >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+printf "%s\n" "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+printf %s "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+printf "%s\n" "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main (void)
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+printf %s "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+printf "%s\n" "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+printf %s "checking for suffix of object files... " >&6; }
+if test ${ac_cv_objext+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else $as_nop
+ printf "%s\n" "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+printf "%s\n" "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
+printf %s "checking whether the compiler supports GNU C... " >&6; }
+if test ${ac_cv_c_compiler_gnu+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_compiler_gnu=yes
+else $as_nop
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+y}
+ac_save_CFLAGS=$CFLAGS
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+printf %s "checking whether $CC accepts -g... " >&6; }
+if test ${ac_cv_prog_cc_g+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_g=yes
+else $as_nop
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
+if test $ac_test_CFLAGS; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+ac_prog_cc_stdc=no
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
+printf %s "checking for $CC option to enable C11 features... " >&6; }
+if test ${ac_cv_prog_cc_c11+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c11=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c11_program
+_ACEOF
+for ac_arg in '' -std=gnu11
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c11=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c11" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c11" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c11" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
+printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
+ CC="$CC $ac_cv_prog_cc_c11"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
+ ac_prog_cc_stdc=c11
+fi
+fi
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
+printf %s "checking for $CC option to enable C99 features... " >&6; }
+if test ${ac_cv_prog_cc_c99+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c99=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c99_program
+_ACEOF
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c99=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c99" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c99" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c99" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
+ CC="$CC $ac_cv_prog_cc_c99"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
+ ac_prog_cc_stdc=c99
+fi
+fi
+if test x$ac_prog_cc_stdc = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
+printf %s "checking for $CC option to enable C89 features... " >&6; }
+if test ${ac_cv_prog_cc_c89+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_c_conftest_c89_program
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+fi
+
+if test "x$ac_cv_prog_cc_c89" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cc_c89" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
+ CC="$CC $ac_cv_prog_cc_c89"
+fi
+ ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
+ ac_prog_cc_stdc=c89
+fi
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ifunc support" >&5
+printf %s "checking for ifunc support... " >&6; }
+if test ${nettle_cv_link_ifunc+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+static int
+foo_imp(int x)
+{
+ return 1;
+}
+
+typedef void void_func (void);
+
+static void_func *
+foo_resolv(void)
+{
+ return (void_func *) foo_imp;
+}
+
+int foo (int x) __attribute__ ((ifunc("foo_resolv")));
+
+int
+main (void)
+{
+
+ return foo(0);
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ nettle_cv_link_ifunc=yes
+else $as_nop
+ nettle_cv_link_ifunc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_link_ifunc" >&5
+printf "%s\n" "$nettle_cv_link_ifunc" >&6; }
+
+if test "x$nettle_cv_link_ifunc" = xyes ; then
+ printf "%s\n" "#define HAVE_LINK_IFUNC 1" >>confdefs.h
+
+fi
+
+
+# Used by the testsuite only
+
+
+
+
+
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -z "$CXX"; then
+ if test -n "$CCC"; then
+ CXX=$CCC
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$CXX"; then
+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+printf "%s\n" "$CXX" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$CXX" && break
+ done
+fi
+if test -z "$CXX"; then
+ ac_ct_CXX=$CXX
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_CXX+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_CXX"; then
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
+printf "%s\n" "$ac_ct_CXX" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CXX" && break
+done
+
+ if test "x$ac_ct_CXX" = x; then
+ CXX="g++"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CXX=$ac_ct_CXX
+ fi
+fi
+
+ fi
+fi
+# Provide some information about the compiler.
+printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+printf "%s\n" "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
+printf %s "checking whether the compiler supports GNU C++... " >&6; }
+if test ${ac_cv_cxx_compiler_gnu+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_compiler_gnu=yes
+else $as_nop
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
+printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+if test $ac_compiler_gnu = yes; then
+ GXX=yes
+else
+ GXX=
+fi
+ac_test_CXXFLAGS=${CXXFLAGS+y}
+ac_save_CXXFLAGS=$CXXFLAGS
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
+printf %s "checking whether $CXX accepts -g... " >&6; }
+if test ${ac_cv_prog_cxx_g+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+ ac_cxx_werror_flag=yes
+ ac_cv_prog_cxx_g=no
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_g=yes
+else $as_nop
+ CXXFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+
+else $as_nop
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+ CXXFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
+printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
+if test $ac_test_CXXFLAGS; then
+ CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
+ CXXFLAGS="-g -O2"
+ else
+ CXXFLAGS="-g"
+ fi
+else
+ if test "$GXX" = yes; then
+ CXXFLAGS="-O2"
+ else
+ CXXFLAGS=
+ fi
+fi
+ac_prog_cxx_stdcxx=no
+if test x$ac_prog_cxx_stdcxx = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
+printf %s "checking for $CXX option to enable C++11 features... " >&6; }
+if test ${ac_cv_prog_cxx_cxx11+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cxx_cxx11=no
+ac_save_CXX=$CXX
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_cxx_conftest_cxx11_program
+_ACEOF
+for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
+do
+ CXX="$ac_save_CXX $ac_arg"
+ if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_cxx11=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CXX=$ac_save_CXX
+fi
+
+if test "x$ac_cv_prog_cxx_cxx11" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cxx_cxx11" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
+printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
+ CXX="$CXX $ac_cv_prog_cxx_cxx11"
+fi
+ ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
+ ac_prog_cxx_stdcxx=cxx11
+fi
+fi
+if test x$ac_prog_cxx_stdcxx = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
+printf %s "checking for $CXX option to enable C++98 features... " >&6; }
+if test ${ac_cv_prog_cxx_cxx98+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_prog_cxx_cxx98=no
+ac_save_CXX=$CXX
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_cxx_conftest_cxx98_program
+_ACEOF
+for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
+do
+ CXX="$ac_save_CXX $ac_arg"
+ if ac_fn_cxx_try_compile "$LINENO"
+then :
+ ac_cv_prog_cxx_cxx98=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam
+ test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CXX=$ac_save_CXX
+fi
+
+if test "x$ac_cv_prog_cxx_cxx98" = xno
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+printf "%s\n" "unsupported" >&6; }
+else $as_nop
+ if test "x$ac_cv_prog_cxx_cxx98" = x
+then :
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+printf "%s\n" "none needed" >&6; }
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
+printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
+ CXX="$CXX $ac_cv_prog_cxx_cxx98"
+fi
+ ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
+ ac_prog_cxx_stdcxx=cxx98
+fi
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"
+then :
+ IF_CXX=''
+else $as_nop
+ IF_CXX='#'
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+ # Check whether --enable-ld-version-script was given.
+if test ${enable_ld_version_script+y}
+then :
+ enableval=$enable_ld_version_script; have_ld_version_script=$enableval
+fi
+
+ if test -z "$have_ld_version_script"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
+printf %s "checking if LD -Wl,--version-script works... " >&6; }
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
+ cat > conftest.map <<EOF
+foo
+EOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ accepts_syntax_errors=yes
+else $as_nop
+ accepts_syntax_errors=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ if test "$accepts_syntax_errors" = no; then
+ cat > conftest.map <<EOF
+VERS_1 {
+ global: sym;
+};
+
+VERS_2 {
+ global: sym;
+} VERS_1;
+EOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ have_ld_version_script=yes
+else $as_nop
+ have_ld_version_script=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ else
+ have_ld_version_script=no
+ fi
+ rm -f conftest.map
+ LDFLAGS="$save_LDFLAGS"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
+printf "%s\n" "$have_ld_version_script" >&6; }
+ fi
+ if test "$have_ld_version_script" = "yes";then
+ EXTRA_LINKER_FLAGS="-Wl,--version-script=libnettle.map"
+
+ EXTRA_HOGWEED_LINKER_FLAGS="-Wl,--version-script=libhogweed.map"
+
+ fi
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval test \${ac_cv_prog_make_${ac_make}_set+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+ SET_MAKE=
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_RANLIB+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+printf "%s\n" "$RANLIB" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_RANLIB+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+printf "%s\n" "$ac_ct_RANLIB" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nm; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_NM+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$NM"; then
+ ac_cv_prog_NM="$NM" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NM="${ac_tool_prefix}nm"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+NM=$ac_cv_prog_NM
+if test -n "$NM"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
+printf "%s\n" "$NM" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NM"; then
+ ac_ct_NM=$NM
+ # Extract the first word of "nm", so it can be a program name with args.
+set dummy nm; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_NM+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_NM"; then
+ ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NM="nm"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NM=$ac_cv_prog_ac_ct_NM
+if test -n "$ac_ct_NM"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
+printf "%s\n" "$ac_ct_NM" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_NM" = x; then
+ NM="strings"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NM=$ac_ct_NM
+ fi
+else
+ NM="$ac_cv_prog_NM"
+fi
+
+# Used only for the GNU-stack configure test.
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+printf "%s\n" "$OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_AR+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+printf "%s\n" "$AR" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_prog_ac_ct_AR+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="ar"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+printf "%s\n" "$ac_ct_AR" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+
+
+ # Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+printf %s "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test ${ac_cv_path_install+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ # Account for fact that we put trailing slashes in our PATH walk.
+case $as_dir in #((
+ ./ | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test ${ac_cv_path_install+y}; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+printf "%s\n" "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+
+# According to the autoconf manual, needs install-sh from
+# autoconf-2.60 or automake-1.10 to avoid races.
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
+printf %s "checking for a race-free mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test ${ac_cv_path_mkdir+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
+ case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir ('*'coreutils) '* | \
+ 'BusyBox '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
+
+fi
+
+ test -d ./--version && rmdir ./--version
+ if test ${ac_cv_path_mkdir+y}; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+printf "%s\n" "$MKDIR_P" >&6; }
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+printf %s "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+printf "%s\n" "no, using $LN_S" >&6; }
+fi
+
+
+# Compiler tests for the build system
+
+if test -n "$CC_FOR_BUILD"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
+printf %s "checking build system compiler $CC_FOR_BUILD... " >&6; }
+# remove anything that might look like compiler output to our "||" expression
+rm -f conftest* a.out b.out a.exe a_out.exe
+cat >conftest.c <<EOF
+int
+main ()
+{
+ return 0;
+}
+EOF
+gmp_compile="$CC_FOR_BUILD conftest.c"
+cc_for_build_works=no
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
+ (eval $gmp_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
+ cc_for_build_works=yes
+ fi
+fi
+rm -f conftest* a.out b.out a.exe a_out.exe
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
+printf "%s\n" "$cc_for_build_works" >&6; }
+if test "$cc_for_build_works" = yes; then
+ :
+else
+ as_fn_error $? "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
+fi
+
+elif test -n "$HOST_CC"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
+printf %s "checking build system compiler $HOST_CC... " >&6; }
+# remove anything that might look like compiler output to our "||" expression
+rm -f conftest* a.out b.out a.exe a_out.exe
+cat >conftest.c <<EOF
+int
+main ()
+{
+ return 0;
+}
+EOF
+gmp_compile="$HOST_CC conftest.c"
+cc_for_build_works=no
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
+ (eval $gmp_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
+ cc_for_build_works=yes
+ fi
+fi
+rm -f conftest* a.out b.out a.exe a_out.exe
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
+printf "%s\n" "$cc_for_build_works" >&6; }
+if test "$cc_for_build_works" = yes; then
+ CC_FOR_BUILD=$HOST_CC
+else
+ as_fn_error $? "Specified HOST_CC doesn't seem to work" "$LINENO" 5
+fi
+
+else
+ if test $cross_compiling = no ; then
+ CC_FOR_BUILD="$CC"
+ else
+ for i in gcc cc c89 c99; do
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
+printf %s "checking build system compiler $i... " >&6; }
+# remove anything that might look like compiler output to our "||" expression
+rm -f conftest* a.out b.out a.exe a_out.exe
+cat >conftest.c <<EOF
+int
+main ()
+{
+ return 0;
+}
+EOF
+gmp_compile="$i conftest.c"
+cc_for_build_works=no
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
+ (eval $gmp_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
+ cc_for_build_works=yes
+ fi
+fi
+rm -f conftest* a.out b.out a.exe a_out.exe
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
+printf "%s\n" "$cc_for_build_works" >&6; }
+if test "$cc_for_build_works" = yes; then
+ CC_FOR_BUILD=$i
+ break
+else
+ :
+fi
+
+ done
+ if test -z "$CC_FOR_BUILD"; then
+ as_fn_error $? "Cannot find a build system compiler" "$LINENO" 5
+ fi
+ fi
+ if test "$CC_FOR_BUILD" = gcc ; then
+ CC_FOR_BUILD="$CC_FOR_BUILD -O -g"
+ fi
+fi
+
+
+
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
+printf %s "checking for build system executable suffix... " >&6; }
+if test ${gmp_cv_prog_exeext_for_build+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test $cross_compiling = no ; then
+ gmp_cv_prog_exeext_for_build="$EXEEXT"
+else
+ cat >conftest.c <<EOF
+int
+main ()
+{
+ return 0;
+}
+EOF
+ for i in .exe ,ff8 ""; do
+ gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
+ (eval $gmp_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if (./conftest) 2>&5; then
+ gmp_cv_prog_exeext_for_build=$i
+ break
+ fi
+ fi
+ done
+ rm -f conftest*
+ if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
+ as_fn_error $? "Cannot determine executable suffix" "$LINENO" 5
+ fi
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
+printf "%s\n" "$gmp_cv_prog_exeext_for_build" >&6; }
+EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
+
+
+
+# Check if valgrind is working; expected to fail in cross builds.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if valgrind is working" >&5
+printf %s "checking if valgrind is working... " >&6; }
+if test ${nettle_cv_prog_valgrind+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+
+ # Valgrind is known to work poorly and sometimes hang indefinitely
+ # on executables built with gcc's leak-sanitizer and
+ # address-sanitizer, and with clang's memory sanitizer. Attempt to
+ # work around. See https://bugs.kde.org/show_bug.cgi?id=492255
+ if "$NM" ./conftest$EXEEXT 2>&5 |
+ grep '_lsan_\|_msan_\|_asan_' >/dev/null; then
+ nettle_cv_prog_valgrind=no
+ elif valgrind -q ./conftest$EXEEXT 2>&5; then
+ nettle_cv_prog_valgrind=yes
+ else
+ nettle_cv_prog_valgrind=no
+ fi
+else $as_nop
+ nettle_cv_prog_valgrind=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_prog_valgrind" >&5
+printf "%s\n" "$nettle_cv_prog_valgrind" >&6; }
+ if test "$nettle_cv_prog_valgrind" = yes ; then
+ IF_VALGRIND=''
+ else
+ IF_VALGRIND='#'
+ fi
+
+
+
+# Check whether --enable-dependency_tracking was given.
+if test ${enable_dependency_tracking+y}
+then :
+ enableval=$enable_dependency_tracking;
+else $as_nop
+ enable_dependency_tracking=yes
+fi
+
+
+DEP_FLAGS=''
+DEP_PROCESS='true'
+if test x$enable_dependency_tracking = xyes ; then
+ if test x$GCC = xyes ; then
+ gcc_version=`gcc --version | head -1`
+ case "$gcc_version" in
+ 2.*|*[!0-9.]2.*)
+ enable_dependency_tracking=no
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&5
+printf "%s\n" "$as_me: WARNING: Dependency tracking disabled, gcc-3.x is needed" >&2;}
+ ;;
+ *)
+ DEP_FLAGS='-MT $@ -MD -MP -MF $@.d'
+ DEP_PROCESS='true'
+ ;;
+ esac
+ else
+ enable_dependency_tracking=no
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking disabled" >&5
+printf "%s\n" "$as_me: WARNING: Dependency tracking disabled" >&2;}
+ fi
+fi
+
+
+
+
+if test "x$enable_gcov" = "xyes"; then
+ CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
+fi
+
+# Checks for typedefs, structures, and compiler characteristics.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+printf %s "checking for an ANSI C-conforming const... " >&6; }
+if test ${ac_cv_c_const+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this sort of thing. */
+ typedef int charset[2];
+ const charset cs = { 0, 0 };
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* IBM XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this sort of thing. */
+ char tx;
+ char *t = &tx;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; } bx;
+ struct s *b = &bx; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_const=yes
+else $as_nop
+ ac_cv_c_const=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
+printf "%s\n" "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+printf "%s\n" "#define const /**/" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
+printf %s "checking for inline... " >&6; }
+if test ${ac_cv_c_inline+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo (void) {return 0; }
+$ac_kw foo_t foo (void) {return 0; }
+#endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_inline=$ac_kw
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
+printf "%s\n" "$ac_cv_c_inline" >&6; }
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+printf %s "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test ${ac_cv_prog_CPP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # Double quotes because $CC needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"
+then :
+
+else $as_nop
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"
+then :
+ # Broken: success on invalid input.
+continue
+else $as_nop
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok
+then :
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+printf "%s\n" "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"
+then :
+
+else $as_nop
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"
+then :
+ # Broken: success on invalid input.
+continue
+else $as_nop
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok
+then :
+
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+printf %s "checking for grep that handles long lines and -e... " >&6; }
+if test ${ac_cv_path_GREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in grep ggrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_GREP" || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+printf "%s\n" "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+printf %s "checking for egrep... " >&6; }
+if test ${ac_cv_path_EGREP+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_prog in egrep
+ do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ printf %s 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ printf "%s\n" 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+printf "%s\n" "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
+printf %s "checking for uid_t in sys/types.h... " >&6; }
+if test ${ac_cv_type_uid_t+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "uid_t" >/dev/null 2>&1
+then :
+ ac_cv_type_uid_t=yes
+else $as_nop
+ ac_cv_type_uid_t=no
+fi
+rm -rf conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
+printf "%s\n" "$ac_cv_type_uid_t" >&6; }
+if test $ac_cv_type_uid_t = no; then
+
+printf "%s\n" "#define uid_t int" >>confdefs.h
+
+
+printf "%s\n" "#define gid_t int" >>confdefs.h
+
+fi
+
+ac_header= ac_cache=
+for ac_item in $ac_header_c_list
+do
+ if test $ac_cache; then
+ ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
+ if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
+ printf "%s\n" "#define $ac_item 1" >> confdefs.h
+ fi
+ ac_header= ac_cache=
+ elif test $ac_header; then
+ ac_cache=$ac_item
+ else
+ ac_header=$ac_item
+ fi
+done
+
+
+
+
+
+
+
+
+if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
+then :
+
+printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
+if test "x$ac_cv_type_size_t" = xyes
+then :
+
+else $as_nop
+
+printf "%s\n" "#define size_t unsigned int" >>confdefs.h
+
+fi
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
+printf %s "checking size of long... " >&6; }
+if test ${ac_cv_sizeof_long+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
+then :
+
+else $as_nop
+ if test "$ac_cv_type_long" = yes; then
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (long)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_long=0
+ fi
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
+printf "%s\n" "$ac_cv_sizeof_long" >&6; }
+
+
+
+printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
+printf %s "checking size of size_t... " >&6; }
+if test ${ac_cv_sizeof_size_t+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
+then :
+
+else $as_nop
+ if test "$ac_cv_type_size_t" = yes; then
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (size_t)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_size_t=0
+ fi
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
+printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
+
+
+
+printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
+
+
+
+ for ac_header in openssl/evp.h openssl/ec.h openssl/rsa.h
+do :
+ as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"
+then :
+ cat >>confdefs.h <<_ACEOF
+#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else $as_nop
+ enable_openssl=no
+ break
+fi
+
+done
+
+# For use by the testsuite
+ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
+if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
+
+fi
+
+ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
+if test "x$ac_cv_header_dlfcn_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+printf %s "checking for dlopen in -ldl... " >&6; }
+if test ${ac_cv_lib_dl_dlopen+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char dlopen ();
+int
+main (void)
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_dl_dlopen=yes
+else $as_nop
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes
+then :
+
+printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
+
+fi
+
+
+# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
+# for constant arguments. Useless!
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
+printf %s "checking for working alloca.h... " >&6; }
+if test ${ac_cv_working_alloca_h+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <alloca.h>
+int
+main (void)
+{
+char *p = (char *) alloca (2 * sizeof (int));
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_working_alloca_h=yes
+else $as_nop
+ ac_cv_working_alloca_h=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
+printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
+if test $ac_cv_working_alloca_h = yes; then
+
+printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
+printf %s "checking for alloca... " >&6; }
+if test ${ac_cv_func_alloca_works+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test $ac_cv_working_alloca_h = yes; then
+ ac_cv_func_alloca_works=yes
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stddef.h>
+#ifndef alloca
+# ifdef __GNUC__
+# define alloca __builtin_alloca
+# elif defined _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+# else
+# ifdef __cplusplus
+extern "C"
+# endif
+void *alloca (size_t);
+# endif
+#endif
+
+int
+main (void)
+{
+char *p = (char *) alloca (1);
+ if (p) return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_func_alloca_works=yes
+else $as_nop
+ ac_cv_func_alloca_works=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
+printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
+fi
+
+if test $ac_cv_func_alloca_works = yes; then
+
+printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
+
+else
+ # The SVR3 libPW and SVR4 libucb both contain incompatible functions
+# that cause trouble. Some versions do not even contain alloca or
+# contain a buggy version. If you still want to use their alloca,
+# use ar to extract alloca.o from them instead of compiling alloca.c.
+
+ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
+
+printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
+printf %s "checking stack direction for C alloca... " >&6; }
+if test ${ac_cv_c_stack_direction+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ if test "$cross_compiling" = yes
+then :
+ ac_cv_c_stack_direction=0
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+find_stack_direction (int *addr, int depth)
+{
+ int dir, dummy = 0;
+ if (! addr)
+ addr = &dummy;
+ *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
+ dir = depth ? find_stack_direction (addr, depth - 1) : 0;
+ return dir + dummy;
+}
+
+int
+main (int argc, char **argv)
+{
+ return find_stack_direction (0, argc + !argv + 20) < 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"
+then :
+ ac_cv_c_stack_direction=1
+else $as_nop
+ ac_cv_c_stack_direction=-1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
+printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
+printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
+
+
+fi
+
+ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
+if test "x$ac_cv_header_malloc_h" = xyes
+then :
+ printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
+
+fi
+
+
+
+# getenv_secure is used for fat overrides,
+# getline is used in the testsuite
+ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
+if test "x$ac_cv_func_secure_getenv" = xyes
+then :
+ printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
+if test "x$ac_cv_func_getline" = xyes
+then :
+ printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
+
+fi
+ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
+if test "x$ac_cv_func_elf_aux_info" = xyes
+then :
+ printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
+
+fi
+
+
+ASM_WORDS_BIGENDIAN=unknown
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
+printf %s "checking whether byte ordering is bigendian... " >&6; }
+if test ${ac_cv_c_bigendian+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_cv_c_bigendian=unknown
+ # See if we're dealing with a universal compiler.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __APPLE_CC__
+ not a universal capable compiler
+ #endif
+ typedef int dummy;
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ # Check for potential -arch flags. It is not universal unless
+ # there are at least two -arch flags with different values.
+ ac_arch=
+ ac_prev=
+ for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
+ if test -n "$ac_prev"; then
+ case $ac_word in
+ i?86 | x86_64 | ppc | ppc64)
+ if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
+ ac_arch=$ac_word
+ else
+ ac_cv_c_bigendian=universal
+ break
+ fi
+ ;;
+ esac
+ ac_prev=
+ elif test "x$ac_word" = "x-arch"; then
+ ac_prev=arch
+ fi
+ done
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main (void)
+{
+#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
+ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
+ && LITTLE_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main (void)
+{
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_bigendian=yes
+else $as_nop
+ ac_cv_c_bigendian=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main (void)
+{
+#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ # It does; now see whether it defined to _BIG_ENDIAN or not.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main (void)
+{
+#ifndef _BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ ac_cv_c_bigendian=yes
+else $as_nop
+ ac_cv_c_bigendian=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # Compile a test program.
+ if test "$cross_compiling" = yes
+then :
+ # Try to guess by grepping values from an object file.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+unsigned short int ascii_mm[] =
+ { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+ unsigned short int ascii_ii[] =
+ { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+ int use_ascii (int i) {
+ return ascii_mm[i] + ascii_ii[i];
+ }
+ unsigned short int ebcdic_ii[] =
+ { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+ unsigned short int ebcdic_mm[] =
+ { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+ int use_ebcdic (int i) {
+ return ebcdic_mm[i] + ebcdic_ii[i];
+ }
+ extern int foo;
+
+int
+main (void)
+{
+return use_ascii (foo) == use_ebcdic (foo);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
+ ac_cv_c_bigendian=yes
+ fi
+ if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+ # finding both strings is unlikely to happen, but who knows?
+ ac_cv_c_bigendian=unknown
+ fi
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+main (void)
+{
+
+ /* Are we little or big endian? From Harbison&Steele. */
+ union
+ {
+ long int l;
+ char c[sizeof (long int)];
+ } u;
+ u.l = 1;
+ return u.c[sizeof (long int) - 1] == 1;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"
+then :
+ ac_cv_c_bigendian=no
+else $as_nop
+ ac_cv_c_bigendian=yes
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ fi
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
+printf "%s\n" "$ac_cv_c_bigendian" >&6; }
+ case $ac_cv_c_bigendian in #(
+ yes)
+ printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
+
+ ASM_WORDS_BIGENDIAN=yes;; #(
+ no)
+ ASM_WORDS_BIGENDIAN=no ;; #(
+ universal)
+
+printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
+ ;; #(
+ *)
+ as_fn_error $? "unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ esac
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
+printf %s "checking for __builtin_bswap64... " >&6; }
+if test ${nettle_cv_c_builtin_bswap64+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdint.h>
+
+int
+main (void)
+{
+
+uint64_t x = 17;
+uint64_t y = __builtin_bswap64(x);
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ nettle_cv_c_builtin_bswap64=yes
+else $as_nop
+ nettle_cv_c_builtin_bswap64=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_c_builtin_bswap64" >&5
+printf "%s\n" "$nettle_cv_c_builtin_bswap64" >&6; }
+
+
+if test "x$nettle_cv_c_builtin_bswap64" = "xyes" ; then
+ printf "%s\n" "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
+printf %s "checking for __attribute__... " >&6; }
+if test ${lsh_cv_c_attribute+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <stdlib.h>
+
+static void foo(void) __attribute__ ((noreturn));
+
+static void __attribute__ ((noreturn))
+foo(void)
+{
+ exit(1);
+}
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ lsh_cv_c_attribute=yes
+else $as_nop
+ lsh_cv_c_attribute=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
+printf "%s\n" "$lsh_cv_c_attribute" >&6; }
+
+
+if test "x$lsh_cv_c_attribute" = "xyes"; then
+ printf "%s\n" "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
+
+fi
+
+
+
+# Check for file locking. We (AC_PROG_CC?) have already checked for
+# sys/types.h and unistd.h.
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcntl file locking" >&5
+printf %s "checking for fcntl file locking... " >&6; }
+if test ${nettle_cv_fcntl_locking+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+#include <fcntl.h>
+
+int
+main (void)
+{
+
+int op = F_SETLKW;
+struct flock fl;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ nettle_cv_fcntl_locking=yes
+else $as_nop
+ nettle_cv_fcntl_locking=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_fcntl_locking" >&5
+printf "%s\n" "$nettle_cv_fcntl_locking" >&6; }
+
+
+if test "x$nettle_cv_fcntl_locking" = "xyes" ; then
+ printf "%s\n" "#define HAVE_FCNTL_LOCKING 1" >>confdefs.h
+
+fi
+
+# Checks for libraries
+if test "x$enable_public_key" = "xyes" ; then
+ if test "x$enable_mini_gmp" = "xno" ; then
+ # mpn_zero_p was added in GMP-6.1.0
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpn_zero_p in -lgmp" >&5
+printf %s "checking for __gmpn_zero_p in -lgmp... " >&6; }
+if test ${ac_cv_lib_gmp___gmpn_zero_p+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lgmp $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char __gmpn_zero_p ();
+int
+main (void)
+{
+return __gmpn_zero_p ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_gmp___gmpn_zero_p=yes
+else $as_nop
+ ac_cv_lib_gmp___gmpn_zero_p=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpn_zero_p" >&5
+printf "%s\n" "$ac_cv_lib_gmp___gmpn_zero_p" >&6; }
+if test "x$ac_cv_lib_gmp___gmpn_zero_p" = xyes
+then :
+ printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
+
+ LIBS="-lgmp $LIBS"
+
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, or too old. GMP-6.1.0 or later is needed, see https://gmplib.org/.
+ Support for public key algorithms will be unavailable." >&5
+printf "%s\n" "$as_me: WARNING: GNU MP not found, or too old. GMP-6.1.0 or later is needed, see https://gmplib.org/.
+ Support for public key algorithms will be unavailable." >&2;}
+ enable_public_key=no
+fi
+
+
+ # Add -R flags needed to run programs linked with gmp
+ if test $cross_compiling = no -a "x$RPATHFLAG" != x ; then
+ ac_success=no
+ if test "$cross_compiling" = yes
+then :
+ :
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int main(int argc, char **argv) { return 0; }
+_ACEOF
+if ac_fn_c_try_run "$LINENO"
+then :
+ ac_success=yes
+else $as_nop
+ ac_success=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+
+ if test $ac_success = no ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Running simple test program failed. Trying -R flags" >&5
+printf %s "checking Running simple test program failed. Trying -R flags... " >&6; }
+ ac_remaining_dirs=''
+ ac_rpath_save_LDFLAGS="$LDFLAGS"
+ for d in $RPATH_CANDIDATE_DIRS ; do
+ if test $ac_success = yes ; then
+ ac_remaining_dirs="$ac_remaining_dirs $d"
+ else
+ LDFLAGS="$RPATHFLAG$d $LDFLAGS"
+ if test "$cross_compiling" = yes
+then :
+ :
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int main(int argc, char **argv) { return 0; }
+_ACEOF
+if ac_fn_c_try_run "$LINENO"
+then :
+ ac_success=yes
+ ac_rpath_save_LDFLAGS="$LDFLAGS"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: adding $RPATHFLAG$d" >&5
+printf "%s\n" "adding $RPATHFLAG$d" >&6; }
+
+else $as_nop
+ ac_remaining_dirs="$ac_remaining_dirs $d"
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ LDFLAGS="$ac_rpath_save_LDFLAGS"
+ fi
+ done
+ RPATH_CANDIDATE_DIRS=$ac_remaining_dirs
+ fi
+ if test $ac_success = no ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
+printf "%s\n" "failed" >&6; }
+ fi
+fi
+
+ fi
+fi
+
+nettle_cv_gmp_numb_bits=0
+if test "x$enable_public_key" = "xyes" ; then
+ # Check for gmp limb size
+ if test "x$enable_mini_gmp" = "xyes" ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mini-gmp limb size" >&5
+printf %s "checking for mini-gmp limb size... " >&6; }
+ # With mini-gmp, mp_limb_t is always unsigned long.
+ if ac_fn_c_compute_int "$LINENO" "(sizeof(unsigned long) * CHAR_BIT)" "nettle_cv_gmp_numb_bits" "#include <limits.h>"
+then :
+
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot find value of GMP_NUMB_BITS
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
+printf "%s\n" "$nettle_cv_gmp_numb_bits bits" >&6; }
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP limb size" >&5
+printf %s "checking for GMP limb size... " >&6; }
+ if ac_fn_c_compute_int "$LINENO" "GMP_NUMB_BITS" "nettle_cv_gmp_numb_bits" "#include <gmp.h>"
+then :
+
+else $as_nop
+ { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot find value of GMP_NUMB_BITS
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5
+printf "%s\n" "$nettle_cv_gmp_numb_bits bits" >&6; }
+ fi
+fi
+
+# Substituted in Makefile, passed on to the eccdata command.
+NUMB_BITS="$nettle_cv_gmp_numb_bits"
+
+
+# Substituted in version.h, used only with mini-gmp.
+if test "x$enable_mini_gmp" = "xyes" ; then
+ GMP_NUMB_BITS="$NUMB_BITS"
+else
+ GMP_NUMB_BITS="n/a"
+fi
+
+
+# Figure out ABI. Currently, configurable only by setting CFLAGS.
+ABI=standard
+
+ELFV2_ABI=no # For powerpc64
+W64_ABI=no # For x86_64 windows
+
+case "$host_cpu" in
+ x86_64 | amd64)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__x86_64__) || defined(__arch64__)
+#error 64-bit x86
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ;;
+ *sparc*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__sparcv9) || defined(__arch64__)
+#error 64-bit sparc
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ;;
+ *mips64*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__mips64) || defined(__mips64__) || (defined(__sgi) && defined(__LP64__))
+#error 64-bit mips
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ;;
+ *powerpc64*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__PPC64__)
+#error 64-bit powerpc
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ if test "$ABI" = 64 ; then
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if _CALL_ELF == 2
+#error ELFv2 ABI
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+else $as_nop
+
+ ELFV2_ABI=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ fi
+ ;;
+ aarch64*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__aarch64__)
+#error 64-bit arm
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ;;
+ *s390x*)
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if defined(__s390x__)
+#error 64-bit s390x
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+
+ ABI=32
+
+else $as_nop
+
+ ABI=64
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ ;;
+esac
+
+if test "x$ABI" != xstandard ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Compiler uses $ABI-bit ABI. To change, set CC." >&5
+printf "%s\n" "$as_me: Compiler uses $ABI-bit ABI. To change, set CC." >&6;}
+ if test "$libdir" = '${exec_prefix}/lib' ; then
+ # Try setting a better default
+ case "$host_cpu:$host_os:$ABI" in
+ *:solaris*:32|*:sunos*:32)
+ libdir='${exec_prefix}/lib'
+ ;;
+ *:solaris*:64|*:sunos*:64)
+ libdir='${exec_prefix}/lib/64'
+ ;;
+ # Linux conventions are a mess... According to the Linux File
+ # Hierarchy Standard, all architectures except IA64 puts 32-bit
+ # libraries in lib, and 64-bit in lib64. Some distributions,
+ # e.g., Fedora and Gentoo, adhere to this standard, while at
+ # least Debian has decided to put 64-bit libraries in lib and
+ # 32-bit libraries in lib32.
+
+ # We try to figure out the convention, except if we're cross
+ # compiling. We use lib${ABI} if /usr/lib${ABI} exists and
+ # appears to not be a symlink to a different name.
+ *:linux*:32|*:linux*:64)
+ if test "$cross_compiling" = yes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&5
+printf "%s\n" "$as_me: WARNING: Cross compiling for linux. Can't guess if libraries go in lib${ABI} or lib." >&2;}; else
+ # The dash builtin pwd tries to be "helpful" and remember
+ # symlink names. Use -P option, and hope it's portable enough.
+ test -d /usr/lib${ABI} \
+ && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
+ && libdir='${exec_prefix}/'"lib${ABI}"
+ fi
+ ;;
+ # On freebsd, it seems 32-bit libraries are in lib32,
+ # and 64-bit in lib. Don't know about "kfreebsd", does
+ # it follow the Linux fhs conventions?
+ *:freebsd*:32)
+ libdir='${exec_prefix}/lib32'
+ ;;
+ *:freebsd*:64)
+ libdir='${exec_prefix}/lib'
+ ;;
+ *:irix*:32)
+ libdir='${exec_prefix}/lib32'
+ ;;
+ *:irix*:64)
+ libdir='${exec_prefix}/lib64'
+ ;;
+ *)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know where to install $ABI-bit libraries on this system." >&5
+printf "%s\n" "$as_me: WARNING: Don't know where to install $ABI-bit libraries on this system." >&2;};
+ esac
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Libraries to be installed in $libdir." >&5
+printf "%s\n" "$as_me: Libraries to be installed in $libdir." >&6;}
+ fi
+fi
+
+OPT_NETTLE_SOURCES=""
+FAT_TEST_LIST=""
+ASM_PPC_WANT_R_REGISTERS="n/a"
+
+# Select assembler code
+asm_path=
+if test "x$enable_assembler" = xyes ; then
+ case "$host_cpu" in
+ x86 | i?86* | k[5-8]* | pentium* | athlon)
+ asm_path=x86
+ ;;
+ x86_64 | amd64)
+ if test "$ABI" = 64 ; then
+ asm_path=x86_64
+ if test "x$enable_fat" = xyes ; then
+ asm_path="x86_64/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-x86_64.c $OPT_NETTLE_SOURCES"
+ # For now, not enabling aesni or sha_ni, since at least
+ # the latter appears unavailable on the gitlab test machines.
+ FAT_TEST_LIST="vendor:intel vendor:amd"
+ else
+ if test "x$enable_x86_aesni" = xyes ; then
+ asm_path="x86_64/aesni $asm_path"
+ fi
+ if test "x$enable_x86_sha_ni" = xyes ; then
+ asm_path="x86_64/sha_ni $asm_path"
+ fi
+ if test "x$enable_x86_pclmul" = xyes ; then
+ asm_path="x86_64/pclmul $asm_path"
+ fi
+ fi
+ else
+ asm_path=x86
+ fi
+ ;;
+ *sparc*)
+ if test "$ABI" = 64 ; then
+ asm_path=sparc64
+ fi
+ ;;
+ arm*)
+ asm_path=arm
+ if test "x$enable_fat" = xyes ; then
+ asm_path="arm/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-arm.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="arch:5 arch:6,neon"
+ else
+ case "$host_cpu" in
+ armv6* | armv7*)
+ if test "$enable_arm_neon" = auto ; then
+ if test "$cross_compiling" = yes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if assembler accepts Neon instructions" >&5
+printf %s "checking if assembler accepts Neon instructions... " >&6; }
+if test ${nettle_cv_asm_arm_neon+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+
+.text
+foo:
+ vmlal.u32 q1, d0, d1
+
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ nettle_cv_asm_arm_neon=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ nettle_cv_asm_arm_neon=no
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_arm_neon" >&5
+printf "%s\n" "$nettle_cv_asm_arm_neon" >&6; }
+ enable_arm_neon="$nettle_cv_asm_arm_neon"
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if /proc/cpuinfo claims neon support" >&5
+printf %s "checking if /proc/cpuinfo claims neon support... " >&6; }
+ if grep '^Features.*:.* neon' /proc/cpuinfo >/dev/null ; then
+ enable_arm_neon=yes
+ else
+ enable_arm_neon=no
+ fi
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_arm_neon" >&5
+printf "%s\n" "$enable_arm_neon" >&6; }
+ fi
+fi
+
+
+ asm_path="arm/v6 arm"
+ ;;
+ esac
+ if test "x$enable_arm_neon" = xyes ; then
+ asm_path="arm/neon $asm_path"
+ fi
+ fi
+ ;;
+ aarch64*)
+ if test "$ABI" = 64 ; then
+ asm_path=arm64
+ if test "x$enable_fat" = xyes ; then
+ asm_path="arm64/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-arm64.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="none aes pmull sha1 sha2"
+ else
+ if test "$enable_arm64_crypto" = yes ; then
+ asm_path="arm64/crypto $asm_path"
+ fi
+ fi
+ else
+ # As far as I understand, Neon instructions are unlikely to be
+ # missing. It may be omitted "only for implementations
+ # targeting specialized markets", to quote the Armv8 reference
+ # manual.
+ asm_path="arm/neon arm/v6 arm"
+ fi
+ ;;
+ *powerpc64*)
+ if test "$ABI" = 64 ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
+printf %s "checking if the assembler needs r on registers... " >&6; }
+if test ${gmp_cv_asm_powerpc_r_registers+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+ $gmp_cv_asm_text
+ mtctr r6
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ gmp_cv_asm_powerpc_r_registers=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ cat >conftest.s <<EOF
+ .text
+ mtctr 6
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ gmp_cv_asm_powerpc_r_registers=no
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ as_fn_error $? "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
+fi
+rm -f conftest*
+
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
+printf "%s\n" "$gmp_cv_asm_powerpc_r_registers" >&6; }
+ASM_PPC_WANT_R_REGISTERS="$gmp_cv_asm_powerpc_r_registers"
+
+ asm_path="powerpc64"
+ if test "x$enable_fat" = xyes ; then
+ asm_path="powerpc64/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-ppc.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="none crypto_ext altivec power9"
+ else
+ if test "$enable_power9" = yes ; then
+ asm_path="powerpc64/p9 $asm_path"
+ fi
+ if test "$enable_power_crypto_ext" = yes ; then
+ asm_path="powerpc64/p8 $asm_path"
+ fi
+ if test "$enable_power_altivec" = yes ; then
+ asm_path="powerpc64/p7 $asm_path"
+ fi
+ fi
+ fi
+ ;;
+ *s390x*)
+ if test "$ABI" = 64 ; then
+ asm_path="s390x"
+ if test "x$enable_fat" = xyes ; then
+ asm_path="s390x/fat $asm_path"
+ OPT_NETTLE_SOURCES="fat-s390x.c $OPT_NETTLE_SOURCES"
+ FAT_TEST_LIST="none vf msa msa_x1 msa_x2 msa_x4"
+ else
+ if test "$enable_s390x_vf" = yes ; then
+ asm_path="s390x/vf $asm_path"
+ fi
+ if test "$enable_s390x_msa" = yes ; then
+ asm_path="s390x/msa s390x/msa_x1 s390x/msa_x2 s390x/msa_x4 $asm_path"
+ fi
+ fi
+ fi
+ ;;
+ *)
+ enable_assembler=no
+ ;;
+ esac
+fi
+
+# Files which replace a C source file (or otherwise don't correspond
+# to a new object file).
+asm_replace_list="aes-encrypt-internal.asm aes-decrypt-internal.asm \
+ aes-invert-internal.asm \
+ aes128-set-encrypt-key.asm aes128-set-decrypt-key.asm \
+ aes128-encrypt.asm aes128-decrypt.asm \
+ aes192-set-encrypt-key.asm aes192-set-decrypt-key.asm \
+ aes192-encrypt.asm aes192-decrypt.asm \
+ aes256-set-encrypt-key.asm aes256-set-decrypt-key.asm \
+ aes256-encrypt.asm aes256-decrypt.asm \
+ cbc-aes128-encrypt.asm cbc-aes192-encrypt.asm \
+ cbc-aes256-encrypt.asm \
+ camellia-crypt-internal.asm \
+ memxor.asm memxor3.asm \
+ ghash-set-key.asm ghash-update.asm \
+ poly1305-internal.asm \
+ chacha-core-internal.asm \
+ salsa20-crypt.asm salsa20-core-internal.asm \
+ serpent-encrypt.asm serpent-decrypt.asm \
+ sha1-compress.asm sha256-compress-n.asm sha512-compress.asm \
+ sha3-permute.asm umac-nh.asm umac-nh-n.asm machine.m4"
+
+# Assembler files which generate additional object files if they are used.
+asm_nettle_optional_list="cpuid.asm cpu-facility.asm \
+ memxor-2.asm memxor3-2.asm \
+ aes-encrypt-internal-2.asm aes-decrypt-internal-2.asm aes-invert-internal-2.asm \
+ aes128-set-encrypt-key-2.asm aes128-set-decrypt-key-2.asm \
+ aes128-encrypt-2.asm aes128-decrypt-2.asm \
+ aes192-set-encrypt-key-2.asm aes192-set-decrypt-key-2.asm \
+ aes192-encrypt-2.asm aes192-decrypt-2.asm \
+ aes256-set-encrypt-key-2.asm aes256-set-decrypt-key-2.asm \
+ aes256-encrypt-2.asm aes256-decrypt-2.asm \
+ cbc-aes128-encrypt-2.asm cbc-aes192-encrypt-2.asm cbc-aes256-encrypt-2.asm \
+ chacha-2core.asm chacha-3core.asm chacha-4core.asm chacha-core-internal-2.asm \
+ poly1305-blocks.asm poly1305-internal-2.asm \
+ ghash-set-key-2.asm ghash-update-2.asm \
+ gcm-aes-encrypt.asm gcm-aes-encrypt-2.asm \
+ gcm-aes-decrypt.asm gcm-aes-decrypt-2.asm\
+ salsa20-2core.asm salsa20-core-internal-2.asm \
+ sha1-compress-2.asm sha256-compress-n-2.asm \
+ sha3-permute-2.asm sha512-compress-2.asm \
+ umac-nh-n-2.asm umac-nh-2.asm"
+
+asm_hogweed_optional_list=""
+if test "x$enable_public_key" = "xyes" ; then
+ asm_hogweed_optional_list="ecc-secp192r1-modp.asm ecc-secp224r1-modp.asm \
+ ecc-secp256r1-redc.asm ecc-secp384r1-modp.asm ecc-secp521r1-modp.asm \
+ ecc-curve25519-modp.asm ecc-curve448-modp.asm"
+fi
+
+OPT_NETTLE_OBJS=""
+OPT_HOGWEED_OBJS=""
+
+asm_file_list=""
+
+if test "x$enable_assembler" = xyes ; then
+ if test -n "$asm_path"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Looking for assembler files in $asm_path." >&5
+printf "%s\n" "$as_me: Looking for assembler files in $asm_path." >&6;}
+ for tmp_f in $asm_replace_list ; do
+ for asm_dir in $asm_path ; do
+ if test -f "$srcdir/$asm_dir/$tmp_f"; then
+ asm_file_list="$asm_file_list $tmp_f"
+ ac_config_links="$ac_config_links $tmp_f:$asm_dir/$tmp_f"
+
+ break
+ fi
+ done
+ done
+ for tmp_n in $asm_nettle_optional_list ; do
+ tmp_b=`echo "$tmp_n" | sed 's/\.[^.]*$//'`
+ for asm_dir in $asm_path ; do
+ if test -f "$srcdir/$asm_dir/$tmp_n"; then
+ asm_file_list="$asm_file_list $tmp_n"
+ ac_config_links="$ac_config_links $tmp_n:$asm_dir/$tmp_n"
+
+ while read tmp_func ; do
+ printf "%s\n" "#define HAVE_NATIVE_$tmp_func 1" >>confdefs.h
+
+ eval HAVE_NATIVE_$tmp_func=yes
+ done <<EOF
+`sed -n 's/^.*[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_n"`
+EOF
+ OPT_NETTLE_OBJS="$OPT_NETTLE_OBJS $tmp_b"'.$(OBJEXT)'
+ break
+ fi
+ done
+ done
+ for tmp_h in $asm_hogweed_optional_list ; do
+ tmp_b=`echo "$tmp_h" | sed 's/\.[^.]*$//'`
+ for asm_dir in $asm_path ; do
+ if test -f "$srcdir/$asm_dir/$tmp_h"; then
+ tmp_bits=`grep GMP_NUMB_BITS "$srcdir/$asm_dir/$tmp_h" \
+ | sed 's/^.*GMP_NUMB_BITS(\([0-9]*\)).*$/\1/'`
+ if test "$tmp_bits" && test "$tmp_bits" != "${NUMB_BITS}" ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits" >&5
+printf "%s\n" "$as_me: WARNING: skipping $tmp_h, because GMP_NUMB_BITS != $tmp_bits" >&2;}
+ continue
+ fi
+ asm_file_list="$asm_file_list $tmp_h"
+ ac_config_links="$ac_config_links $tmp_h:$asm_dir/$tmp_h"
+
+ while read tmp_func ; do
+ printf "%s\n" "#define HAVE_NATIVE_$tmp_func 1" >>confdefs.h
+
+ eval HAVE_NATIVE_$tmp_func=yes
+ done <<EOF
+`sed -n 's/[^ ]*PROLOGUE(_*\(nettle_\)*\([^)]*\)).*$/\2/p' < "$srcdir/$asm_dir/$tmp_h"`
+EOF
+ OPT_HOGWEED_OBJS="$OPT_HOGWEED_OBJS $tmp_b"'.$(OBJEXT)'
+ break
+ fi
+ done
+ done
+ if test -z "$asm_file_list"; then
+ enable_assembler=no
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No assembler files found." >&5
+printf "%s\n" "$as_me: WARNING: No assembler files found." >&2;}
+ fi
+ fi
+ case "$host_os" in
+ darwin*)
+ ASM_RODATA='.section __TEXT,__const'
+ ;;
+ *)
+ ASM_RODATA='.section .rodata'
+ ;;
+ esac
+fi
+
+
+
+
+
+
+if test "x$enable_assembler" = xyes ; then
+ IF_ASM=''
+else
+ IF_ASM='#'
+fi
+
+
+
+
+
+if test "x$enable_pic" = xyes; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCPIC" >&5
+printf %s "checking CCPIC... " >&6; }
+if test ${lsh_cv_sys_ccpic+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+
+ if test -z "$CCPIC" ; then
+ if test "$GCC" = yes ; then
+ case "$host_os" in
+ bsdi4.*) CCPIC="-fPIC" ;;
+ bsdi*) CCPIC="" ;;
+ darwin*) CCPIC="-fPIC" ;;
+ freebsd*|netbsd*|openbsd*) CCPIC="-fPIC" ;;
+ # Could also use -fpic, depending on the number of symbol references
+ solaris*) CCPIC="-fPIC" ;;
+ cygwin*) CCPIC="" ;;
+ mingw32*) CCPIC="" ;;
+ *) CCPIC="-fpic" ;;
+ esac
+ else
+ case "$host_os" in
+ darwin*) CCPIC="-fPIC" ;;
+ irix*) CCPIC="-share" ;;
+ hpux*) CCPIC="+z"; ;;
+ freebsd*|netbsd*|openbsd*) CCPIC="-fPIC" ;;
+ sco*|sysv4.*) CCPIC="-KPIC -dy -Bdynamic" ;;
+ solaris*) CCPIC="-KPIC -Bdynamic" ;;
+ winnt*) CCPIC="-shared" ;;
+ *) CCPIC="" ;;
+ esac
+ fi
+ fi
+ OLD_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $CCPIC"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main (void)
+{
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ lsh_cv_sys_ccpic="$CCPIC"
+else $as_nop
+ lsh_cv_sys_ccpic=''
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ CFLAGS="$OLD_CFLAGS"
+
+fi
+
+CCPIC="$lsh_cv_sys_ccpic"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCPIC" >&5
+printf "%s\n" "$CCPIC" >&6; }
+else
+ CCPIC=''
+fi
+
+
+IF_DLL='#'
+LIBNETTLE_FILE_SRC='$(LIBNETTLE_FORLINK)'
+LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FORLINK)'
+EMULATOR=''
+
+case "$host_os" in
+ mingw32*|cygwin*)
+ # The actual DLLs, e.g. libnettle-$major-$minor.dll, are normally
+ # installed into the bin dir (or more exactly $libdir/../bin, for
+ # automake), while libnettle.dll.a, which is a stub file for
+ # linking to the DLL, is installed into the lib dir.
+ case "$host_os" in
+ mingw32*)
+ LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR).dll'
+ LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR).dll'
+ ;;
+ cygwin*)
+ LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR).dll'
+ LIBHOGWEED_FORLINK='cyghogweed-$(LIBHOGWEED_MAJOR).dll'
+ ;;
+ esac
+ if test "x$cross_compiling" = xyes ; then
+ EMULATOR=wine
+ fi
+ if test "x$ABI" = x64 ; then
+ W64_ABI=yes
+ fi
+ LIBNETTLE_SONAME=''
+ LIBNETTLE_FILE='libnettle.dll.a'
+ LIBNETTLE_FILE_SRC='$(LIBNETTLE_FILE)'
+ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
+ LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
+
+ LIBHOGWEED_SONAME=''
+ LIBHOGWEED_FILE='libhogweed.dll.a'
+ LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FILE)'
+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
+ LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
+ IF_DLL=''
+ ;;
+ midipix*)
+ if test "x$ABI" = x64 ; then
+ W64_ABI=yes
+ fi
+ LIBNETTLE_FORLINK=libnettle.so
+ LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
+ LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
+ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libnettle.lib.a -Wl,-soname=$(LIBNETTLE_SONAME)'
+ LIBNETTLE_LIBS=''
+
+ LIBHOGWEED_FORLINK=libhogweed.so
+ LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
+ LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-dsolib=libhogweed.lib.a -Wl,-soname=$(LIBHOGWEED_SONAME)'
+ LIBHOGWEED_LIBS='$(LIBS) .lib/libnettle.so.8'
+ ;;
+ darwin*)
+ LIBNETTLE_FORLINK=libnettle.dylib
+ LIBNETTLE_SONAME='libnettle.$(LIBNETTLE_MAJOR).dylib'
+ LIBNETTLE_FILE='libnettle.$(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR).dylib'
+ LIBNETTLE_LINK='$(CC) $(CFLAGS) -dynamiclib $(LDFLAGS) -install_name ${libdir}/$(LIBNETTLE_SONAME) -compatibility_version $(LIBNETTLE_MAJOR) -current_version $(LIBNETTLE_MAJOR).$(LIBNETTLE_MINOR)'
+ LIBNETTLE_LIBS=''
+
+ LIBHOGWEED_FORLINK=libhogweed.dylib
+ LIBHOGWEED_SONAME='libhogweed.$(LIBHOGWEED_MAJOR).dylib'
+ LIBHOGWEED_FILE='libhogweed.$(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR).dylib'
+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) -dynamiclib -L. $(LDFLAGS) -install_name ${libdir}/$(LIBHOGWEED_SONAME) -compatibility_version $(LIBHOGWEED_MAJOR) -current_version $(LIBHOGWEED_MAJOR).$(LIBHOGWEED_MINOR)'
+ LIBHOGWEED_LIBS='-lnettle $(LIBS)'
+ ;;
+ solaris*)
+ # Sun's ld uses -h to set the soname, and this option is passed
+ # through by both Sun's compiler and gcc. Might not work with GNU
+ # ld, but it's unusual to use GNU ld on Solaris.
+ LIBNETTLE_FORLINK=libnettle.so
+ LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
+ LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
+ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -h $(LIBNETTLE_SONAME)'
+ LIBNETTLE_LIBS=''
+
+ LIBHOGWEED_FORLINK=libhogweed.so
+ LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
+ LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) --shared -h $(LIBHOGWEED_SONAME)'
+ LIBHOGWEED_LIBS='libnettle.so $(LIBS)'
+ ;;
+ *)
+ LIBNETTLE_FORLINK=libnettle.so
+ LIBNETTLE_SONAME='$(LIBNETTLE_FORLINK).$(LIBNETTLE_MAJOR)'
+ LIBNETTLE_FILE='$(LIBNETTLE_SONAME).$(LIBNETTLE_MINOR)'
+ LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBNETTLE_SONAME)'
+ LIBNETTLE_LIBS=''
+
+ LIBHOGWEED_FORLINK=libhogweed.so
+ LIBHOGWEED_SONAME='$(LIBHOGWEED_FORLINK).$(LIBHOGWEED_MAJOR)'
+ LIBHOGWEED_FILE='$(LIBHOGWEED_SONAME).$(LIBHOGWEED_MINOR)'
+ LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$(LIBHOGWEED_SONAME)'
+ # Requested by debian, to make linking with only -lhogweed work
+ # (does not work in general, e.g., with static linking all of
+ # -lhogweed -lgmp -lnettle are still required). Also makes dlopen
+ # of libhogweed.so work, without having to use RTLD_GLOBAL.
+ LIBHOGWEED_LIBS='libnettle.so $(LIBS)'
+ ;;
+esac
+
+ASM_SYMBOL_PREFIX=''
+ASM_ELF_STYLE='no'
+ASM_COFF_STYLE='no'
+# GNU as default is to use @
+ASM_TYPE_FUNCTION='@function'
+ASM_TYPE_PROGBITS='@progbits'
+ASM_MARK_NOEXEC_STACK=''
+ASM_ALIGN_LOG=''
+
+if test x$enable_assembler = xyes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
+printf %s "checking if globals are prefixed by underscore... " >&6; }
+if test ${nettle_cv_asm_underscore+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # Default is no underscore
+ nettle_cv_asm_underscore=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int a_global_symbol;
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ $NM conftest.$OBJEXT >conftest.out
+ if grep _a_global_symbol conftest.out >/dev/null ; then
+ nettle_cv_asm_underscore=yes
+ elif grep a_global_symbol conftest.out >/dev/null ; then
+ nettle_cv_asm_underscore=no
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: nm does not list a_global_symbol at all" >&5
+printf "%s\n" "$as_me: WARNING: nm does not list a_global_symbol at all" >&2;}
+ fi
+else $as_nop
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: test program with a single global could not be compiled!?" >&5
+printf "%s\n" "$as_me: WARNING: test program with a single global could not be compiled!?" >&2;}
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_underscore" >&5
+printf "%s\n" "$nettle_cv_asm_underscore" >&6; }
+ if test x$nettle_cv_asm_underscore = xyes ; then
+ ASM_SYMBOL_PREFIX='_'
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,%function pseudo-ops" >&5
+printf %s "checking for ELF-style .type,%function pseudo-ops... " >&6; }
+if test ${nettle_cv_asm_type_percent_function+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+
+.text
+.globl foo
+.type foo,%function
+foo:
+.Lend:
+
+.size foo, .Lend - foo
+
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ nettle_cv_asm_type_percent_function=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ nettle_cv_asm_type_percent_function=no
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_percent_function" >&5
+printf "%s\n" "$nettle_cv_asm_type_percent_function" >&6; }
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF-style .type,#function pseudo-ops" >&5
+printf %s "checking for ELF-style .type,#function pseudo-ops... " >&6; }
+if test ${nettle_cv_asm_type_hash_function+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+
+.text
+.globl foo
+.type foo,#function
+foo:
+.Lend:
+
+.size foo, .Lend - foo
+
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ nettle_cv_asm_type_hash_function=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ nettle_cv_asm_type_hash_function=no
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_type_hash_function" >&5
+printf "%s\n" "$nettle_cv_asm_type_hash_function" >&6; }
+
+ if test x$nettle_cv_asm_type_percent_function = xyes ; then
+ ASM_ELF_STYLE='yes'
+ ASM_TYPE_FUNCTION='%function'
+ ASM_TYPE_PROGBITS='%progbits'
+ else
+ if test x$nettle_cv_asm_type_hash_function = xyes ; then
+ ASM_ELF_STYLE='yes'
+ ASM_TYPE_FUNCTION='#function'
+ ASM_TYPE_PROGBITS='#progbits'
+ fi
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for COFF-style .type directive" >&5
+printf %s "checking for COFF-style .type directive... " >&6; }
+if test ${nettle_cv_asm_coff_type+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+
+.text
+.globl _foo
+.def _foo
+.scl 2
+.type 32
+.endef
+_foo:
+
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ nettle_cv_asm_coff_type=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ nettle_cv_asm_coff_type=no
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_coff_type" >&5
+printf "%s\n" "$nettle_cv_asm_coff_type" >&6; }
+ if test "x$nettle_cv_asm_coff_type" = "xyes" ; then
+ ASM_COFF_STYLE=yes
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use a .note.GNU-stack section" >&5
+printf %s "checking if we should use a .note.GNU-stack section... " >&6; }
+if test ${nettle_cv_asm_gnu_stack+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ # Default
+ nettle_cv_asm_gnu_stack=no
+
+ cat >conftest.c <<EOF
+int foo() { return 0; }
+EOF
+ nettle_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$nettle_compile\""; } >&5
+ (eval $nettle_compile) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ $OBJDUMP -x conftest.o | grep '\.note\.GNU-stack' > /dev/null \
+ && nettle_cv_asm_gnu_stack=yes
+ else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ fi
+ rm -f conftest.*
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_gnu_stack" >&5
+printf "%s\n" "$nettle_cv_asm_gnu_stack" >&6; }
+ if test x$nettle_cv_asm_gnu_stack = xyes ; then
+ ASM_MARK_NOEXEC_STACK='.section .note.GNU-stack,"",TYPE_PROGBITS'
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
+printf %s "checking if .align assembly directive is logarithmic... " >&6; }
+if test ${nettle_cv_asm_align_log+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat >conftest.s <<EOF
+
+.align 3
+
+EOF
+gmp_assemble="$CC $CFLAGS $CPPFLAGS $ASM_FLAGS -c conftest.s >conftest.out 2>&1"
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
+ (eval $gmp_assemble) 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ cat conftest.out >&5
+ nettle_cv_asm_align_log=yes
+else
+ cat conftest.out >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.s >&5
+ nettle_cv_asm_align_log=no
+fi
+rm -f conftest*
+
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_align_log" >&5
+printf "%s\n" "$nettle_cv_asm_align_log" >&6; }
+ ASM_ALIGN_LOG="$nettle_cv_asm_align_log"
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Intel CET is enabled" >&5
+printf %s "checking if Intel CET is enabled... " >&6; }
+if test ${nettle_cv_asm_x86_intel_cet+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#ifndef __CET__
+#error Intel CET is not enabled
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ nettle_cv_asm_x86_intel_cet=yes
+else $as_nop
+ nettle_cv_asm_x86_intel_cet=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_x86_intel_cet" >&5
+printf "%s\n" "$nettle_cv_asm_x86_intel_cet" >&6; }
+if test "$nettle_cv_asm_x86_intel_cet" = yes; then
+ case $ABI in
+ 32|standard)
+ ASM_X86_ENDBR=endbr32
+ ASM_X86_MARK_CET_ALIGN=2
+ ;;
+ 64)
+ ASM_X86_ENDBR=endbr64
+ ASM_X86_MARK_CET_ALIGN=3
+ ;;
+ x32)
+ ASM_X86_ENDBR=endbr64
+ ASM_X86_MARK_CET_ALIGN=2
+ ;;
+ esac
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if .note.gnu.property section is needed" >&5
+printf %s "checking if .note.gnu.property section is needed... " >&6; }
+if test ${nettle_cv_asm_x86_gnu_property+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#if !defined __ELF__ || !defined __CET__
+#error GNU property is not needed
+#endif
+
+int
+main (void)
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ nettle_cv_asm_x86_gnu_property=yes
+else $as_nop
+ nettle_cv_asm_x86_gnu_property=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_asm_x86_gnu_property" >&5
+printf "%s\n" "$nettle_cv_asm_x86_gnu_property" >&6; }
+else
+ nettle_cv_asm_x86_gnu_property=no
+fi
+if test "$nettle_cv_asm_x86_gnu_property" = yes; then
+ ASM_X86_MARK_CET='
+ .pushsection ".note.gnu.property", "a"
+ .p2align ASM_X86_MARK_CET_ALIGN
+ .long 1f - 0f
+ .long 4f - 1f
+ .long 5
+0:
+ .asciz "GNU"
+1:
+ .p2align ASM_X86_MARK_CET_ALIGN
+ .long 0xc0000002
+ .long 3f - 2f
+2:
+ .long 3
+3:
+ .p2align ASM_X86_MARK_CET_ALIGN
+4:
+ .popsection'
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Extract the first word of "m4", so it can be a program name with args.
+set dummy m4; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_path_M4+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ case $M4 in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_M4="$M4" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_path_M4="$as_dir$ac_word$ac_exec_ext"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_M4" && ac_cv_path_M4="m4"
+ ;;
+esac
+fi
+M4=$ac_cv_path_M4
+if test -n "$M4"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
+printf "%s\n" "$M4" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+
+
+
+if test "x$enable_public_key" = xyes ; then
+ printf "%s\n" "#define WITH_HOGWEED 1" >>confdefs.h
+
+ IF_HOGWEED=''
+else
+ IF_HOGWEED='#'
+fi
+
+if test "x$enable_static" = xyes ; then
+ IF_STATIC=''
+else
+ IF_STATIC='#'
+fi
+
+IF_DLOPEN_TEST='#'
+if test "x$enable_shared" = xyes ; then
+ IF_SHARED=''
+ IF_NOT_SHARED='#'
+ if test "x$ac_cv_lib_dl_dlopen" = xyes ; then
+ IF_DLOPEN_TEST=''
+ fi
+else
+ IF_SHARED='#'
+ IF_NOT_SHARED=''
+fi
+
+# Documentation tools
+if test "x$enable_documentation" != "xno"; then
+ # Extract the first word of "makeinfo", so it can be a program name with args.
+set dummy makeinfo; ac_word=$2
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+printf %s "checking for $ac_word... " >&6; }
+if test ${ac_cv_path_MAKEINFO+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ case $MAKEINFO in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
+ ac_cv_path_MAKEINFO="$as_dir$ac_word$ac_exec_ext"
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="not-found"
+ ;;
+esac
+fi
+MAKEINFO=$ac_cv_path_MAKEINFO
+if test -n "$MAKEINFO"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
+printf "%s\n" "$MAKEINFO" >&6; }
+else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+fi
+
+
+
+ if test "x$MAKEINFO" != "xnot-found"; then
+ enable_documentation=yes
+
+ else
+ if test "x$enable_documentation" == "xauto" ; then
+ enable_documentation=no
+ else
+ as_fn_error $? "Cannot find 'makeinfo', required for documentation." "$LINENO" 5
+ fi
+ fi
+fi
+
+if test "x$enable_documentation" = "xyes" ; then
+ IF_DOCUMENTATION=''
+else
+ IF_DOCUMENTATION='#'
+fi
+
+if test "x$enable_mini_gmp" = "xyes" ; then
+ IF_MINI_GMP=''
+else
+ IF_MINI_GMP='#'
+fi
+
+
+
+
+
+
+
+
+
+
+OPENSSL_LIBFLAGS=''
+
+# Check for openssl's libcrypto (used only for benchmarking)
+if test x$enable_openssl = xyes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5
+printf %s "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; }
+if test ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lcrypto $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char EVP_CIPHER_CTX_new ();
+int
+main (void)
+{
+return EVP_CIPHER_CTX_new ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes
+else $as_nop
+ ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5
+printf "%s\n" "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; }
+if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes
+then :
+ OPENSSL_LIBFLAGS='-lcrypto'
+else $as_nop
+ enable_openssl=no
+fi
+
+fi
+if test x$enable_openssl = xyes ; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if openssl supports the functions used by nettle benchmark programs" >&5
+printf %s "checking if openssl supports the functions used by nettle benchmark programs... " >&6; }
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $OPENSSL_LIBFLAGS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include <openssl/evp.h>
+#include <openssl/ec.h>
+#include <openssl/rsa.h>
+
+int
+main (void)
+{
+
+EVP_MD_CTX *cipher_ctx = EVP_CIPHER_CTX_new();
+EVP_MD_CTX *md_ctx = EVP_MD_CTX_new();
+EVP_PKEY *rsa_key = EVP_RSA_gen(2048);
+EVP_PKEY *ec_key = EVP_EC_gen("P-256");
+int res = EVP_DigestSignFinal (md_ctx, NULL, NULL);
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"
+then :
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+printf "%s\n" "yes" >&6; }
+
+printf "%s\n" "#define WITH_OPENSSL 1" >>confdefs.h
+
+
+else $as_nop
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
+printf "%s\n" "no" >&6; }
+ enable_openssl=no
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS=$save_LIBS
+fi
+
+
+
+
+
+# clock_gettime is in librt on *-*-osf5.1 and on glibc, so add -lrt to
+# BENCH_LIBS if needed. On linux (tested on x86_32, 2.6.26),
+# clock_getres reports ns accuracy, while in a quick test on osf
+# clock_getres said only 1 millisecond.
+
+old_LIBS="$LIBS"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
+printf %s "checking for library containing clock_gettime... " >&6; }
+if test ${ac_cv_search_clock_gettime+y}
+then :
+ printf %s "(cached) " >&6
+else $as_nop
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+char clock_gettime ();
+int
+main (void)
+{
+return clock_gettime ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' rt
+do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"
+then :
+ ac_cv_search_clock_gettime=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam \
+ conftest$ac_exeext
+ if test ${ac_cv_search_clock_gettime+y}
+then :
+ break
+fi
+done
+if test ${ac_cv_search_clock_gettime+y}
+then :
+
+else $as_nop
+ ac_cv_search_clock_gettime=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
+printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
+ac_res=$ac_cv_search_clock_gettime
+if test "$ac_res" != no
+then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+
+printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
+
+fi
+
+BENCH_LIBS="$LIBS"
+LIBS="$old_LIBS"
+
+
+
+# Set these flags *last*, or else the test programs won't compile
+if test x$GCC = xyes ; then
+ CFLAGS="$CFLAGS -ggdb3 -Wall -W -Wno-sign-compare \
+ -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
+ -Wpointer-arith -Wbad-function-cast -Wnested-externs"
+
+# Don't enable -Wcast-align as it results in tons of warnings in the
+# DES code. And when using stdio.
+# Don't enable -Waggregate-return, as that causes warnings for glibc
+# inttypes.h.
+fi
+
+ac_config_files="$ac_config_files config.make config.m4 Makefile version.h"
+
+ac_config_files="$ac_config_files tools/Makefile testsuite/Makefile examples/Makefile"
+
+ac_config_files="$ac_config_files nettle.pc hogweed.pc libnettle.map libhogweed.map"
+
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+as_nop=:
+if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
+then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else $as_nop
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+
+# Reset variables that may have inherited troublesome values from
+# the environment.
+
+# IFS needs to be set, to space, tab, and newline, in precisely that order.
+# (If _AS_PATH_WALK were called with IFS unset, it would have the
+# side effect of setting IFS to empty, thus disabling word splitting.)
+# Quoting is to prevent editors from complaining about space-tab.
+as_nl='
+'
+export as_nl
+IFS=" "" $as_nl"
+
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# Ensure predictable behavior from utilities with locale-dependent output.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# We cannot yet rely on "unset" to work, but we need these variables
+# to be unset--not just set to an empty or harmless value--now, to
+# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
+# also avoids known problems related to "unset" and subshell syntax
+# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
+for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
+do eval test \${$as_var+y} \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+
+# Ensure that fds 0, 1, and 2 are open.
+if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
+if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
+if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
+
+# The user is always right.
+if ${PATH_SEPARATOR+false} :; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ case $as_dir in #(((
+ '') as_dir=./ ;;
+ */) ;;
+ *) as_dir=$as_dir/ ;;
+ esac
+ test -r "$as_dir$0" && as_myself=$as_dir$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ printf "%s\n" "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
+then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else $as_nop
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
+then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else $as_nop
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+# Determine whether it's possible to make 'echo' print without a newline.
+# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
+# for compatibility with existing Makefiles.
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+# For backward compatibility with old third-party macros, we provide
+# the shell variables $as_echo and $as_echo_n. New code should use
+# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
+as_echo='printf %s\n'
+as_echo_n='printf %s'
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by nettle $as_me 3.10.1, which was
+generated by GNU Autoconf 2.71. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_links="$ac_config_links"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration links:
+$config_links
+
+Report bugs to <nettle-bugs@lists.lysator.liu.se>."
+
+_ACEOF
+ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
+ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config='$ac_cs_config_escaped'
+ac_cs_version="\\
+nettle config.status 3.10.1
+configured by $0, generated by GNU Autoconf 2.71,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2021 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ printf "%s\n" "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ printf "%s\n" "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ printf "%s\n" "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ printf "%s\n" "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "$tmp_f") CONFIG_LINKS="$CONFIG_LINKS $tmp_f:$asm_dir/$tmp_f" ;;
+ "$tmp_n") CONFIG_LINKS="$CONFIG_LINKS $tmp_n:$asm_dir/$tmp_n" ;;
+ "$tmp_h") CONFIG_LINKS="$CONFIG_LINKS $tmp_h:$asm_dir/$tmp_h" ;;
+ "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
+ "config.m4") CONFIG_FILES="$CONFIG_FILES config.m4" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;;
+ "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
+ "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
+ "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
+ "nettle.pc") CONFIG_FILES="$CONFIG_FILES nettle.pc" ;;
+ "hogweed.pc") CONFIG_FILES="$CONFIG_FILES hogweed.pc" ;;
+ "libnettle.map") CONFIG_FILES="$CONFIG_FILES libnettle.map" ;;
+ "libhogweed.map") CONFIG_FILES="$CONFIG_FILES libhogweed.map" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
+ test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
+ test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS "
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+printf "%s\n" "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`printf "%s\n" "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+printf "%s\n" X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ printf "%s\n" "/* $configure_input */" >&1 \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ printf "%s\n" "/* $configure_input */" >&1 \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+ ;;
+ :L)
+ #
+ # CONFIG_LINK
+ #
+
+ if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
+ :
+ else
+ # Prefer the file from the source tree if names are identical.
+ if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
+ ac_source=$srcdir/$ac_source
+ fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
+printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
+
+ if test ! -r "$ac_source"; then
+ as_fn_error $? "$ac_source: file not found" "$LINENO" 5
+ fi
+ rm -f "$ac_file"
+
+ # Try a relative symlink, then a hard link, then a copy.
+ case $ac_source in
+ [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
+ *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
+ esac
+ ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
+ ln "$ac_source" "$ac_file" 2>/dev/null ||
+ cp -p "$ac_source" "$ac_file" ||
+ as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
+ fi
+ ;;
+
+ esac
+
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of build options:
+
+ Version: ${PACKAGE_STRING}
+ Host type: ${host}
+ ABI: ${ABI}
+ Assembly files: ${asm_path:-none}
+ Install prefix: ${prefix}
+ Library directory: ${libdir}
+ Compiler: ${CC}
+ Static libraries: ${enable_static}
+ Shared libraries: ${enable_shared}
+ Public key crypto: ${enable_public_key}
+ Using mini-gmp: ${enable_mini_gmp}
+ Documentation: ${enable_documentation}
+" >&5
+printf "%s\n" "$as_me: summary of build options:
+
+ Version: ${PACKAGE_STRING}
+ Host type: ${host}
+ ABI: ${ABI}
+ Assembly files: ${asm_path:-none}
+ Install prefix: ${prefix}
+ Library directory: ${libdir}
+ Compiler: ${CC}
+ Static libraries: ${enable_static}
+ Shared libraries: ${enable_shared}
+ Public key crypto: ${enable_public_key}
+ Using mini-gmp: ${enable_mini_gmp}
+ Documentation: ${enable_documentation}
+" >&6;}
+
diff --git a/testsuite/test-rules.stamp b/desdata.stamp
index 859afb1d..859afb1d 100644
--- a/testsuite/test-rules.stamp
+++ b/desdata.stamp
diff --git a/eccparams.c b/eccparams.c
deleted file mode 100644
index 60829770..00000000
--- a/eccparams.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-
-int
-main (int argc, char **argv)
-{
- unsigned bits;
- unsigned max;
- unsigned c;
- if (argc < 3)
- {
- usage:
- fprintf(stderr, "Usage: %s: exp-bits max-entries\n", argv[0]);
- return EXIT_FAILURE;
- }
- bits = atoi(argv[1]);
- if (bits < 2)
- goto usage;
- max = atoi(argv[2]);
- if ( max < 2)
- goto usage;
-
- for (c = 3; (1<<c) <= max; c++)
- {
- unsigned b;
- for (b = 1;; b++)
- {
- unsigned s = (1<<c) * b;
- unsigned k;
- if (s > max)
- break;
- k = (bits + (c*b) - 1) / (c * b);
- printf("k = %2u, c = %2u, S = %3u, T = %3u (%3u A + %2u D)\n",
- k, c, s, (b+1)*k, b*k, k);
- }
- }
- return 0;
-}
diff --git a/examples/.c-style b/examples/.c-style
deleted file mode 100644
index 1112b4b1..00000000
--- a/examples/.c-style
+++ /dev/null
@@ -1 +0,0 @@
-"gnu"
diff --git a/examples/.gitignore b/examples/.gitignore
deleted file mode 100644
index b550fefe..00000000
--- a/examples/.gitignore
+++ /dev/null
@@ -1,19 +0,0 @@
-/*.d
-/Makefile
-/base16dec
-/base16enc
-/base64dec
-/base64enc
-/ecc-benchmark
-/eratosthenes
-/hogweed-benchmark
-/nettle-benchmark
-/next-prime
-/random-prime
-/rsa-decrypt
-/rsa-encrypt
-/rsa-keygen
-/rsa-sign
-/rsa-verify
-/sexp-conv
-/test*
diff --git a/index.html b/index.html
deleted file mode 100644
index ee4efe4c..00000000
--- a/index.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?> <!-- -*-mode: xml; sgml-indent-data: t; -*- -->
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type"
- content="text/html; charset=utf-8"/>
- <title>Nettle - a low-level crypto library</title>
-</head>
-<body style='bgcolor="white"; text="black"; link="darkblue"; alink="red"; vlink="darkblue"'>
-<h1>Nettle - a low-level cryptographic library</h1>
-
-<blockquote>
-<p>
- Nettle is a cryptographic library that is designed to fit easily in more
- or less any context: In crypto toolkits for object-oriented languages
- (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
- kernel space.
-</p>
-</blockquote>
-
-<h2> Documentation </h2>
-
-<p>
- A complete manual is included if you download the Nettle source code.
- You can also <a href="nettle.html">read the manual online</a>.
-</p>
-
-<h2> Download </h2>
-
-<p>
- Get the latest version by <a
- href="https://ftp.gnu.org/gnu/nettle/">https</a> or <a
- href="ftp://ftp.gnu.org/gnu/nettle/">ftp</a>.
-
- Recent releases are signed with the following PGP key:
-</p>
-<blockquote>
- <pre>
-pub 2560R/28C67298 2013-01-07
- Key fingerprint = 343C 2FF0 FBEE 5EC2 EDBE F399 F359 9FF8 28C6 7298
-uid Niels Möller &lt;nisse@lysator.liu.se&gt;
-
- </pre>
-</blockquote>
-
-<h2> Language bindings </h2>
-
-<p> I'm aware of nettle-bindings for the following higher-level
- languages.</p>
-<dl>
- <dt> <a href='http://hackage.haskell.org/package/bindings-nettle'>Haskell</a> </dt>
- <dd> Haskell bindings by Clint Adams. </dd>
- <dt> <a href='http://search.cpan.org/~dkg/Crypt-Nettle-0.3/lib/Crypt/Nettle.pm'>Perl</a></dt>
- <dd> Crypt::Nettle module, by Daniel Kahn Gillmor.</dd>
- <dt> <a href="http://pike.lysator.liu.se">Pike</a></dt>
- <dd> An object-oriented interpreted language with C-like syntax.
- Nettle bindings are included with the official distribution.</dd>
- <dt> <a href='https://crates.io/crates/nettle'>Rust</a> </dt>
- <dd> Rust bindings by Kai Michaelis. </dd>
- <dt> <a href='https://github.com/rindlow/python-nettle'>Python</a></dt>
- <dd> Python bindings by Henrik Rindlöw. </dd>
- <dt> TCL </dt>
- <dd> Included in the chiark-tcl debian package by Ian Jackson (not
- sure if/how it's distributed outside of debian). </dd>
-</dl>
-<p>
- Mail me for corrections or additions to this list.
-</p>
-
-<h2> GIT access </h2>
-
-<p>
- The public git repository for Nettle is located at <a
- href='http://git.lysator.liu.se/nettle/nettle'>git.lysator.liu.se</a>.
- After checkout, you need to run the <tt>.bootstrap</tt> script
- before the standard <tt>./configure &amp;&amp; make</tt>.
-</p>
-<p>
- Earlier, Nettle was version controlled as part of the LSH
- repository. When converted to the current repository, the history of
- all files has been maintained as far as practical. But since the
- directory organization used to be a bit different, building old
- versions of Nettle from the current git repository does not work out
- of the box. To do that, you have to check out historic versions from
- the <a href='http://git.lysator.liu.se/lsh/lsh'>LSH repository</a>
- instead.
-</p>
-
-<h2> Contact </h2>
-
-<p>
- Send mail to
- the <a href='https://lists.lysator.liu.se/mailman3/postorius/lists/nettle-bugs.lists.lysator.liu.se/'><tt>nettle-bugs</tt>
- mailinglist</a> or directly to me
- at <a href="mailto:nisse@lysator.liu.se"><tt>Niels Möller
- &lt;nisse@lysator.liu.se&gt;</tt></a> if you have any questions.
-</p>
-</body>
-</html>
diff --git a/keymap.h b/keymap.h
new file mode 100644
index 00000000..5600c32c
--- /dev/null
+++ b/keymap.h
@@ -0,0 +1,138 @@
+/* automagically made - do not fuss with this */
+
+ 0x02080008, 0x02082000, 0x00002008, 0x00000000,
+ 0x02002000, 0x00080008, 0x02080000, 0x02082008,
+ 0x00000008, 0x02000000, 0x00082000, 0x00002008,
+ 0x00082008, 0x02002008, 0x02000008, 0x02080000,
+ 0x00002000, 0x00082008, 0x00080008, 0x02002000,
+ 0x02082008, 0x02000008, 0x00000000, 0x00082000,
+ 0x02000000, 0x00080000, 0x02002008, 0x02080008,
+ 0x00080000, 0x00002000, 0x02082000, 0x00000008,
+ 0x00080000, 0x00002000, 0x02000008, 0x02082008,
+ 0x00002008, 0x02000000, 0x00000000, 0x00082000,
+ 0x02080008, 0x02002008, 0x02002000, 0x00080008,
+ 0x02082000, 0x00000008, 0x00080008, 0x02002000,
+ 0x02082008, 0x00080000, 0x02080000, 0x02000008,
+ 0x00082000, 0x00002008, 0x02002008, 0x02080000,
+ 0x00000008, 0x02082000, 0x00082008, 0x00000000,
+ 0x02000000, 0x02080008, 0x00002000, 0x00082008,
+
+ 0x08000004, 0x00020004, 0x00000000, 0x08020200,
+ 0x00020004, 0x00000200, 0x08000204, 0x00020000,
+ 0x00000204, 0x08020204, 0x00020200, 0x08000000,
+ 0x08000200, 0x08000004, 0x08020000, 0x00020204,
+ 0x00020000, 0x08000204, 0x08020004, 0x00000000,
+ 0x00000200, 0x00000004, 0x08020200, 0x08020004,
+ 0x08020204, 0x08020000, 0x08000000, 0x00000204,
+ 0x00000004, 0x00020200, 0x00020204, 0x08000200,
+ 0x00000204, 0x08000000, 0x08000200, 0x00020204,
+ 0x08020200, 0x00020004, 0x00000000, 0x08000200,
+ 0x08000000, 0x00000200, 0x08020004, 0x00020000,
+ 0x00020004, 0x08020204, 0x00020200, 0x00000004,
+ 0x08020204, 0x00020200, 0x00020000, 0x08000204,
+ 0x08000004, 0x08020000, 0x00020204, 0x00000000,
+ 0x00000200, 0x08000004, 0x08000204, 0x08020200,
+ 0x08020000, 0x00000204, 0x00000004, 0x08020004,
+
+ 0x80040100, 0x01000100, 0x80000000, 0x81040100,
+ 0x00000000, 0x01040000, 0x81000100, 0x80040000,
+ 0x01040100, 0x81000000, 0x01000000, 0x80000100,
+ 0x81000000, 0x80040100, 0x00040000, 0x01000000,
+ 0x81040000, 0x00040100, 0x00000100, 0x80000000,
+ 0x00040100, 0x81000100, 0x01040000, 0x00000100,
+ 0x80000100, 0x00000000, 0x80040000, 0x01040100,
+ 0x01000100, 0x81040000, 0x81040100, 0x00040000,
+ 0x81040000, 0x80000100, 0x00040000, 0x81000000,
+ 0x00040100, 0x01000100, 0x80000000, 0x01040000,
+ 0x81000100, 0x00000000, 0x00000100, 0x80040000,
+ 0x00000000, 0x81040000, 0x01040100, 0x00000100,
+ 0x01000000, 0x81040100, 0x80040100, 0x00040000,
+ 0x81040100, 0x80000000, 0x01000100, 0x80040100,
+ 0x80040000, 0x00040100, 0x01040000, 0x81000100,
+ 0x80000100, 0x01000000, 0x81000000, 0x01040100,
+
+ 0x04010801, 0x00000000, 0x00010800, 0x04010000,
+ 0x04000001, 0x00000801, 0x04000800, 0x00010800,
+ 0x00000800, 0x04010001, 0x00000001, 0x04000800,
+ 0x00010001, 0x04010800, 0x04010000, 0x00000001,
+ 0x00010000, 0x04000801, 0x04010001, 0x00000800,
+ 0x00010801, 0x04000000, 0x00000000, 0x00010001,
+ 0x04000801, 0x00010801, 0x04010800, 0x04000001,
+ 0x04000000, 0x00010000, 0x00000801, 0x04010801,
+ 0x00010001, 0x04010800, 0x04000800, 0x00010801,
+ 0x04010801, 0x00010001, 0x04000001, 0x00000000,
+ 0x04000000, 0x00000801, 0x00010000, 0x04010001,
+ 0x00000800, 0x04000000, 0x00010801, 0x04000801,
+ 0x04010800, 0x00000800, 0x00000000, 0x04000001,
+ 0x00000001, 0x04010801, 0x00010800, 0x04010000,
+ 0x04010001, 0x00010000, 0x00000801, 0x04000800,
+ 0x04000801, 0x00000001, 0x04010000, 0x00010800,
+
+ 0x00000400, 0x00000020, 0x00100020, 0x40100000,
+ 0x40100420, 0x40000400, 0x00000420, 0x00000000,
+ 0x00100000, 0x40100020, 0x40000020, 0x00100400,
+ 0x40000000, 0x00100420, 0x00100400, 0x40000020,
+ 0x40100020, 0x00000400, 0x40000400, 0x40100420,
+ 0x00000000, 0x00100020, 0x40100000, 0x00000420,
+ 0x40100400, 0x40000420, 0x00100420, 0x40000000,
+ 0x40000420, 0x40100400, 0x00000020, 0x00100000,
+ 0x40000420, 0x00100400, 0x40100400, 0x40000020,
+ 0x00000400, 0x00000020, 0x00100000, 0x40100400,
+ 0x40100020, 0x40000420, 0x00000420, 0x00000000,
+ 0x00000020, 0x40100000, 0x40000000, 0x00100020,
+ 0x00000000, 0x40100020, 0x00100020, 0x00000420,
+ 0x40000020, 0x00000400, 0x40100420, 0x00100000,
+ 0x00100420, 0x40000000, 0x40000400, 0x40100420,
+ 0x40100000, 0x00100420, 0x00100400, 0x40000400,
+
+ 0x00800000, 0x00001000, 0x00000040, 0x00801042,
+ 0x00801002, 0x00800040, 0x00001042, 0x00801000,
+ 0x00001000, 0x00000002, 0x00800002, 0x00001040,
+ 0x00800042, 0x00801002, 0x00801040, 0x00000000,
+ 0x00001040, 0x00800000, 0x00001002, 0x00000042,
+ 0x00800040, 0x00001042, 0x00000000, 0x00800002,
+ 0x00000002, 0x00800042, 0x00801042, 0x00001002,
+ 0x00801000, 0x00000040, 0x00000042, 0x00801040,
+ 0x00801040, 0x00800042, 0x00001002, 0x00801000,
+ 0x00001000, 0x00000002, 0x00800002, 0x00800040,
+ 0x00800000, 0x00001040, 0x00801042, 0x00000000,
+ 0x00001042, 0x00800000, 0x00000040, 0x00001002,
+ 0x00800042, 0x00000040, 0x00000000, 0x00801042,
+ 0x00801002, 0x00801040, 0x00000042, 0x00001000,
+ 0x00001040, 0x00801002, 0x00800040, 0x00000042,
+ 0x00000002, 0x00001042, 0x00801000, 0x00800002,
+
+ 0x10400000, 0x00404010, 0x00000010, 0x10400010,
+ 0x10004000, 0x00400000, 0x10400010, 0x00004010,
+ 0x00400010, 0x00004000, 0x00404000, 0x10000000,
+ 0x10404010, 0x10000010, 0x10000000, 0x10404000,
+ 0x00000000, 0x10004000, 0x00404010, 0x00000010,
+ 0x10000010, 0x10404010, 0x00004000, 0x10400000,
+ 0x10404000, 0x00400010, 0x10004010, 0x00404000,
+ 0x00004010, 0x00000000, 0x00400000, 0x10004010,
+ 0x00404010, 0x00000010, 0x10000000, 0x00004000,
+ 0x10000010, 0x10004000, 0x00404000, 0x10400010,
+ 0x00000000, 0x00404010, 0x00004010, 0x10404000,
+ 0x10004000, 0x00400000, 0x10404010, 0x10000000,
+ 0x10004010, 0x10400000, 0x00400000, 0x10404010,
+ 0x00004000, 0x00400010, 0x10400010, 0x00004010,
+ 0x00400010, 0x00000000, 0x10404000, 0x10000010,
+ 0x10400000, 0x10004010, 0x00000010, 0x00404000,
+
+ 0x00208080, 0x00008000, 0x20200000, 0x20208080,
+ 0x00200000, 0x20008080, 0x20008000, 0x20200000,
+ 0x20008080, 0x00208080, 0x00208000, 0x20000080,
+ 0x20200080, 0x00200000, 0x00000000, 0x20008000,
+ 0x00008000, 0x20000000, 0x00200080, 0x00008080,
+ 0x20208080, 0x00208000, 0x20000080, 0x00200080,
+ 0x20000000, 0x00000080, 0x00008080, 0x20208000,
+ 0x00000080, 0x20200080, 0x20208000, 0x00000000,
+ 0x00000000, 0x20208080, 0x00200080, 0x20008000,
+ 0x00208080, 0x00008000, 0x20000080, 0x00200080,
+ 0x20208000, 0x00000080, 0x00008080, 0x20200000,
+ 0x20008080, 0x20000000, 0x20200000, 0x00208000,
+ 0x20208080, 0x00008080, 0x00208000, 0x20200080,
+ 0x00200000, 0x20000080, 0x20008000, 0x00000000,
+ 0x00008000, 0x00200000, 0x20200080, 0x00208080,
+ 0x20000000, 0x20208000, 0x00000080, 0x20008080,
+
diff --git a/list-obj-sizes.awk b/list-obj-sizes.awk
deleted file mode 100755
index 2c0f644c..00000000
--- a/list-obj-sizes.awk
+++ /dev/null
@@ -1,67 +0,0 @@
-#! /usr/bin/awk -f
-
-# Run this filter on the output of
-#
-# objdump -h libnettle.a
-
-function hex2int (hex, n, i) {
- n = 0;
- hex = tolower(hex);
- for (i = 1; i<=length(hex); i++)
- {
- n = n * 16 + index("0123456789abcdef", substr(hex,i,1)) - 1;
- }
-
- return n;
-}
-
-function output () {
- if (name)
- {
- printf "%25s %6d %6d %6d\n", name, text_size, data_size, rodata_size;
- text_total += text_size;
- data_total += data_size;
- rodata_total += rodata_size;
- }
- text_size = 0;
- data_size = 0;
- rodata_size = 0;
-}
-
-BEGIN {
- print "file text-size data-size rodata-size";
- text_total = 0;
- data_total = 0;
- rodata_total = 0;
-
- text_size = 0;
- data_size = 0;
- rodata_size = 0;
-
- name = "";
- filter = ENVIRON["FILTER"];
- if (!filter)
- filter = ".*";
- else
- printf "Filter: %s\n", filter;
-}
-
-/elf32|elf64/ {
- output();
- if ($1 ~ filter)
- {
- name = $1; text_size = data_size = rodata_size = 0;
- sub(/^[^-]*_a-/, "", name);
- }
- else
- name = "";
-}
-
-/\.text/ { text_size += hex2int($3); }
-/\.data/ { data_size += hex2int($3); }
-/\.rodata/ { rodata_size += hex2int($3);}
-
-END {
- output();
- printf "%25s %6d %6d %6d\n", "TOTAL", text_total, data_total, rodata_total;
-}
diff --git a/misc/.gitignore b/misc/.gitignore
deleted file mode 100644
index 2b475b4a..00000000
--- a/misc/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/*.pdf
-/*.dvi
-/*.log
-/*.aux
-/*.asc
-/auto
diff --git a/misc/Makefile b/misc/Makefile
deleted file mode 100644
index 7ec86982..00000000
--- a/misc/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# Nothing here is built or distributed by default.
-
-all: serpent-sbox3.pdf serpent-sbox4.pdf serpent-sbox5.pdf \
- serpent-sbox6.pdf serpent-sbox7.pdf \
- serpent-sbox0i.pdf serpent-sbox1i.pdf serpent-sbox2i.pdf \
- serpent-sbox3i.pdf serpent-sbox4i.pdf serpent-sbox5i.pdf
-
-%.pdf: %.dot
- dot -Tpdf $< -o $@
diff --git a/misc/c89 b/misc/c89
deleted file mode 100755
index 0190ee88..00000000
--- a/misc/c89
+++ /dev/null
@@ -1,16 +0,0 @@
-#! /bin/sh
-
-# GCC wrapper that passes -std=c89, and rejects all other -std flags
-
-for a in "$@" ; do
- case "$a" in
- -std=*)
- echo "c89 wrapper: option $a rejected" >&2
- exit 1
- ;;
- *)
- ;;
- esac
-done
-
-gcc -std=c89 "$@"
diff --git a/misc/ecc-formulas.tex b/misc/ecc-formulas.tex
deleted file mode 100644
index bf06d110..00000000
--- a/misc/ecc-formulas.tex
+++ /dev/null
@@ -1,337 +0,0 @@
-\documentclass[a4paper]{article}
-\usepackage[utf8]{inputenc}
-\usepackage{amsmath}
-\usepackage{url}
-
-\author{Niels Möller}
-\title{Notes on ECC formulas}
-
-\begin{document}
-
-\maketitle
-
-\section{Weierstrass curve}
-
-Consider only the special case
-\begin{equation*}
- y^2 = x^3 - 3x + b \pmod{p}
-\end{equation*}
-See \url{http://www.hyperelliptic.org/EFD/g1p/auto-shortw.html}.
-
-Affine formulas for duplication, $(x_2, y_2) = 2(x_1, y_1)$:
-\begin{align*}
- t &= (2y)^{-1} 3 (x_1^2 - 1) \\
- x_2 &= t^2 - 2 x_1 \\
- y_2 &= (x_1 - x_2) * t - y_1
-\end{align*}
-Affine formulas for addition, $(x_3, y_3) = (x_1, y_1) + (x_2,
-y_2)$:
-\begin{align*}
- t &= (x_2 - x_1)^{-1} (y_2 - y_1) \\
- x_3 &= t^2 - x_1 - x_2 \\
- y_3 &= (x_1 - x_3) t - y_1
-\end{align*}
-
-\section{Montgomery curve}
-
-Consider the special case
-\begin{equation*}
- y^2 = x^3 + b x^2 + x
-\end{equation*}
-See \url{http://www.hyperelliptic.org/EFD/g1p/auto-montgom.html}.
-
-Affine formulas for duplication, $(x_2, y_2) = 2(x_1, y_1)$:
-\begin{align*}
- t &= (2 y_1)^{-1} (3 x_1^2 + 2b x_1 + 1) \\
- x_2 &= t^2 - b - 2 x_1 \\
- y_2 &= (3 x_1 + b) t - t^3 - y_1 \\
- &= (3 x_1 + b - t^2) t - y_1 \\
- &= (x_1 - x_2) t - y_1
-\end{align*}
-So the computation is very similar to the Weierstraß case, differing
-only in the formula for $t$, and the $b$ term in $x_2$.
-
-Affine formulas for addition, $(x_3, y_3) = (x_1, y_1) + (x_2,
-y_2)$:
-\begin{align*}
- t &= (x_2 - x_1)^{-1} (y_2 - y_1) \\
- x_3 &= t^2 - b - x_1 - x_2 \\
- y_3 &= (2 x_1 + x_2 + b) t - t^3 - y_1 \\
- &= (2 x_1 + x_2 + b - t^2) t - y_1 \\
- &= (x_1 - x_3) t - y_1
-\end{align*}
-Again, very similar to the Weierstraß formulas, with only an
-additional $b$ term in the formula for $x_3$.
-
-\subsection{Montgomery ladder}
-
-It's possible to do operations on a Montgomery curve in terms of the
-$x$ coordinate only. Or, with homogeneous coordinates, use $X$ and $Z$
-with $x = X/Z$.
-
-For doubling,
-\begin{align*}
- x' &= (x^2 - z^2)^2 = (x-z)^2 (x+z)^2 \\
- t &= (x+z)^2 - (x-z)^2 \\
- z' &= 4 xz (x^2 + bzx + z^2) = t \left((x+z)^2 + b't\right)
-\end{align*}
-with $b' = (b-2)/4$.
-
-Addition is a bit trickier. If we have $x$ and $z$ for points $Q_1$,
-$Q_2$ and $Q_3$, with $Q_3 = Q_1 + Q_3$, and $x_1, z_1 \neq 0$, we
-get the coordinates for $Q_2 + Q_3$ as
-\begin{align*}
- x' &= 4 (x_2 x_3 - z_2 z_3)^2 z_1 = \left((x_2 - z_2)(x_3 + z_3) +
- (x_2 + z_2)(x_3 - z_3)\right)^2 z_1 \\
- z' &= 4 (x_2 z_3 - z_2 x_3)^2 x_1 = \left((x_2 - z_2)(x_3 + z_3) -
- (x_2 + z_2)(x_3 - z_3)\right)^2 x_1
-\end{align*}
-Note that the doubling formula is symmetric in $Q_2$ and $Q_3$. Which
-is consistent with negating of $Q_1$, which really is the negatiion of
-the $y$-coordinate, which doesn't appear in the formula.
-
-This can be used for a binary ``Montgomery ladder'' to compute $n Q$
-for any $n$. If we have the points $Q$, $n Q$, and $(n+1) Q$, we can
-compute the three points
-\begin{align*}
- (2n) Q &= 2 (nQ) && \text{doubling} \\
- (2n+1) Q &= (nQ) + (n+1)Q && \text{addition} \\
- (2n+2) Q &= 2((n+1) Q) && \text{doubling}
-\end{align*}
-
-The following algorithm is suggested by dj (see
-\url{http://www.ietf.org/mail-archive/web/cfrg/current/msg05004.html}.
-\begin{verbatim}
- x2,z2,x3,z3 = 1,0,x1,1
- for i in reversed(range(255)):
- bit = 1 & (n >> i)
- x2,x3 = cswap(x2,x3,bit)
- z2,z3 = cswap(z2,z3,bit)
- x3,z3 = ((x2*x3-z2*z3)^2,x1*(x2*z3-z2*x3)^2)
- x2,z2 = ((x2^2-z2^2)^2,4*x2*z2*(x2^2+A*x2*z2+z2^2))
- x2,x3 = cswap(x2,x3,bit)
- z2,z3 = cswap(z2,z3,bit)
- return x2*z2^(p-2)
-\end{verbatim}
-It's not too hard to decipher this. The update for $x_2, z_2$ is the
-doubling. The update for $x_3, z_3$ is an addition.
-
-If the bit is zero, we get $x_2', z_2'$ representing $Q_2' = 2 Q_2$,
-and $x_3', z_3'$ representing $Q_3' = Q_2 + Q_3 = 2 Q_2 + Q_1$.
-
-What if the bit is set? For the doubling, we get it applied to $Q_3$
-instead, so we get $x_3', z_3'$ representing $Q_3' = 2 Q_3 = 2 Q_2 + 2
-Q_1$. For the add, the initial swap flips the sign of one of the
-intermediate values, but the end result is the same, so we get $x_2',
-z_2'$ representing $Q_2' = Q_2 + Q_3 = 2 Q_2 + Q_1$, as desired.
-
-Note that the initial conditional swap doesn't have to be a full swap;
-if that's convenient in the implementation, a conditional assignment
-should be sufficient to get the duplication formula appplied to the
-right point. It looks like, in all cases, one will start by computing
-$x_2 \pm z_2$ and $x_3 \pm z_3$, so maybe one can apply conditional
-assignment to these values instead.
-
-\section{Edwards curve}
-
-For an Edwards curve, we consider the special case
-\begin{equation*}
- x^2 + y^2 = 1 + d x^2 y^2
-\end{equation*}
-See \url{http://cr.yp.to/papers.html#newelliptic}. The neutral point is
-$(0, 1)$.
-
-Affine formulas for addition, $(x_3, y_3) = (x_1, y_1) + (x_2,
-y_2)$:
-\begin{align*}
- t &= d x_1 x_2 y_1 y_2 \\
- x_3 &= (1 + t)^{-1} (x_1 y_2 + y_1 x_2) \\
- y_3 &= (1 - t)^{-1} (y_1 y_2 - x_1 x_2)
-\end{align*}
-With homogeneous coordinates $(X_1, Y_1, Z_1)$ etc., D.~J.~Bernstein
-suggests the formulas
-\begin{align*}
- A &= Z_1 Z_2 \\
- B &= A^2 \\
- C &= X_1 X_2 \\
- D &= Y_1 Y_2 \\
- E &= d C D \\
- F &= B - E \\
- G &= B + E \\
- X_3 &= A F [(X_1 + Y_1)(X_2 + Y_2) - C - D] \\
- Y_3 &= A G (D - C) \\
- Z_3 &= F G
-\end{align*}
-This works also for doubling, but a more efficient variant is
-\begin{align*}
- B &= (X_1 + Y_1)^2 \\
- C &= X_1^2 \\
- D &= Y_1^2 \\
- E &= C + D \\
- H &= Z_1^2 \\
- J &= E - 2H \\
- X_3 &= (B - E) J \\
- Y_3 &= E (C - D) \\
- Z_3 &= E J
-\end{align*}
-
-\section{EdDSA}
-
-The EdDSA paper (\url{http://ed25519.cr.yp.to/ed25519-20110926.pdf})
-suggests using the twisted Edwards curve,
-\begin{equation*}
- -x^2 + y^2 = 1 + d' x^2 y^2 \pmod{p}
-\end{equation*}
-(For this we use $d' = -d$, with $d = (121665/121666) \bmod p$, where
-$d$ is the same as in the curve25519 equivalence described below).
-Assuming -1 has a square root modulo $p$, a point $(x, y)$ lies on
-this curve if and only if $(\sqrt{-1} x, p)$ lies of the non-twisted
-Edwards curve. The point addition formulas for the twisted Edwards
-curve are
-\begin{align*}
- t &= d' x_1 x_2 y_1 y_2 \\
- x_3 &= (1 + t)^{-1} (x_1 y_2 + y_1 x_2) \\
- y_3 &= (1 - t)^{-1} (y_1 y_2 + x_1 x_2)
-\end{align*}
-or in terms of $d$ rather than $d'$, signs are switched as
-\begin{align*}
- t &= d x_1 x_2 y_1 y_2 \\
- x_3 &= (1 - t)^{-1} (x_1 y_2 + y_1 x_2) \\
- y_3 &= (1 + t)^{-1} (y_1 y_2 + x_1 x_2)
-\end{align*}
-
-For the other formulas, it should be fine to just switch the sign of
-terms involving $x_1 x_2$ or $x_1^2$. The paper suggests further
-optimizations: For precomputed points, use the representation $(x-y,
-x+y, dxy)$. And for temporary points, maintain an additional redundant
-coordinate $T$, with $Z T = X Y$ (see
-\url{http://eprint.iacr.org/2008/522.pdf}).
-
-According to djb, the formulas in Section 3.1 are the once to use,
-because they are complete. See
-\url{http://www.hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#addition-add-2008-hwcd-3},
-\begin{align*}
- A &= (y_1 - x_1)(y_2 - x_2) \\
- B &= (y_1 + x_1)(y_2 + x_2) \\
- C &= 2 t_1 d' t_2 \\
- D &= 2 z_1 z_2 \\
- E &= B - A \\
- F &= D - C \\
- G &= D + C \\
- H &= B + A \\
- x_3 &= E F \\
- y_3 &= G H \\
- t_3 &= E H \\
- z_3 &= F G
-\end{align*}
-
-In our notation $a = -1$, and the $d'$ above is $-d$.
-
-\subsection{Decompression}
-
-For EdDSA, points are represented by the $y$ coordinate and only the
-low bit, or ``sign'' bit, of the $x$ coordinate. Then $x^2$ can be
-computed as
-\begin{align*}
- x^2 &= (1-y^2) (d y^2 - 1)^{-1} \\
- &= 121666 (1-y^2) (121665 y^2 - 121666)^{-1}
-\end{align*}
-We then get $x$ from a square root, and we can use a trick of djb's to
-avoid the inversion.
-
-\section{Curve25519}
-
-Curve25519 is defined as the Montgomery curve
-\begin{equation*}
- y^2 = x^3 + b x^2 + x \pmod p
-\end{equation*}
-with $b = 486662$ and $p = 2^{255} -19$. See
-\url{http://cr.yp.to/ecdh/curve25519-20060209.pdf}. It is equivalent
-to the Edwards curve
-\begin{equation*}
- u^2 + v^2 = 1 + d u^2 v^2 \pmod p
-\end{equation*}
-with $d = (121665/121666) \bmod p$. The equivalence is given by
-mapping $P = (x,y)$ to $P' = (u, v)$, as follows.
-\begin{itemize}
-\item $P = \infty$ corresponds to $P' = (0, 1)$
-\item $P = (0, 0)$ corresponds to $P' = (0, -1)$
-\item Otherwise, for all other points on the curve. First note that $x
- \neq -1$ (since then the right hand side is a not a quadratic
- residue), and that $y \neq 0$ (since $y = 0$ and $x \neq 0$ implies
- that $x^2 + bx + 1 = 0$, or $(x + b/2)^2 = (b/2)^2 - 1$, which also
- isn't a quadratic residue). The correspondence is then given by
- \begin{align*}
- u &= \sqrt{b+2} \, x / y \\
- v &= (x-1) / (x+1)
- \end{align*}
-\end{itemize}
-
-The inverse transformation is
-\begin{align*}
- x &= (1+v) / (1-v) \\
- y &= \sqrt{b+2} \, x / u
-\end{align*}
-If the Edwards coordinates are represented using homogeneous
-coordinates, $u = U/W$ and $v = V/W$, then
-\begin{align*}
- x &= \frac{W+V}{W-V} \\
- y &= \sqrt{b} \frac{(W+V) W}{(W-V) U}
-\end{align*}
-so we need to invert the value $(W-V) U$.
-
-\subsection{Transforms for the twisted Edwards Curve}
-
-If we use the twisted Edwards curve instead, let $\alpha = \sqrt{-1}
-\pmod{p}$. Then we work with coordinates $(u', v)$, where $u' = \alpha
-u$. The transform from Montgomery form $(x, y)$ is then
-\begin{align*}
- u &= (\alpha \sqrt{b+2}) \, x / y\\
- v &= (x-1) / (x+1)
-\end{align*}
-And the inverse transform is similarly
-\begin{align*}
- x &= (1+v) / (1-v) \\
- y &= (\alpha \sqrt{b+2}) \, x / u
-\end{align*}
-so it's just a change of the transform constant, effectively using
-$\sqrt{-(b+2)}$ instead.
-
-\subsection{Coordinates outside of the base field}
-
-The curve25519 function is defined with an input point represented by
-the $x$-coordinate only, and is specified as allowing any value. The
-corresponding $y$ coordinate is given by
-\begin{equation*}
- y = \sqrt{x^3 + b x^2 + x} \pmod p
-\end{equation*}
-whenever this square root exists. But what if it doesn't? Then we work
-with the curve over the extended field $F_{p^2}$. Let $n$ by any
-non-square, then $(x^3 + b x^2 + x) n$ is a square, and we get the
-$y = y' / \sqrt{n}$ with
-\begin{equation*}
- y' = \sqrt{(x^3 + b x^2 + x) n}
-\end{equation*}
-It happens that for all multiples of such a point, this same factor is
-tacked on to all the $y$-coordinates, while all the $x$-coordinates
-remain in the base field $F_p$. It's the ``twist'' curve $y'^2 / n =
-x^3 + bx^2 + x$. On the corresponding Edwards curve, we
-get $u = \sqrt{n} u'$ with
-\begin{equation*}
- u' = \sqrt{b+2} \, x / y'
-\end{equation*}
-and the addition formula
-\begin{align*}
- t &= d n u'_1 u'_2 v_1 v_2 \\
- u'_3 &= (1+t)^{-1}(u'_1v_2 + v_1 u'_2) \\
- v_3 &= (1-t)^{-1}(v_1 v_2 - n u'_1 u'_2)
-\end{align*}
-It seems a bit tricky to handle both types of point in a single
-function without speed penalty, due to the conditional factor of $n$
-in the formula for $v_3$.
-\end{document}
-
-%%% Local Variables:
-%%% mode: latex
-%%% TeX-master: t
-%%% End:
diff --git a/misc/ecc-ref.gp b/misc/ecc-ref.gp
deleted file mode 100644
index d963e990..00000000
--- a/misc/ecc-ref.gp
+++ /dev/null
@@ -1,131 +0,0 @@
-/* Script for pari/gp. Run as gp -q ecc-ref.gp */
-
-out(apriv, A, bpriv, B, S) = print( \
- "/* a_s */ \"", apriv, "\",\n", \
- "/* a_x */ \"", component(A[1], 2), "\",\n", \
- "/* a_y */ \"", component(A[2], 2), "\",\n", \
- "/* b_s */ \"", bpriv, "\",\n", \
- "/* b_x */ \"", component(B[1], 2), "\",\n", \
- "/* b_y */ \"", component(B[2], 2), "\",\n", \
- "/* s_x */ \"", component(S[1], 2), "\",\n", \
- "/* s_y */ \"", component(S[2], 2), "\",");
-
-p192 = 2^192 - 2^64 - 1;
-b192 = 2455155546008943817740293915197451784769108058161191238065;
-g = Mod([602046282375688656758213480587526111916698976636884684818, \
- 174050332293622031404857552280219410364023488927386650641], p192);
-secp192 = ellinit(Mod([0,0,0,-3, b192], p192));
-q = 6277101735386680763835789423176059013767194773182842284081;
-if (ellpow(secp192, g, q) != [0], error("secp192 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(secp192, g, a);
-B = ellpow(secp192, g, b);
-S = ellpow(secp192, A, b);
-if (S != ellpow(secp192, B, a), error("secp192 dh error"));
-print("secp192");
-out(a, A, b, B, S);
-
-p224 = 2^224 - 2^96 + 1;
-b224 = 18958286285566608000408668544493926415504680968679321075787234672564;
-g = Mod([19277929113566293071110308034699488026831934219452440156649784352033,\
- 19926808758034470970197974370888749184205991990603949537637343198772], p224);
-
-secp224 = ellinit(Mod([0,0,0,-3, b224], p224));
-q = 26959946667150639794667015087019625940457807714424391721682722368061;
-if (ellpow(secp224, g, q) != [0], error("secp224 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(secp224, g, a);
-B = ellpow(secp224, g, b);
-S = ellpow(secp224, A, b);
-if (S != ellpow(secp224, B, a), error("secp224 dh error"));
-print("secp224");
-out(a, A, b, B, S);
-
-p256 = 2^256 - 2^224 + 2^192 + 2^96 - 1;
-b256 = 41058363725152142129326129780047268409114441015993725554835256314039467401291;
-g = Mod([48439561293906451759052585252797914202762949526041747995844080717082404635286,\
- 36134250956749795798585127919587881956611106672985015071877198253568414405109], p256);
-
-secp256 = ellinit(Mod([0,0,0,-3, b256], p256));
-q = 115792089210356248762697446949407573529996955224135760342422259061068512044369;
-if (ellpow(secp256, g, q) != [0], error("secp256 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(secp256, g, a);
-B = ellpow(secp256, g, b);
-S = ellpow(secp256, A, b);
-if (S != ellpow(secp256, B, a), error("secp256 dh error"));
-print("secp256");
-out(a, A, b, B, S);
-
-p384 = 2^384 - 2^128 - 2^96 + 2^32 - 1;
-b384 = 27580193559959705877849011840389048093056905856361568521428707301988689241309860865136260764883745107765439761230575;
-g = Mod([26247035095799689268623156744566981891852923491109213387815615900925518854738050089022388053975719786650872476732087,\
- 8325710961489029985546751289520108179287853048861315594709205902480503199884419224438643760392947333078086511627871], p384);
-
-secp384 = ellinit(Mod([0,0,0,-3, b384], p384));
-q = 39402006196394479212279040100143613805079739270465446667946905279627659399113263569398956308152294913554433653942643;
-if (ellpow(secp384, g, q) != [0], error("secp384 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(secp384, g, a);
-B = ellpow(secp384, g, b);
-S = ellpow(secp384, A, b);
-if (S != ellpow(secp384, B, a), error("secp384 dh error"));
-print("secp384");
-out(a, A, b, B, S);
-
-p521 = 2^521 - 1;
-b521 = 1093849038073734274511112390766805569936207598951683748994586394495953116150735016013708737573759623248592132296706313309438452531591012912142327488478985984;
-g = Mod([2661740802050217063228768716723360960729859168756973147706671368418802944996427808491545080627771902352094241225065558662157113545570916814161637315895999846,\
- 3757180025770020463545507224491183603594455134769762486694567779615544477440556316691234405012945539562144444537289428522585666729196580810124344277578376784], p521);
-
-secp521 = ellinit(Mod([0,0,0,-3, b521], p521));
-q = 6864797660130609714981900799081393217269435300143305409394463459185543183397655394245057746333217197532963996371363321113864768612440380340372808892707005449;
-if (ellpow(secp521, g, q) != [0], error("secp521 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(secp521, g, a);
-B = ellpow(secp521, g, b);
-S = ellpow(secp521, A, b);
-if (S != ellpow(secp521, B, a), error("secp521 dh error"));
-print("secp521");
-out(a, A, b, B, S);
-
-p25519 = 2^255 - 19;
-b25519 = 486662;
-x = Mod(9, p25519);
-y = sqrt(x^3 + b25519*x^2 + x);
-g = [x, y];
-
-curve25519 = ellinit(Mod([0, b25519, 0, 1, 0], p25519));
-q = 2^252 + 27742317777372353535851937790883648493;
-if (ellpow(curve25519, g, q) != [0], error("curve25519 parameter error"));
-
-a = 1+random(q-1);
-b = 1+random(q-1);
-A = ellpow(curve25519, g, a);
-B = ellpow(curve25519, g, b);
-S = ellpow(curve25519, A, b);
-if (S != ellpow(curve25519, B, a), error("curve25519 dh error"));
-print("curve25519");
-out(a, A, b, B, S);
-
-/* Convert point on curve25519 to a point on the twisted edwards curve */
-beta = -sqrt(Mod(-486664, p25519));
-ed25519(p) = [p[1] * beta / p[2], (p[1] - 1) / (p[1] + 1)];
-
-Ae = ed25519(A);
-Be = ed25519(B);
-Se = ed25519(S);
-print("ed25519");
-out(a, Ae, b, Be, Se);
-
-quit
diff --git a/misc/nettle-2.0.tar.gz.directive b/misc/nettle-2.0.tar.gz.directive
deleted file mode 100644
index 140b8fb3..00000000
--- a/misc/nettle-2.0.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.0.tar.gz
diff --git a/misc/nettle-2.1.tar.gz.directive b/misc/nettle-2.1.tar.gz.directive
deleted file mode 100644
index 71a60162..00000000
--- a/misc/nettle-2.1.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.1.tar.gz
diff --git a/misc/nettle-2.2.tar.gz.directive b/misc/nettle-2.2.tar.gz.directive
deleted file mode 100644
index 87cd8fb2..00000000
--- a/misc/nettle-2.2.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.2.tar.gz
diff --git a/misc/nettle-2.3.tar.gz.directive b/misc/nettle-2.3.tar.gz.directive
deleted file mode 100644
index df6be5a5..00000000
--- a/misc/nettle-2.3.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.3.tar.gz
diff --git a/misc/nettle-2.4.tar.gz.directive b/misc/nettle-2.4.tar.gz.directive
deleted file mode 100644
index a7e2c4d1..00000000
--- a/misc/nettle-2.4.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.4.tar.gz
diff --git a/misc/nettle-2.5.tar.gz.directive b/misc/nettle-2.5.tar.gz.directive
deleted file mode 100644
index d6251e3f..00000000
--- a/misc/nettle-2.5.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.1
-directory: nettle
-filename: nettle-2.5.tar.gz
diff --git a/misc/nettle-3.1.1.tar.gz.directive b/misc/nettle-3.1.1.tar.gz.directive
deleted file mode 100644
index c71bbf43..00000000
--- a/misc/nettle-3.1.1.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.2
-directory: nettle
-filename: nettle-3.1.1.tar.gz
diff --git a/misc/nettle-3.1.tar.gz.directive b/misc/nettle-3.1.tar.gz.directive
deleted file mode 100644
index 2d00b8f5..00000000
--- a/misc/nettle-3.1.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.2
-directory: nettle
-filename: nettle-3.1.tar.gz
diff --git a/misc/nettle-3.2.tar.gz.directive b/misc/nettle-3.2.tar.gz.directive
deleted file mode 100644
index ff13163e..00000000
--- a/misc/nettle-3.2.tar.gz.directive
+++ /dev/null
@@ -1,3 +0,0 @@
-version: 1.2
-directory: nettle
-filename: nettle-3.2.tar.gz
diff --git a/misc/plan.html b/misc/plan.html
deleted file mode 100644
index 309f984f..00000000
--- a/misc/plan.html
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <link rel="stylesheet" title="Default"
- type="text/css" href="todo.css" media="all"/>
- <meta http-equiv="Content-Type"
- content="text/html; charset=utf-8"/>
-<title>TODO for coming releases</title>
-</head>
-<body>
- <h1> Nettle release plans </h1>
- <p> This is an attempt at defining a development target for the next
- release of Nettle, inspired by similar pages for recent GMP
- releases. [Last updated 2017-11-19]</p>
- <p class='should'>
- This really ought to be done before release
- </p>
- <p class='wish'>
- Try to get this done before release
- </p>
- <p class='done'>
- Done!
- </p>
- <p class='postponed'>
- Leave for some later release!
- </p>
-
- <h1> Plans for nettle-3.4 </h1>
-
- <h2> Bug fixes </h2>
- <p class='done'> Fix issues with sizes of objects like the
- nettle_hashes array and the ecc_curve structs accidentally leaking
- into the ABI. Fix by another level of indirection, with a function
- call to return the start address.
- </p>
-
- <h2> New features </h2>
- <p class='postponed'>
- Add larger "safe" curves, e.g., M-383, curve41417, curve448 and
- E-521. (curve448 in progress, on its own branch).
- </p>
-
- <p class='postponed'>
- Add functions for converting ECC points to and from ANSI x9.62.
- </p>
-
- <p class='postponed'>
- Support for the Skein hash function.
- </p>
-
- <p class='postponed'>
- Support for more GOST standard algorithms.
- </p>
-
- <p class='done'>
- Support for CFB mode (patch by Dmitry Eremin-Solenikov posted on
- the list).
- </p>
-
- <h2> Optimizations </h2>
-
- <p class='postponed'>
- Assembly optimizations for ARMv8 (64-bit).
- </p>
- <p class='postponed'>
- Further optimizations of curve25519 and EdDSA, in particular,
-
- <a href='http://www.hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#addition-add-2008-hwcd-3'>more
- efficient point addition</a>, using extended XYZT coordinates.
- </p>
-
- <h2> Miscellaneous </h2>
- <p class='postponed'>
- Use more functions from GMP-6 and later, when available:
- mpn_sec_add_1, mpn_sec_tabselect, mpn_sec_invert, mpn_cnd_swap,
- ...
- </p>
-
- <p class='done'> Change base16 and base64 interfaces to use char
- for encoded data, and fix remaining pointer-signedness warnings.
- </p>
-
- <h2> Documentation </h2>
-
-
- <h2> Build system </h2>
- <p class='postponed'>
- Delete AX_CREATE_STDINT_H, use stdint.h unconditionally.
- </p>
-
- <h2> Testing </h2>
- <p> Since xenofarm isn't up and running, do some manual testing:
- </p>
- <ul>
- <li class='done'> x86_64-linux-gnu</li>
- <li class='done'> x86-linux-gnu</li>
- <li class='done'> x86_64-freebsd</li>
- <li class='done'> x86-w*ndows (using cross compiler and wine)</li>
- <li class='done'> x86_64-w*ndows (using cross compiler and wine)</li>
- <li class='done'> x86_64-w*ndows, native</li>
- <li class='should'> x86-darwin (needs help from Nettle users)</li>
- <li class='should'> x86_64-darwin (needs help from Nettle users)</li>
- <li class='wish'> armv5-linux-gnu (qemu)</li>
- <li class='done'> armv7el-linux-gnu (qemu)</li>
- <li class='done'> armv7hf-linux-gnu (qemu)</li>
- <li class='done'> armv8-linux-gnu (qemu)</li>
- <li class='done'> ppc32-linux-gnu (qemu)</li>
- <li class='done'> ppc64el-linux-gnu (qemu)</li>
- <li class='done'> ppc64eb-linux-gnu (qemu)</li>
- <li class='done'> mips32-linux-gnu</li>
- <li class='done'> mips64eb-linux-gnu (qemu)</li>
- <li class='done'> mips64el-linux-gnu (qemu)</li>
- <li class='done'> s390x-linux-gnu (qemu)</li>
- <li class='done'> m68k-linux-gnu (aranym)</li>
- <li class='done'> alpha-linux-gnu (qemu)</li>
- <li class='done'> hppa-linux-gnu (qemu)</li>
- <li class='done'> sparc32-linux-gnu</li>
- <li class='done'> sparc64-linux-gnu</li>
- <li class='wish'> armv7-android </li>
- </ul>
-
- <h1> Changes under consideration for later releases </h1>
-
- <p> These are some larger changes under consideration. </p>
-
- <h2> Interface changes </h2>
- <p class='should'>
- For Merkle-Damgaard hash functions, separate the state and the
- buffering. E.g., when using them for HMAC keyed "inner" and
- "outer" states, we now get three buffers but we only need one.
- </p>
- <p class='should'>
- Reorganize private key operations. Need to support RSA with and
- without blinding, and DSA according to spec and some deterministic
- variant (like putty
- or <a href='http://tools.ietf.org/html/rfc6979'>RFC6979</a>), and
- possibly also smartcard versions where the private key is not
- available to the library. And without an explosion of the number
- of functions.
- </p>
-</body>
-</html>
diff --git a/misc/poly1305-gen-example.pike b/misc/poly1305-gen-example.pike
deleted file mode 100755
index 8e5bfa21..00000000
--- a/misc/poly1305-gen-example.pike
+++ /dev/null
@@ -1,42 +0,0 @@
-#! /usr/bin/pike
-
-void write_little_endian(int x) {
- for (int i = 0; i < 16; i++, x >>= 8) {
- write("%02x", x & 0xff);
- }
-}
-
-int main (int argc, array(string) argv) {
- int p = (1<<130) - 5;
- int mask = 0x0ffffffc0ffffffc0ffffffc0fffffff;
-
- int digest = (argc > 1) ? (int) argv[1] % p : 0;
- int r = random(1<<128) & mask;
- int r2 = r*r%p;
-
- for (;;) {
- int m0 = random(1<<128) | (1<<128);
- /* We want m0 r^2 + m1 r = digest (mod p), or
-
- m1 = (digest - m0 r^2 ) r^-1 (mod p)
-
- To be a valid message, this must also satisfy (m1 >> 128) == 1
- */
- int m1 = r->invert(p) * (digest - m0 * r2) % p;
- if ((m1 >> 128) == 1) {
- write ("r = 0x%x\n", r);
- write ("m0 = 0x%x\n", m0);
- write ("m1 = 0x%x\n", m1);
- write ("out = 0x%x\n\n", digest);
-
- write ("r = le "); write_little_endian(r);
- write ("\nm0 = le "); write_little_endian(m0);
- write ("\nm1 = le "); write_little_endian(m1);
- write ("\nout = le "); write_little_endian(digest);
- write("\n");
- if ((m0*r2 + m1*r) % p != digest)
- error("inconsistent result");
- return 0;
- }
- }
-}
diff --git a/misc/serpent-sbox0i.dot b/misc/serpent-sbox0i.dot
deleted file mode 100644
index 26225aa7..00000000
--- a/misc/serpent-sbox0i.dot
+++ /dev/null
@@ -1,46 +0,0 @@
-strict digraph sbox0i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t15 [label="\N\ny0\n1"];
- t02 [label="\N\ny2\n2"];
- t01 [label="\N\ny1\n3"];
- t05 [label="\N\ny2\n4"];
- t04 [label="\N\ny1\n5"];
- t03 [label="\N\nx2\n6"];
- t08 [label="\N\nx1\n7"];
- t06 [label="\N\ny1\n8"];
- t09 [label="\N\nx1\n9"];
- y1 [label="\N\n10", shape=box];
- t12 [label="\N\nx0\n11"];
- t13 [label="\N\nx0\n12"];
- t17 [label="\N\nx1\n13"];
- y2 [label="\N\n14", shape=box];
- t10 [label="\N\nx3\n15"];
- t14 [label="\N\nx3\n16"];
- y3 [label="\N\n17", shape=box];
- t18 [label="\N\nx1\n18"];
- y0 [label="\N\n19", shape=box];
-
- x2 -> t01; x3 -> t01; // t01 = x2 ^ x3;
- x0 -> t02; x1 -> t02; // t02 = x0 | x1;
- x1 -> t03; x2 -> t03; // t03 = x1 | x2;
- x2 -> t04; t01 -> t04; // t04 = x2 & t01;
- t01 -> t05; t02 -> t05; // t05 = t02 ^ t01;
- x0 -> t06; t04 -> t06; // t06 = x0 | t04;
- t05 -> y2; // y2 = ~ t05;
- x1 -> t08; x3 -> t08; // t08 = x1 ^ x3;
- t03 -> t09; t08 -> t09; // t09 = t03 & t08;
- x3 -> t10; y2 -> t10; // t10 = x3 | y2;
- t06 -> y1; t09 -> y1; // y1 = t09 ^ t06;
- x0 -> t12; t05 -> t12; // t12 = x0 | t05;
- y1 -> t13; t12 -> t13; // t13 = y1 ^ t12;
- t03 -> t14; t10 -> t14; // t14 = t03 ^ t10;
- x0 -> t15; x2 -> t15; // t15 = x0 ^ x2;
- t13 -> y3; t14 -> y3; // y3 = t14 ^ t13;
- t05 -> t17; t13 -> t17; // t17 = t05 & t13;
- t14 -> t18; t17 -> t18; // t18 = t14 | t17;
- t15 -> y0; t18 -> y0; // y0 = t15 ^ t18;
-}
diff --git a/misc/serpent-sbox1i.dot b/misc/serpent-sbox1i.dot
deleted file mode 100644
index b04cf75f..00000000
--- a/misc/serpent-sbox1i.dot
+++ /dev/null
@@ -1,46 +0,0 @@
-strict digraph sbox1i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- // First get shortest path to t08
- t02 [label="\N\ny1\n1"];
- t04 [label="\N\ny1\n2"];
- t01 [label="\N\ny3\n3"];
- t05 [label="\N\ny0\n4"];
- t06 [label="\N\ny0\n5"];
- t08 [label="\N\nx1\n6"];
-
- y3 [label="\N\n7", shape=box];
- t11 [label="\N\nx1\n8"];
- t03 [label="\N\ny2\n9"];
- t10 [label="\N\ny1\n10"];
- t07 [label="\N\ny2\n11"];
- t09 [label="\N\ny2\n12"];
- y2 [label="\N\n13", shape=box];
- y1 [label="\N\n14", shape=box];
- t15 [label="\N\ny0\n15"];
- t17 [label="\N\ny0\n16"];
- t14 [label="\N\nx0\n17"];
- y0 [label="\N\n18", shape=box];
-
- x0 -> t01; x1 -> t01; // t01 = x0 ^ x1;
- x1 -> t02; x3 -> t02; // t02 = x1 | x3;
- x0 -> t03; x2 -> t03; // t03 = x0 & x2;
- x2 -> t04; t02 -> t04; // t04 = x2 ^ t02;
- x0 -> t05; t04 -> t05; // t05 = x0 | t04;
- t01 -> t06; t05 -> t06; // t06 = t01 & t05;
- x3 -> t07; t03 -> t07; // t07 = x3 | t03;
- x1 -> t08; t06 -> t08; // t08 = x1 ^ t06;
- t07 -> t09; t06 -> t09; // t09 = t07 ^ t06;
- t04 -> t10; t03 -> t10; // t10 = t04 | t03;
- x3 -> t11; t08 -> t11; // t11 = x3 & t08;
- t09 -> y2; // y2 = ~ t09;
- t10 -> y1; t11 -> y1; // y1 = t10 ^ t11;
- x0 -> t14; y2 -> t14; // t14 = x0 | y2;
- t06 -> t15; y1 -> t15; // t15 = t06 ^ y1;
- t01 -> y3; t04 -> y3; // y3 = t01 ^ t04;
- x2 -> t17; t15 -> t17; // t17 = x2 ^ t15;
- t14 -> y0; t17 -> y0; // y0 = t14 ^ t17;
-}
diff --git a/misc/serpent-sbox2i.dot b/misc/serpent-sbox2i.dot
deleted file mode 100644
index afeb2a39..00000000
--- a/misc/serpent-sbox2i.dot
+++ /dev/null
@@ -1,44 +0,0 @@
-strict digraph sbox2i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t01 [label="\N\ny0\n1"];
- t02 [label="\N\ny2\n2"];
- t04 [label="\N\ny1\n3"];
- y0 [label="\N\n4", shape=box];
- t07 [label="\N\ny1\n5"];
- t11 [label="\N\ny1\n6"];
- t08 [label="\N\nx3\n7"];
- t06 [label="\N\ny3\n8"];
- t12 [label="\N\ny2\n9"];
- y1 [label="\N\n10", shape=box];
- t09 [label="\N\ny3\n11"];
- t03 [label="\N\nx0\n12"];
- t10 [label="\N\nx0\n13"];
- y3 [label="\N\n14", shape=box];
- t15 [label="\N\nx2\n15"];
- t17 [label="\N\nx2\n16"];
- t16 [label="\N\ny2\n17"];
- y2 [label="\N\n18", shape=box];
-
- x0 -> t01; x3 -> t01; // t01 = x0 ^ x3;
- x2 -> t02; x3 -> t02; // t02 = x2 ^ x3;
- x0 -> t03; x2 -> t03; // t03 = x0 & x2;
- x1 -> t04; t02 -> t04; // t04 = x1 | t02;
- t01 -> y0; t04 -> y0; // y0 = t01 ^ t04;
- x0 -> t06; x2 -> t06; // t06 = x0 | x2;
- x3 -> t07; y0 -> t07; // t07 = x3 | y0;
- x3 -> t08; // t08 = ~ x3;
- x1 -> t09; t06 -> t09; // t09 = x1 & t06;
- t03 -> t10; t08 -> t10; // t10 = t08 | t03;
- x1 -> t11; t07 -> t11; // t11 = x1 & t07;
- t02 -> t12; t06 -> t12; // t12 = t06 & t02;
- t09 -> y3; t10 -> y3; // y3 = t09 ^ t10;
- t11 -> y1; t12 -> y1; // y1 = t12 ^ t11;
- x2 -> t15; y3 -> t15; // t15 = x2 & y3;
- y0 -> t16; y1 -> t16; // t16 = y0 ^ y1;
- t10 -> t17; t15 -> t17; // t17 = t10 ^ t15;
- t16 -> y2; t17 -> y2; // y2 = t16 ^ t17;
-}
diff --git a/misc/serpent-sbox3.dot b/misc/serpent-sbox3.dot
deleted file mode 100644
index 7fef079f..00000000
--- a/misc/serpent-sbox3.dot
+++ /dev/null
@@ -1,20 +0,0 @@
-strict digraph sbox3 {
- x0 -> t01; x2 -> t01; // t01 = x0 ^ x2;
- x0 -> t02; x3 -> t02; // t02 = x0 | x3;
- x0 -> t03; x3 -> t03; // t03 = x0 & x3;
- t01 -> t04; t02 -> t04; // t04 = t01 & t02;
- x1 -> t05; t03 -> t05; // t05 = x1 | t03;
- x0 -> t06; x1 -> t06; // t06 = x0 & x1;
- x3 -> t07; t04 -> t07; // t07 = x3 ^ t04;
- x2 -> t08; t06 -> t08; // t08 = x2 | t06;
- x1 -> t09; t07 -> t09; // t09 = x1 ^ t07;
- x3 -> t10; t05 -> t10; // t10 = x3 & t05;
- t02 -> t11; t10 -> t11; // t11 = t02 ^ t10;
- t08 -> y3; t09 -> y3; // y3 = t08 ^ t09;
- x3 -> t13; y3 -> t13; // t13 = x3 | y3;
- x0 -> t14; t07 -> t14; // t14 = x0 | t07;
- x1 -> t15; t13 -> t15; // t15 = x1 & t13;
- t08 -> y2; t11 -> y2; // y2 = t08 ^ t11;
- t14 -> y0; t15 -> y0; // y0 = t14 ^ t15;
- t05 -> y1; t04 -> y1; // y1 = t05 ^ t04;
-}
diff --git a/misc/serpent-sbox3i.dot b/misc/serpent-sbox3i.dot
deleted file mode 100644
index 7e236c3f..00000000
--- a/misc/serpent-sbox3i.dot
+++ /dev/null
@@ -1,42 +0,0 @@
-strict digraph sbox3i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t01 [label="\N\ny3\n1"];
- t07 [label="\N\ny0\n2"];
- t02 [label="\N\ny2\n3"];
- t03 [label="\N\ny1\n4"];
- y0 [label="\N\n5", shape=box];
- t05 [label="\N\nx3\n6"];
- t14 [label="\N\ny3\n7"];
- t04 [label="\N\ny2\n8"];
- t06 [label="\N\ny2\n9"];
- y2 [label="\N\n10", shape=box];
- t09 [label="\N\ny1\n11"];
- t11 [label="\N\nx3\n12"];
- t12 [label="\N\ny1\n13"];
- y1 [label="\N\n14", shape=box];
- t13 [label="\N\nx0\n15"];
- t16 [label="\N\nx0\n16"];
- y3 [label="\N\n17", shape=box];
-
- x2 -> t01; x3 -> t01; // t01 = x2 | x3;
- x0 -> t02; x3 -> t02; // t02 = x0 | x3;
- x2 -> t03; t02 -> t03; // t03 = x2 ^ t02;
- x1 -> t04; t02 -> t04; // t04 = x1 ^ t02;
- x0 -> t05; x3 -> t05; // t05 = x0 ^ x3;
- t04 -> t06; t03 -> t06; // t06 = t04 & t03;
- x1 -> t07; t01 -> t07; // t07 = x1 & t01;
- t05 -> y2; t06 -> y2; // y2 = t05 ^ t06;
- x0 -> t09; t03 -> t09; // t09 = x0 ^ t03;
- t07 -> y0; t03 -> y0; // y0 = t07 ^ t03;
- y0 -> t11; t05 -> t11; // t11 = y0 | t05;
- t09 -> t12; t11 -> t12; // t12 = t09 & t11;
- x0 -> t13; y2 -> t13; // t13 = x0 & y2;
- t01 -> t14; t05 -> t14; // t14 = t01 ^ t05;
- x1 -> y1; t12 -> y1; // y1 = x1 ^ t12;
- x1 -> t16; t13 -> t16; // t16 = x1 | t13;
- t14 -> y3; t16 -> y3; // y3 = t14 ^ t16;
-}
diff --git a/misc/serpent-sbox4.dot b/misc/serpent-sbox4.dot
deleted file mode 100644
index d3e15f85..00000000
--- a/misc/serpent-sbox4.dot
+++ /dev/null
@@ -1,56 +0,0 @@
-strict digraph sbox4 {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t02 [label="\N\ny2\n1"];
- t01 [label="\N\ny3\n2"];
-
- t03 [label="\N\ny2\n3"];
- t06 [label="\N\ny3\n4"];
-
- t04 [label="\N\ny0\n5"];
- t05 [label="\N\nx3\n6"];
- t15 [label="\N\nx0\n7"];
-
- t11 [label="\N\nx1\n8"];
-
- t10 [label="\N\nx2\n9"];
-
- y3 [shape=box, label="\N\n10"];
-
- t13 [label="\N\ny2\n11"];
-
- t08 [label="\N\ny1\n12"];
-
- y2 [shape=box, label="\N\n13"];
-
- t12 [label="\N\ny1\n14"];
- t16 [label="\N\ny1\n15"];
- y1 [shape=box, label="\N\n16"];
-
- t09 [label="\N\ny0\n17"];
- t14 [label="\N\ny0\n18"];
- y0 [shape=box, label="\N\n19"];
-
- x0 -> t01; x1 -> t01; // t01 = x0 | x1;
- x1 -> t02; x2 -> t02; // t02 = x1 | x2;
- x0 -> t03; t02 -> t03; // t03 = x0 ^ t02;
- x1 -> t04; x3 -> t04; // t04 = x1 ^ x3;
- x3 -> t05; t03 -> t05; // t05 = x3 | t03;
- x3 -> t06; t01 -> t06; // t06 = x3 & t01;
- t03 -> y3; t06 -> y3; // y3 = t03 ^ t06;
- y3 -> t08; t04 -> t08; // t08 = y3 & t04;
- t04 -> t09; t05 -> t09; // t09 = t04 & t05;
- x2 -> t10; t06 -> t10; // t10 = x2 ^ t06;
- x1 -> t11; x2 -> t11; // t11 = x1 & x2;
- t04 -> t12; t08 -> t12; // t12 = t04 ^ t08;
- t11 -> t13; t03 -> t13; // t13 = t11 | t03;
- t10 -> t14; t09 -> t14; // t14 = t10 ^ t09;
- x0 -> t15; t05 -> t15; // t15 = x0 & t05;
- t11 -> t16; t12 -> t16; // t16 = t11 | t12;
- t13 -> y2; t08 -> y2; // y2 = t13 ^ t08;
- t15 -> y1; t16 -> y1; // y1 = t15 ^ t16;
- t14 -> y0; // y0 = ~ t14;
-}
diff --git a/misc/serpent-sbox4i.dot b/misc/serpent-sbox4i.dot
deleted file mode 100644
index 19c55986..00000000
--- a/misc/serpent-sbox4i.dot
+++ /dev/null
@@ -1,42 +0,0 @@
-strict digraph sbox4i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t05 [label="\N\ny1\n1"];
- t02 [label="\N\ny2\n2"];
- t04 [label="\N\ny2\n3"];
- t01 [label="\N\nx1\n4"];
- t15 [label="\N\ny0\n5"];
- t12 [label="\N\nx3\n6"];
- t07 [label="\N\ny2\n7"];
- y1 [label="\N\n8", shape=box];
- t10 [label="\N\ny2\n9"];
- t13 [label="\N\ny2\n10"];
- t03 [label="\N\nx0\n11"];
- y3 [label="\N\n12", shape=box];
- t06 [label="\N\nx0\n13"];
- t09 [label="\N\nx0\n14"];
- y0 [label="\N\n15", shape=box];
- t11 [label="\N\nx0\n16"];
- y2 [label="\N\n17", shape=box];
-
- x1 -> t01; x3 -> t01; // t01 = x1 | x3;
- x2 -> t02; x3 -> t02; // t02 = x2 | x3;
- x0 -> t03; t01 -> t03; // t03 = x0 & t01;
- x1 -> t04; t02 -> t04; // t04 = x1 ^ t02;
- x2 -> t05; x3 -> t05; // t05 = x2 ^ x3;
- t03 -> t06; t03 -> t06; // t06 = ~ t03;
- x0 -> t07; t04 -> t07; // t07 = x0 & t04;
- t05 -> y1; t07 -> y1; // y1 = t05 ^ t07;
- y1 -> t09; t06 -> t09; // t09 = y1 | t06;
- x0 -> t10; t07 -> t10; // t10 = x0 ^ t07;
- t01 -> t11; t09 -> t11; // t11 = t01 ^ t09;
- x3 -> t12; t04 -> t12; // t12 = x3 ^ t04;
- x2 -> t13; t10 -> t13; // t13 = x2 | t10;
- t03 -> y3; t12 -> y3; // y3 = t03 ^ t12;
- x0 -> t15; t04 -> t15; // t15 = x0 ^ t04;
- t11 -> y2; t13 -> y2; // y2 = t11 ^ t13;
- t15 -> y0; t09 -> y0; // y0 = t15 ^ t09;
-}
diff --git a/misc/serpent-sbox5.dot b/misc/serpent-sbox5.dot
deleted file mode 100644
index 8c8d3980..00000000
--- a/misc/serpent-sbox5.dot
+++ /dev/null
@@ -1,42 +0,0 @@
-strict digraph sbox5 {
- x0 [shape=box];
- x1 [shape=box];
- x2 [shape=box];
- x3 [shape=box];
-
- t02 [label="\N\ny0\n1"];
- t04 [label="\N\ny0\n2"];
- t01 [label="\N\nx2\n3"];
- t07 [label="\N\ny2\n4"];
- t03 [label="\N\nx0\n5"];
- t05 [label="\N\ny0\n6"];
- t11 [label="\N\ny3\n7"];
- t09 [label="\N\nx1\n8"];
- y0 [shape=box, label="\N\n9"];
- t12 [label="\N\nx0\n10"];
- t14 [label="\N\ny3\n11"];
- y3 [shape=box, label="\N\n12"];
- t08 [label="\N\ny1\n13"];
- t10 [label="\N\nx3\n14"];
- y1 [shape=box, label="\N\n15"];
- t13 [label="\N\ny2\n16"];
- y2 [shape=box, label="\N\n17"];
-
- x1 -> t01; x3 -> t01; // t01 = x1 ^ x3;
- x1 -> t02; x3 -> t02; // t02 = x1 | x3;
- x0 -> t03; t01 -> t03; // t03 = x0 & t01;
- x2 -> t04; t02 -> t04; // t04 = x2 ^ t02;
- t03 -> t05; t04 -> t05; // t05 = t03 ^ t04;
- t05 -> y0; // y0 = ~ t05;
- x0 -> t07; t01 -> t07; // t07 = x0 ^ t01;
- x3 -> t08; y0 -> t08; // t08 = x3 | y0;
- x1 -> t09; t05 -> t09; // t09 = x1 | t05;
- x3 -> t10; t08 -> t10; // t10 = x3 ^ t08;
- x1 -> t11; t07 -> t11; // t11 = x1 | t07;
- t03 -> t12; y0 -> t12; // t12 = t03 | y0;
- t07 -> t13; t10 -> t13; // t13 = t07 | t10;
- t01 -> t14; t11 -> t14; // t14 = t01 ^ t11;
- t09 -> y2; t13 -> y2; // y2 = t09 ^ t13;
- t07 -> y1; t08 -> y1; // y1 = t07 ^ t08;
- t12 -> y3; t14 -> y3; // y3 = t12 ^ t14;
-}
diff --git a/misc/serpent-sbox5i.dot b/misc/serpent-sbox5i.dot
deleted file mode 100644
index 40671543..00000000
--- a/misc/serpent-sbox5i.dot
+++ /dev/null
@@ -1,42 +0,0 @@
-strict digraph sbox5i {
- x0 [shape=box, label="\N"];
- x1 [shape=box, label="\N"];
- x2 [shape=box, label="\N"];
- x3 [shape=box, label="\N"];
-
- t01 [label="\N\ny1\n1"];
- t02 [label="\N\ny3\n2"];
- t04 [label="\N\ny0\n3"];
- t03 [label="\N\ny2\n4"];
- t16 [label="\N\nx3\n5"];
- y0 [label="\N\n6", shape=box];
- t05 [label="\N\nx2\n7"];
- t07 [label="\N\nx0\n8"];
- t09 [label="\N\nx2\n9"];
- t08 [label="\N\ny1\n10"];
- y1 [label="\N\n11", shape=box];
- t13 [label="\N\ny2\n12"];
- t15 [label="\N\ny2\n13"];
- y2 [label="\N\n14", shape=box];
- t10 [label="\N\nx1\n15"];
- t12 [label="\N\nx1\n16"];
- y3 [label="\N\n17", shape=box];
-
- x0->t01; x3->t01;// t01 = x0 & x3;
- x2->t02; t01->t02;// t02 = x2 ^ t01;
- x0->t03; x3->t03;// t03 = x0 ^ x3;
- x1->t04; t02->t04;// t04 = x1 & t02;
- x0->t05; x2->t05;// t05 = x0 & x2;
- t03->y0; t04->y0;// y0 = t03 ^ t04;
- x0->t07; y0->t07;// t07 = x0 & y0;
- t01->t08; y0->t08;// t08 = t01 ^ y0;
- x1->t09; t05->t09;// t09 = x1 | t05;
- x1 -> t10// t10 = ~ x1;
- t08->y1; t09->y1;// y1 = t08 ^ t09;
- t10->t12; t07->t12;// t12 = t10 | t07;
- y0->t13; y1->t13;// t13 = y0 | y1;
- t02->y3; t12->y3;// y3 = t02 ^ t12;
- t02->t15; t13->t15;// t15 = t02 ^ t13;
- x1->t16; x3->t16;// t16 = x1 ^ x3;
- t16->y2; t15->y2;// y2 = t16 ^ t15;
-}
diff --git a/misc/serpent-sbox6.dot b/misc/serpent-sbox6.dot
deleted file mode 100644
index 1ec3fc84..00000000
--- a/misc/serpent-sbox6.dot
+++ /dev/null
@@ -1,46 +0,0 @@
-strict digraph sbox6 {
- x0 [shape=box];
- x1 [shape=box];
- x2 [shape=box];
- x3 [shape=box];
-
- t03 [label="\N\ny0\n1"];
- t01 [label="\N\ny1\n2"];
- t09 [label="\N\ny2\n3"];
- t11 [label="\N\nx3\n4"];
- t12 [label="\N\nx3\n5"];
- t17 [label="\N\nx0\n6"];
- t05 [label="\N\ny3\n7"];
- t02 [label="\N\nx2\n8"];
- t07 [label="\N\ny3\n9"];
- t04 [label="\N\ny1\n10"];
- y1 [label="\N\n11", shape=box];
- t15 [label="\N\ny0\n12"];
- t08 [label="\N\nx1\n13"];
- t10 [label="\N\nx1\n14"];
- y3 [label="\N\n15", shape=box];
- t13 [label="\N\ny2\n16"];
- y2 [label="\N\n17", shape=box];
- t18 [label="\N\ny0\n18"];
- y0 [label="\N\n19", shape=box];
-
- x0 -> t01; x3 -> t01; // t01 = x0 & x3;
- x1 -> t02; x2 -> t02; // t02 = x1 ^ x2;
- x0 -> t03; x3 -> t03; // t03 = x0 ^ x3;
- t01 -> t04; t02 -> t04; // t04 = t01 ^ t02;
- x1 -> t05; x2 -> t05; // t05 = x1 | x2;
- t04 -> y1; // y1 = ~ t04;
- t03 -> t07; t05 -> t07; // t07 = t03 & t05;
- x1 -> t08; y1 -> t08; // t08 = x1 & y1;
- x0 -> t09; x2 -> t09; // t09 = x0 | x2;
- t07 -> t10; t08 -> t10; // t10 = t07 ^ t08;
- x1 -> t11; x3 -> t11; // t11 = x1 | x3;
- x2 -> t12; t11 -> t12; // t12 = x2 ^ t11;
- t09 -> t13; t10 -> t13; // t13 = t09 ^ t10;
- t13 -> y2; // y2 = ~ t13;
- y1 -> t15; t03 -> t15; // t15 = y1 & t03;
- t12 -> y3; t07 -> y3; // y3 = t12 ^ t07;
- x0 -> t17; x1 -> t17; // t17 = x0 ^ x1;
- y2 -> t18; t15 -> t18; // t18 = y2 ^ t15;
- t17 -> y0; t18 -> y0; // y0 = t17 ^ t18;
-}
diff --git a/misc/serpent-sbox6i.dot b/misc/serpent-sbox6i.dot
deleted file mode 100644
index a2fdbd37..00000000
--- a/misc/serpent-sbox6i.dot
+++ /dev/null
@@ -1,57 +0,0 @@
-strict digraph sbox6i {
- x0 [shape=box];
- x1 [shape=box];
- x2 [shape=box];
- x3 [shape=box];
-
- y0 [shape=box];
- y1 [shape=box];
- y2 [shape=box];
- y3 [shape=box];
-
- // Get to y1
- t01 [label="\N\ny2\n1"];
- t02 [label="\N\nx2\n2"];
- t06 [label="\N\ny0\n3"];
- t08 [label="\N\ny1\n4"];
- y1 [label="\N\n5"];
- // Get to t05
- t03 [label="\N\ny3\n6"];
- t05 [label="\N\ny3\n7"];
- // Get to t07
- t16 [label="\N\nx3\n8"];
- t04 [label="\N\nx2\n9"];
- t07 [label="\N\nx2\n10"];
- // Get to y0
- t09 [label="\N\ny0\n11"];
- y0 [label="\N\n12"];
- // Get to y3
- t13 [label="\N\ny3\n13"];
- t15 [label="\N\ny3\n14"];
- t17 [label="\N\nx0\n15"];
- y3 [label="\N\n16"];
- // Get to y2
- t12 [label="\N\nx1\n17"];
- t14 [label="\N\ny2\n18"];
- y2 [label="\N\n19"];
-
- x0 -> t01; x2 -> t01; // t01 = x0 ^ x2;
- x2 -> t02; // t02 = ~ x2;
- x1 -> t03; t01-> t03; // t03 = x1 & t01;
- x1 -> t04; t02-> t04; // t04 = x1 | t02;
- x3 -> t05; t03-> t05; // t05 = x3 | t03;
- x1 -> t06; x3 -> t06; // t06 = x1 ^ x3;
- x0 -> t07; t04-> t07; // t07 = x0 & t04;
- x0 -> t08; t02-> t08; // t08 = x0 | t02;
- t07 -> t09; t05-> t09; // t09 = t07 ^ t05;
- t06 -> y1; t08-> y1; // y1 = t06 ^ t08;
- t09 -> y0; // y0 = ~ t09;
- x1 -> t12; y0 -> t12; // t12 = x1 & y0;
- t01 -> t13; t05-> t13; // t13 = t01 & t05;
- t01 -> t14; t12-> t14; // t14 = t01 ^ t12;
- t07 -> t15; t13-> t15; // t15 = t07 ^ t13;
- x3 -> t16; t02-> t16; // t16 = x3 | t02;
- x0 -> t17; y1 -> t17; // t17 = x0 ^ y1;
- t17 -> y3; t15-> y3; // y3 = t17 ^ t15;
- t16 -> y2; t14-> y2; // y2 = t16 ^ t14;
-}
diff --git a/misc/serpent-sbox7.dot b/misc/serpent-sbox7.dot
deleted file mode 100644
index 4fd4d1f2..00000000
--- a/misc/serpent-sbox7.dot
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Can we get down to 8 registers? Possible strategy:
- *
- * Do what's needed to compute y3. At this point, we need to keep
- * inputs, t01, t04, y3, so we only have one temporary left (and we
- * discard t02, recomputing it frpm x3 when needed later.
- *
- * Compute y1: Discard t04. Use one register to compute t08 and t10.
- * Use the other to compute t05 (then but t15 in x2), and t09. We can
- * then get to y1, and have one spare register.
- *
- * Put t13 in x1. Use the spare register to compute t04 (again), t11,
- * t16 and y2. The rest should be easy, y0 can be done in parallel
- * with y2.
- */
-strict digraph sbox6 {
- x0 [shape=box];
- x1 [shape=box];
- x2 [shape=box];
- x3 [shape=box];
-
- t01 [label="\N\ny0\n1"];
- t04 [label="\N\ny2\n2"];
- t06 [label="\N\ny3\n3"];
- t02 [label="\N\ny1,x3\n4,18"];
- t03 [label="\N\ny1\n5"];
- y3 [label="\N\n6", shape=box];
- t11 [label="\N\ny2\n7"];
- t08 [label="\N\ny1\n8"];
- t10 [label="\N\ny1\n9"];
- t05 [label="\N\nt\n10"];
- t15 [label="\N\nx2\n11"];
- t09 [label="\N\nt\n12"];
- y1 [label="\N\n13", shape=box];
- t13 [label="\N\nx1\n14"];
- t16 [label="\N\ny2\n15"];
- y2 [label="\N\n16", shape=box];
- t14 [label="\N\ny0\n17"];
- t17 [label="\N\ny0\n18"];
- y0 [label="\N\n19", shape=box];
-
- x0 -> t01; x2 -> t01; // t01 = x0 & x2;
- x3 -> t02; // t02 = ~ x3;
- x0 -> t03; t02 -> t03; // t03 = x0 & t02;
- x1 -> t04; t01 -> t04; // t04 = x1 | t01;
- x0 -> t05; x1 -> t05; // t05 = x0 & x1;
- x2 -> t06; t04 -> t06; // t06 = x2 ^ t04;
- t03 -> y3; t06 -> y3; // y3 = t03 ^ t06;
- x2 -> t08; y3 -> t08; // t08 = x2 | y3;
- x3 -> t09; t05 -> t09; // t09 = x3 | t05;
- x0 -> t10; t08 -> t10; // t10 = x0 ^ t08;
- t04 -> t11; y3 -> t11; // t11 = t04 & y3;
- t09 -> y1; t10 -> y1; // y1 = t09 ^ t10;
- x1 -> t13; y1 -> t13; // t13 = x1 ^ y1;
- t01 -> t14; y1 -> t14; // t14 = t01 ^ y1;
- x2 -> t15; t05 -> t15; // t15 = x2 ^ t05;
- t11 -> t16; t13 -> t16; // t16 = t11 | t13;
- t02 -> t17; t14 -> t17; // t17 = t02 | t14;
- t15 -> y0; t17 -> y0; // y0 = t15 ^ t17;
- x0 -> y2; t16 -> y2; // y2 = x0 ^ t16;
-}
diff --git a/misc/serpent-sbox7i.dot b/misc/serpent-sbox7i.dot
deleted file mode 100644
index 203583fa..00000000
--- a/misc/serpent-sbox7i.dot
+++ /dev/null
@@ -1,52 +0,0 @@
-strict digraph sbox7i {
- x0 [shape=box];
- x1 [shape=box];
- x2 [shape=box];
- x3 [shape=box];
-
- y0 [shape=box];
- y1 [shape=box];
- y2 [shape=box];
- y3 [shape=box];
-
- // To get to y2, need to save t01
- // To get to y3, need to save t04, t01
-
- t01 [label="\N\ny3\n1"];
- t10 [label="\N\ny2\n2"];
- t16 [label="\N\ny2\n3"];
- t11 [label="\N\ny1\n4"];
- t14 [label="\N\ny1\n5"];
- y2 [label="\N\n6"];
- t03 [label="\N\ny3\n7"];
- t02 [label="\N\ny0\n8"];
- t04 [label="\N\ny0\n9"];
- y3 [label="\N\n10"];
- t06 [label="\N\ny0\n11"];
- t07 [label="\N\ny1\n12"];
- t08 [label="\N\ny1\n13"];
- t09 [label="\N\ny1\n14"];
- t13 [label="\N\ny0\n15"];
- y1 [label="\N\n16"];
- t15 [label="\N\nx3\n17"];
- y0 [label="\N\n18"];
-
- x0 -> t01; x1 -> t01; // t01 = x0 & x1;
- x0 -> t02; x1 -> t02; // t02 = x0 | x1;
- x2 -> t03; t01 -> t03; // t03 = x2 | t01;
- x3 -> t04; t02 -> t04; // t04 = x3 & t02;
- t03 -> y3; t04 -> y3; // y3 = t03 ^ t04;
- x1 -> t06; t04 -> t06; // t06 = x1 ^ t04;
- x3 -> t07; y3 -> t07; // t07 = x3 ^ y3;
- t07 -> t08 // t08 = ~ t07;
- t06 -> t09; t08 -> t09; // t09 = t06 | t08;
- x1 -> t10; x3 -> t10; // t10 = x1 ^ x3;
- x0 -> t11; x3 -> t11; // t11 = x0 | x3;
- x0 -> y1; t09 -> y1; // y1 = x0 ^ t09;
- x2 -> t13; t06 -> t13; // t13 = x2 ^ t06;
- x2 -> t14; t11 -> t14; // t14 = x2 & t11;
- x3 -> t15; y1 -> t15; // t15 = x3 | y1;
- t01 -> t16; t10 -> t16; // t16 = t01 | t10;
- t13 -> y0; t15 -> y0; // y0 = t13 ^ t15;
- t14 -> y2; t16 -> y2; // y2 = t14 ^ t16;
-}
diff --git a/misc/todo.css b/misc/todo.css
deleted file mode 100644
index f799e4e1..00000000
--- a/misc/todo.css
+++ /dev/null
@@ -1,67 +0,0 @@
-body {
- background: rgb(255,255,255);
- color: rgb(0,0,0);
- margin-left: 10%;
- margin-right: 10%;
-}
-
-a {
- color: rgb(50, 50, 100);
-}
-
-a:visited {
- color: rgb(0, 0, 0);
-}
-
-a:hover {
- color: rgb(140, 30, 30);
-}
-
-h1 {
- font-size: 200%;
- font-weight: normal;
- color: rgb(30, 30, 140);
- text-align: left;
-}
-
-h2 {
- font-size: 150%;
- font-weight: normal;
- font-style: normal;
- text-align: left;
-}
-
-p {
- margin-left: 2em;
-}
-
-dt {
- padding-top: 1ex;
-}
-
-hr {
- background: rgb(30, 30, 140);
- border-style: none;
- width: 80%;
-}
-
-img {
- border: thin black solid;
- float: right;
-}
-
-.done {
- color: #00a000;
-}
-
-.should {
- color: red;
-}
-
-.wish {
- color: #808000;
-}
-
-.postponed {
- color: blue;
-}
diff --git a/misc/umac/.gitignore b/misc/umac/.gitignore
deleted file mode 100644
index 0d20b648..00000000
--- a/misc/umac/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pyc
diff --git a/misc/umac/Makefile b/misc/umac/Makefile
deleted file mode 100644
index 8a932c2d..00000000
--- a/misc/umac/Makefile
+++ /dev/null
@@ -1,4 +0,0 @@
-all: vectors.out
-
-vectors.out: mkvectors umac.py rijndael.py
- ./mkvectors > vectors.out
diff --git a/misc/umac/mkvectors b/misc/umac/mkvectors
deleted file mode 100755
index 50e3ab64..00000000
--- a/misc/umac/mkvectors
+++ /dev/null
@@ -1,90 +0,0 @@
-#! /bin/bash
-
-set -e
-
-vector () {
- nonce="$1"
- length="$2"
- data="$3"
- echo "nonce:" $nonce
- echo "msg length:" $length
- if [ $length != "`expr length "$data"`" ] ; then
- echo "data (repeated):" $data
- else
- echo "data:" $data
- fi
- for tag_len in 32 64 96 128 ; do
- tag=`python repeat.py "$data" "$length" | python umac.py "$tag_len" "$nonce"`
- echo "tag$tag_len:" $tag
- done
- echo
-}
-
-NONCE=bcdefghi
-
-# RFC 4418 test vectors
-vector $NONCE 0 ""
-vector $NONCE 3 "a"
-vector $NONCE 1024 "a"
-vector $NONCE 32768 "a"
-vector $NONCE 1048576 "a"
-vector $NONCE 33554432 "a"
-vector $NONCE 3 "abc"
-vector $nonce 1500 "abc"
-
-DATA=def
-NONCE=bcdefghijklmnopq
-
-vector ${NONCE:0:1} 0 $DATA
-vector ${NONCE:0:2} 1 $DATA
-vector ${NONCE:0:3} 2 $DATA
-vector ${NONCE:0:4} 3 $DATA
-vector ${NONCE:0:5} 4 $DATA
-
-vector ${NONCE:0:6} 1020 $DATA
-vector ${NONCE:0:7} 1021 $DATA
-vector ${NONCE:0:8} 1022 $DATA
-vector ${NONCE:0:9} 1023 $DATA
-vector ${NONCE:0:10} 1024 $DATA
-vector ${NONCE:0:11} 1025 $DATA
-vector ${NONCE:0:12} 1026 $DATA
-vector ${NONCE:0:13} 1027 $DATA
-
-vector ${NONCE:0:14} 2046 $DATA
-vector ${NONCE:0:15} 2047 $DATA
-vector ${NONCE:0:16} 2048 $DATA
-vector ${NONCE:0:1} 2049 $DATA
-vector ${NONCE:0:2} 2050 $DATA
-
-vector ${NONCE:0:3} 16777212 $DATA
-vector ${NONCE:0:4} 16777213 $DATA
-vector ${NONCE:0:5} 16777214 $DATA
-vector ${NONCE:0:6} 16777215 $DATA
-vector ${NONCE:0:7} 16777216 $DATA
-vector ${NONCE:0:8} 16777217 $DATA
-
-vector ${NONCE:0:9} 16778239 $DATA
-vector ${NONCE:0:10} 16778240 $DATA
-vector ${NONCE:0:11} 16778241 $DATA
-vector ${NONCE:0:12} 16778242 $DATA
-vector ${NONCE:0:13} 16778243 $DATA
-vector ${NONCE:0:14} 16778244 $DATA
-
-vector '#00000000000000000000000000000000' 4 zero
-vector '#00000000000000000000000000000001' 4 zero
-vector '#00000000000000000000000000000002' 4 zero
-vector '#00000000000000000000000000000003' 4 zero
-vector '#00000000000000000000000000000004' 4 zero
-vector '#00000000000000000000000000000005' 4 zero
-
-vector 'a' 7 nonce-a
-vector 'b' 7 nonce-a
-vector 'c' 7 nonce-a
-vector 'd' 7 nonce-a
-vector 'e' 7 nonce-a
-
-vector '#beafcafe' 15 nonce-beaf-cafe
-vector '#beafcaff' 15 nonce-beaf-cafe
-vector '#beafcb00' 15 nonce-beaf-cafe
-vector '#beafcb01' 15 nonce-beaf-cafe
-vector '#beafcb02' 15 nonce-beaf-cafe
diff --git a/misc/umac/repeat.py b/misc/umac/repeat.py
deleted file mode 100644
index 0bcf52ef..00000000
--- a/misc/umac/repeat.py
+++ /dev/null
@@ -1,19 +0,0 @@
-import sys
-
-if len(sys.argv) < 3:
- sys.stderr.write('Usage: repeat [string] [length]\n')
- sys.exit(1)
-
-s = sys.argv[1]
-length = int(sys.argv[2])
-if length > 0:
- if length > 1024:
- while len(s) < 1024:
- s = s + s;
- while length > len(s):
- sys.stdout.write(s)
- length -= len(s)
-
- sys.stdout.write(s[:length])
-
-
diff --git a/misc/umac/rijndael.py b/misc/umac/rijndael.py
deleted file mode 100644
index fa025c6f..00000000
--- a/misc/umac/rijndael.py
+++ /dev/null
@@ -1,376 +0,0 @@
-"""
-A pure python (slow) implementation of rijndael with a decent interface
-
-To include -
-
-from rijndael import rijndael
-
-To do a key setup -
-
-r = rijndael(key, block_size = 16)
-
-key must be a string of length 16, 24, or 32
-blocksize must be 16, 24, or 32. Default is 16
-
-To use -
-
-ciphertext = r.encrypt(plaintext)
-plaintext = r.decrypt(ciphertext)
-
-If any strings are of the wrong length a ValueError is thrown
-"""
-
-# ported from the Java reference code by Bram Cohen, April 2001
-# this code is public domain, unless someone makes
-# an intellectual property claim against the reference
-# code, in which case it can be made public domain by
-# deleting all the comments and renaming all the variables
-
-import copy
-import string
-
-shifts = [[[0, 0], [1, 3], [2, 2], [3, 1]],
- [[0, 0], [1, 5], [2, 4], [3, 3]],
- [[0, 0], [1, 7], [3, 5], [4, 4]]]
-
-# [keysize][block_size]
-num_rounds = {16: {16: 10, 24: 12, 32: 14}, 24: {16: 12, 24: 12, 32: 14}, 32: {16: 14, 24: 14, 32: 14}}
-
-A = [[1, 1, 1, 1, 1, 0, 0, 0],
- [0, 1, 1, 1, 1, 1, 0, 0],
- [0, 0, 1, 1, 1, 1, 1, 0],
- [0, 0, 0, 1, 1, 1, 1, 1],
- [1, 0, 0, 0, 1, 1, 1, 1],
- [1, 1, 0, 0, 0, 1, 1, 1],
- [1, 1, 1, 0, 0, 0, 1, 1],
- [1, 1, 1, 1, 0, 0, 0, 1]]
-
-# produce log and alog tables, needed for multiplying in the
-# field GF(2^m) (generator = 3)
-alog = [1]
-for i in xrange(255):
- j = (alog[-1] << 1) ^ alog[-1]
- if j & 0x100 != 0:
- j ^= 0x11B
- alog.append(j)
-
-log = [0] * 256
-for i in xrange(1, 255):
- log[alog[i]] = i
-
-# multiply two elements of GF(2^m)
-def mul(a, b):
- if a == 0 or b == 0:
- return 0
- return alog[(log[a & 0xFF] + log[b & 0xFF]) % 255]
-
-# substitution box based on F^{-1}(x)
-box = [[0] * 8 for i in xrange(256)]
-box[1][7] = 1
-for i in xrange(2, 256):
- j = alog[255 - log[i]]
- for t in xrange(8):
- box[i][t] = (j >> (7 - t)) & 0x01
-
-B = [0, 1, 1, 0, 0, 0, 1, 1]
-
-# affine transform: box[i] <- B + A*box[i]
-cox = [[0] * 8 for i in xrange(256)]
-for i in xrange(256):
- for t in xrange(8):
- cox[i][t] = B[t]
- for j in xrange(8):
- cox[i][t] ^= A[t][j] * box[i][j]
-
-# S-boxes and inverse S-boxes
-S = [0] * 256
-Si = [0] * 256
-for i in xrange(256):
- S[i] = cox[i][0] << 7
- for t in xrange(1, 8):
- S[i] ^= cox[i][t] << (7-t)
- Si[S[i] & 0xFF] = i
-
-# T-boxes
-G = [[2, 1, 1, 3],
- [3, 2, 1, 1],
- [1, 3, 2, 1],
- [1, 1, 3, 2]]
-
-AA = [[0] * 8 for i in xrange(4)]
-
-for i in xrange(4):
- for j in xrange(4):
- AA[i][j] = G[i][j]
- AA[i][i+4] = 1
-
-for i in xrange(4):
- pivot = AA[i][i]
- if pivot == 0:
- t = i + 1
- while AA[t][i] == 0 and t < 4:
- t += 1
- assert t != 4, 'G matrix must be invertible'
- for j in xrange(8):
- AA[i][j], AA[t][j] = AA[t][j], AA[i][j]
- pivot = AA[i][i]
- for j in xrange(8):
- if AA[i][j] != 0:
- AA[i][j] = alog[(255 + log[AA[i][j] & 0xFF] - log[pivot & 0xFF]) % 255]
- for t in xrange(4):
- if i != t:
- for j in xrange(i+1, 8):
- AA[t][j] ^= mul(AA[i][j], AA[t][i])
- AA[t][i] = 0
-
-iG = [[0] * 4 for i in xrange(4)]
-
-for i in xrange(4):
- for j in xrange(4):
- iG[i][j] = AA[i][j + 4]
-
-def mul4(a, bs):
- if a == 0:
- return 0
- r = 0
- for b in bs:
- r <<= 8
- if b != 0:
- r = r | mul(a, b)
- return r
-
-T1 = []
-T2 = []
-T3 = []
-T4 = []
-T5 = []
-T6 = []
-T7 = []
-T8 = []
-U1 = []
-U2 = []
-U3 = []
-U4 = []
-
-for t in xrange(256):
- s = S[t]
- T1.append(mul4(s, G[0]))
- T2.append(mul4(s, G[1]))
- T3.append(mul4(s, G[2]))
- T4.append(mul4(s, G[3]))
-
- s = Si[t]
- T5.append(mul4(s, iG[0]))
- T6.append(mul4(s, iG[1]))
- T7.append(mul4(s, iG[2]))
- T8.append(mul4(s, iG[3]))
-
- U1.append(mul4(t, iG[0]))
- U2.append(mul4(t, iG[1]))
- U3.append(mul4(t, iG[2]))
- U4.append(mul4(t, iG[3]))
-
-# round constants
-rcon = [1]
-r = 1
-for t in xrange(1, 30):
- r = mul(2, r)
- rcon.append(r)
-
-del A
-del AA
-del pivot
-del B
-del G
-del box
-del log
-del alog
-del i
-del j
-del r
-del s
-del t
-del mul
-del mul4
-del cox
-del iG
-
-class rijndael:
- def __init__(self, key, block_size = 16):
- if block_size != 16 and block_size != 24 and block_size != 32:
- raise ValueError('Invalid block size: ' + str(block_size))
- if len(key) != 16 and len(key) != 24 and len(key) != 32:
- raise ValueError('Invalid key size: ' + str(len(key)))
- self.block_size = block_size
-
- ROUNDS = num_rounds[len(key)][block_size]
- BC = block_size / 4
- # encryption round keys
- Ke = [[0] * BC for i in xrange(ROUNDS + 1)]
- # decryption round keys
- Kd = [[0] * BC for i in xrange(ROUNDS + 1)]
- ROUND_KEY_COUNT = (ROUNDS + 1) * BC
- KC = len(key) / 4
-
- # copy user material bytes into temporary ints
- tk = []
- for i in xrange(0, KC):
- tk.append((ord(key[i * 4]) << 24) | (ord(key[i * 4 + 1]) << 16) |
- (ord(key[i * 4 + 2]) << 8) | ord(key[i * 4 + 3]))
-
- # copy values into round key arrays
- t = 0
- j = 0
- while j < KC and t < ROUND_KEY_COUNT:
- Ke[t / BC][t % BC] = tk[j]
- Kd[ROUNDS - (t / BC)][t % BC] = tk[j]
- j += 1
- t += 1
- tt = 0
- rconpointer = 0
- while t < ROUND_KEY_COUNT:
- # extrapolate using phi (the round key evolution function)
- tt = tk[KC - 1]
- tk[0] ^= (S[(tt >> 16) & 0xFF] & 0xFF) << 24 ^ \
- (S[(tt >> 8) & 0xFF] & 0xFF) << 16 ^ \
- (S[ tt & 0xFF] & 0xFF) << 8 ^ \
- (S[(tt >> 24) & 0xFF] & 0xFF) ^ \
- (rcon[rconpointer] & 0xFF) << 24
- rconpointer += 1
- if KC != 8:
- for i in xrange(1, KC):
- tk[i] ^= tk[i-1]
- else:
- for i in xrange(1, KC / 2):
- tk[i] ^= tk[i-1]
- tt = tk[KC / 2 - 1]
- tk[KC / 2] ^= (S[ tt & 0xFF] & 0xFF) ^ \
- (S[(tt >> 8) & 0xFF] & 0xFF) << 8 ^ \
- (S[(tt >> 16) & 0xFF] & 0xFF) << 16 ^ \
- (S[(tt >> 24) & 0xFF] & 0xFF) << 24
- for i in xrange(KC / 2 + 1, KC):
- tk[i] ^= tk[i-1]
- # copy values into round key arrays
- j = 0
- while j < KC and t < ROUND_KEY_COUNT:
- Ke[t / BC][t % BC] = tk[j]
- Kd[ROUNDS - (t / BC)][t % BC] = tk[j]
- j += 1
- t += 1
- # inverse MixColumn where needed
- for r in xrange(1, ROUNDS):
- for j in xrange(BC):
- tt = Kd[r][j]
- Kd[r][j] = U1[(tt >> 24) & 0xFF] ^ \
- U2[(tt >> 16) & 0xFF] ^ \
- U3[(tt >> 8) & 0xFF] ^ \
- U4[ tt & 0xFF]
- self.Ke = Ke
- self.Kd = Kd
-
- def encrypt(self, plaintext):
- if len(plaintext) != self.block_size:
- raise ValueError('wrong block length, expected ' + str(self.block_size) + ' got ' + str(len(plaintext)))
- Ke = self.Ke
-
- BC = self.block_size / 4
- ROUNDS = len(Ke) - 1
- if BC == 4:
- SC = 0
- elif BC == 6:
- SC = 1
- else:
- SC = 2
- s1 = shifts[SC][1][0]
- s2 = shifts[SC][2][0]
- s3 = shifts[SC][3][0]
- a = [0] * BC
- # temporary work array
- t = []
- # plaintext to ints + key
- for i in xrange(BC):
- t.append((ord(plaintext[i * 4 ]) << 24 |
- ord(plaintext[i * 4 + 1]) << 16 |
- ord(plaintext[i * 4 + 2]) << 8 |
- ord(plaintext[i * 4 + 3]) ) ^ Ke[0][i])
- # apply round transforms
- for r in xrange(1, ROUNDS):
- for i in xrange(BC):
- a[i] = (T1[(t[ i ] >> 24) & 0xFF] ^
- T2[(t[(i + s1) % BC] >> 16) & 0xFF] ^
- T3[(t[(i + s2) % BC] >> 8) & 0xFF] ^
- T4[ t[(i + s3) % BC] & 0xFF] ) ^ Ke[r][i]
- t = copy.copy(a)
- # last round is special
- result = []
- for i in xrange(BC):
- tt = Ke[ROUNDS][i]
- result.append((S[(t[ i ] >> 24) & 0xFF] ^ (tt >> 24)) & 0xFF)
- result.append((S[(t[(i + s1) % BC] >> 16) & 0xFF] ^ (tt >> 16)) & 0xFF)
- result.append((S[(t[(i + s2) % BC] >> 8) & 0xFF] ^ (tt >> 8)) & 0xFF)
- result.append((S[ t[(i + s3) % BC] & 0xFF] ^ tt ) & 0xFF)
- return string.join(map(chr, result), '')
-
- def decrypt(self, ciphertext):
- if len(ciphertext) != self.block_size:
- raise ValueError('wrong block length, expected ' + str(self.block_size) + ' got ' + str(len(ciphertext)))
- Kd = self.Kd
-
- BC = self.block_size / 4
- ROUNDS = len(Kd) - 1
- if BC == 4:
- SC = 0
- elif BC == 6:
- SC = 1
- else:
- SC = 2
- s1 = shifts[SC][1][1]
- s2 = shifts[SC][2][1]
- s3 = shifts[SC][3][1]
- a = [0] * BC
- # temporary work array
- t = [0] * BC
- # ciphertext to ints + key
- for i in xrange(BC):
- t[i] = (ord(ciphertext[i * 4 ]) << 24 |
- ord(ciphertext[i * 4 + 1]) << 16 |
- ord(ciphertext[i * 4 + 2]) << 8 |
- ord(ciphertext[i * 4 + 3]) ) ^ Kd[0][i]
- # apply round transforms
- for r in xrange(1, ROUNDS):
- for i in xrange(BC):
- a[i] = (T5[(t[ i ] >> 24) & 0xFF] ^
- T6[(t[(i + s1) % BC] >> 16) & 0xFF] ^
- T7[(t[(i + s2) % BC] >> 8) & 0xFF] ^
- T8[ t[(i + s3) % BC] & 0xFF] ) ^ Kd[r][i]
- t = copy.copy(a)
- # last round is special
- result = []
- for i in xrange(BC):
- tt = Kd[ROUNDS][i]
- result.append((Si[(t[ i ] >> 24) & 0xFF] ^ (tt >> 24)) & 0xFF)
- result.append((Si[(t[(i + s1) % BC] >> 16) & 0xFF] ^ (tt >> 16)) & 0xFF)
- result.append((Si[(t[(i + s2) % BC] >> 8) & 0xFF] ^ (tt >> 8)) & 0xFF)
- result.append((Si[ t[(i + s3) % BC] & 0xFF] ^ tt ) & 0xFF)
- return string.join(map(chr, result), '')
-
-def encrypt(key, block):
- return rijndael(key, len(block)).encrypt(block)
-
-def decrypt(key, block):
- return rijndael(key, len(block)).decrypt(block)
-
-def test():
- def t(kl, bl):
- b = 'b' * bl
- r = rijndael('a' * kl, bl)
- assert r.decrypt(r.encrypt(b)) == b
- t(16, 16)
- t(16, 24)
- t(16, 32)
- t(24, 16)
- t(24, 24)
- t(24, 32)
- t(32, 16)
- t(32, 24)
- t(32, 32)
diff --git a/misc/umac/umac.py b/misc/umac/umac.py
deleted file mode 100644
index 577dd51b..00000000
--- a/misc/umac/umac.py
+++ /dev/null
@@ -1,154 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Reference implementation from
-# http://fastcrypto.org/umac/2004/src/rijndael.py, hacked a bit by
-# Nikos Mavrogiannopoulos and Niels Möller to accept command line
-# arguments.
-
-import rijndael
-import struct
-import fileinput
-import sys
-import binascii
-
-if len(sys.argv) < 3:
- sys.stderr.write('Usage: umac [taglen] [nonce]\n')
- sys.exit(1)
-
-taglen = int(sys.argv[1])
-nonce = sys.argv[2]
-
-"""
-*** Experimental Python code for verifying test-vectors.
-*** Veriosn 0.01 (16 March 2006) - Hereby placed in public domain.
-*** Use at your own risk. No warranties, implied or otherwise.
-
-- Update only works on 1024 byte blocks. Call repeatedly for longer.
-- Final only works on final blocks of length 1...8192 bits.
-- Hash of empty-string is done via single call to final.
-"""
-
-# Constants
-MP64 = 0x01ffffff01ffffffL # Polynomial key masks
-MP128 = 0x01ffffff01ffffff01ffffff01ffffffL
-M32 = 0xffffffffL # Bit masks
-M64 = 0xffffffffffffffffL
-P36 = 0xffffffffbL # Prime numbers
-P64 = 0xffffffffffffffc5L
-P128 = 0xffffffffffffffffffffffffffffff61L
-T64 = 0xffffffff00000000L # Polynomial test values
-T128 = 0xffffffff000000000000000000000000L
-
-def nh(key,data,bitlength):
- a = 0
- for i in xrange(len(data)//8):
- for j in xrange(4):
- a += (((data[8*i+j ] + key[8*i+j ]) & M32) *
- ((data[8*i+j+4] + key[8*i+j+4]) & M32))
- return (a+bitlength) & M64 # mod 2^^64
-
-class umac:
- def __init__(self, umacKey, tagLength = 64):
- self.taglen = tagLength/8
- self.iters = iters = max(1, min(4,tagLength//32))
- # setup keys
- def kdf(kdfCipher, index, numbytes):
- ct = [ kdfCipher.encrypt('%s%s%s%s' % ('\x00' * 7, chr(index), '\x00' * 7, chr(i+1))) for i in xrange((numbytes+15)//16) ]
- return (''.join(ct))[ : numbytes]
-
- kdfCipher = rijndael.rijndael(umacKey)
- self.pdfCipher = rijndael.rijndael(kdf(kdfCipher,0,len(umacKey)))
- # L1Key is a sequence of tuples, each (32-bit * 256)
- L1Key = kdf(kdfCipher, 1, 1024 + (iters - 1) * 16)
- self.L1Key = [ struct.unpack('>256I', L1Key[16*i:16*i+1024]) for i in xrange(iters) ]
- # L2Key is a sequence of tuples, each (64-bit, 128-bit)
- L2Key = kdf(kdfCipher, 2, iters * 24)
- L2Key = [ struct.unpack('>3Q', L2Key[24*i:24*(i+1)]) for i in xrange(iters) ]
- self.L2Key = [ (L2Key[i][0] & MP64, ((L2Key[i][1] << 64) + L2Key[i][2]) & MP128) for i in xrange(iters) ]
- # L3Key is a sequence of tuples, each ( [64-bit * 8], 32-bit )
- tmp1 = kdf(kdfCipher, 3, iters * 64)
- tmp1 = [ struct.unpack('>8Q', tmp1[64*i:64*(i+1)]) for i in xrange(iters) ]
- tmp1 = [ map(lambda x : x % (2**36 - 5), i) for i in tmp1 ]
- tmp2 = kdf(kdfCipher, 4, iters * 4)
- tmp2 = struct.unpack('>%sI' % str(iters), tmp2)
- self.L3Key = zip(tmp1, tmp2)
- # Setup empty lists to accumulate L1Hash outputs
- self.L1Out = [ list() for i in xrange(iters) ] # A sequence of empty lists
- self.L3Out = list()
-
- def uhashUpdate(self, inString):
- data = struct.unpack('<256I', inString) # To big-endian, 256 * 32-bits
- for i in xrange(self.iters):
- self.L1Out[i].append(nh(self.L1Key[i], data, 8192))
-
- def uhashFinal(self, inString, bitlength):
- # Pad to 32-byte multiple and unpack to tuple of 32-bit values
- if len(inString) == 0: toAppend = 32
- else: toAppend = (32 - (len(inString) % 32)) % 32
- data = '%s%s' % (inString, '\x00' * toAppend)
- data = struct.unpack('<%sI' % str(len(data)//4), data)
- # Do three-level hash, iter times
- for i in xrange(self.iters):
- # L1 Hash
- self.L1Out[i].append(nh(self.L1Key[i], data, bitlength))
- # L2 Hash
- if len(self.L1Out[0]) == 1:
- L2Out = self.L1Out[i][0]
- else:
- loPoly = self.L1Out[i][ : 2**14]
- hiPoly = self.L1Out[i][2**14 : ]
- for j in xrange(len(loPoly)-1,-1,-1):
- if loPoly[j] >= T64:
- loPoly[j] = [P64-1, loPoly[j] - 59]
- L2Out = reduce(lambda x, y : (x * self.L2Key[i][0] + y) % P64, loPoly, 1)
- if (len(hiPoly) > 0):
- hiPoly.append(0x8000000000000000L)
- if (len(hiPoly) % 2 == 1):
- hiPoly.append(0)
- hiPoly = [ (hiPoly[j] << 64) + hiPoly[j+1] for j in xrange(0,len(hiPoly),2) ]
- hiPoly.insert(0,L2Out)
- for j in xrange(len(hiPoly)-1,-1,-1):
- if hiPoly[j] >= T128:
- hiPoly[j] = [P128-1, hiPoly[j] - 159]
- L2Out = reduce(lambda x, y : (x * self.L2Key[i][1] + y) % P128, hiPoly, 1)
- #L3 Hash
- a,res = L2Out,0;
- for j in xrange(7,-1,-1):
- res += (a & 0xffff) * self.L3Key[i][0][j]
- a >>= 16
- self.L3Out.append(((res % P36) & M32) ^ self.L3Key[i][1])
-
- def umacUpdate(self, inString):
- self.uhashUpdate(inString)
-
- def umacFinal(self, inString, bitlength, nonce):
- self.uhashFinal(inString, bitlength)
- # Generate pad
- mask = [None, 3, 1, 0, 0]
- nlen = len(nonce)
- old = ord(nonce[nlen-1])
- idx = old & mask[self.iters]
- pt = '%s%s%s' % (nonce[0:nlen-1], chr(old - idx), '\x00' * (16-nlen))
- pad = struct.unpack('>4I', self.pdfCipher.encrypt(pt))
- result = [ hex(self.L3Out[i] ^ pad[self.iters*idx+i]).rstrip("L").lstrip("0x").zfill(8) for i in xrange(self.iters) ]
- self.L1Out = [ list() for i in xrange(self.iters) ] # A sequence of empty lists
- self.L3Out = list()
- return result
-
-if nonce[0] == "#":
- nonce = binascii.unhexlify(nonce[1:])
-
-u = umac('abcdefghijklmnop', taglen)
-
-last_block = sys.stdin.read(1024)
-if len(last_block) == 1024:
- while True:
- block = sys.stdin.read(1024)
- if len(block) == 0:
- break;
- u.umacUpdate(last_block)
- last_block = block;
-
-tag = u.umacFinal(last_block, 8*len(last_block), nonce)
-
-print ''.join(tag)
diff --git a/misc/umac/vectors.out b/misc/umac/vectors.out
deleted file mode 100644
index c1d1e90f..00000000
--- a/misc/umac/vectors.out
+++ /dev/null
@@ -1,432 +0,0 @@
-nonce: bcdefghi
-msg length: 0
-data:
-tag32: 113145fb
-tag64: 6e155fad26900be1
-tag96: 32fedb100c79ad58f07ff764
-tag128: 32fedb100c79ad58f07ff7643cc60465
-
-nonce: bcdefghi
-msg length: 3
-data (repeated): a
-tag32: 3b91d102
-tag64: 44b5cb542f220104
-tag96: 185e4fe905cba7bd85e4c2dc
-tag128: 185e4fe905cba7bd85e4c2dc3d117d8d
-
-nonce: bcdefghi
-msg length: 1024
-data (repeated): a
-tag32: 599b350b
-tag64: 26bf2f5d60118bd9
-tag96: 7a54abe04af82d60fb298c3c
-tag128: 7a54abe04af82d60fb298c3cbd195bcb
-
-nonce: bcdefghi
-msg length: 32768
-data (repeated): a
-tag32: 58dcf532
-tag64: 27f8ef643b0d118d
-tag96: 7b136bd911e4b734286ef2be
-tag128: 7b136bd911e4b734286ef2be501f2c3c
-
-nonce: bcdefghi
-msg length: 1048576
-data (repeated): a
-tag32: db6364d1
-tag64: a4477e87e9f55853
-tag96: f8acfa3ac31cfeea047f7b11
-tag128: f8acfa3ac31cfeea047f7b115b03bef5
-
-nonce: bcdefghi
-msg length: 33554432
-data (repeated): a
-tag32: 85ee5cae
-tag64: faca46f856e9b45f
-tag96: a621c2457c0012e64f3fdae9
-tag128: a621c2457c0012e64f3fdae9e7e1870c
-
-nonce: bcdefghi
-msg length: 3
-data: abc
-tag32: abf3a3a0
-tag64: d4d7b9f6bd4fbfcf
-tag96: 883c3d4b97a61976ffcf2323
-tag128: 883c3d4b97a61976ffcf232308cba5a5
-
-nonce: bcdefghi
-msg length: 1500
-data (repeated): abc
-tag32: abeb3c8b
-tag64: d4cf26ddefd5c01a
-tag96: 8824a260c53c66a36c9260a6
-tag128: 8824a260c53c66a36c9260a62cb83aa1
-
-nonce: b
-msg length: 0
-data (repeated): def
-tag32: 3a58486b
-tag64: 9e38f67da91a08d9
-tag96: 9e38f67da91a08d9c980f4db
-tag128: 9e38f67da91a08d9c980f4db4089c877
-
-nonce: bc
-msg length: 1
-data (repeated): def
-tag32: d86b1512
-tag64: fb0e207971b8e66a
-tag96: ef406c2ec70d0222f59e860e
-tag128: ef406c2ec70d0222f59e860eabb79ed0
-
-nonce: bcd
-msg length: 2
-data (repeated): def
-tag32: 1ae6e02d
-tag64: 1ae6e02d73aa9ab2
-tag96: 1ae6e02d73aa9ab2a27fb89e
-tag128: 1ae6e02d73aa9ab2a27fb89e014dc07b
-
-nonce: bcde
-msg length: 3
-data: def
-tag32: e8c1eb59
-tag64: c81cf22342e84302
-tag96: 82626d0d575e01038e5e2cc6
-tag128: 82626d0d575e01038e5e2cc6408216f5
-
-nonce: bcdef
-msg length: 4
-data (repeated): def
-tag32: 8950f0d3
-tag64: aba003e7bd673cc3
-tag96: aba003e7bd673cc368ba8513
-tag128: aba003e7bd673cc368ba8513cecf2e7c
-
-nonce: bcdefg
-msg length: 1020
-data (repeated): def
-tag32: 7412167c
-tag64: f98828a161bb4ae3
-tag96: d8b4811f747d588d7a913360
-tag128: d8b4811f747d588d7a913360960de7cf
-
-nonce: bcdefgh
-msg length: 1021
-data (repeated): def
-tag32: 2d54936b
-tag64: 2d54936be5bff72d
-tag96: 2d54936be5bff72d2e105236
-tag128: 2d54936be5bff72d2e1052361163b474
-
-nonce: bcdefghi
-msg length: 1022
-data (repeated): def
-tag32: 53ca8dd2
-tag64: 2cee9784556387b3
-tag96: 700513397f8a210a98938d3e
-tag128: 700513397f8a210a98938d3e7ac3bd88
-
-nonce: bcdefghij
-msg length: 1023
-data (repeated): def
-tag32: 26cc58df
-tag64: 24ac4284ca371f42
-tag96: 24ac4284ca371f4280f60bd2
-tag128: 24ac4284ca371f4280f60bd274633d67
-
-nonce: bcdefghijk
-msg length: 1024
-data (repeated): def
-tag32: 3cada45a
-tag64: 64c6a0fd14615a76
-tag96: abc223116cedd2db5af365e6
-tag128: abc223116cedd2db5af365e641a97539
-
-nonce: bcdefghijkl
-msg length: 1025
-data (repeated): def
-tag32: 93251e18
-tag64: 93251e18e56bbdc4
-tag96: 93251e18e56bbdc457de556f
-tag128: 93251e18e56bbdc457de556f95c59931
-
-nonce: bcdefghijklm
-msg length: 1026
-data (repeated): def
-tag32: 24a4c3ab
-tag64: 5d98bd8dfaf16352
-tag96: c1298672e52386753383a15e
-tag128: c1298672e52386753383a15ed58c0e42
-
-nonce: bcdefghijklmn
-msg length: 1027
-data (repeated): def
-tag32: e7e98945
-tag64: 5b0557c9fdcf661b
-tag96: 5b0557c9fdcf661b1758efc6
-tag128: 5b0557c9fdcf661b1758efc603516ebe
-
-nonce: bcdefghijklmno
-msg length: 2046
-data (repeated): def
-tag32: e12ddc9f
-tag64: 65e85d47447c2277
-tag96: 16bb5183017826ed47c9995c
-tag128: 16bb5183017826ed47c9995c1e5834f3
-
-nonce: bcdefghijklmnop
-msg length: 2047
-data (repeated): def
-tag32: 34d723a6
-tag64: 34d723a6cb1676d3
-tag96: 34d723a6cb1676d3547a5064
-tag128: 34d723a6cb1676d3547a5064dc5b0a37
-
-nonce: bcdefghijklmnopq
-msg length: 2048
-data (repeated): def
-tag32: 21fd8802
-tag64: 3968d5d0af147884
-tag96: 84565620def1e3a614d274e8
-tag128: 84565620def1e3a614d274e87626f215
-
-nonce: b
-msg length: 2049
-data (repeated): def
-tag32: 097e5abd
-tag64: ad1ee4ab606061c5
-tag96: ad1ee4ab606061c55e0d2ecf
-tag128: ad1ee4ab606061c55e0d2ecfee59940a
-
-nonce: bc
-msg length: 2050
-data (repeated): def
-tag32: a03a7fe9
-tag64: 835f4a8242100055
-tag96: 971106d5f4a5e41dce40a917
-tag128: 971106d5f4a5e41dce40a91704cfe1f3
-
-nonce: bcd
-msg length: 16777212
-data (repeated): def
-tag32: 7ef41cf3
-tag64: 7ef41cf351960aaf
-tag96: 7ef41cf351960aaf729bb19f
-tag128: 7ef41cf351960aaf729bb19fcee7d8c4
-
-nonce: bcde
-msg length: 16777213
-data (repeated): def
-tag32: 8bf81932
-tag64: ab250048807ff640
-tag96: e15b9f6695c9b441de035e9b
-tag128: e15b9f6695c9b441de035e9b10b8ac32
-
-nonce: bcdef
-msg length: 16777214
-data (repeated): def
-tag32: ddb2f0ab
-tag64: ff42039fcfe1248e
-tag96: ff42039fcfe1248e36c19efe
-tag128: ff42039fcfe1248e36c19efed14d7140
-
-nonce: bcdefg
-msg length: 16777215
-data (repeated): def
-tag32: e67ad507
-tag64: 6be0ebda623d76df
-tag96: 4adc426477fb64b1ce5afd76
-tag128: 4adc426477fb64b1ce5afd76d505f048
-
-nonce: bcdefgh
-msg length: 16777216
-data (repeated): def
-tag32: 42d8562a
-tag64: 42d8562a224a9e9a
-tag96: 42d8562a224a9e9a75c2f85d
-tag128: 42d8562a224a9e9a75c2f85d39462d07
-
-nonce: bcdefghi
-msg length: 16777217
-data (repeated): def
-tag32: 486b138d
-tag64: 374f09dbb0b84b88
-tag96: 6ba48d669a51ed3195ebc2aa
-tag128: 6ba48d669a51ed3195ebc2aa562ee71b
-
-nonce: bcdefghij
-msg length: 16778239
-data (repeated): def
-tag32: 850cb2c5
-tag64: 876ca89ed045777b
-tag96: 876ca89ed045777bf7efa793
-tag128: 876ca89ed045777bf7efa7934e1758c2
-
-nonce: bcdefghijk
-msg length: 16778240
-data (repeated): def
-tag32: b9fc4f81
-tag64: e1974b26fb35f2c6
-tag96: 2e93c8ca83b97a6b1a21082e
-tag128: 2e93c8ca83b97a6b1a21082e2a4c540d
-
-nonce: bcdefghijkl
-msg length: 16778241
-data (repeated): def
-tag32: ffced8f2
-tag64: ffced8f2494d85bf
-tag96: ffced8f2494d85bf0cb39408
-tag128: ffced8f2494d85bf0cb39408ddfe0295
-
-nonce: bcdefghijklm
-msg length: 16778242
-data (repeated): def
-tag32: 1c99c5fb
-tag64: 65a5bbdda3b85368
-tag96: f9148022bc6ab64f019e9db8
-tag128: f9148022bc6ab64f019e9db83704c17b
-
-nonce: bcdefghijklmn
-msg length: 16778243
-data (repeated): def
-tag32: ec304be9
-tag64: 50dc9565fbfc4884
-tag96: 50dc9565fbfc48844a4be344
-tag128: 50dc9565fbfc48844a4be34403804605
-
-nonce: bcdefghijklmno
-msg length: 16778244
-data (repeated): def
-tag32: 8034e26f
-tag64: 04f163b7c2d5d849
-tag96: 77a26f7387d1dcd39378a322
-tag128: 77a26f7387d1dcd39378a3220652cff7
-
-nonce: #00000000000000000000000000000000
-msg length: 4
-data: zero
-tag32: a0e94011
-tag64: a0e940111c9c2cd5
-tag96: a0e940111c9c2cd5fa59090e
-tag128: a0e940111c9c2cd5fa59090e3ac2061f
-
-nonce: #00000000000000000000000000000001
-msg length: 4
-data: zero
-tag32: 8c6fea51
-tag64: 6d8971434be8ee41
-tag96: cbbf18b799fd0f4afb9216e5
-tag128: cbbf18b799fd0f4afb9216e52a89f247
-
-nonce: #00000000000000000000000000000002
-msg length: 4
-data: zero
-tag32: 6d897143
-tag64: c9c9aef87e2be502
-tag96: c9c9aef87e2be50237716af8
-tag128: c9c9aef87e2be50237716af8e24f8959
-
-nonce: #00000000000000000000000000000003
-msg length: 4
-data: zero
-tag32: db1b28c5
-tag64: a0a112b593656107
-tag96: d6e96ef461f54d1c85aa66cb
-tag128: d6e96ef461f54d1c85aa66cbd76ca336
-
-nonce: #00000000000000000000000000000004
-msg length: 4
-data: zero
-tag32: a75e23b7
-tag64: a75e23b7d419e03a
-tag96: a75e23b7d419e03a02d55ebf
-tag128: a75e23b7d419e03a02d55ebf1ba62824
-
-nonce: #00000000000000000000000000000005
-msg length: 4
-data: zero
-tag32: 44ea26be
-tag64: 950526f26a8cc07a
-tag96: 2e63031d182a59b84f148d9a
-tag128: 2e63031d182a59b84f148d9a91de70a3
-
-nonce: a
-msg length: 7
-data: nonce-a
-tag32: 81b4ac24
-tag64: b7e8aad0da6e7f99
-tag96: d7604bffb5e368da5fe564da
-tag128: d7604bffb5e368da5fe564da0068d2cc
-
-nonce: b
-msg length: 7
-data: nonce-a
-tag32: b7e8aad0
-tag64: 138814c6a03bdadf
-tag96: 138814c6a03bdadff7f1666e
-tag128: 138814c6a03bdadff7f1666e1bd881aa
-
-nonce: c
-msg length: 7
-data: nonce-a
-tag32: f70246fe
-tag64: fb77dd1cd4c7074f
-tag96: 86a016d9e67957c8ab5ebb78
-tag128: 86a016d9e67957c8ab5ebb78a673e4e9
-
-nonce: d
-msg length: 7
-data: nonce-a
-tag32: 0595f0bf
-tag64: 0595f0bf8585c7e2
-tag96: 0595f0bf8585c7e28dfab005
-tag128: 0595f0bf8585c7e28dfab00598d4e612
-
-nonce: e
-msg length: 7
-data: nonce-a
-tag32: a8e9fe85
-tag64: 817c0b7757cb60f7
-tag96: 3266ec16a9d85b4f0dc74ec8
-tag128: 3266ec16a9d85b4f0dc74ec8272238a9
-
-nonce: #beafcafe
-msg length: 15
-data: nonce-beaf-cafe
-tag32: f19d9dc1
-tag64: 9e878413aa079032
-tag96: 9e878413aa0790329604f3b6
-tag128: 9e878413aa0790329604f3b6ae980e58
-
-nonce: #beafcaff
-msg length: 15
-data: nonce-beaf-cafe
-tag32: 4604a56a
-tag64: 9cfd7af0bb107748
-tag96: f2b2dd5dab08bb3bc5e9a83e
-tag128: f2b2dd5dab08bb3bc5e9a83e1b4ab2e7
-
-nonce: #beafcb00
-msg length: 15
-data: nonce-beaf-cafe
-tag32: 4ba9420e
-tag64: 4ba9420e55b6ba13
-tag96: 4ba9420e55b6ba137d03443f
-tag128: 4ba9420e55b6ba137d03443f6ee01734
-
-nonce: #beafcb01
-msg length: 15
-data: nonce-beaf-cafe
-tag32: da86ff71
-tag64: 77facd797b686e24
-tag96: 2721ca2e1bcda53a54ae65e0
-tag128: 2721ca2e1bcda53a54ae65e0da139c0d
-
-nonce: #beafcb02
-msg length: 15
-data: nonce-beaf-cafe
-tag32: 77facd79
-tag64: 9000c0de4f5f7236
-tag96: 9000c0de4f5f7236b81ae1a5
-tag128: 9000c0de4f5f7236b81ae1a52e78a821
-
diff --git a/misc/xenofarm.sh b/misc/xenofarm.sh
deleted file mode 100755
index 7ded9fda..00000000
--- a/misc/xenofarm.sh
+++ /dev/null
@@ -1,238 +0,0 @@
-#! /bin/sh
-
-# Driver the xenofarm test compilation. Used together with
-# nettle-server.pike, source-transform.sh and result-parser.pike in
-# the nettle xenofarm project.
-
-# Loosely based on the xenofarm.sh script in lsh and lyskom-server.
-
-# Copyright 2002, 2003, 2012 Niels Möller
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
-
-cfgargs=
-makeargs=
-MAKE=make
-
-while [ $# -gt 0 ]
-do
- case "$1" in
- --cfg) shift; cfgargs="$1"; shift;;
- --make) shift; makeargs="$1"; shift;;
- --make-program) shift; MAKE="$1"; shift;;
- *) echo $0: unsupported argument $1 >&2; exit 1;;
- esac
-done
-
-pfx=`pwd`/pfx
-
-cfgargs="-C --with-include-path=$pfx/include:/usr/local/include --with-lib-path=$pfx/lib:/usr/local/lib --prefix=$pfx $cfgargs"
-
-# Fix PATH for system where the default environment is broken
-
-# We may need /usr/ccs/bin for ar
-if type ar >/dev/null ; then : ; else
- if [ -x /usr/ccs/bin/ar ] ; then
- PATH="$PATH:/usr/ccs/bin"
- fi
-fi
-
-# Export new value
-export PATH
-
-# Are we using GNU make? If not, nettle's dependency tracking won't work.
-cfgdepargs=''
-
-if $MAKE --version 2>/dev/null | grep GNU >/dev/null ; then : ; else
- cfgdepargs='--disable-dependency-tracking'
-fi
-
-rm -rf r
-mkdir r
-exec > r/shlog.txt 2>&1
-
-BASE=`echo nettle-*.tar.gz | sed 's/.tar.gz$//'`
-VERS=`echo "$BASE" | sed 's/^nettle-//'`
-
-timeecho () {
- # FIXME: Don't depend on GNU date
- echo `LC_ALL=C TZ=UTC date '+%Y-%m-%d %H:%M:%S'`: "$@"
-}
-
-log () {
- echo "$@" >> r/mainlog.txt
- date >> r/mainlog.txt
-}
-
-logstart () {
- log "BEGIN $1"
-}
-
-logpass () {
- log "PASS"
-}
-
-logfail () {
- log "FAIL"
-}
-
-logwarn () {
- log "WARN $1"
-}
-
-dotask() {
- important="$1"
- task="$2"
- warnfunc="$3"
- cmd="$4"
- var=${5:-status}
- var_value=`eval echo '${'$var'}'`
- if test $var_value = good
- then
- logstart $task
- timeecho Begin $task
- if sh -c "$cmd" > r/${task}log.txt 2>&1
- then
- if [ -z "$warnfunc" ]
- then
- logpass
- else
- $warnfunc
- fi
- else
- timeecho FAIL: $task
- if [ $important = 1 ]
- then
- eval $var=${task}-failed
- fi
- logfail
- fi
- else
- echo status $var_value makes it impossible/unnecessary to perform this step \
- > r/${task}log.txt
- fi
-}
-
-cfgwarn () {
- logfile="r/${task}log.txt"
- warnfile="r/${task}warn.txt"
- egrep -i 'warning|\(w\)' "$logfile" \
- > "$warnfile"
- warnings=`wc -l < $warnfile`
- if test $warnings -gt 0
- then
- logwarn $warnings
- else
- rm "$warnfile"
- logpass
- fi
-}
-
-makewarn () {
- logfile="r/${task}log.txt"
- warnfile="r/${task}warn.txt"
- # Use sed -e /RX/d to get rid of selected warnings.
- egrep -i 'warning|\(w\)' "$logfile" \
- > "$warnfile"
- warnings=`wc -l < $warnfile`
- if test $warnings -gt 0
- then
- logwarn $warnings
- else
- rm "$warnfile"
- logpass
- fi
-}
-
-ckprgwarn () {
- logfile="r/${task}log.txt"
- warnfile="r/${task}warn.txt"
- failfile="r/${task}fail.txt"
-
- egrep -i 'warning|\(w\)|error' "$logfile" \
- > "$warnfile"
- warnings=`wc -l < $warnfile`
- if test $warnings -gt 0
- then
- egrep -i 'error' "$warnfile" \
- > "$failfile"
- if test `wc -l < $failfile` -gt 0
- then
- logfail
- else
- rm "$failfile"
- logwarn $warnings
- fi
- else
- rm "$warnfile"
- logpass
- fi
-}
-
-
-status=good
-
-echo 'FORMAT 2' > r/mainlog.txt
-
-dotask 1 "unzip" "" "gzip -d $BASE.tar.gz"
-dotask 1 "unpack" "" "tar xf $BASE.tar"
-dotask 1 "cfg" "cfgwarn" \
- "cd $BASE && ./configure $cfgargs $cfgdepargs"
-dotask 1 "make" "makewarn" "cd $BASE && $MAKE $makeargs"
-
-#
-# "make check" requirements
-#
-
-dotask 1 "ckprg" "" "cd $BASE && $MAKE check"
-
-dotask 1 "install" "" "cd $BASE && $MAKE install"
-
-find pfx -type f -print | sort > r/installedfiles.txt
-if test `wc -l < r/installedfiles.txt` -eq 0
-then
- rm r/installedfiles.txt
-fi
-
-# Collect stuff.
-
-timeecho Collecting results
-
-cp $BASE/config.cache r/configcache.txt
-cp $BASE/config.log r/configlog.txt
-cp $BASE/config.h r/config-h.txt
-
-find $BASE -name core -print > r/corefiles.txt
-if test `wc -l < r/corefiles.txt` -eq 0
-then
- rm r/corefiles.txt
-fi
-
-env > r/environ.txt
-echo $PATH > r/path.txt
-makeinfo --version > r/makeinfo.txt
-type makeinfo >> r/makeinfo.txt 2>&1
-
-$MAKE --version > r/makeversion.txt 2>&1
-type $MAKE >> r/makeversion.txt
-
-ls -lR $pfx > r/pfxcontents.txt
-
-cp buildid.txt r/buildid.txt
-
-(cd r && tar cf - *) > xenofarm_result.tar
-gzip -1 xenofarm_result.tar
-
-exit 0
diff --git a/nettle.html b/nettle.html
new file mode 100644
index 00000000..6fe135f5
--- /dev/null
+++ b/nettle.html
@@ -0,0 +1,8867 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<!-- This manual is for the Nettle library (version 3.9), a
+low-level cryptographic library.
+
+Originally written 2001 by Niels Möller, updated 2023.
+
+This manual is placed in the public domain. You may freely copy it, in
+whole or in part, with or without modification. Attribution is
+appreciated, but not required. -->
+<title>Nettle: a low-level cryptographic library</title>
+
+<meta name="description" content="Nettle: a low-level cryptographic library">
+<meta name="keywords" content="Nettle: a low-level cryptographic library">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="makeinfo">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<link href="#Index" rel="index" title="Index">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="#Introduction" rel="next" title="Introduction">
+<style type="text/css">
+<!--
+a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em}
+a.summary-letter {text-decoration: none}
+blockquote.indentedblock {margin-right: 0em}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+kbd {font-style: oblique}
+pre.display {font-family: inherit}
+pre.format {font-family: inherit}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+span.nolinebreak {white-space: nowrap}
+span.roman {font-family: initial; font-weight: normal}
+span.sansserif {font-family: sans-serif; font-weight: normal}
+span:hover a.copiable-anchor {visibility: visible}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<h1 class="settitle" align="center">Nettle: a low-level cryptographic library</h1>
+
+
+
+
+
+
+
+<div class="top" id="Top">
+<div class="header">
+<p>
+Next: <a href="#Introduction" accesskey="n" rel="next">Introduction</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Nettle"></span><h1 class="top">Nettle</h1>
+
+<p>This document describes the Nettle low-level cryptographic library. You
+can use the library directly from your C programs, or write or use an
+object-oriented wrapper for your favorite language or application.
+</p>
+<p>This manual is for the Nettle library (version 3.9), a
+low-level cryptographic library.
+</p>
+<p>Originally written 2001 by Niels Möller, updated 2023.
+</p>
+<blockquote>
+<p>This manual is placed in the public domain. You may freely copy it, in
+whole or in part, with or without modification. Attribution is
+appreciated, but not required.
+</p></blockquote>
+
+
+
+<div class="Contents_element" id="SEC_Contents">
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="no-bullet">
+ <li><a id="toc-Introduction-1" href="#Introduction">1 Introduction</a></li>
+ <li><a id="toc-Copyright-1" href="#Copyright">2 Copyright</a></li>
+ <li><a id="toc-Conventions-1" href="#Conventions">3 Conventions</a></li>
+ <li><a id="toc-Example-1" href="#Example">4 Example</a></li>
+ <li><a id="toc-Linking-1" href="#Linking">5 Linking</a></li>
+ <li><a id="toc-Compatibility-1" href="#Compatibility">6 Compatibility</a></li>
+ <li><a id="toc-Reference-1" href="#Reference">7 Reference</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Hash-functions-1" href="#Hash-functions">7.1 Hash functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Recommended-hash-functions-1" href="#Recommended-hash-functions">7.1.1 Recommended hash functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-SHA256" href="#SHA256">7.1.1.1 <acronym>SHA256</acronym></a></li>
+ <li><a id="toc-SHA224" href="#SHA224">7.1.1.2 <acronym>SHA224</acronym></a></li>
+ <li><a id="toc-SHA512" href="#SHA512">7.1.1.3 <acronym>SHA512</acronym></a></li>
+ <li><a id="toc-SHA384-and-other-variants-of-SHA512" href="#SHA384-and-other-variants-of-SHA512">7.1.1.4 <acronym>SHA384 and other variants of SHA512</acronym></a></li>
+ <li><a id="toc-SHA3_002d224" href="#SHA3_002d224">7.1.1.5 <acronym>SHA3-224</acronym></a></li>
+ <li><a id="toc-SHA3_002d256" href="#SHA3_002d256">7.1.1.6 <acronym>SHA3-256</acronym></a></li>
+ <li><a id="toc-SHA3_002d384" href="#SHA3_002d384">7.1.1.7 <acronym>SHA3-384</acronym></a></li>
+ <li><a id="toc-SHA3_002d512" href="#SHA3_002d512">7.1.1.8 <acronym>SHA3-512</acronym></a></li>
+ <li><a id="toc-SHAKE" href="#SHAKE">7.1.1.9 <acronym>SHAKE</acronym></a></li>
+ </ul></li>
+ <li><a id="toc-Miscellaneous-hash-functions-1" href="#Miscellaneous-hash-functions">7.1.2 Miscellaneous hash functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-STREEBOG512" href="#STREEBOG512">7.1.2.1 <acronym>STREEBOG512</acronym></a></li>
+ <li><a id="toc-STREEBOG256" href="#STREEBOG256">7.1.2.2 <acronym>STREEBOG256</acronym></a></li>
+ <li><a id="toc-SM3" href="#SM3">7.1.2.3 <acronym>SM3</acronym></a></li>
+ </ul></li>
+ <li><a id="toc-Legacy-hash-functions-1" href="#Legacy-hash-functions">7.1.3 Legacy hash functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-MD5" href="#MD5">7.1.3.1 <acronym>MD5</acronym></a></li>
+ <li><a id="toc-MD2" href="#MD2">7.1.3.2 <acronym>MD2</acronym></a></li>
+ <li><a id="toc-MD4" href="#MD4">7.1.3.3 <acronym>MD4</acronym></a></li>
+ <li><a id="toc-RIPEMD160" href="#RIPEMD160">7.1.3.4 <acronym>RIPEMD160</acronym></a></li>
+ <li><a id="toc-SHA1" href="#SHA1">7.1.3.5 <acronym>SHA1</acronym></a></li>
+ <li><a id="toc-GOSTHASH94-and-GOSTHASH94CP" href="#GOSTHASH94-and-GOSTHASH94CP">7.1.3.6 <acronym>GOSTHASH94 and GOSTHASH94CP</acronym></a></li>
+ </ul></li>
+ <li><a id="toc-The-struct-nettle_005fhash-abstraction" href="#nettle_005fhash-abstraction">7.1.4 The <code>struct nettle_hash</code> abstraction</a></li>
+ </ul></li>
+ <li><a id="toc-Cipher-functions-1" href="#Cipher-functions">7.2 Cipher functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-AES-1" href="#AES">7.2.1 AES</a></li>
+ <li><a id="toc-Arcfour-1" href="#Arcfour">7.2.2 Arcfour</a></li>
+ <li><a id="toc-Arctwo-1" href="#Arctwo">7.2.3 Arctwo</a></li>
+ <li><a id="toc-Blowfish-1" href="#Blowfish">7.2.4 Blowfish</a></li>
+ <li><a id="toc-Camellia-1" href="#Camellia">7.2.5 Camellia</a></li>
+ <li><a id="toc-CAST128-1" href="#CAST128">7.2.6 CAST128</a></li>
+ <li><a id="toc-ChaCha-1" href="#ChaCha">7.2.7 ChaCha</a>
+ <ul class="no-bullet">
+ <li><a id="toc-32_002dbit-counter-variant" href="#g_t32_002dbit-counter-variant">7.2.7.1 32-bit counter variant</a></li>
+ </ul></li>
+ <li><a id="toc-DES-1" href="#DES">7.2.8 DES</a></li>
+ <li><a id="toc-DES3-1" href="#DES3">7.2.9 DES3</a></li>
+ <li><a id="toc-Salsa20-1" href="#Salsa20">7.2.10 Salsa20</a></li>
+ <li><a id="toc-Serpent-1" href="#Serpent">7.2.11 Serpent</a></li>
+ <li><a id="toc-SM4-1" href="#SM4">7.2.12 SM4</a></li>
+ <li><a id="toc-Twofish-1" href="#Twofish">7.2.13 Twofish</a></li>
+ <li><a id="toc-The-struct-nettle_005fcipher-abstraction" href="#nettle_005fcipher-abstraction">7.2.14 The <code>struct nettle_cipher</code> abstraction</a></li>
+ </ul></li>
+ <li><a id="toc-Cipher-modes-1" href="#Cipher-modes">7.3 Cipher modes</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Cipher-Block-Chaining" href="#CBC">7.3.1 Cipher Block Chaining</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Utility-macros" href="#Utility-macros">7.3.1.1 Utility macros</a></li>
+ <li><a id="toc-Cipher_002dspecific-functions" href="#Cipher_002dspecific-functions">7.3.1.2 Cipher-specific functions</a></li>
+ </ul></li>
+ <li><a id="toc-Counter-mode" href="#CTR">7.3.2 Counter mode</a></li>
+ <li><a id="toc-Cipher-Feedback-mode" href="#CFB-and-CFB8">7.3.3 Cipher Feedback mode</a></li>
+ <li><a id="toc-XEX_002dbased-tweaked_002dcodebook-mode-with-ciphertext-stealing" href="#XTS">7.3.4 XEX-based tweaked-codebook mode with ciphertext stealing</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-_0028XTS_0029-interface_002e" href="#General-_0028XTS_0029-interface_002e">7.3.4.1 General (<acronym>XTS</acronym>) interface.</a></li>
+ <li><a id="toc-XTS_002dAES-interface" href="#XTS_002dAES-interface">7.3.4.2 <acronym>XTS</acronym>-<acronym>AES</acronym> interface</a></li>
+ </ul></li>
+ </ul></li>
+ <li><a id="toc-Authenticated-encryption-with-associated-data" href="#Authenticated-encryption">7.4 Authenticated encryption with associated data</a>
+ <ul class="no-bullet">
+ <li><a id="toc-EAX-1" href="#EAX">7.4.1 EAX</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-EAX-interface" href="#General-EAX-interface">7.4.1.1 General <acronym>EAX</acronym> interface</a></li>
+ <li><a id="toc-EAX-helper-macros" href="#EAX-helper-macros">7.4.1.2 <acronym>EAX</acronym> helper macros</a></li>
+ <li><a id="toc-EAX_002dAES128-interface" href="#EAX_002dAES128-interface">7.4.1.3 <acronym>EAX</acronym>-<acronym>AES</acronym>128 interface</a></li>
+ </ul></li>
+ <li><a id="toc-Galois-counter-mode" href="#GCM">7.4.2 Galois counter mode</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-GCM-interface" href="#General-GCM-interface">7.4.2.1 General <acronym>GCM</acronym> interface</a></li>
+ <li><a id="toc-GCM-helper-macros" href="#GCM-helper-macros">7.4.2.2 <acronym>GCM</acronym> helper macros</a></li>
+ <li><a id="toc-GCM_002dAES-interface" href="#GCM_002dAES-interface">7.4.2.3 <acronym>GCM</acronym>-<acronym>AES</acronym> interface</a></li>
+ <li><a id="toc-GCM_002dCamellia-interface" href="#GCM_002dCamellia-interface">7.4.2.4 <acronym>GCM</acronym>-Camellia interface</a></li>
+ <li><a id="toc-GCM_002dSM4-interface" href="#GCM_002dSM4-interface">7.4.2.5 <acronym>GCM</acronym>-SM4 interface</a></li>
+ </ul></li>
+ <li><a id="toc-Counter-with-CBC_002dMAC-mode" href="#CCM">7.4.3 Counter with CBC-MAC mode</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-CCM-interface" href="#General-CCM-interface">7.4.3.1 General <acronym>CCM</acronym> interface</a></li>
+ <li><a id="toc-CCM-message-interface" href="#CCM-message-interface">7.4.3.2 <acronym>CCM</acronym> message interface</a></li>
+ <li><a id="toc-CCM_002dAES-interface" href="#CCM_002dAES-interface">7.4.3.3 <acronym>CCM</acronym>-<acronym>AES</acronym> interface</a></li>
+ </ul></li>
+ <li><a id="toc-ChaCha_002dPoly1305-1" href="#ChaCha_002dPoly1305">7.4.4 ChaCha-Poly1305</a></li>
+ <li><a id="toc-OCB-_0028Offset-Code-Book_0029-Mode" href="#OCB">7.4.5 <acronym>OCB</acronym> (Offset Code Book) Mode</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-interface" href="#General-interface">7.4.5.1 General interface</a></li>
+ <li><a id="toc-OCB_002dAES-interface" href="#OCB_002dAES-interface">7.4.5.2 <acronym>OCB-AES</acronym> interface</a></li>
+ </ul></li>
+ <li><a id="toc-Synthetic-Initialization-Vector-AEAD" href="#SIV_002dCMAC">7.4.6 Synthetic Initialization Vector AEAD</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-interface-1" href="#General-interface-1">7.4.6.1 General interface</a></li>
+ <li><a id="toc-SIV_002dCMAC_002dAES-interface" href="#SIV_002dCMAC_002dAES-interface">7.4.6.2 <acronym>SIV-CMAC</acronym>-<acronym>AES</acronym> interface</a></li>
+ </ul></li>
+ <li><a id="toc-SIV_002dGCM-1" href="#SIV_002dGCM">7.4.7 SIV-GCM</a>
+ <ul class="no-bullet">
+ <li><a id="toc-General-interface-2" href="#General-interface-2">7.4.7.1 General interface</a></li>
+ <li><a id="toc-SIV_002dGCM_002dAES-interface" href="#SIV_002dGCM_002dAES-interface">7.4.7.2 <acronym>SIV-GCM</acronym>-<acronym>AES</acronym> interface</a></li>
+ </ul></li>
+ <li><a id="toc-The-struct-nettle_005faead-abstraction" href="#nettle_005faead-abstraction">7.4.8 The <code>struct nettle_aead</code> abstraction</a></li>
+ </ul></li>
+ <li><a id="toc-Keyed-Hash-Functions" href="#Keyed-hash-functions">7.5 Keyed Hash Functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-HMAC-1" href="#HMAC">7.5.1 <acronym>HMAC</acronym></a>
+ <ul class="no-bullet">
+ <li><a id="toc-HMAC_002dMD5" href="#HMAC_002dMD5">7.5.1.1 <acronym>HMAC-MD5</acronym></a></li>
+ <li><a id="toc-HMAC_002dRIPEMD160" href="#HMAC_002dRIPEMD160">7.5.1.2 <acronym>HMAC-RIPEMD160</acronym></a></li>
+ <li><a id="toc-HMAC_002dSHA1" href="#HMAC_002dSHA1">7.5.1.3 <acronym>HMAC-SHA1</acronym></a></li>
+ <li><a id="toc-HMAC_002dSHA256" href="#HMAC_002dSHA256">7.5.1.4 <acronym>HMAC-SHA256</acronym></a></li>
+ <li><a id="toc-HMAC_002dSHA512" href="#HMAC_002dSHA512">7.5.1.5 <acronym>HMAC-SHA512</acronym></a></li>
+ <li><a id="toc-HMAC_002dSM3" href="#HMAC_002dSM3">7.5.1.6 <acronym>HMAC-SM3</acronym></a></li>
+ </ul></li>
+ <li><a id="toc-UMAC-1" href="#UMAC">7.5.2 <acronym>UMAC</acronym></a></li>
+ <li><a id="toc-CMAC-1" href="#CMAC">7.5.3 <acronym>CMAC</acronym></a></li>
+ <li><a id="toc-Poly1305-1" href="#Poly1305">7.5.4 Poly1305</a></li>
+ </ul></li>
+ <li><a id="toc-Key-derivation-Functions" href="#Key-derivation-functions">7.6 Key derivation Functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-HKDF_003a-HMAC_002dbased-Extract_002dand_002dExpand" href="#HKDF_003a-HMAC_002dbased-Extract_002dand_002dExpand">7.6.1 HKDF: HMAC-based Extract-and-Expand</a></li>
+ <li><a id="toc-PBKDF2" href="#PBKDF2">7.6.2 <acronym>PBKDF2</acronym></a></li>
+ <li><a id="toc-Concrete-PBKDF2-functions" href="#Concrete-PBKDF2-functions">7.6.3 Concrete <acronym>PBKDF2</acronym> functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-PBKDF2_002dHMAC_002dSHA1" href="#PBKDF2_002dHMAC_002dSHA1">7.6.3.1 <acronym>PBKDF2-HMAC-SHA1</acronym></a></li>
+ <li><a id="toc-PBKDF2_002dHMAC_002dSHA256" href="#PBKDF2_002dHMAC_002dSHA256">7.6.3.2 <acronym>PBKDF2-HMAC-SHA256</acronym></a></li>
+ <li><a id="toc-PBKDF2_002dHMAC_002dSHA384" href="#PBKDF2_002dHMAC_002dSHA384">7.6.3.3 <acronym>PBKDF2-HMAC-SHA384</acronym></a></li>
+ <li><a id="toc-PBKDF2_002dHMAC_002dSHA512" href="#PBKDF2_002dHMAC_002dSHA512">7.6.3.4 <acronym>PBKDF2-HMAC-SHA512</acronym></a></li>
+ </ul></li>
+ <li><a id="toc-BALLOON" href="#BALLOON">7.6.4 <acronym>BALLOON</acronym></a></li>
+ <li><a id="toc-Concrete-BALLOON-functions" href="#Concrete-BALLOON-functions">7.6.5 Concrete <acronym>BALLOON</acronym> functions</a>
+ <ul class="no-bullet">
+ <li><a id="toc-BALLOON_002dSHA1" href="#BALLOON_002dSHA1">7.6.5.1 <acronym>BALLOON-SHA1</acronym></a></li>
+ <li><a id="toc-BALLOON_002dSHA256" href="#BALLOON_002dSHA256">7.6.5.2 <acronym>BALLOON-SHA256</acronym></a></li>
+ <li><a id="toc-BALLOON_002dSHA384" href="#BALLOON_002dSHA384">7.6.5.3 <acronym>BALLOON-SHA384</acronym></a></li>
+ <li><a id="toc-BALLOON_002dSHA512" href="#BALLOON_002dSHA512">7.6.5.4 <acronym>BALLOON-SHA512</acronym></a></li>
+ </ul></li>
+ </ul></li>
+ <li><a id="toc-Public_002dkey-algorithms-1" href="#Public_002dkey-algorithms">7.7 Public-key algorithms</a>
+ <ul class="no-bullet">
+ <li><a id="toc-RSA-1" href="#RSA">7.7.1 <acronym>RSA</acronym></a>
+ <ul class="no-bullet">
+ <li><a id="toc-Nettle_0027s-RSA-support" href="#Nettle_0027s-RSA-support">7.7.1.1 Nettle&rsquo;s <acronym>RSA</acronym> support</a></li>
+ </ul></li>
+ <li><a id="toc-DSA-1" href="#DSA">7.7.2 <acronym>DSA</acronym></a>
+ <ul class="no-bullet">
+ <li><a id="toc-Nettle_0027s-DSA-support" href="#Nettle_0027s-DSA-support">7.7.2.1 Nettle&rsquo;s <acronym>DSA</acronym> support</a></li>
+ <li><a id="toc-Old_002c-deprecated_002c-DSA-interface" href="#Old_002c-deprecated_002c-DSA-interface">7.7.2.2 Old, deprecated, <acronym>DSA</acronym> interface</a></li>
+ </ul></li>
+ <li><a id="toc-Elliptic-curves-1" href="#Elliptic-curves">7.7.3 Elliptic curves</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Side_002dchannel-silence-1" href="#Side_002dchannel-silence">7.7.3.1 Side-channel silence</a></li>
+ <li><a id="toc-ECDSA-1" href="#ECDSA">7.7.3.2 ECDSA</a></li>
+ <li><a id="toc-GOSTDSA-1" href="#GOSTDSA">7.7.3.3 GOSTDSA</a></li>
+ <li><a id="toc-Curve25519-and-Curve448" href="#Curve-25519-and-Curve-448">7.7.3.4 Curve25519 and Curve448</a></li>
+ <li><a id="toc-EdDSA" href="#EdDSA">7.7.3.5 EdDSA</a></li>
+ </ul></li>
+ </ul></li>
+ <li><a id="toc-Randomness-1" href="#Randomness">7.8 Randomness</a>
+ <ul class="no-bullet">
+ <li><a id="toc-Yarrow" href="#Yarrow">7.8.1 Yarrow</a></li>
+ <li><a id="toc-DRBG_002dCTR" href="#DRBG_002dCTR">7.8.2 DRBG-CTR</a></li>
+ </ul></li>
+ <li><a id="toc-ASCII-encoding-1" href="#ASCII-encoding">7.9 ASCII encoding</a></li>
+ <li><a id="toc-Miscellaneous-functions-1" href="#Miscellaneous-functions">7.10 Miscellaneous functions</a></li>
+ <li><a id="toc-Compatibility-functions-1" href="#Compatibility-functions">7.11 Compatibility functions</a></li>
+ </ul></li>
+ <li><a id="toc-Traditional-Nettle-Soup" href="#Nettle-soup">8 Traditional Nettle Soup</a></li>
+ <li><a id="toc-Installation-1" href="#Installation">9 Installation</a></li>
+ <li><a id="toc-Function-and-Concept-Index" href="#Index" rel="index">Function and Concept Index</a></li>
+</ul>
+</div>
+</div>
+<hr>
+<div class="chapter" id="Introduction">
+<div class="header">
+<p>
+Next: <a href="#Copyright" accesskey="n" rel="next">Copyright</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Nettle</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Introduction-1"></span><h2 class="chapter">1 Introduction</h2>
+
+<p>Nettle is a cryptographic library that is designed to fit easily in more
+or less any context: In crypto toolkits for object-oriented languages
+(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
+kernel space. In most contexts, you need more than the basic
+cryptographic algorithms, you also need some way to keep track of available
+algorithms, their properties and variants. You often have some algorithm
+selection process, often dictated by a protocol you want to implement.
+</p>
+<p>And as the requirements of applications differ in subtle and not so
+subtle ways, an API that fits one application well can be a pain to use
+in a different context. And that is why there are so many different
+cryptographic libraries around.
+</p>
+<p>Nettle tries to avoid this problem by doing one thing, the low-level
+crypto stuff, and providing a <em>simple</em> but general interface to it.
+In particular, Nettle doesn&rsquo;t do algorithm selection. It doesn&rsquo;t do
+memory allocation. It doesn&rsquo;t do any I/O.
+</p>
+<p>The idea is that one can build several application and context specific
+interfaces on top of Nettle, and share the code, test cases, benchmarks,
+documentation, etc. Examples are the Nettle module for the Pike
+language, and LSH, which both use an object-oriented abstraction on top
+of the library.
+</p>
+<p>This manual explains how to use the Nettle library. It also tries to
+provide some background on the cryptography, and advice on how to best
+put it to use.
+</p>
+<hr>
+</div>
+<div class="chapter" id="Copyright">
+<div class="header">
+<p>
+Next: <a href="#Conventions" accesskey="n" rel="next">Conventions</a>, Previous: <a href="#Introduction" accesskey="p" rel="prev">Introduction</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Copyright-1"></span><h2 class="chapter">2 Copyright</h2>
+
+<p>Nettle is dual licenced under the GNU General Public License version 2
+or later, and the GNU Lesser General Public License version 3 or later.
+When using Nettle, you must comply fully with all conditions of at least
+one of these licenses. A few of the individual files are licensed under
+more permissive terms, or in the public domain. To find the current
+status of particular files, you have to read the copyright notices at
+the top of the files.
+</p>
+<p>This manual is in the public domain. You may freely copy it in whole or
+in part, e.g., into documentation of programs that build on Nettle.
+Attribution, as well as contribution of improvements to the text, is of
+course appreciated, but it is not required.
+</p>
+<hr>
+</div>
+<div class="chapter" id="Conventions">
+<div class="header">
+<p>
+Next: <a href="#Example" accesskey="n" rel="next">Example</a>, Previous: <a href="#Copyright" accesskey="p" rel="prev">Copyright</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Conventions-1"></span><h2 class="chapter">3 Conventions</h2>
+
+<p>For each supported algorithm, there is an include file that defines a
+<em>context struct</em>, a few constants, and declares functions for
+operating on the context. The context struct encapsulates all information
+needed by the algorithm, and it can be copied or moved in memory with no
+unexpected effects.
+</p>
+<p>For consistency, functions for different algorithms are very similar,
+but there are some differences, for instance reflecting if the key setup
+or encryption function differ for encryption and decryption, and whether
+or not key setup can fail. There are also differences between algorithms
+that don&rsquo;t show in function prototypes, but which the application must
+nevertheless be aware of. There is no big difference between the
+functions for stream ciphers and for block ciphers, although they should
+be used quite differently by the application.
+</p>
+<p>If your application uses more than one algorithm of the same type, you
+should probably create an interface that is tailor-made for your needs,
+and then write a few lines of glue code on top of Nettle.
+</p>
+<p>By convention, for an algorithm named <code>foo</code>, the struct tag for the
+context struct is <code>foo_ctx</code>, constants and functions uses prefixes
+like <code>FOO_BLOCK_SIZE</code> (a constant) and <code>foo_set_key</code> (a
+function).
+</p>
+<p>In all functions, strings are represented with an explicit length, of
+type <code>size_t</code>, and a pointer of type <code>uint8_t *</code> or
+<code>const uint8_t *</code>. For functions that transform one string to
+another, the argument order is length, destination pointer and source
+pointer. Source and destination areas are usually of the same length.
+When they differ, e.g., for <code>ccm_encrypt_message</code>, the length
+argument specifies the size of the destination area. Source and
+destination pointers may be equal, so that you can process strings in
+place, but source and destination areas <em>must not</em> overlap in any
+other way.
+</p>
+<p>Many of the functions lack return value and can never fail. Those
+functions which can fail, return one on success and zero on failure.
+</p>
+
+<hr>
+</div>
+<div class="chapter" id="Example">
+<div class="header">
+<p>
+Next: <a href="#Linking" accesskey="n" rel="next">Linking</a>, Previous: <a href="#Conventions" accesskey="p" rel="prev">Conventions</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Example-1"></span><h2 class="chapter">4 Example</h2>
+
+<p>A simple example program that reads a file from standard input and
+writes its SHA1 check-sum on standard output should give the flavor of
+Nettle.
+</p>
+<div class="example">
+<pre class="verbatim">#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+
+#include &lt;nettle/sha1.h&gt;
+
+#define BUF_SIZE 1000
+
+static void
+display_hex(unsigned length, uint8_t *data)
+{
+ unsigned i;
+
+ for (i = 0; i&lt;length; i++)
+ printf(&quot;%02x &quot;, data[i]);
+
+ printf(&quot;\n&quot;);
+}
+
+int
+main(int argc, char **argv)
+{
+ struct sha1_ctx ctx;
+ uint8_t buffer[BUF_SIZE];
+ uint8_t digest[SHA1_DIGEST_SIZE];
+
+ sha1_init(&amp;ctx);
+ for (;;)
+ {
+ int done = fread(buffer, 1, sizeof(buffer), stdin);
+ sha1_update(&amp;ctx, done, buffer);
+ if (done &lt; sizeof(buffer))
+ break;
+ }
+ if (ferror(stdin))
+ return EXIT_FAILURE;
+
+ sha1_digest(&amp;ctx, SHA1_DIGEST_SIZE, digest);
+
+ display_hex(SHA1_DIGEST_SIZE, digest);
+ return EXIT_SUCCESS;
+}
+</pre></div>
+
+<p>On a typical Unix system, this program can be compiled and linked with
+the command line
+</p><div class="example">
+<pre class="example">gcc sha-example.c -o sha-example -lnettle
+</pre></div>
+
+<hr>
+</div>
+<div class="chapter" id="Linking">
+<div class="header">
+<p>
+Next: <a href="#Compatibility" accesskey="n" rel="next">Compatibility</a>, Previous: <a href="#Example" accesskey="p" rel="prev">Example</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Linking-1"></span><h2 class="chapter">5 Linking</h2>
+
+<p>Nettle actually consists of two libraries, <samp>libnettle</samp> and
+<samp>libhogweed</samp>. The <samp>libhogweed</samp> library contains those
+functions of Nettle that uses bignum operations, and depends on the GMP
+library. With this division, linking works the same for both static and
+dynamic libraries.
+</p>
+<p>If an application uses only the symmetric crypto algorithms of Nettle
+(i.e., block ciphers, hash functions, and the like), it&rsquo;s sufficient to
+link with <code>-lnettle</code>. If an application also uses public-key
+algorithms, the recommended linker flags are <code>-lhogweed -lnettle
+-lgmp</code>. If the involved libraries are installed as dynamic libraries, it
+may be sufficient to link with just <code>-lhogweed</code>, and the loader
+will resolve the dependencies automatically.
+</p>
+<hr>
+</div>
+<div class="chapter" id="Compatibility">
+<div class="header">
+<p>
+Next: <a href="#Reference" accesskey="n" rel="next">Reference</a>, Previous: <a href="#Linking" accesskey="p" rel="prev">Linking</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Compatibility-1"></span><h2 class="chapter">6 Compatibility</h2>
+<span id="index-ABI-compatibility"></span>
+<span id="index-API-compatibility"></span>
+<span id="index-Binary-compatibility"></span>
+
+<p>When you write a program using the Nettle library, it&rsquo;s desirable to
+have it work together not only with exactly the same version of Nettle
+you had at hand, but with other current and future versions. If a
+different version of Nettle is used at compile time, i.e., you recompile
+it using the header and library files belonging to a different version,
+we talk about API compatibility (for Application Programming Interface).
+If a different version of Nettle isn&rsquo;t used until link time, we talk
+about ABI compatibility (Application Binary Interface) or binary
+compatibility. ABI compatibility matters mainly when using dynamic
+linking with a shared library. E.g., a user has an executable linking at
+run-time with <samp>libnettle.so</samp>, and then updates to a later version
+of the shared library, without updating or recompiling the executable.
+</p>
+<p>Nettle aims to provide backwards compatibility, i.e., a program written
+for a particular version of the Nettle library should usually work fine
+with later version of the library. Note that the opposite is not
+supported: The program should <em>not</em> be expected to work with older
+versions of the Nettle library; and ABI breakage can be unobvious. E.g,
+the later version may define a new library symbol, and let header files
+redefine an old API name as an alias for the new symbol. If the later
+version ensures that the old symbol is still defined in the library,
+this change is backwards compatible: A program compiled using headers
+from the older version can be successfully linked with either version of
+the library. But if you compile the same program using headers from the
+later version of the library, and attempt to link with the older
+version, you&rsquo;ll get an undefined reference to the new symbol.
+</p>
+<p>API compatibility is rarely broken; exceptions are noted in the NEWS
+file. For example, the key size argument to the function
+<code>cast128_set_key</code> was dropped in the Nettle-3.0 release, and all
+programs using that function had to be updated to work with the new
+version.
+</p>
+<p>ABI compatibility is broken occasionally. This is also noted in the NEWS
+file, and the name of the shared library is updated to prevent
+accidental run-time linking with the wrong version. All programs have to
+be recompiled before they can link with the new version. Since names are
+different, multiple versions can be installed on the same system, with a
+mix of programs linking to one version or the other.
+</p>
+<p>Under some circumstances, it is possible to have a single program
+linking dynamically with two binary incompatible versions of the Nettle
+library, thanks to the use of symbol versioning. Consider a program
+calling functions in both Nettle and GnuTLS. For the direct dependency
+on Nettle, the program is linked with a particular version of the Nettle
+shared library. GnuTLS uses Nettle internally, but does not expose any
+Nettle data structures or the like in its own ABI. In this situation,
+the GnuTLS shared library may link with a different version of the
+Nettle library. Then both versions of the Nettle library will be loaded
+into the program&rsquo;s address space, and each reference to a symbol will be
+resolved to the correct version.
+</p>
+<p>Finally, some of Nettle&rsquo;s symbols are internal. They carry a leading
+underscore, and are not declared in installed header files. They can be
+used for local or experimental purposes, but programs referring directly
+to those symbols get neither API nor ABI compatibility, not even between
+minor versions.
+</p>
+<hr>
+</div>
+<div class="chapter" id="Reference">
+<div class="header">
+<p>
+Next: <a href="#Nettle-soup" accesskey="n" rel="next">Traditional Nettle Soup</a>, Previous: <a href="#Compatibility" accesskey="p" rel="prev">Compatibility</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Reference-1"></span><h2 class="chapter">7 Reference</h2>
+
+<p>This chapter describes all the Nettle functions, grouped by family.
+</p>
+
+<ul class="section-toc">
+<li><a href="#Hash-functions" accesskey="1">Hash functions</a></li>
+<li><a href="#Cipher-functions" accesskey="2">Cipher functions</a></li>
+<li><a href="#Cipher-modes" accesskey="3">Cipher modes</a></li>
+<li><a href="#Authenticated-encryption" accesskey="4">Authenticated encryption with associated data</a></li>
+<li><a href="#Keyed-hash-functions" accesskey="5">Keyed Hash Functions</a></li>
+<li><a href="#Key-derivation-functions" accesskey="6">Key derivation Functions</a></li>
+<li><a href="#Public_002dkey-algorithms" accesskey="7">Public-key algorithms</a></li>
+<li><a href="#Randomness" accesskey="8">Randomness</a></li>
+<li><a href="#ASCII-encoding" accesskey="9">ASCII encoding</a></li>
+<li><a href="#Miscellaneous-functions">Miscellaneous functions</a></li>
+<li><a href="#Compatibility-functions">Compatibility functions</a></li>
+</ul>
+<hr>
+<div class="section" id="Hash-functions">
+<div class="header">
+<p>
+Next: <a href="#Cipher-functions" accesskey="n" rel="next">Cipher functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Hash-functions-1"></span><h3 class="section">7.1 Hash functions</h3>
+<span id="index-Hash-function"></span>
+
+<p>A cryptographic <em>hash function</em> is a function that takes variable
+size strings, and maps them to strings of fixed, short, length. There
+are naturally lots of collisions, as there are more possible 1MB files
+than 20 byte strings. But the function is constructed such that is hard
+to find the collisions. More precisely, a cryptographic hash function
+<code>H</code> should have the following properties:
+</p>
+<dl compact="compact">
+<dt id='index-One_002dway'><span><em>One-way</em><a href='#index-One_002dway' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Given a hash value <code>H(x)</code> it is hard to find a string <code>x</code>
+that hashes to that value.
+</p>
+</dd>
+<dt id='index-Collision_002dresistant'><span><em>Collision-resistant</em><a href='#index-Collision_002dresistant' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>It is hard to find two different strings, <code>x</code> and <code>y</code>, such
+that <code>H(x)</code> = <code>H(y)</code>.
+</p>
+</dd>
+</dl>
+
+<p>Hash functions are useful as building blocks for digital signatures,
+message authentication codes, pseudo random generators, association of
+unique ids to documents, and many other things.
+</p>
+<p>The most commonly used hash functions are MD5 and SHA1. Unfortunately,
+both these fail the collision-resistance requirement; cryptologists have
+found ways to construct colliding inputs. The recommended hash functions
+for new applications are SHA2 (with main variants SHA256 and SHA512). At
+the time of this writing (Autumn 2015), SHA3 has recently been
+standardized, and the new SHA3 and other top SHA3 candidates may also be
+reasonable alternatives.
+</p>
+
+<ul class="section-toc">
+<li><a href="#Recommended-hash-functions" accesskey="1">Recommended hash functions</a></li>
+<li><a href="#Miscellaneous-hash-functions" accesskey="2">Miscellaneous hash functions</a></li>
+<li><a href="#Legacy-hash-functions" accesskey="3">Legacy hash functions</a></li>
+<li><a href="#nettle_005fhash-abstraction" accesskey="4">The <code>struct nettle_hash</code> abstraction</a></li>
+</ul>
+<hr>
+<div class="subsection" id="Recommended-hash-functions">
+<div class="header">
+<p>
+Next: <a href="#Miscellaneous-hash-functions" accesskey="n" rel="next">Miscellaneous hash functions</a>, Up: <a href="#Hash-functions" accesskey="u" rel="up">Hash functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Recommended-hash-functions-1"></span><h4 class="subsection">7.1.1 Recommended hash functions</h4>
+
+<p>The following hash functions have no known weaknesses, and are suitable
+for new applications. The SHA2 family of hash functions were specified
+by <em>NIST</em>, intended as a replacement for <acronym>SHA1</acronym>.
+</p>
+<ul class="section-toc">
+<li><a href="#SHA256" accesskey="1"><acronym>SHA256</acronym></a></li>
+<li><a href="#SHA224" accesskey="2"><acronym>SHA224</acronym></a></li>
+<li><a href="#SHA512" accesskey="3"><acronym>SHA512</acronym></a></li>
+<li><a href="#SHA384-and-other-variants-of-SHA512" accesskey="4"><acronym>SHA384 and other variants of SHA512</acronym></a></li>
+<li><a href="#SHA3_002d224" accesskey="5"><acronym>SHA3-224</acronym></a></li>
+<li><a href="#SHA3_002d256" accesskey="6"><acronym>SHA3-256</acronym></a></li>
+<li><a href="#SHA3_002d384" accesskey="7"><acronym>SHA3-384</acronym></a></li>
+<li><a href="#SHA3_002d512" accesskey="8"><acronym>SHA3-512</acronym></a></li>
+<li><a href="#SHAKE" accesskey="9"><acronym>SHAKE</acronym></a></li>
+</ul>
+<div class="subsubsection" id="SHA256">
+<h4 class="subsubsection">7.1.1.1 <acronym>SHA256</acronym></h4>
+
+<p>SHA256 is a member of the SHA2 family. It outputs hash values of 256
+bits, or 32 octets. Nettle defines SHA256 in <samp>&lt;nettle/sha2.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sha256_005fctx"><span class="category">Context struct: </span><span><strong>struct sha256_ctx</strong><a href='#index-struct-sha256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA256_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA256_DIGEST_SIZE</strong><a href='#index-SHA256_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA256 digest, i.e. 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA256_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA256_BLOCK_SIZE</strong><a href='#index-SHA256_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA256. Useful for some special constructions,
+in particular HMAC-SHA256.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha256_init</strong> <em>(struct sha256_ctx *<var>ctx</var>)</em><a href='#index-sha256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA256 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha256_update</strong> <em>(struct sha256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha256_digest</strong> <em>(struct sha256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA256_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>sha256_init</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha256_005fcompress"><span class="category">Function: </span><span><em>void</em> <strong>sha256_compress</strong> <em>(const uint32_t *<var>state</var>, uint8_t *<var>input</var>)</em><a href='#index-sha256_005fcompress' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Perform a raw SHA256 compress on SHA256_BLOCK_SIZE bytes from<var>input</var>
+using <var>state</var> as IV (an array of 8 uint32_t). The output is stored in <var>state</var>.
+This function provides access to the underlying compression function,
+for the rare applications that need that (e.g., using different IV from
+standard SHA256).
+</p></dd></dl>
+
+<p>Earlier versions of nettle defined SHA256 in the header file
+<samp>&lt;nettle/sha.h&gt;</samp>, which is now deprecated, but kept for
+compatibility.
+</p>
+</div>
+<div class="subsubsection" id="SHA224">
+<h4 class="subsubsection">7.1.1.2 <acronym>SHA224</acronym></h4>
+
+<p>SHA224 is a variant of SHA256, with a different initial state, and with
+the output truncated to 224 bits, or 28 octets. Nettle defines SHA224 in
+<samp>&lt;nettle/sha2.h&gt;</samp> (and in <samp>&lt;nettle/sha.h&gt;</samp>, for backwards
+compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-sha224_005fctx"><span class="category">Context struct: </span><span><strong>struct sha224_ctx</strong><a href='#index-struct-sha224_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA224_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA224_DIGEST_SIZE</strong><a href='#index-SHA224_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA224 digest, i.e. 28.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA224_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA224_BLOCK_SIZE</strong><a href='#index-SHA224_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA224. Useful for some special constructions,
+in particular HMAC-SHA224.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha224_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha224_init</strong> <em>(struct sha224_ctx *<var>ctx</var>)</em><a href='#index-sha224_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA224 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha224_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha224_update</strong> <em>(struct sha224_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha224_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha224_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha224_digest</strong> <em>(struct sha224_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha224_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA224_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>sha224_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA512">
+<h4 class="subsubsection">7.1.1.3 <acronym>SHA512</acronym></h4>
+
+<p>SHA512 is a larger sibling to SHA256, with a very similar structure but
+with both the output and the internal variables of twice the size. The
+internal variables are 64 bits rather than 32, making it significantly
+slower on 32-bit computers. It outputs hash values of 512 bits, or 64
+octets. Nettle defines SHA512 in <samp>&lt;nettle/sha2.h&gt;</samp> (and in
+<samp>&lt;nettle/sha.h&gt;</samp>, for backwards compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-sha512_005fctx"><span class="category">Context struct: </span><span><strong>struct sha512_ctx</strong><a href='#index-struct-sha512_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA512_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_DIGEST_SIZE</strong><a href='#index-SHA512_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA512 digest, i.e. 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA512_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_BLOCK_SIZE</strong><a href='#index-SHA512_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA512, 128. Useful for some special
+constructions, in particular HMAC-SHA512.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha512_init</strong> <em>(struct sha512_ctx *<var>ctx</var>)</em><a href='#index-sha512_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA512 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha512_update</strong> <em>(struct sha512_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha512_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha512_digest</strong> <em>(struct sha512_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha512_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA512_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>sha512_init</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005fcompress"><span class="category">Function: </span><span><em>void</em> <strong>sha512_compress</strong> <em>(const uint64_t *<var>state</var>, uint8_t *<var>input</var>)</em><a href='#index-sha512_005fcompress' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Perform a raw SHA512 compress on SHA512_BLOCK_SIZE bytes from
+<var>input</var> using <var>state</var> as IV (an array of 8 uint64_t). The output is stored in <var>state</var>.
+This function provides access to the underlying compression function,
+for the rare applications that need that (e.g., using different IV from
+standard SHA512).
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA384-and-other-variants-of-SHA512">
+<h4 class="subsubsection">7.1.1.4 <acronym>SHA384 and other variants of SHA512</acronym></h4>
+
+<p>Several variants of SHA512 have been defined, with a different initial
+state, and with the output truncated to shorter length than 512 bits.
+Naming is a bit confused, these algorithms are called SHA512-224,
+SHA512-256 and SHA384, for output sizes of 224, 256 and 384 bits,
+respectively. Nettle defines these in <samp>&lt;nettle/sha2.h&gt;</samp> (and in
+<samp>&lt;nettle/sha.h&gt;</samp>, for backwards compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-sha512_005f224_005fctx"><span class="category">Context struct: </span><span><strong>struct sha512_224_ctx</strong><a href='#index-struct-sha512_005f224_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-sha512_005f256_005fctx"><span class="category">Context struct: </span><span><strong>struct sha512_256_ctx</strong><a href='#index-struct-sha512_005f256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-sha384_005fctx"><span class="category">Context struct: </span><span><strong>struct sha384_ctx</strong><a href='#index-struct-sha384_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These context structs are all the same as sha512_ctx. They are defined as
+simple preprocessor aliases, which may cause some problems if used as
+identifiers for other purposes. So avoid doing that.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA512_005f224_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_224_DIGEST_SIZE</strong><a href='#index-SHA512_005f224_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-SHA512_005f256_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_256_DIGEST_SIZE</strong><a href='#index-SHA512_005f256_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-SHA384_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA384_DIGEST_SIZE</strong><a href='#index-SHA384_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The digest size for each variant, i.e., 28, 32, and 48, respectively.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA512_005f224_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_224_BLOCK_SIZE</strong><a href='#index-SHA512_005f224_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-SHA512_005f256_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA512_256_BLOCK_SIZE</strong><a href='#index-SHA512_005f256_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-SHA384_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA384_BLOCK_SIZE</strong><a href='#index-SHA384_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size, same as SHA512_BLOCK_SIZE, i.e., 128. Useful for
+some special constructions, in particular HMAC-SHA384.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005f224_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha512_224_init</strong> <em>(struct sha512_224_ctx *<var>ctx</var>)</em><a href='#index-sha512_005f224_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha512_005f256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha512_256_init</strong> <em>(struct sha512_256_ctx *<var>ctx</var>)</em><a href='#index-sha512_005f256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha384_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha384_init</strong> <em>(struct sha384_ctx *<var>ctx</var>)</em><a href='#index-sha384_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the context struct.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005f224_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha512_224_update</strong> <em>(struct sha512_224_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha512_005f224_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha512_005f256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha512_256_update</strong> <em>(struct sha512_256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha512_005f256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha384_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha384_update</strong> <em>(struct sha384_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha384_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data. These are all aliases for sha512_update, which does
+the same thing.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha512_005f224_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha512_224_digest</strong> <em>(struct sha512_224_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha512_005f224_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha512_005f256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha512_256_digest</strong> <em>(struct sha512_256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha512_005f256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-sha384_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha384_digest</strong> <em>(struct sha384_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha384_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it to
+<var>digest</var>. <var>length</var> may be smaller than the specified digest
+size, in which case only the first <var>length</var> octets of the digest are
+written.
+</p>
+<p>These function also reset the context in the same way as the
+corresponding init function.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA3_002d224">
+<h4 class="subsubsection">7.1.1.5 <acronym>SHA3-224</acronym></h4>
+<span id="index-SHA3"></span>
+
+<p>The SHA3 hash functions were specified by NIST in response to weaknesses
+in SHA1, and doubts about SHA2 hash functions which structurally are
+very similar to SHA1. SHA3 is a result of a competition, where the
+winner, also known as Keccak, was designed by Guido Bertoni, Joan
+Daemen, Michaël Peeters and Gilles Van Assche. It is structurally very
+different from all widely used earlier hash functions. Like SHA2, there
+are several variants, with output sizes of 224, 256, 384 and 512 bits
+(28, 32, 48 and 64 octets, respectively). In August 2015, it was
+formally standardized by NIST, as FIPS 202,
+<a href="https://dx.doi.org/10.6028/NIST.FIPS.202">https://dx.doi.org/10.6028/NIST.FIPS.202</a>.
+</p>
+<p>Note that the SHA3 implementation in earlier versions of Nettle was
+based on the specification at the time Keccak was announced as the
+winner of the competition, which is incompatible with the final standard
+and hence with current versions of Nettle. The <samp>nette/sha3.h</samp>
+defines a preprocessor symbol <code>NETTLE_SHA3_FIPS202</code> to indicate
+conformance with the standard.
+</p>
+<dl class="def">
+<dt id="index-NETTLE_005fSHA3_005fFIPS202"><span class="category">Constant: </span><span><strong>NETTLE_SHA3_FIPS202</strong><a href='#index-NETTLE_005fSHA3_005fFIPS202' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Defined to 1 in Nettle versions supporting FIPS 202. Undefined in
+earlier versions.
+</p></dd></dl>
+
+<p>Nettle defines SHA3-224 in <samp>&lt;nettle/sha3.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sha3_005f224_005fctx"><span class="category">Context struct: </span><span><strong>struct sha3_224_ctx</strong><a href='#index-struct-sha3_005f224_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f224_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_224_DIGEST_SIZE</strong><a href='#index-SHA3_005f224_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA3_224 digest, i.e., 28.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f224_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_224_BLOCK_SIZE</strong><a href='#index-SHA3_005f224_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA3_224.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f224_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha3_224_init</strong> <em>(struct sha3_224_ctx *<var>ctx</var>)</em><a href='#index-sha3_005f224_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA3-224 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f224_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha3_224_update</strong> <em>(struct sha3_224_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha3_005f224_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f224_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha3_224_digest</strong> <em>(struct sha3_224_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f224_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA3_224_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA3_002d256">
+<h4 class="subsubsection">7.1.1.6 <acronym>SHA3-256</acronym></h4>
+
+<p>This is SHA3 with 256-bit output size, and possibly the most useful
+of the SHA3 hash functions.
+</p>
+<p>Nettle defines SHA3-256 in <samp>&lt;nettle/sha3.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sha3_005f256_005fctx"><span class="category">Context struct: </span><span><strong>struct sha3_256_ctx</strong><a href='#index-struct-sha3_005f256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f256_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_256_DIGEST_SIZE</strong><a href='#index-SHA3_005f256_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA3_256 digest, i.e., 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f256_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_256_BLOCK_SIZE</strong><a href='#index-SHA3_005f256_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA3_256.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha3_256_init</strong> <em>(struct sha3_256_ctx *<var>ctx</var>)</em><a href='#index-sha3_005f256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA3-256 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha3_256_update</strong> <em>(struct sha3_256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha3_005f256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha3_256_digest</strong> <em>(struct sha3_256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA3_256_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA3_002d384">
+<h4 class="subsubsection">7.1.1.7 <acronym>SHA3-384</acronym></h4>
+
+<p>This is SHA3 with 384-bit output size.
+</p>
+<p>Nettle defines SHA3-384 in <samp>&lt;nettle/sha3.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sha3_005f384_005fctx"><span class="category">Context struct: </span><span><strong>struct sha3_384_ctx</strong><a href='#index-struct-sha3_005f384_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f384_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_384_DIGEST_SIZE</strong><a href='#index-SHA3_005f384_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA3_384 digest, i.e., 48.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f384_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_384_BLOCK_SIZE</strong><a href='#index-SHA3_005f384_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA3_384.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f384_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha3_384_init</strong> <em>(struct sha3_384_ctx *<var>ctx</var>)</em><a href='#index-sha3_005f384_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA3-384 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f384_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha3_384_update</strong> <em>(struct sha3_384_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha3_005f384_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f384_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha3_384_digest</strong> <em>(struct sha3_384_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f384_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA3_384_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA3_002d512">
+<h4 class="subsubsection">7.1.1.8 <acronym>SHA3-512</acronym></h4>
+
+<p>This is SHA3 with 512-bit output size.
+</p>
+<p>Nettle defines SHA3-512 in <samp>&lt;nettle/sha3.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sha3_005f512_005fctx"><span class="category">Context struct: </span><span><strong>struct sha3_512_ctx</strong><a href='#index-struct-sha3_005f512_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f512_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_512_DIGEST_SIZE</strong><a href='#index-SHA3_005f512_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA3_512 digest, i.e. 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA3_005f512_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA3_512_BLOCK_SIZE</strong><a href='#index-SHA3_005f512_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA3_512.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f512_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha3_512_init</strong> <em>(struct sha3_512_ctx *<var>ctx</var>)</em><a href='#index-sha3_005f512_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA3-512 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f512_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha3_512_update</strong> <em>(struct sha3_512_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha3_005f512_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f512_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha3_512_digest</strong> <em>(struct sha3_512_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f512_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA3_512_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHAKE">
+<h4 class="subsubsection">7.1.1.9 <acronym>SHAKE</acronym></h4>
+<span id="index-SHAKE"></span>
+
+<p>In addition to those SHA-3 hash functions, Nettle also supports a
+SHA-3 extendable-output function (XOF) called SHAKE. Unlike hash
+functions, SHAKE can produce an output digest of any desired
+length. There are two variants, SHAKE-128 and SHAKE-256, with
+different security strengths in terms of collision or preimage
+resistance: SHAKE-128 internally uses a SHA-3 hash function with
+128-bit security, while SHAKE-256 corresponds to SHA3-256 which
+provides 256-bit security.
+</p>
+<p>To use SHAKE, the context struct needs to be initialized with the
+<code>init</code> function and data is hashed using the <code>update</code>
+function. Afterwards, a digest can be generated using either the
+<code>shake</code> or <code>shake_ouput</code> function, where the former
+generates the digest at once and resets the context, while the latter
+can be called multiple times to generate the digest in an incremental
+manner.
+</p>
+<p>For SHAKE-128 they are defined as follows.
+</p>
+<dl class="def">
+<dt id="index-struct-sha3_005f128_005fctx"><span class="category">Context struct: </span><span><strong>struct sha3_128_ctx</strong><a href='#index-struct-sha3_005f128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-sha3_005f128_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha3_128_init</strong> <em>(struct sha3_128_ctx *<var>ctx</var>)</em><a href='#index-sha3_005f128_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA3-256 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha3_128_update</strong> <em>(struct sha3_128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha3_005f128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f128_005fshake"><span class="category">Function: </span><span><em>void</em> <strong>sha3_128_shake</strong> <em>(struct sha3_128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f128_005fshake' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and produces a SHAKE-128 digest, writing it
+to <var>digest</var>. <var>length</var> can be of arbitrary size.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f128_005fshake_005foutput"><span class="category">Function: </span><span><em>void</em> <strong>sha3_128_shake_output</strong> <em>(struct sha3_128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f128_005fshake_005foutput' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and produces a SHAKE-128 digest, writing it
+to <var>digest</var>. <var>length</var> can be of arbitrary size.
+</p>
+<p>This function does not reset the context.
+</p></dd></dl>
+
+<p>For SHAKE-256, the corresponding context struct and the <code>init</code>
+and <code>update</code> functions are the same as SHA3-256. To generate a
+digest, use either the <code>shake</code> or <code>shake_output</code> function.
+</p>
+<dl class="def">
+<dt id="index-sha3_005f256_005fshake"><span class="category">Function: </span><span><em>void</em> <strong>sha3_256_shake</strong> <em>(struct sha3_256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f256_005fshake' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and produces a SHAKE-256 digest, writing it
+to <var>digest</var>. <var>length</var> can be of arbitrary size.
+</p>
+<p>This function also resets the context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha3_005f256_005fshake_005foutput"><span class="category">Function: </span><span><em>void</em> <strong>sha3_256_shake_output</strong> <em>(struct sha3_256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha3_005f256_005fshake_005foutput' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and produces a SHAKE-256 digest, writing it
+to <var>digest</var>. <var>length</var> can be of arbitrary size.
+</p>
+<p>This function does not reset the context.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="Miscellaneous-hash-functions">
+<div class="header">
+<p>
+Next: <a href="#Legacy-hash-functions" accesskey="n" rel="next">Legacy hash functions</a>, Previous: <a href="#Recommended-hash-functions" accesskey="p" rel="prev">Recommended hash functions</a>, Up: <a href="#Hash-functions" accesskey="u" rel="up">Hash functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Miscellaneous-hash-functions-1"></span><h4 class="subsection">7.1.2 Miscellaneous hash functions</h4>
+
+<ul class="section-toc">
+<li><a href="#STREEBOG512" accesskey="1"><acronym>STREEBOG512</acronym></a></li>
+<li><a href="#STREEBOG256" accesskey="2"><acronym>STREEBOG256</acronym></a></li>
+<li><a href="#SM3" accesskey="3"><acronym>SM3</acronym></a></li>
+</ul>
+<div class="subsubsection" id="STREEBOG512">
+<h4 class="subsubsection">7.1.2.1 <acronym>STREEBOG512</acronym></h4>
+
+<p>STREEBOG512 is a member of the Streebog (GOST R 34.11-2012) family. It outputs
+hash values of 512 bits, or 64 octets. Nettle defines STREEBOG512 in
+<samp>&lt;nettle/streebog.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-streebog512_005fctx"><span class="category">Context struct: </span><span><strong>struct streebog512_ctx</strong><a href='#index-struct-streebog512_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-STREEBOG512_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>STREEBOG512_DIGEST_SIZE</strong><a href='#index-STREEBOG512_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a STREEBOG512 digest, i.e. 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-STREEBOG512_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>STREEBOG512_BLOCK_SIZE</strong><a href='#index-STREEBOG512_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of STREEBOG512. Useful for some special constructions,
+in particular HMAC-STREEBOG512.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog512_005finit"><span class="category">Function: </span><span><em>void</em> <strong>streebog512_init</strong> <em>(struct streebog512_ctx *<var>ctx</var>)</em><a href='#index-streebog512_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the STREEBOG512 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog512_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>streebog512_update</strong> <em>(struct streebog512_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-streebog512_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog512_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>streebog512_digest</strong> <em>(struct streebog512_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-streebog512_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>STREEBOG512_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>streebog512_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="STREEBOG256">
+<h4 class="subsubsection">7.1.2.2 <acronym>STREEBOG256</acronym></h4>
+
+<p>STREEBOG256 is a variant of STREEBOG512, with a different initial state, and with
+the output truncated to 256 bits, or 32 octets. Nettle defines STREEBOG256 in
+<samp>&lt;nettle/streebog.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-streebog256_005fctx"><span class="category">Context struct: </span><span><strong>struct streebog256_ctx</strong><a href='#index-struct-streebog256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-STREEBOG256_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>STREEBOG256_DIGEST_SIZE</strong><a href='#index-STREEBOG256_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a STREEBOG256 digest, i.e. 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-STREEBOG256_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>STREEBOG256_BLOCK_SIZE</strong><a href='#index-STREEBOG256_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of STREEBOG256. Useful for some special constructions,
+in particular HMAC-STREEBOG256.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>streebog256_init</strong> <em>(struct streebog256_ctx *<var>ctx</var>)</em><a href='#index-streebog256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the STREEBOG256 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>streebog256_update</strong> <em>(struct streebog256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-streebog256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-streebog256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>streebog256_digest</strong> <em>(struct streebog256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-streebog256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>STREEBOG256_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>streebog256_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SM3">
+<h4 class="subsubsection">7.1.2.3 <acronym>SM3</acronym></h4>
+
+<p>SM3 is a cryptographic hash function standard adopted by the government of the
+People&rsquo;s Republic of China, which was issued by the Cryptography Standardization
+Technical Committee of China on December 17, 2010. The corresponding standard
+is GM/T 0004-2012 &quot;SM3 Cryptographic Hash Algorithm&quot;.
+</p>
+<p>SM3 algorithm is a hash algorithm in ShangMi cryptosystems. SM3 is mainly used
+for digital signature and verification, message authentication code generation
+and verification, random number generation, and the RFC 8998 specification
+defines the usage of ShangMi algorithm suite in TLS 1.3, etc. According to the
+State Cryptography Administration of China, its security and efficiency are
+equivalent to SHA-256.
+</p>
+<p>Nettle defines SM3 in <samp>&lt;nettle/sm3.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sm3_005fctx"><span class="category">Context struct: </span><span><strong>struct sm3_ctx</strong><a href='#index-struct-sm3_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SM3_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SM3_DIGEST_SIZE</strong><a href='#index-SM3_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SM3 digest, i.e. 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SM3_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SM3_BLOCK_SIZE</strong><a href='#index-SM3_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SM3. Useful for some special constructions,
+in particular HMAC-SM3.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm3_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sm3_init</strong> <em>(struct sm3_ctx *<var>ctx</var>)</em><a href='#index-sm3_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SM3 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm3_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sm3_update</strong> <em>(struct sm3_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sm3_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm3_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sm3_digest</strong> <em>(struct sm3_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sm3_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SM3_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>sm3_init</code>.
+</p></dd></dl>
+
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="Legacy-hash-functions">
+<div class="header">
+<p>
+Next: <a href="#nettle_005fhash-abstraction" accesskey="n" rel="next">The <code>struct nettle_hash</code> abstraction</a>, Previous: <a href="#Miscellaneous-hash-functions" accesskey="p" rel="prev">Miscellaneous hash functions</a>, Up: <a href="#Hash-functions" accesskey="u" rel="up">Hash functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Legacy-hash-functions-1"></span><h4 class="subsection">7.1.3 Legacy hash functions</h4>
+
+<p>The hash functions in this section all have some known weaknesses, and
+should be avoided for new applications. These hash functions are mainly
+useful for compatibility with old applications and protocols. Some are
+still considered safe as building blocks for particular constructions,
+e.g., there seems to be no known attacks against HMAC-SHA1 or even
+HMAC-MD5. In some important cases, use of a &ldquo;legacy&rdquo; hash function
+does not in itself make the application insecure; if a known weakness is
+relevant depends on how the hash function is used, and on the threat
+model.
+</p>
+<ul class="section-toc">
+<li><a href="#MD5" accesskey="1"><acronym>MD5</acronym></a></li>
+<li><a href="#MD2" accesskey="2"><acronym>MD2</acronym></a></li>
+<li><a href="#MD4" accesskey="3"><acronym>MD4</acronym></a></li>
+<li><a href="#RIPEMD160" accesskey="4"><acronym>RIPEMD160</acronym></a></li>
+<li><a href="#SHA1" accesskey="5"><acronym>SHA1</acronym></a></li>
+<li><a href="#GOSTHASH94-and-GOSTHASH94CP" accesskey="6"><acronym>GOSTHASH94 and GOSTHASH94CP</acronym></a></li>
+</ul>
+<div class="subsubsection" id="MD5">
+<h4 class="subsubsection">7.1.3.1 <acronym>MD5</acronym></h4>
+
+<p>MD5 is a message digest function constructed by Ronald Rivest, and
+described in <cite>RFC 1321</cite>. It outputs message digests of 128 bits, or
+16 octets. Nettle defines MD5 in <samp>&lt;nettle/md5.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-md5_005fctx"><span class="category">Context struct: </span><span><strong>struct md5_ctx</strong><a href='#index-struct-md5_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-MD5_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>MD5_DIGEST_SIZE</strong><a href='#index-MD5_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an MD5 digest, i.e. 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-MD5_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>MD5_BLOCK_SIZE</strong><a href='#index-MD5_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of MD5. Useful for some special constructions,
+in particular HMAC-MD5.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md5_005finit"><span class="category">Function: </span><span><em>void</em> <strong>md5_init</strong> <em>(struct md5_ctx *<var>ctx</var>)</em><a href='#index-md5_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the MD5 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md5_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>md5_update</strong> <em>(struct md5_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-md5_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md5_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>md5_digest</strong> <em>(struct md5_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-md5_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>MD5_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>md5_init</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md5_005fcompress"><span class="category">Function: </span><span><em>void</em> <strong>md5_compress</strong> <em>(const uint32_t *<var>state</var>, uint8_t *<var>input</var>)</em><a href='#index-md5_005fcompress' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Perform a raw MD5 compress on MD5_BLOCK_SIZE bytes from <var>input</var>
+using <var>state</var> as IV (an array of 4 uint32_t). The output is stored in <var>state</var>.
+This function provides access to the underlying compression function,
+for the rare applications that need that (e.g., using different IV from
+standard MD5).
+</p></dd></dl>
+
+<p>The normal way to use MD5 is to call the functions in order: First
+<code>md5_init</code>, then <code>md5_update</code> zero or more times, and finally
+<code>md5_digest</code>. After <code>md5_digest</code>, the context is reset to
+its initial state, so you can start over calling <code>md5_update</code> to
+hash new data.
+</p>
+<p>To start over, you can call <code>md5_init</code> at any time.
+</p>
+</div>
+<div class="subsubsection" id="MD2">
+<h4 class="subsubsection">7.1.3.2 <acronym>MD2</acronym></h4>
+
+<p>MD2 is another hash function of Ronald Rivest&rsquo;s, described in
+<cite>RFC 1319</cite>. It outputs message digests of 128 bits, or 16 octets.
+Nettle defines MD2 in <samp>&lt;nettle/md2.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-md2_005fctx"><span class="category">Context struct: </span><span><strong>struct md2_ctx</strong><a href='#index-struct-md2_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-MD2_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>MD2_DIGEST_SIZE</strong><a href='#index-MD2_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an MD2 digest, i.e. 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-MD2_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>MD2_BLOCK_SIZE</strong><a href='#index-MD2_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of MD2.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md2_005finit"><span class="category">Function: </span><span><em>void</em> <strong>md2_init</strong> <em>(struct md2_ctx *<var>ctx</var>)</em><a href='#index-md2_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the MD2 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md2_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>md2_update</strong> <em>(struct md2_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-md2_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md2_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>md2_digest</strong> <em>(struct md2_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-md2_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>MD2_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>md2_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="MD4">
+<h4 class="subsubsection">7.1.3.3 <acronym>MD4</acronym></h4>
+
+<p>MD4 is a predecessor of MD5, described in <cite>RFC 1320</cite>. Like MD5, it
+is constructed by Ronald Rivest. It outputs message digests of 128 bits,
+or 16 octets. Nettle defines MD4 in <samp>&lt;nettle/md4.h&gt;</samp>. Use of MD4 is
+not recommended, but it is sometimes needed for compatibility with
+existing applications and protocols.
+</p>
+<dl class="def">
+<dt id="index-struct-md4_005fctx"><span class="category">Context struct: </span><span><strong>struct md4_ctx</strong><a href='#index-struct-md4_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-MD4_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>MD4_DIGEST_SIZE</strong><a href='#index-MD4_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an MD4 digest, i.e. 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-MD4_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>MD4_BLOCK_SIZE</strong><a href='#index-MD4_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of MD4.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md4_005finit"><span class="category">Function: </span><span><em>void</em> <strong>md4_init</strong> <em>(struct md4_ctx *<var>ctx</var>)</em><a href='#index-md4_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the MD4 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md4_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>md4_update</strong> <em>(struct md4_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-md4_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-md4_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>md4_digest</strong> <em>(struct md4_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-md4_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>MD4_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>md4_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="RIPEMD160">
+<h4 class="subsubsection">7.1.3.4 <acronym>RIPEMD160</acronym></h4>
+
+<p>RIPEMD160 is a hash function designed by Hans Dobbertin, Antoon
+Bosselaers, and Bart Preneel, as a strengthened version of RIPEMD
+(which, like MD4 and MD5, fails the collision-resistance requirement).
+It produces message digests of 160 bits, or 20 octets. Nettle defined
+RIPEMD160 in <samp>nettle/ripemd160.h</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-ripemd160_005fctx"><span class="category">Context struct: </span><span><strong>struct ripemd160_ctx</strong><a href='#index-struct-ripemd160_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-RIPEMD160_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>RIPEMD160_DIGEST_SIZE</strong><a href='#index-RIPEMD160_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a RIPEMD160 digest, i.e. 20.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-RIPEMD160_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>RIPEMD160_BLOCK_SIZE</strong><a href='#index-RIPEMD160_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of RIPEMD160.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ripemd160_005finit"><span class="category">Function: </span><span><em>void</em> <strong>ripemd160_init</strong> <em>(struct ripemd160_ctx *<var>ctx</var>)</em><a href='#index-ripemd160_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the RIPEMD160 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ripemd160_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ripemd160_update</strong> <em>(struct ripemd160_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ripemd160_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ripemd160_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ripemd160_digest</strong> <em>(struct ripemd160_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ripemd160_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>RIPEMD160_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>ripemd160_init</code>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SHA1">
+<h4 class="subsubsection">7.1.3.5 <acronym>SHA1</acronym></h4>
+
+<p>SHA1 is a hash function specified by <em>NIST</em> (The U.S. National
+Institute for Standards and Technology). It outputs hash values of 160
+bits, or 20 octets. Nettle defines SHA1 in <samp>&lt;nettle/sha1.h&gt;</samp> (and
+in <samp>&lt;nettle/sha.h&gt;</samp>, for backwards compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-sha1_005fctx"><span class="category">Context struct: </span><span><strong>struct sha1_ctx</strong><a href='#index-struct-sha1_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SHA1_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SHA1_DIGEST_SIZE</strong><a href='#index-SHA1_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a SHA1 digest, i.e. 20.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SHA1_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SHA1_BLOCK_SIZE</strong><a href='#index-SHA1_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of SHA1. Useful for some special constructions,
+in particular HMAC-SHA1.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha1_005finit"><span class="category">Function: </span><span><em>void</em> <strong>sha1_init</strong> <em>(struct sha1_ctx *<var>ctx</var>)</em><a href='#index-sha1_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the SHA1 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha1_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>sha1_update</strong> <em>(struct sha1_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-sha1_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha1_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>sha1_digest</strong> <em>(struct sha1_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-sha1_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA1_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>sha1_init</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sha1_005fcompress"><span class="category">Function: </span><span><em>void</em> <strong>sha1_compress</strong> <em>(const uint32_t *<var>state</var>, uint8_t *<var>input</var>)</em><a href='#index-sha1_005fcompress' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Perform a raw SHA1 compress on SHA1_BLOCK_SIZE bytes from <var>input</var>
+using <var>state</var> as IV (an array of 5 uint32_t). The output is stored in <var>state</var>.
+This function provides access to the underlying compression function,
+for the rare applications that need that (e.g., using different IV from
+standard SHA1).
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="GOSTHASH94-and-GOSTHASH94CP">
+<h4 class="subsubsection">7.1.3.6 <acronym>GOSTHASH94 and GOSTHASH94CP</acronym></h4>
+<span id="index-GOST-hash"></span>
+
+<span id="GOSTHASH94CP"></span><p>The GOST94 or GOST R 34.11-94 hash algorithm is a Soviet-era algorithm
+used in Russian government standards (see <cite>RFC 4357</cite>).
+It outputs message digests of 256 bits, or 32 octets. The standard itself
+does not fix the S-box used by the hash algorith, so there are two popular
+variants (the testing S-box from the standard itself and the S-box defined
+by CryptoPro company, see RFC 4357). Nettle provides support for the former
+S-box in the form of GOSTHASH94 hash algorithm and for the latter in the
+form of GOSTHASH94CP hash algorithm.
+Nettle defines GOSTHASH94 and GOSTHASH94CP in <samp>&lt;nettle/gosthash94.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-gosthash94_005fctx"><span class="category">Context struct: </span><span><strong>struct gosthash94_ctx</strong><a href='#index-struct-gosthash94_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-GOSTHASH94_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>GOSTHASH94_DIGEST_SIZE</strong><a href='#index-GOSTHASH94_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a GOSTHASH94 digest, i.e. 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GOSTHASH94_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>GOSTHASH94_BLOCK_SIZE</strong><a href='#index-GOSTHASH94_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of GOSTHASH94, i.e., 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94_005finit"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94_init</strong> <em>(struct gosthash94_ctx *<var>ctx</var>)</em><a href='#index-gosthash94_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the GOSTHASH94 state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94_update</strong> <em>(struct gosthash94_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gosthash94_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94_digest</strong> <em>(struct gosthash94_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gosthash94_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>GOSTHASH94_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>gosthash94_init</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-gosthash94cp_005fctx"><span class="category">Context struct: </span><span><strong>struct gosthash94cp_ctx</strong><a href='#index-struct-gosthash94cp_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-GOSTHASH94CP_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>GOSTHASH94CP_DIGEST_SIZE</strong><a href='#index-GOSTHASH94CP_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a GOSTHASH94CP digest, i.e. 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GOSTHASH94CP_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>GOSTHASH94CP_BLOCK_SIZE</strong><a href='#index-GOSTHASH94CP_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of GOSTHASH94CP, i.e., 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94cp_005finit"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94cp_init</strong> <em>(struct gosthash94cp_ctx *<var>ctx</var>)</em><a href='#index-gosthash94cp_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the GOSTHASH94CP state.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94cp_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94cp_update</strong> <em>(struct gosthash94cp_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gosthash94cp_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Hash some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gosthash94cp_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gosthash94cp_digest</strong> <em>(struct gosthash94cp_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gosthash94cp_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Performs final processing and extracts the message digest, writing it
+to <var>digest</var>. <var>length</var> may be smaller than
+<code>GOSTHASH94CP_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the digest are written.
+</p>
+<p>This function also resets the context in the same way as
+<code>gosthash94cp_init</code>.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="nettle_005fhash-abstraction">
+<div class="header">
+<p>
+Previous: <a href="#Legacy-hash-functions" accesskey="p" rel="prev">Legacy hash functions</a>, Up: <a href="#Hash-functions" accesskey="u" rel="up">Hash functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="The-struct-nettle_005fhash-abstraction"></span><h4 class="subsection">7.1.4 The <code>struct nettle_hash</code> abstraction</h4>
+<span id="index-nettle_005fhash"></span>
+
+<p>Nettle includes a struct including information about the supported hash
+functions. It is defined in <samp>&lt;nettle/nettle-meta.h&gt;</samp>, and is used
+by Nettle&rsquo;s implementation of <acronym>HMAC</acronym> (see <a href="#Keyed-hash-functions">Keyed Hash Functions</a>).
+</p>
+<dl class="def">
+<dt id="index-struct-nettle_005fhash"><span class="category">Meta struct: </span><span><strong><code>struct nettle_hash</code></strong> <em>name context_size digest_size block_size init update digest</em><a href='#index-struct-nettle_005fhash' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The last three attributes are function pointers, of types
+<code>nettle_hash_init_func *</code>, <code>nettle_hash_update_func *</code>, and
+<code>nettle_hash_digest_func *</code>. The first argument to these functions is
+<code>void *</code> pointer to a context struct, which is of size
+<code>context_size</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005fmd2"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_md2</strong><a href='#index-nettle_005fmd2' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fmd4"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_md4</strong><a href='#index-nettle_005fmd4' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fmd5"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_md5</strong><a href='#index-nettle_005fmd5' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fripemd160"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_ripemd160</strong><a href='#index-nettle_005fripemd160' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha1"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha1</strong><a href='#index-nettle_005fsha1' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha224"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha224</strong><a href='#index-nettle_005fsha224' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha256"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha256</strong><a href='#index-nettle_005fsha256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha384"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha384</strong><a href='#index-nettle_005fsha384' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha512"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha512</strong><a href='#index-nettle_005fsha512' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsha3_005f256"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sha3_256</strong><a href='#index-nettle_005fsha3_005f256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgosthash94"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_gosthash94</strong><a href='#index-nettle_005fgosthash94' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgosthash94cp"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_gosthash94cp</strong><a href='#index-nettle_005fgosthash94cp' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fsm3"><span class="category">Constant Struct: </span><span><em>struct nettle_hash</em> <strong>nettle_sm3</strong><a href='#index-nettle_005fsm3' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are all the hash functions that Nettle implements.
+</p></dd></dl>
+
+<p>Nettle also exports a list of all these hashes.
+</p>
+<dl class="def">
+<dt id="index-nettle_005fget_005fhashes"><span class="category">Function: </span><span><em>const struct nettle_hash **</em> <strong>nettle_get_hashes</strong> <em>(void)</em><a href='#index-nettle_005fget_005fhashes' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns a NULL-terminated list of pointers to supported hash functions.
+This list can be used to dynamically enumerate or search the supported
+algorithms.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005fhashes"><span class="category">Macro: </span><span><strong>nettle_hashes</strong><a href='#index-nettle_005fhashes' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A macro expanding to a call to nettle_get_hashes, so that one could
+write, e.g., <code>nettle_hashes[0]-&gt;name</code> for the name of the first
+hash function on the list. In earlier versions, this was not a macro but
+the actual array of pointers. However, referring directly to the array
+makes the array size leak into the ABI in some cases.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="section" id="Cipher-functions">
+<div class="header">
+<p>
+Next: <a href="#Cipher-modes" accesskey="n" rel="next">Cipher modes</a>, Previous: <a href="#Hash-functions" accesskey="p" rel="prev">Hash functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Cipher-functions-1"></span><h3 class="section">7.2 Cipher functions</h3>
+<span id="index-Cipher"></span>
+
+<p>A <em>cipher</em> is a function that takes a message or <em>plaintext</em>
+and a secret <em>key</em> and transforms it to a <em>ciphertext</em>. Given
+only the ciphertext, but not the key, it should be hard to find the
+plaintext. Given matching pairs of plaintext and ciphertext, it should
+be hard to find the key.
+</p>
+<span id="index-Block-Cipher"></span>
+<span id="index-Stream-Cipher"></span>
+
+<p>There are two main classes of ciphers: Block ciphers and stream ciphers.
+</p>
+<p>A block cipher can process data only in fixed size chunks, called
+<em>blocks</em>. Typical block sizes are 8 or 16 octets. To encrypt
+arbitrary messages, you usually have to pad it to an integral number of
+blocks, split it into blocks, and then process each block. The simplest
+way is to process one block at a time, independent of each other. That
+mode of operation is called <em>ECB</em>, Electronic Code Book mode.
+However, using <acronym>ECB</acronym> is usually a bad idea. For a start, plaintext blocks
+that are equal are transformed to ciphertext blocks that are equal; that
+leaks information about the plaintext. Usually you should apply the
+cipher is some &ldquo;feedback mode&rdquo;, <em>CBC</em> (Cipher Block Chaining) and
+<em>CTR</em> (Counter mode) being two of
+of the most popular. See See <a href="#Cipher-modes">Cipher modes</a>, for information on
+how to apply <acronym>CBC</acronym> and <acronym>CTR</acronym> with Nettle.
+</p>
+<p>A stream cipher can be used for messages of arbitrary length. A typical
+stream cipher is a keyed pseudo-random generator. To encrypt a plaintext
+message of <var>n</var> octets, you key the generator, generate <var>n</var>
+octets of pseudo-random data, and XOR it with the plaintext. To decrypt,
+regenerate the same stream using the key, XOR it to the ciphertext, and
+the plaintext is recovered.
+</p>
+<p><strong>Caution:</strong> The first rule for this kind of cipher is the
+same as for a One Time Pad: <em>never</em> ever use the same key twice.
+</p>
+<p>A common misconception is that encryption, by itself, implies
+authentication. Say that you and a friend share a secret key, and you
+receive an encrypted message. You apply the key, and get a plaintext
+message that makes sense to you. Can you then be sure that it really was
+your friend that wrote the message you&rsquo;re reading? The answer is no. For
+example, if you were using a block cipher in ECB mode, an attacker may
+pick up the message on its way, and reorder, delete or repeat some of
+the blocks. Even if the attacker can&rsquo;t decrypt the message, he can
+change it so that you are not reading the same message as your friend
+wrote. If you are using a block cipher in <acronym>CBC</acronym> mode rather than
+ECB, or are using a stream cipher, the possibilities for this sort of
+attack are different, but the attacker can still make predictable
+changes to the message.
+</p>
+<p>It is recommended to <em>always</em> use an authentication mechanism in
+addition to encrypting the messages. Popular choices are Message
+Authentication Codes like <acronym>HMAC-SHA1</acronym> (see <a href="#Keyed-hash-functions">Keyed Hash Functions</a>), or digital signatures like <acronym>RSA</acronym>.
+</p>
+<p>Some ciphers have so called &ldquo;weak keys&rdquo;, keys that results in
+undesirable structure after the key setup processing, and should be
+avoided. In Nettle, most key setup functions have no return value, but
+for ciphers with weak keys, the return value indicates whether or not
+the given key is weak. For good keys, key setup returns 1, and for weak
+keys, it returns 0. When possible, avoid algorithms that
+have weak keys. There are several good ciphers that don&rsquo;t have any weak
+keys.
+</p>
+<p>To encrypt a message, you first initialize a cipher context for
+encryption or decryption with a particular key. You then use the context
+to process plaintext or ciphertext messages. The initialization is known
+as <em>key setup</em>. With Nettle, it is recommended to use each
+context struct for only one direction, even if some of the ciphers use a
+single key setup function that can be used for both encryption and
+decryption.
+</p>
+
+<ul class="section-toc">
+<li><a href="#AES" accesskey="1">AES</a></li>
+<li><a href="#Arcfour" accesskey="2">Arcfour</a></li>
+<li><a href="#Arctwo" accesskey="3">Arctwo</a></li>
+<li><a href="#Blowfish" accesskey="4">Blowfish</a></li>
+<li><a href="#Camellia" accesskey="5">Camellia</a></li>
+<li><a href="#CAST128" accesskey="6">CAST128</a></li>
+<li><a href="#ChaCha" accesskey="7">ChaCha</a></li>
+<li><a href="#DES" accesskey="8">DES</a></li>
+<li><a href="#DES3" accesskey="9">DES3</a></li>
+<li><a href="#Salsa20">Salsa20</a></li>
+<li><a href="#Serpent">Serpent</a></li>
+<li><a href="#SM4">SM4</a></li>
+<li><a href="#Twofish">Twofish</a></li>
+<li><a href="#nettle_005fcipher-abstraction">The <code>struct nettle_cipher</code> abstraction</a></li>
+</ul>
+<hr>
+<div class="subsection" id="AES">
+<div class="header">
+<p>
+Next: <a href="#Arcfour" accesskey="n" rel="next">Arcfour</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="AES-1"></span><h4 class="subsection">7.2.1 AES</h4>
+<span id="index-AES"></span>
+
+<p>AES is a block cipher, specified by NIST as a replacement for
+the older DES standard. The standard is the result of a competition
+between cipher designers. The winning design, also known as RIJNDAEL,
+was constructed by Joan Daemen and Vincent Rijnmen.
+</p>
+<p>Like all the AES candidates, the winning design uses a block size of 128
+bits, or 16 octets, and three possible key-size, 128, 192 and 256 bits
+(16, 24 and 32 octets) being the allowed key sizes. It does not have any
+weak keys. Nettle defines AES in <samp>&lt;nettle/aes.h&gt;</samp>, and there is one
+context struct for each key size. (Earlier versions of Nettle used a
+single context struct, <code>struct aes_ctx</code>, for all key sizes. This
+interface kept for backwards compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-aes128_005fctx"><span class="category">Context struct: </span><span><strong>struct aes128_ctx</strong><a href='#index-struct-aes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-aes192_005fctx"><span class="category">Context struct: </span><span><strong>struct aes192_ctx</strong><a href='#index-struct-aes192_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-aes256_005fctx"><span class="category">Context struct: </span><span><strong>struct aes256_ctx</strong><a href='#index-struct-aes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-struct-aes_005fctx"><span class="category">Context struct: </span><span><strong>struct aes_ctx</strong><a href='#index-struct-aes_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Alternative struct, for the old AES interface.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-AES_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>AES_BLOCK_SIZE</strong><a href='#index-AES_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The AES block-size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-AES128_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES128_KEY_SIZE</strong><a href='#index-AES128_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-AES192_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES192_KEY_SIZE</strong><a href='#index-AES192_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-AES256_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES256_KEY_SIZE</strong><a href='#index-AES256_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-AES_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES_MIN_KEY_SIZE</strong><a href='#index-AES_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-AES_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES_MAX_KEY_SIZE</strong><a href='#index-AES_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-AES_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>AES_KEY_SIZE</strong><a href='#index-AES_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default AES key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-aes128_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes128_set_encrypt_key</strong> <em>(struct aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes128_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes128_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes128_set_decrypt_key</strong> <em>(struct aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes128_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes192_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes192_set_encrypt_key</strong> <em>(struct aes192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes192_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes192_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes192_set_decrypt_key</strong> <em>(struct aes192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes192_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes256_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes256_set_encrypt_key</strong> <em>(struct aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes256_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes256_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes256_set_decrypt_key</strong> <em>(struct aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes256_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes_set_encrypt_key</strong> <em>(struct aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes_set_decrypt_key</strong> <em>(struct aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-aes_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher, for encryption or decryption, respectively.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-aes128_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes128_invert_key</strong> <em>(struct aes128_ctx *<var>dst</var>, const struct aes128_ctx *<var>src</var>)</em><a href='#index-aes128_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes192_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes192_invert_key</strong> <em>(struct aes192_ctx *<var>dst</var>, const struct aes192_ctx *<var>src</var>)</em><a href='#index-aes192_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes256_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes256_invert_key</strong> <em>(struct aes256_ctx *<var>dst</var>, const struct aes256_ctx *<var>src</var>)</em><a href='#index-aes256_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>aes_invert_key</strong> <em>(struct aes_ctx *<var>dst</var>, const struct aes_ctx *<var>src</var>)</em><a href='#index-aes_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Given a context <var>src</var> initialized for encryption, initializes the
+context struct <var>dst</var> for decryption, using the same key. If the same
+context struct is passed for both <code>src</code> and <code>dst</code>, it is
+converted in place. These functions are mainly useful for applications
+which needs to both encrypt and decrypt using the <em>same</em> key,
+because calling, e.g., <code>aes128_set_encrypt_key</code> and
+<code>aes128_invert_key</code>, is more efficient than calling
+<code>aes128_set_encrypt_key</code> and <code>aes128_set_decrypt_key</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-aes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes128_encrypt</strong> <em>(struct aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes192_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes192_encrypt</strong> <em>(struct aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes192_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes256_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes256_encrypt</strong> <em>(struct aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes_encrypt</strong> <em>(struct aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-aes128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes128_decrypt</strong> <em>(struct aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes192_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes192_decrypt</strong> <em>(struct aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes192_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes256_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes256_decrypt</strong> <em>(struct aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes256_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-aes_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>aes_decrypt</strong> <em>(struct aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-aes_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to the encryption functions above.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Arcfour">
+<div class="header">
+<p>
+Next: <a href="#Arctwo" accesskey="n" rel="next">Arctwo</a>, Previous: <a href="#AES" accesskey="p" rel="prev">AES</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Arcfour-1"></span><h4 class="subsection">7.2.2 Arcfour</h4>
+<span id="index-Arcfour"></span>
+<span id="index-RC4"></span>
+
+<p>ARCFOUR is a historic stream cipher, also known under the trade marked
+name RC4, and was a widely used fast stream cipher.
+</p>
+<p>We do not recommend the use of ARCFOUR; the Nettle implementation is
+provided primarily for interoperability with existing applications and
+standards.
+</p>
+<p>One problem is that the key setup of ARCFOUR is quite weak, you should
+never use keys with structure, keys that are ordinary passwords, or
+sequences of keys like &ldquo;secret:1&rdquo;, &ldquo;secret:2&rdquo;, <small class="enddots">...</small>. If you
+have keys that don&rsquo;t look like random bit strings, and you want to use
+ARCFOUR, always hash the key before feeding it to ARCFOUR.
+</p>
+<p>Another problem is that the output is distinguishable from random data,
+and that the initial bytes of the generated key stream leak information
+about the key; for this reason, it was sometimes recommended to discard
+the first 512, 768 or 1024 bytes of the key stream.
+</p>
+<div class="example">
+<pre class="example">/* A more robust key setup function for ARCFOUR */
+void
+arcfour_set_key_hashed(struct arcfour_ctx *ctx,
+ size_t length, const uint8_t *key)
+{
+ struct sha256_ctx hash;
+ uint8_t digest[SHA256_DIGEST_SIZE];
+ uint8_t buffer[0x200];
+
+ sha256_init(&amp;hash);
+ sha256_update(&amp;hash, length, key);
+ sha256_digest(&amp;hash, SHA256_DIGEST_SIZE, digest);
+
+ arcfour_set_key(ctx, SHA256_DIGEST_SIZE, digest);
+ arcfour_crypt(ctx, sizeof(buffer), buffer, buffer);
+}
+</pre></div>
+
+<p>Nettle defines ARCFOUR in <samp>&lt;nettle/arcfour.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-arcfour_005fctx"><span class="category">Context struct: </span><span><strong>struct arcfour_ctx</strong><a href='#index-struct-arcfour_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-ARCFOUR_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCFOUR_MIN_KEY_SIZE</strong><a href='#index-ARCFOUR_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Minimum key size, 1.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ARCFOUR_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCFOUR_MAX_KEY_SIZE</strong><a href='#index-ARCFOUR_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Maximum key size, 256.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ARCFOUR_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCFOUR_KEY_SIZE</strong><a href='#index-ARCFOUR_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default ARCFOUR key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-arcfour_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>arcfour_set_key</strong> <em>(struct arcfour_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-arcfour_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-arcfour_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>arcfour_crypt</strong> <em>(struct arcfour_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-arcfour_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypt some data. The same function is used for both encryption and
+decryption. Unlike the block ciphers, this function modifies the
+context, so you can split the data into arbitrary chunks and encrypt
+them one after another. The result is the same as if you had called
+<code>arcfour_crypt</code> only once with all the data.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Arctwo">
+<div class="header">
+<p>
+Next: <a href="#Blowfish" accesskey="n" rel="next">Blowfish</a>, Previous: <a href="#Arcfour" accesskey="p" rel="prev">Arcfour</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Arctwo-1"></span><h4 class="subsection">7.2.3 Arctwo</h4>
+<span id="index-Arctwo"></span>
+<span id="index-RC2"></span>
+
+<p>ARCTWO (also known as the trade marked name RC2) is a block cipher
+specified in RFC 2268. Nettle also include a variation of the ARCTWO
+set key operation that lack one step, to be compatible with the
+reverse engineered RC2 cipher description, as described in a Usenet
+post to <code>sci.crypt</code> by Peter Gutmann.
+</p>
+<p>ARCTWO uses a block size of 64 bits, and variable key-size ranging
+from 1 to 128 octets. Besides the key, ARCTWO also has a second
+parameter to key setup, the number of effective key bits, <code>ekb</code>.
+This parameter can be used to artificially reduce the key size. In
+practice, <code>ekb</code> is usually set equal to the input key size.
+Nettle defines ARCTWO in <samp>&lt;nettle/arctwo.h&gt;</samp>.
+</p>
+<p>We do not recommend the use of ARCTWO; the Nettle implementation is
+provided primarily for interoperability with existing applications and
+standards.
+</p>
+<dl class="def">
+<dt id="index-struct-arctwo_005fctx"><span class="category">Context struct: </span><span><strong>struct arctwo_ctx</strong><a href='#index-struct-arctwo_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-ARCTWO_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>ARCTWO_BLOCK_SIZE</strong><a href='#index-ARCTWO_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The ARCTWO block-size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ARCTWO_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCTWO_MIN_KEY_SIZE</strong><a href='#index-ARCTWO_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-ARCTWO_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCTWO_MAX_KEY_SIZE</strong><a href='#index-ARCTWO_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-ARCTWO_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ARCTWO_KEY_SIZE</strong><a href='#index-ARCTWO_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default ARCTWO key size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-arctwo_005fset_005fkey_005fekb"><span class="category">Function: </span><span><em>void</em> <strong>arctwo_set_key_ekb</strong> <em>(struct arctwo_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>, unsigned <var>ekb</var>)</em><a href='#index-arctwo_005fset_005fkey_005fekb' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-arctwo_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>arctwo_set_key</strong> <em>(struct arctwo_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-arctwo_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-arctwo_005fset_005fkey_005fgutmann"><span class="category">Function: </span><span><em>void</em> <strong>arctwo_set_key_gutmann</strong> <em>(struct arctwo_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-arctwo_005fset_005fkey_005fgutmann' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption
+and decryption. The first function is the most general one, which lets
+you provide both the variable size key, and the desired effective key
+size (in bits). The maximum value for <var>ekb</var> is 1024, and for
+convenience, <code>ekb = 0</code> has the same effect as <code>ekb = 1024</code>.
+</p>
+<p><code>arctwo_set_key(ctx, length, key)</code> is equivalent to
+<code>arctwo_set_key_ekb(ctx, length, key, 8*length)</code>, and
+<code>arctwo_set_key_gutmann(ctx, length, key)</code> is equivalent to
+<code>arctwo_set_key_ekb(ctx, length, key, 1024)</code>
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-arctwo_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>arctwo_encrypt</strong> <em>(struct arctwo_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-arctwo_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not
+overlap in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-arctwo_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>arctwo_decrypt</strong> <em>(struct arctwo_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-arctwo_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>arctwo_encrypt</code>
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Blowfish">
+<div class="header">
+<p>
+Next: <a href="#Camellia" accesskey="n" rel="next">Camellia</a>, Previous: <a href="#Arctwo" accesskey="p" rel="prev">Arctwo</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Blowfish-1"></span><h4 class="subsection">7.2.4 Blowfish</h4>
+<span id="index-Blowfish"></span>
+
+<p>BLOWFISH is a block cipher designed by Bruce Schneier. It uses a block
+size of 64 bits (8 octets), and a variable key size, up to 448 bits. It
+has some weak keys. Nettle defines BLOWFISH in <samp>&lt;nettle/blowfish.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-blowfish_005fctx"><span class="category">Context struct: </span><span><strong>struct blowfish_ctx</strong><a href='#index-struct-blowfish_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-BLOWFISH_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>BLOWFISH_BLOCK_SIZE</strong><a href='#index-BLOWFISH_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The BLOWFISH block-size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BLOWFISH_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>BLOWFISH_MIN_KEY_SIZE</strong><a href='#index-BLOWFISH_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Minimum BLOWFISH key size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BLOWFISH_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>BLOWFISH_MAX_KEY_SIZE</strong><a href='#index-BLOWFISH_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Maximum BLOWFISH key size, 56.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BLOWFISH_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>BLOWFISH_KEY_SIZE</strong><a href='#index-BLOWFISH_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default BLOWFISH key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-blowfish_005fset_005fkey"><span class="category">Function: </span><span><em>int</em> <strong>blowfish_set_key</strong> <em>(struct blowfish_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-blowfish_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption. Checks for weak keys, returning 1
+for good keys and 0 for weak keys. Applications that don&rsquo;t care about
+weak keys can ignore the return value.
+</p>
+<p><code>blowfish_encrypt</code> or <code>blowfish_decrypt</code> with a weak key will
+crash with an assert violation.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-blowfish_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>blowfish_encrypt</strong> <em>(struct blowfish_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-blowfish_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-blowfish_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>blowfish_decrypt</strong> <em>(struct blowfish_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-blowfish_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>blowfish_encrypt</code>
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-blowfish_005fbcrypt_005fhash"><span class="category">Function: </span><span><em>int</em> <strong>blowfish_bcrypt_hash</strong> <em>(char *<var>dst</var>, size_t <var>lenkey</var>, const char *<var>key</var>, size_t <var>lenscheme</var>, const char *<var>scheme</var>, int <var>log2rounds</var>, const uint8_t *<var>salt</var>)</em><a href='#index-blowfish_005fbcrypt_005fhash' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Compute the bcrypt password hash.
+The function will return <code>0</code> if the hash cannot be computed
+due to invalid input.
+The function will return <code>1</code> and store the computed hash
+in the array pointed to by <var>dst</var>. The hash is computed based
+on the chosen <var>scheme</var>, number of rounds <var>log2rounds</var> and
+specified <var>salt</var>.
+</p>
+<p><var>dst</var> must point to a character array of at least
+ <code>BLOWFISH_BCRYPT_HASH_SIZE</code> bytes.
+</p>
+<p><var>key</var> contains the plaintext password string of size <var>lenkey</var>.
+</p>
+<p><var>scheme</var> is of size <var>lenscheme</var> and contains either just the
+chosen scheme (valid schemes
+are: <code>2a</code>, <code>2b</code>, <code>2x</code> or <code>2y</code>), or
+(the prefix of) an existing hashed password (typically <code>$2b$10$...</code>).
+</p>
+<p><var>log2rounds</var> contains the log2 of the number of encryption rounds
+that must be used to compute the hash. If it is <code>-1</code> the value
+will be extracted from <var>scheme</var>.
+</p>
+<p><var>salt</var> should point to an array of <code>BLOWFISH_BCRYPT_BINSALT_SIZE</code>
+random bytes to be used to perturb the hash computation. If it is <code>NULL</code>
+the salt will be extracted from <var>scheme</var>.
+</p>
+<p>Sample code to generate a bcrypt hash:
+</p><div class="example">
+<pre class="example">char password[] = &quot;ExamplePassword&quot;;
+char scheme[] = &quot;2b&quot;;
+uint8_t salt[BLOWFISH_BCRYPT_BINSALT_SIZE];
+&hellip;
+/* Make sure that salt is filled with random bytes */
+&hellip;
+char hash[BLOWFISH_BCRYPT_HASH_SIZE];
+int result = blowfish_bcrypt(hash,
+ sizeof(password) - 1, password,
+ sizeof(scheme) - 1, scheme, 10, salt);
+if (result)
+ printf(&quot;%s\n&quot;, hash);
+</pre></div>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-blowfish_005fbcrypt_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>blowfish_bcrypt_verify</strong> <em>(size_t <var>lenkey</var>, const char *<var>key</var>, size_t <var>lenhashed</var>, const char *<var>hashed</var>)</em><a href='#index-blowfish_005fbcrypt_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Verifies the bcrypt password hash against the supplied plaintext password.
+The function will return <code>0</code> if the password does not match.
+The function will return <code>1</code> if the password matches.
+</p>
+<p><var>key</var> contains the plaintext password string of size <var>lenkey</var>.
+</p>
+<p><var>hashed</var> contains the hashed string of size <var>lenhashed</var> to compare with.
+</p>
+<p>Sample code to verify a bcrypt hash:
+</p><div class="example">
+<pre class="example">char password[] = &quot;ExamplePassword&quot;;
+char hash[] =
+ &quot;$2y$&quot; /* Hash algorithm version */
+ &quot;10&quot; /* 2^10 hash rounds (strength) */
+ &quot;$&quot; /* separator */
+ &quot;1b2lPgo4XumibnJGN3r3sO&quot; /* base64 encoded 16-byte salt */
+ &quot;u7wE7xNfYDKlAxZffJDCJdVfFTAyevu&quot;; /* Hashedpart */
+if (blowfish_bcrypt_verify(sizeof(password) - 1, password,
+ sizeof(hash) - 1, hash))
+ printf(&quot;Password is correct.&quot;);
+else
+ printf(&quot;Password is incorrect.&quot;);
+</pre></div>
+</dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Camellia">
+<div class="header">
+<p>
+Next: <a href="#CAST128" accesskey="n" rel="next">CAST128</a>, Previous: <a href="#Blowfish" accesskey="p" rel="prev">Blowfish</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Camellia-1"></span><h4 class="subsection">7.2.5 Camellia</h4>
+<span id="index-Camellia"></span>
+
+<p>Camellia is a block cipher developed by Mitsubishi and Nippon Telegraph
+and Telephone Corporation, described in <cite>RFC3713</cite>. It is
+recommended by some Japanese and European authorities as an alternative
+to AES, and it is one of the selected algorithms in the New European
+Schemes for Signatures, Integrity and Encryption (NESSIE) project. The
+algorithm is patented. The implementation in Nettle is derived from the
+implementation released by NTT under the GNU LGPL (v2.1 or later), and
+relies on the implicit patent license of the LGPL. There is also a
+statement of royalty-free licensing for Camellia at
+<a href="https://www.ntt.co.jp/news/news01e/0104/010417.html">https://www.ntt.co.jp/news/news01e/0104/010417.html</a>, but this
+statement has some limitations which seem problematic for free software.
+</p>
+<p>Camellia uses a the same block size and key sizes as AES: The block size
+is 128 bits (16 octets), and the supported key sizes are 128, 192, and
+256 bits. The variants with 192 and 256 bit keys are identical, except
+for the key setup. Nettle defines Camellia in
+<samp>&lt;nettle/camellia.h&gt;</samp>, and there is one context struct for each key
+size. (Earlier versions of Nettle used a single context struct,
+<code>struct camellia_ctx</code>, for all key sizes. This interface kept for
+backwards compatibility).
+</p>
+<dl class="def">
+<dt id="index-struct-camellia128_005fctx"><span class="category">Context struct: </span><span><strong>struct camellia128_ctx</strong><a href='#index-struct-camellia128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-camellia192_005fctx"><span class="category">Context struct: </span><span><strong>struct camellia192_ctx</strong><a href='#index-struct-camellia192_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-camellia256_005fctx"><span class="category">Context struct: </span><span><strong>struct camellia256_ctx</strong><a href='#index-struct-camellia256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Contexts structs. Actually, <code>camellia192_ctx</code> is an alias for
+<code>camellia256_ctx</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-camellia_005fctx"><span class="category">Context struct: </span><span><strong>struct camellia_ctx</strong><a href='#index-struct-camellia_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Alternative struct, for the old Camellia interface.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CAMELLIA_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA_BLOCK_SIZE</strong><a href='#index-CAMELLIA_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The CAMELLIA block-size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CAMELLIA128_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA128_KEY_SIZE</strong><a href='#index-CAMELLIA128_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CAMELLIA192_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA192_KEY_SIZE</strong><a href='#index-CAMELLIA192_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CAMELLIA256_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA256_KEY_SIZE</strong><a href='#index-CAMELLIA256_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CAMELLIA_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA_MIN_KEY_SIZE</strong><a href='#index-CAMELLIA_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CAMELLIA_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA_MAX_KEY_SIZE</strong><a href='#index-CAMELLIA_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-CAMELLIA_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAMELLIA_KEY_SIZE</strong><a href='#index-CAMELLIA_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default CAMELLIA key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-camellia128_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia128_set_encrypt_key</strong> <em>(struct camellia128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia128_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia128_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia128_set_decrypt_key</strong> <em>(struct camellia128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia128_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia192_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia192_set_encrypt_key</strong> <em>(struct camellia192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia192_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia192_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia192_set_decrypt_key</strong> <em>(struct camellia192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia192_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia256_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia256_set_encrypt_key</strong> <em>(struct camellia256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia256_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia256_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia256_set_decrypt_key</strong> <em>(struct camellia256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia256_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia_set_encrypt_key</strong> <em>(struct camellia_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia_set_decrypt_key</strong> <em>(struct camellia_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-camellia_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher, for encryption or decryption, respectively.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-camellia128_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia128_invert_key</strong> <em>(struct camellia128_ctx *<var>dst</var>, const struct camellia128_ctx *<var>src</var>)</em><a href='#index-camellia128_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia192_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia192_invert_key</strong> <em>(struct camellia192_ctx *<var>dst</var>, const struct camellia192_ctx *<var>src</var>)</em><a href='#index-camellia192_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia256_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia256_invert_key</strong> <em>(struct camellia256_ctx *<var>dst</var>, const struct camellia256_ctx *<var>src</var>)</em><a href='#index-camellia256_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia_005finvert_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>camellia_invert_key</strong> <em>(struct camellia_ctx *<var>dst</var>, const struct camellia_ctx *<var>src</var>)</em><a href='#index-camellia_005finvert_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Given a context <var>src</var> initialized for encryption, initializes the
+context struct <var>dst</var> for decryption, using the same key. If the same
+context struct is passed for both <code>src</code> and <code>dst</code>, it is
+converted in place. These functions are mainly useful for applications
+which needs to both encrypt and decrypt using the <em>same</em> key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-camellia128_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>camellia128_crypt</strong> <em>(struct camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-camellia128_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia192_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>camellia192_crypt</strong> <em>(struct camellia192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-camellia192_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia256_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>camellia256_crypt</strong> <em>(struct camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-camellia256_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-camellia_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>camellia_crypt</strong> <em>(struct camellia_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-camellia_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The same function is used for both encryption and decryption.
+<var>length</var> must be an integral multiple of the block size. If it is
+more than one block, the data is processed in ECB mode. <code>src</code> and
+<code>dst</code> may be equal, but they must not overlap in any other way.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="CAST128">
+<div class="header">
+<p>
+Next: <a href="#ChaCha" accesskey="n" rel="next">ChaCha</a>, Previous: <a href="#Camellia" accesskey="p" rel="prev">Camellia</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="CAST128-1"></span><h4 class="subsection">7.2.6 CAST128</h4>
+<span id="index-CAST"></span>
+
+<p>CAST-128 is a block cipher, specified in <cite>RFC 2144</cite>. It uses a 64
+bit (8 octets) block size, and a key size of 128 bits. It is possible,
+but discouraged, to use the same algorithm with shorter keys. Nettle
+refers to the variant with variable key size as CAST-5. Keys for CAST-5
+are zero padded to 128 bits, and with very short keys, less than 80
+bits, encryption also uses fewer rounds than CAST128. Nettle defines
+cast128 in <samp>&lt;nettle/cast128.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-cast128_005fctx"><span class="category">Context struct: </span><span><strong>struct cast128_ctx</strong><a href='#index-struct-cast128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-CAST128_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>CAST128_BLOCK_SIZE</strong><a href='#index-CAST128_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The CAST128 block-size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CAST128_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAST128_KEY_SIZE</strong><a href='#index-CAST128_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The CAST128 key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CAST5_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAST5_MIN_KEY_SIZE</strong><a href='#index-CAST5_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Minimum CAST5 key size, 5.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CAST5_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CAST5_MAX_KEY_SIZE</strong><a href='#index-CAST5_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Maximum CAST5 key size, 16. With 16 octets key (128 bits), CAST-5 is the
+same as CAST-128.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cast128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>cast128_set_key</strong> <em>(struct cast128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-cast128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cast128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cast128_encrypt</strong> <em>(struct cast128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cast128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cast128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>cast128_decrypt</strong> <em>(struct cast128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cast128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>cast128_encrypt</code>
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cast5_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>cast5_set_key</strong> <em>(struct cast128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-cast5_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. This variant of the key setup takes the key size
+as argument. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="ChaCha">
+<div class="header">
+<p>
+Next: <a href="#DES" accesskey="n" rel="next">DES</a>, Previous: <a href="#CAST128" accesskey="p" rel="prev">CAST128</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="ChaCha-1"></span><h4 class="subsection">7.2.7 ChaCha</h4>
+<span id="index-ChaCha"></span>
+
+<p>ChaCha is a variant of the stream cipher Salsa20 (see <a href="#Salsa20">Salsa20</a>),
+below, also designed by D. J. Bernstein. Nettle defines ChaCha in
+<samp>&lt;nettle/chacha.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-chacha_005fctx"><span class="category">Context struct: </span><span><strong>struct chacha_ctx</strong><a href='#index-struct-chacha_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_KEY_SIZE</strong><a href='#index-CHACHA_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>ChaCha key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_BLOCK_SIZE</strong><a href='#index-CHACHA_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>ChaCha block size, 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_NONCE_SIZE</strong><a href='#index-CHACHA_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the nonce, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fCOUNTER_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_COUNTER_SIZE</strong><a href='#index-CHACHA_005fCOUNTER_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the counter, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>chacha_set_key</strong> <em>(struct chacha_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-chacha_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption. Before using the cipher,
+you <em>must</em> also call <code>chacha_set_nonce</code>, see below.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>chacha_set_nonce</strong> <em>(struct chacha_ctx *<var>ctx</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-chacha_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce. It is always of size <code>CHACHA_NONCE_SIZE</code>, 8
+octets. This function also initializes the block counter, setting it to
+zero.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fset_005fcounter"><span class="category">Function: </span><span><em>void</em> <strong>chacha_set_counter</strong> <em>(struct chacha_ctx *<var>ctx</var>, const uint8_t *<var>counter</var>)</em><a href='#index-chacha_005fset_005fcounter' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the block counter. It is always of size <code>CHACHA_COUNTER_SIZE</code>,
+8 octets. This is rarely needed since <code>chacha_set_nonce</code>
+initializes the block counter to zero. When it is still necessary, this
+function must be called after <code>chacha_set_nonce</code>.
+</p>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>chacha_crypt</strong> <em>(struct chacha_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-chacha_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message, using ChaCha. When a
+message is encrypted using a sequence of calls to <code>chacha_crypt</code>,
+all but the last call <em>must</em> use a length that is a multiple of
+<code>CHACHA_BLOCK_SIZE</code>.
+</p></dd></dl>
+
+<ul class="section-toc">
+<li><a href="#g_t32_002dbit-counter-variant" accesskey="1">32-bit counter variant</a></li>
+</ul>
+<div class="subsubsection" id="g_t32_002dbit-counter-variant">
+<h4 class="subsubsection">7.2.7.1 32-bit counter variant</h4>
+
+<p>While the original paper uses 64-bit counter value, the variant defined
+in <cite>RFC 8439</cite> uses 32-bit counter value. This variant is
+particularly useful for see <a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a> AEAD construction, which
+supports 12-octet nonces.
+</p>
+<dl class="def">
+<dt id="index-CHACHA_005fNONCE96_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_NONCE96_SIZE</strong><a href='#index-CHACHA_005fNONCE96_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the nonce, 12.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fCOUNTER32_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_COUNTER32_SIZE</strong><a href='#index-CHACHA_005fCOUNTER32_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the counter, 4.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fset_005fnonce96"><span class="category">Function: </span><span><em>void</em> <strong>chacha_set_nonce96</strong> <em>(struct chacha_ctx *<var>ctx</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-chacha_005fset_005fnonce96' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce. This is similar to the above <code>chacha_set_nonce</code>,
+but the input is always of size <code>CHACHA_NONCE96_SIZE</code>, 12 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fset_005fcounter32"><span class="category">Function: </span><span><em>void</em> <strong>chacha_set_counter32</strong> <em>(struct chacha_ctx *<var>ctx</var>, const uint8_t *<var>counter</var>)</em><a href='#index-chacha_005fset_005fcounter32' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the block counter. This is similar to the above <code>chacha_set_counter</code>,
+but the input is always of size <code>CHACHA_COUNTER32_SIZE</code>, 4 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fcrypt32"><span class="category">Function: </span><span><em>void</em> <strong>chacha_crypt32</strong> <em>(struct chacha_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-chacha_005fcrypt32' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message, using ChaCha. This is similar to the
+above <code>chacha_crypt</code>, but it assumes the internal counter value is 32-bit
+long and the nonce is 96-bit long.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="DES">
+<div class="header">
+<p>
+Next: <a href="#DES3" accesskey="n" rel="next">DES3</a>, Previous: <a href="#ChaCha" accesskey="p" rel="prev">ChaCha</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="DES-1"></span><h4 class="subsection">7.2.8 DES</h4>
+<span id="index-DES"></span>
+
+<p>DES is the old Data Encryption Standard, specified by NIST. It uses a
+block size of 64 bits (8 octets), and a key size of 56 bits. However,
+the key bits are distributed over 8 octets, where the least significant
+bit of each octet may be used for parity. A common way to use DES is to
+generate 8 random octets in some way, then set the least significant bit
+of each octet to get odd parity, and initialize DES with the resulting
+key.
+</p>
+<p>The key size of DES is so small that keys can be found by brute force,
+using specialized hardware or lots of ordinary work stations in
+parallel. One shouldn&rsquo;t be using plain DES at all today, if one uses
+DES at all one should be using &ldquo;triple DES&rdquo;, see DES3 below.
+</p>
+<p>DES also has some weak keys. Nettle defines DES in <samp>&lt;nettle/des.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-des_005fctx"><span class="category">Context struct: </span><span><strong>struct des_ctx</strong><a href='#index-struct-des_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-DES_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>DES_BLOCK_SIZE</strong><a href='#index-DES_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The DES block-size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-DES_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>DES_KEY_SIZE</strong><a href='#index-DES_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>DES key size, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des_005fset_005fkey"><span class="category">Function: </span><span><em>int</em> <strong>des_set_key</strong> <em>(struct des_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-des_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption. Parity bits are ignored. Checks for weak keys, returning 1
+for good keys and 0 for weak keys. Applications that don&rsquo;t care about
+weak keys can ignore the return value.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>des_encrypt</strong> <em>(struct des_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-des_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>des_decrypt</strong> <em>(struct des_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-des_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>des_encrypt</code>
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des_005fcheck_005fparity"><span class="category">Function: </span><span><em>int</em> <strong>des_check_parity</strong> <em>(size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-des_005fcheck_005fparity' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Checks that the given key has correct, odd, parity. Returns 1 for
+correct parity, and 0 for bad parity.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des_005ffix_005fparity"><span class="category">Function: </span><span><em>void</em> <strong>des_fix_parity</strong> <em>(size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-des_005ffix_005fparity' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Adjusts the parity bits to match DES&rsquo;s requirements. You need this
+function if you have created a random-looking string by a key agreement
+protocol, and want to use it as a DES key. <var>dst</var> and <var>src</var> may
+be equal.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="DES3">
+<div class="header">
+<p>
+Next: <a href="#Salsa20" accesskey="n" rel="next">Salsa20</a>, Previous: <a href="#DES" accesskey="p" rel="prev">DES</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="DES3-1"></span><h4 class="subsection">7.2.9 DES3</h4>
+<span id="index-DES3"></span>
+<span id="index-3DES"></span>
+<span id="index-Triple_002dDES"></span>
+
+<p>The inadequate key size of DES has already been mentioned. One way to
+increase the key size is to pipe together several DES boxes with
+independent keys. It turns out that using two DES ciphers is not as
+secure as one might think, even if the key size of the combination is a
+respectable 112 bits.
+</p>
+<p>The standard way to increase DES&rsquo;s key size is to use three DES boxes.
+The mode of operation is a little peculiar: the middle DES box is wired
+in the reverse direction. To encrypt a block with DES3, you encrypt it
+using the first 56 bits of the key, then <em>decrypt</em> it using the
+middle 56 bits of the key, and finally encrypt it again using the last
+56 bits of the key. This is known as &ldquo;ede&rdquo; triple-DES, for
+&ldquo;encrypt-decrypt-encrypt&rdquo;.
+</p>
+<p>The &ldquo;ede&rdquo; construction provides some backward compatibility, as you get
+plain single DES simply by feeding the same key to all three boxes. That
+should help keeping down the gate count, and the price, of hardware
+circuits implementing both plain DES and DES3.
+</p>
+<p>DES3 has a key size of 168 bits, but just like plain DES, useless parity
+bits are inserted, so that keys are represented as 24 octets (192 bits).
+As a 112 bit key is large enough to make brute force attacks
+impractical, some applications uses a &ldquo;two-key&rdquo; variant of triple-DES.
+In this mode, the same key bits are used for the first and the last DES
+box in the pipe, while the middle box is keyed independently. The
+two-key variant is believed to be secure, i.e. there are no known
+attacks significantly better than brute force.
+</p>
+<p>Naturally, it&rsquo;s simple to implement triple-DES on top of Nettle&rsquo;s DES
+functions. Nettle includes an implementation of three-key &ldquo;ede&rdquo;
+triple-DES, it is defined in the same place as plain DES,
+<samp>&lt;nettle/des.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-des3_005fctx"><span class="category">Context struct: </span><span><strong>struct des3_ctx</strong><a href='#index-struct-des3_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-DES3_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>DES3_BLOCK_SIZE</strong><a href='#index-DES3_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The DES3 block-size is the same as DES_BLOCK_SIZE, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-DES3_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>DES3_KEY_SIZE</strong><a href='#index-DES3_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>DES key size, 24.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des3_005fset_005fkey"><span class="category">Function: </span><span><em>int</em> <strong>des3_set_key</strong> <em>(struct des3_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-des3_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption. Parity bits are ignored. Checks for weak keys, returning 1
+if all three keys are good keys, and 0 if one or more key is weak.
+Applications that don&rsquo;t care about weak keys can ignore the return
+value.
+</p></dd></dl>
+
+<p>For random-looking strings, you can use <code>des_fix_parity</code> to adjust
+the parity bits before calling <code>des3_set_key</code>.
+</p>
+<dl class="def">
+<dt id="index-des3_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>des3_encrypt</strong> <em>(struct des3_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-des3_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-des3_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>des3_decrypt</strong> <em>(struct des3_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-des3_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>des_encrypt</code>
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Salsa20">
+<div class="header">
+<p>
+Next: <a href="#Serpent" accesskey="n" rel="next">Serpent</a>, Previous: <a href="#DES3" accesskey="p" rel="prev">DES3</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Salsa20-1"></span><h4 class="subsection">7.2.10 Salsa20</h4>
+<span id="index-Salsa20"></span>
+
+<p>Salsa20 is a fairly recent stream cipher designed by D. J. Bernstein. It
+is built on the observation that a cryptographic hash function can be
+used for encryption: Form the hash input from the secret key and a
+counter, xor the hash output and the first block of the plaintext, then
+increment the counter to process the next block (similar to CTR mode,
+see <a href="#CTR">Counter mode</a>). Bernstein defined an encryption algorithm, Snuffle,
+in this way to ridicule United States export restrictions which treated hash
+functions as nice and harmless, but ciphers as dangerous munitions.
+</p>
+<p>Salsa20 uses the same idea, but with a new specialized hash function to
+mix key, block counter, and a couple of constants. It&rsquo;s also designed
+for speed; on x86_64, it is currently the fastest cipher offered by
+nettle. It uses a block size of 512 bits (64 octets) and there are two
+specified key sizes, 128 and 256 bits (16 and 32 octets).
+</p>
+<p><strong>Caution:</strong> The hash function used in Salsa20 is <em>not</em>
+directly applicable for use as a general hash function. It&rsquo;s <em>not</em>
+collision resistant if arbitrary inputs are allowed, and furthermore,
+the input and output is of fixed size.
+</p>
+<p>When using Salsa20 to process a message, one specifies both a key and a
+<em>nonce</em>, the latter playing a similar rôle to the initialization
+vector (<acronym>IV</acronym>) used with <acronym>CBC</acronym> or <acronym>CTR</acronym> mode. One
+can use the same key for several messages, provided one uses a unique
+random <acronym>iv</acronym> for each message. The <acronym>iv</acronym> is 64 bits (8
+octets). The block counter is initialized to zero for each message, and
+is also 64 bits (8 octets). Nettle defines Salsa20 in
+<samp>&lt;nettle/salsa20.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-salsa20_005fctx"><span class="category">Context struct: </span><span><strong>struct salsa20_ctx</strong><a href='#index-struct-salsa20_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SALSA20_005f128_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SALSA20_128_KEY_SIZE</strong><a href='#index-SALSA20_005f128_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-SALSA20_005f256_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SALSA20_256_KEY_SIZE</strong><a href='#index-SALSA20_005f256_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The two supported key sizes, 16 and 32 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SALSA20_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SALSA20_KEY_SIZE</strong><a href='#index-SALSA20_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Recommended key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SALSA20_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SALSA20_BLOCK_SIZE</strong><a href='#index-SALSA20_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Salsa20 block size, 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SALSA20_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>SALSA20_NONCE_SIZE</strong><a href='#index-SALSA20_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the nonce, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-salsa20_005f128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>salsa20_128_set_key</strong> <em>(struct salsa20_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-salsa20_005f128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-salsa20_005f256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>salsa20_256_set_key</strong> <em>(struct salsa20_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-salsa20_005f256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-salsa20_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>salsa20_set_key</strong> <em>(struct salsa20_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-salsa20_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption. <code>salsa20_128_set_key</code> and <code>salsa20_128_set_key</code>
+use a fix key size each, 16 and 32 octets, respectively. The function
+<code>salsa20_set_key</code> is provided for backwards compatibility, and the
+<var>length</var> argument must be either 16 or 32. Before using the cipher,
+you <em>must</em> also call <code>salsa20_set_nonce</code>, see below.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-salsa20_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>salsa20_set_nonce</strong> <em>(struct salsa20_ctx *<var>ctx</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-salsa20_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce. It is always of size <code>SALSA20_NONCE_SIZE</code>, 8
+octets. This function also initializes the block counter, setting it to
+zero.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-salsa20_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>salsa20_crypt</strong> <em>(struct salsa20_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-salsa20_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message, using salsa20. When a
+message is encrypted using a sequence of calls to <code>salsa20_crypt</code>,
+all but the last call <em>must</em> use a length that is a multiple of
+<code>SALSA20_BLOCK_SIZE</code>.
+</p></dd></dl>
+
+<p>The full salsa20 cipher uses 20 rounds of mixing. Variants of Salsa20
+with fewer rounds are possible, and the 12-round variant is specified by
+eSTREAM, see <a href="https://www.ecrypt.eu.org/stream/finallist.html">https://www.ecrypt.eu.org/stream/finallist.html</a>.
+Nettle calls this variant <code>salsa20r12</code>. It uses the same context
+struct and key setup as the full salsa20 cipher, but a separate function
+for encryption and decryption.
+</p>
+<dl class="def">
+<dt id="index-salsa20r12_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>salsa20r12_crypt</strong> <em>(struct salsa20_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-salsa20r12_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message, using salsa20 reduced to 12
+rounds.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Serpent">
+<div class="header">
+<p>
+Next: <a href="#SM4" accesskey="n" rel="next">SM4</a>, Previous: <a href="#Salsa20" accesskey="p" rel="prev">Salsa20</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Serpent-1"></span><h4 class="subsection">7.2.11 Serpent</h4>
+<span id="index-Serpent"></span>
+
+<p>SERPENT is one of the AES finalists, designed by Ross Anderson, Eli
+Biham and Lars Knudsen. Thus, the interface and properties are similar
+to AES&rsquo;. One peculiarity is that it is quite pointless to use it with
+anything but the maximum key size, smaller keys are just padded to
+larger ones. Nettle defines SERPENT in <samp>&lt;nettle/serpent.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-serpent_005fctx"><span class="category">Context struct: </span><span><strong>struct serpent_ctx</strong><a href='#index-struct-serpent_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SERPENT_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SERPENT_BLOCK_SIZE</strong><a href='#index-SERPENT_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The SERPENT block-size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SERPENT_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SERPENT_MIN_KEY_SIZE</strong><a href='#index-SERPENT_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Minimum SERPENT key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SERPENT_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SERPENT_MAX_KEY_SIZE</strong><a href='#index-SERPENT_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Maximum SERPENT key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SERPENT_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SERPENT_KEY_SIZE</strong><a href='#index-SERPENT_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default SERPENT key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-serpent_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>serpent_set_key</strong> <em>(struct serpent_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-serpent_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-serpent_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>serpent_encrypt</strong> <em>(struct serpent_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-serpent_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-serpent_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>serpent_decrypt</strong> <em>(struct serpent_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-serpent_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>serpent_encrypt</code>
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="SM4">
+<div class="header">
+<p>
+Next: <a href="#Twofish" accesskey="n" rel="next">Twofish</a>, Previous: <a href="#Serpent" accesskey="p" rel="prev">Serpent</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="SM4-1"></span><h4 class="subsection">7.2.12 SM4</h4>
+<span id="index-SM4"></span>
+
+<p>SM4 is a block cipher standard adopted by the government of the People&rsquo;s
+Republic of China, and it was issued by the State Cryptography Administration
+on March 21, 2012. The standard is GM/T 0002-2012 &quot;SM4 block cipher algorithm&quot;.
+Nettle defines it in <samp>&lt;nettle/sm4.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-sm4_005fctx"><span class="category">Context struct: </span><span><strong>struct sm4_ctx</strong><a href='#index-struct-sm4_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-SM4_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SM4_BLOCK_SIZE</strong><a href='#index-SM4_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The SM4 block-size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SM4_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>SM4_KEY_SIZE</strong><a href='#index-SM4_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default SM4 key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm4_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>sm4_set_encrypt_key</strong> <em>(struct sm4_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-sm4_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The function is used for encryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm4_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>sm4_set_decrypt_key</strong> <em>(struct sm4_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-sm4_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The function is used for decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-sm4_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>sm4_crypt</strong> <em>(const struct sm4_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-sm4_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Cryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Twofish">
+<div class="header">
+<p>
+Next: <a href="#nettle_005fcipher-abstraction" accesskey="n" rel="next">The <code>struct nettle_cipher</code> abstraction</a>, Previous: <a href="#SM4" accesskey="p" rel="prev">SM4</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Twofish-1"></span><h4 class="subsection">7.2.13 Twofish</h4>
+<span id="index-Twofish"></span>
+
+<p>Another AES finalist, this one designed by Bruce Schneier and others.
+Nettle defines it in <samp>&lt;nettle/twofish.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-twofish_005fctx"><span class="category">Context struct: </span><span><strong>struct twofish_ctx</strong><a href='#index-struct-twofish_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-TWOFISH_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>TWOFISH_BLOCK_SIZE</strong><a href='#index-TWOFISH_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The TWOFISH block-size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-TWOFISH_005fMIN_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>TWOFISH_MIN_KEY_SIZE</strong><a href='#index-TWOFISH_005fMIN_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Minimum TWOFISH key size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-TWOFISH_005fMAX_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>TWOFISH_MAX_KEY_SIZE</strong><a href='#index-TWOFISH_005fMAX_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Maximum TWOFISH key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-TWOFISH_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>TWOFISH_KEY_SIZE</strong><a href='#index-TWOFISH_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Default TWOFISH key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-twofish_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>twofish_set_key</strong> <em>(struct twofish_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-twofish_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the cipher. The same function is used for both encryption and
+decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-twofish_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>twofish_encrypt</strong> <em>(struct twofish_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-twofish_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encryption function. <var>length</var> must be an integral multiple of the
+block size. If it is more than one block, the data is processed in ECB
+mode. <code>src</code> and <code>dst</code> may be equal, but they must not overlap
+in any other way.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-twofish_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>twofish_decrypt</strong> <em>(struct twofish_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-twofish_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Analogous to <code>twofish_encrypt</code>
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="nettle_005fcipher-abstraction">
+<div class="header">
+<p>
+Previous: <a href="#Twofish" accesskey="p" rel="prev">Twofish</a>, Up: <a href="#Cipher-functions" accesskey="u" rel="up">Cipher functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="The-struct-nettle_005fcipher-abstraction"></span><h4 class="subsection">7.2.14 The <code>struct nettle_cipher</code> abstraction</h4>
+<span id="index-nettle_005fcipher"></span>
+
+<p>Nettle includes a struct including information about some of the more
+regular cipher functions. It can be useful for applications that need a
+simple way to handle various algorithms. Nettle defines these structs in
+<samp>&lt;nettle/nettle-meta.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-nettle_005fcipher"><span class="category">Meta struct: </span><span><strong><code>struct nettle_cipher</code></strong> <em>name context_size block_size key_size set_encrypt_key set_decrypt_key encrypt decrypt</em><a href='#index-struct-nettle_005fcipher' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The last four attributes are function pointers, of types
+<code>nettle_set_key_func *</code> and <code>nettle_cipher_func *</code>. The first
+argument to these functions is a <code>const void *</code> pointer to a context
+struct, which is of size <code>context_size</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005faes128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_aes128</strong><a href='#index-nettle_005faes128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005faes192"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_aes192</strong><a href='#index-nettle_005faes192' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005faes256"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_aes256</strong><a href='#index-nettle_005faes256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005farctwo40"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_arctwo40</strong><a href='#index-nettle_005farctwo40' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005farctwo64"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_arctwo64</strong><a href='#index-nettle_005farctwo64' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005farctwo128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_arctwo128</strong><a href='#index-nettle_005farctwo128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005farctwo_005fgutmann128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_arctwo_gutmann128</strong><a href='#index-nettle_005farctwo_005fgutmann128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005farcfour128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_arcfour128</strong><a href='#index-nettle_005farcfour128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fcamellia128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_camellia128</strong><a href='#index-nettle_005fcamellia128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fcamellia192"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_camellia192</strong><a href='#index-nettle_005fcamellia192' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fcamellia256"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_camellia256</strong><a href='#index-nettle_005fcamellia256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fcast128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_cast128</strong><a href='#index-nettle_005fcast128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fserpent128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_serpent128</strong><a href='#index-nettle_005fserpent128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fserpent192"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_serpent192</strong><a href='#index-nettle_005fserpent192' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fserpent256"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_serpent256</strong><a href='#index-nettle_005fserpent256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005ftwofish128"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_twofish128</strong><a href='#index-nettle_005ftwofish128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005ftwofish192"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_twofish192</strong><a href='#index-nettle_005ftwofish192' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005ftwofish256"><span class="category">Constant Struct: </span><span><em>struct nettle_cipher</em> <strong>nettle_twofish256</strong><a href='#index-nettle_005ftwofish256' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Nettle includes such structs for all the <em>regular</em> ciphers, i.e.
+ones without weak keys or other oddities.
+</p></dd></dl>
+
+<p>Nettle also exports a list of all these ciphers without weak keys or
+other oddities.
+</p>
+<dl class="def">
+<dt id="index-nettle_005fget_005fciphers"><span class="category">Function: </span><span><em>const struct nettle_cipher **</em> <strong>nettle_get_ciphers</strong> <em>(void)</em><a href='#index-nettle_005fget_005fciphers' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns a NULL-terminated list of pointers to supported block ciphers.
+This list can be used to dynamically enumerate or search the supported
+algorithms.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005fciphers"><span class="category">Macro: </span><span><strong>nettle_ciphers</strong><a href='#index-nettle_005fciphers' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A macro expanding to a call to nettle_get_ciphers. In earlier versions,
+this was not a macro but the actual array of pointers.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="section" id="Cipher-modes">
+<div class="header">
+<p>
+Next: <a href="#Authenticated-encryption" accesskey="n" rel="next">Authenticated encryption with associated data</a>, Previous: <a href="#Cipher-functions" accesskey="p" rel="prev">Cipher functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Cipher-modes-1"></span><h3 class="section">7.3 Cipher modes</h3>
+
+<p>Cipher modes of operation specifies the procedure to use when encrypting
+a message that is larger than the cipher&rsquo;s block size. As explained in
+See <a href="#Cipher-functions">Cipher functions</a>, splitting the message into blocks and
+processing them independently with the block cipher (Electronic Code
+Book mode, <acronym>ECB</acronym>), leaks information.
+</p>
+<p>Besides <acronym>ECB</acronym>, Nettle provides several other modes of operation:
+Cipher Block Chaining (<acronym>CBC</acronym>), Counter mode (<acronym>CTR</acronym>), Cipher
+Feedback (<acronym>CFB</acronym> and <acronym>CFB8</acronym>), XEX-based tweaked-codebook mode
+with ciphertext stealing (<acronym>XTS</acronym>) and a couple of <acronym>AEAD</acronym>
+modes (see <a href="#Authenticated-encryption">Authenticated encryption with associated data</a>). <acronym>CBC</acronym> is widely used, but
+there are a few subtle issues of information leakage, see, e.g.,
+<a href="https://www.kb.cert.org/vuls/id/958563"><acronym>SSH</acronym> <acronym>CBC</acronym>
+vulnerability</a>. Today, <acronym>CTR</acronym> is usually preferred over <acronym>CBC</acronym>.
+</p>
+<p>Modes like <acronym>CBC</acronym>, <acronym>CTR</acronym>, <acronym>CFB</acronym> and <acronym>CFB8</acronym>
+provide <em>no</em> message authentication, and should always be used together
+with a <acronym>MAC</acronym> (see <a href="#Keyed-hash-functions">Keyed Hash Functions</a>) or signature to
+authenticate the message.
+</p>
+
+<ul class="section-toc">
+<li><a href="#CBC" accesskey="1">Cipher Block Chaining</a></li>
+<li><a href="#CTR" accesskey="2">Counter mode</a></li>
+<li><a href="#CFB-and-CFB8" accesskey="3">Cipher Feedback mode</a></li>
+<li><a href="#XTS" accesskey="4">XEX-based tweaked-codebook mode with ciphertext stealing</a></li>
+</ul>
+<hr>
+<div class="subsection" id="CBC">
+<div class="header">
+<p>
+Next: <a href="#CTR" accesskey="n" rel="next">Counter mode</a>, Up: <a href="#Cipher-modes" accesskey="u" rel="up">Cipher modes</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Cipher-Block-Chaining"></span><h4 class="subsection">7.3.1 Cipher Block Chaining</h4>
+
+<span id="index-Cipher-Block-Chaining"></span>
+<span id="index-CBC-Mode"></span>
+
+<p>When using <acronym>CBC</acronym> mode, plaintext blocks are not encrypted
+independently of each other, like in Electronic Cook Book mode. Instead,
+when encrypting a block in <acronym>CBC</acronym> mode, the previous ciphertext
+block is XORed with the plaintext before it is fed to the block cipher.
+When encrypting the first block, a random block called an <em>IV</em>, or
+Initialization Vector, is used as the &ldquo;previous ciphertext block&rdquo;. The
+IV should be chosen randomly, but it need not be kept secret, and can
+even be transmitted in the clear together with the encrypted data.
+</p>
+<p>In symbols, if <code>E_k</code> is the encryption function of a block cipher,
+and <code>IV</code> is the initialization vector, then <code>n</code> plaintext blocks
+<code>M_1</code>,&hellip; <code>M_n</code> are transformed into <code>n</code> ciphertext blocks
+<code>C_1</code>,&hellip; <code>C_n</code> as follows:
+</p>
+<div class="example">
+<pre class="example">C_1 = E_k(IV XOR M_1)
+C_2 = E_k(C_1 XOR M_2)
+
+&hellip;
+
+C_n = E_k(C_(n-1) XOR M_n)
+</pre></div>
+
+<p>Nettle provides two main functions for applying a block cipher in
+Cipher Block Chaining (<acronym>CBC</acronym>) mode, one for encryption and one
+for decryption. These functions uses <code>const void *</code> to pass cipher
+contexts around. The <acronym>CBC</acronym> interface is defined in
+<samp>&lt;nettle/cbc.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-cbc_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cbc_encrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cbc_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-cbc_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>cbc_decrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cbc_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd>
+<p>Applies the encryption or decryption function <var>f</var> in <acronym>CBC</acronym>
+mode. The final ciphertext block processed is copied into <var>iv</var>
+before returning, so that a large message can be processed by a sequence of
+calls to <code>cbc_encrypt</code>. The function <var>f</var> is of type
+</p>
+<p><code>void <var>f</var> (const void *<var>ctx</var>, size_t <var>length</var>, uint8_t <var>dst</var>,
+const uint8_t *<var>src</var>)</code>,
+</p>
+<p>and the <code>cbc_encrypt</code> and <code>cbc_decrypt</code> functions pass their
+argument <var>ctx</var> on to <var>f</var>.
+</p></dd></dl>
+
+<ul class="section-toc">
+<li><a href="#Utility-macros" accesskey="1">Utility macros</a></li>
+<li><a href="#Cipher_002dspecific-functions" accesskey="2">Cipher-specific functions</a></li>
+</ul>
+<div class="subsubsection" id="Utility-macros">
+<h4 class="subsubsection">7.3.1.1 Utility macros</h4>
+
+<p>There are also some macros to help use these functions correctly.
+</p>
+<dl class="def">
+<dt id="index-CBC_005fCTX"><span class="category">Macro: </span><span><strong>CBC_CTX</strong> <em>(<var>context_type</var>, <var>block_size</var>)</em><a href='#index-CBC_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expands to
+</p><div class="example">
+<pre class="example">{
+ context_type ctx;
+ uint8_t iv[block_size];
+}
+</pre></div>
+</dd></dl>
+
+<p>It can be used to define a <acronym>CBC</acronym> context struct, either directly,
+</p>
+<div class="example">
+<pre class="example">struct CBC_CTX(struct aes_ctx, AES_BLOCK_SIZE) ctx;
+</pre></div>
+
+<p>or to give it a struct tag,
+</p>
+<div class="example">
+<pre class="example">struct aes_cbc_ctx CBC_CTX (struct aes_ctx, AES_BLOCK_SIZE);
+</pre></div>
+
+<dl class="def">
+<dt id="index-CBC_005fSET_005fIV"><span class="category">Macro: </span><span><strong>CBC_SET_IV</strong> <em>(<var>ctx</var>, <var>iv</var>)</em><a href='#index-CBC_005fSET_005fIV' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument is a pointer to a context struct as defined by <code>CBC_CTX</code>,
+and the second is a pointer to an Initialization Vector (IV) that is
+copied into that context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CBC_005fENCRYPT"><span class="category">Macro: </span><span><strong>CBC_ENCRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CBC_005fENCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CBC_005fDECRYPT"><span class="category">Macro: </span><span><strong>CBC_DECRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CBC_005fDECRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>cbc_encrypt</code> and <code>cbc_decrypt</code>. The
+first argument is a pointer to a context struct as defined by
+<code>CBC_CTX</code>, and the second argument is an encryption or decryption
+function following Nettle&rsquo;s conventions. The last three arguments define
+the source and destination area for the operation.
+</p></dd></dl>
+
+<p>These macros use some tricks to make the compiler display a warning if
+the types of <var>f</var> and <var>ctx</var> don&rsquo;t match, e.g. if you try to use
+an <code>struct aes_ctx</code> context with the <code>des_encrypt</code> function.
+</p>
+</div>
+<div class="subsubsection" id="Cipher_002dspecific-functions">
+<h4 class="subsubsection">7.3.1.2 Cipher-specific functions</h4>
+
+<p>Encryption in <acronym>CBC</acronym> mode (but not decryption!) is inherently
+serial. It can pass only one block at a time to the block cipher&rsquo;s
+encrypt function. Optimizations to process several blocks in parallel
+can&rsquo;t be applied, and on platforms where the underlying cipher is fast,
+per-function-call overhead, e.g., loading subkeys from memory into
+registers, can be significant. Depending on platform and cipher used,
+<code>cbc_encrypt</code> can be considerably slower than both
+<code>cbc_decrypt</code> and <acronym>CTR</acronym> mode. The second reason for poor
+performance can be addressed by having a combined <acronym>CBC</acronym> and
+encrypt function, for ciphers where the overhead is significant.
+</p>
+<p>Nettle currently includes such special functions only for AES.
+</p>
+<dl class="def">
+<dt id="index-cbc_005faes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cbc_aes128_encrypt</strong> <em>(const struct aes128_ctx *<var>ctx</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cbc_005faes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-cbc_005faes192_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cbc_aes192_encrypt</strong> <em>(const struct aes192_ctx *<var>ctx</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cbc_005faes192_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-cbc_005faes256_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cbc_aes256_encrypt</strong> <em>(const struct aes256_ctx *<var>ctx</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cbc_005faes256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calling <code>cbc_aes128_encrypt(ctx, iv, length, dst, src)</code> does the
+same thing as calling <code>cbc_encrypt(ctx, aes128_encrypt,
+AES_BLOCK_SIZE, iv, length, dst, src)</code>, but is more efficient on certain
+platforms.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="CTR">
+<div class="header">
+<p>
+Next: <a href="#CFB-and-CFB8" accesskey="n" rel="next">Cipher Feedback mode</a>, Previous: <a href="#CBC" accesskey="p" rel="prev">Cipher Block Chaining</a>, Up: <a href="#Cipher-modes" accesskey="u" rel="up">Cipher modes</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Counter-mode"></span><h4 class="subsection">7.3.2 Counter mode</h4>
+
+<span id="index-Counter-Mode"></span>
+<span id="index-CTR-Mode"></span>
+
+<p>Counter mode (<acronym>CTR</acronym>) uses the block cipher as a keyed
+pseudo-random generator. The output of the generator is XORed with the
+data to be encrypted. It can be understood as a way to transform a block
+cipher to a stream cipher.
+</p>
+<p>The message is divided into <code>n</code> blocks <code>M_1</code>,&hellip;
+<code>M_n</code>, where <code>M_n</code> is of size <code>m</code> which may be smaller
+than the block size. Except for the last block, all the message blocks
+must be of size equal to the cipher&rsquo;s block size.
+</p>
+<p>If <code>E_k</code> is the encryption function of a block cipher, <code>IC</code> is
+the initial counter, then the <code>n</code> plaintext blocks are
+transformed into <code>n</code> ciphertext blocks <code>C_1</code>,&hellip;
+<code>C_n</code> as follows:
+</p>
+<div class="example">
+<pre class="example">C_1 = E_k(IC) XOR M_1
+C_2 = E_k(IC + 1) XOR M_2
+
+&hellip;
+
+C_(n-1) = E_k(IC + n - 2) XOR M_(n-1)
+C_n = E_k(IC + n - 1) [1..m] XOR M_n
+</pre></div>
+
+<p>The <acronym>IC</acronym> is the initial value for the counter, it plays a
+similar rôle as the <acronym>IV</acronym> for <acronym>CBC</acronym>. When adding,
+<code>IC + x</code>, <acronym>IC</acronym> is interpreted as an integer, in network
+byte order. For the last block, <code>E_k(IC + n - 1) [1..m]</code> means that
+the cipher output is truncated to <code>m</code> bytes.
+</p>
+<dl class="def">
+<dt id="index-ctr_005fcrypt"><span class="category">Function: </span><span><em>void</em> <strong>ctr_crypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>ctr</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ctr_005fcrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd>
+<p>Applies the encryption function <var>f</var> in <acronym>CTR</acronym> mode. Note that
+for <acronym>CTR</acronym> mode, encryption and decryption is the same operation,
+and hence <var>f</var> should always be the encryption function for the
+underlying block cipher.
+</p>
+<p>When a message is encrypted using a sequence of calls to
+<code>ctr_crypt</code>, all but the last call <em>must</em> use a length that is
+a multiple of the block size.
+</p></dd></dl>
+
+<p>Like for <acronym>CBC</acronym>, there are also a couple of helper macros.
+</p>
+<dl class="def">
+<dt id="index-CTR_005fCTX"><span class="category">Macro: </span><span><strong>CTR_CTX</strong> <em>(<var>context_type</var>, <var>block_size</var>)</em><a href='#index-CTR_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expands to
+</p><div class="example">
+<pre class="example">{
+ context_type ctx;
+ uint8_t ctr[block_size];
+}
+</pre></div>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-CTR_005fSET_005fCOUNTER"><span class="category">Macro: </span><span><strong>CTR_SET_COUNTER</strong> <em>(<var>ctx</var>, <var>iv</var>)</em><a href='#index-CTR_005fSET_005fCOUNTER' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument is a pointer to a context struct as defined by
+<code>CTR_CTX</code>, and the second is a pointer to an initial counter that
+is copied into that context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CTR_005fCRYPT"><span class="category">Macro: </span><span><strong>CTR_CRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CTR_005fCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>ctr_crypt</code>. The first argument is a
+pointer to a context struct as defined by <code>CTR_CTX</code>, and the second
+argument is an encryption function following Nettle&rsquo;s conventions. The
+last three arguments define the source and destination area for the
+operation.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="CFB-and-CFB8">
+<div class="header">
+<p>
+Next: <a href="#XTS" accesskey="n" rel="next">XEX-based tweaked-codebook mode with ciphertext stealing</a>, Previous: <a href="#CTR" accesskey="p" rel="prev">Counter mode</a>, Up: <a href="#Cipher-modes" accesskey="u" rel="up">Cipher modes</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Cipher-Feedback-mode"></span><h4 class="subsection">7.3.3 Cipher Feedback mode</h4>
+
+<span id="index-Cipher-Feedback-Mode"></span>
+<span id="index-Cipher-Feedback-8_002dbit-Mode"></span>
+<span id="index-CFB-Modes"></span>
+<span id="index-CFB8-Mode"></span>
+
+
+<p>Cipher Feedback mode (<acronym>CFB</acronym>) and Cipher Feedback 8-bit mode
+(<acronym>CFB8</acronym>) being close relatives to both <acronym>CBC</acronym> mode and
+<acronym>CTR</acronym> mode borrow some characteristics from stream ciphers.
+</p>
+<p>For CFB the message is divided into <code>n</code> blocks <code>M_1</code>,&hellip;
+<code>M_n</code>, where <code>M_n</code> is of size <code>m</code> which may be smaller
+than the block size. Except for the last block, all the message blocks
+must be of size equal to the cipher&rsquo;s block size.
+</p>
+<p>If <code>E_k</code> is the encryption function of a block cipher, <code>IV</code> is
+the initialization vector, then the <code>n</code> plaintext blocks are
+transformed into <code>n</code> ciphertext blocks <code>C_1</code>,&hellip;
+<code>C_n</code> as follows:
+</p>
+<div class="example">
+<pre class="example">C_1 = E_k(IV) XOR M_1
+C_2 = E_k(C_1) XOR M_2
+
+&hellip;
+
+C_(n-1) = E_k(C_(n - 2)) XOR M_(n-1)
+C_n = E_k(C_(n - 1)) [1..m] XOR M_n
+</pre></div>
+
+<p>Cipher Feedback 8-bit mode (<acronym>CFB8</acronym>) transforms block cipher into a stream
+cipher. The message is encrypted byte after byte, not requiring any padding.
+</p>
+<p>If <code>E_k</code> is the encryption function of a block cipher, <code>b</code> is
+<code>E_k</code> block size, <code>IV</code> is the initialization vector, then the
+<code>n</code> plaintext bytes are transformed into <code>n</code> ciphertext bytes
+<code>C_1</code>,&hellip; <code>C_n</code> as follows:
+</p>
+<div class="example">
+<pre class="example">I_1 = IV
+C_1 = E_k(I_1) [1..8] XOR M_1
+I_2 = I_1 [9..b] &lt;&lt; 8 | C_1
+C_2 = E_k(I_2) [1..8] XOR M_2
+
+&hellip;
+
+I_(n-1) = I_(n-2) [9..b] &lt;&lt; 8 | C_(n-2)
+C_(n-1) = E_k(I_(n-1)) [1..8] XOR M_(n-1)
+I_n = I_(n-1) [9..b] &lt;&lt; 8 | C_(n-1)
+C_n = E_k(I_n) [1..8] XOR M_n
+</pre></div>
+
+<p>Nettle&rsquo;s includes functions for applying a block cipher in Cipher
+Feedback (<acronym>CFB</acronym>) and Cipher Feedback 8-bit (<acronym>CFB8</acronym>)
+modes. These functions uses <code>void *</code> to pass cipher contexts around.
+</p>
+<dl class="def">
+<dt id="index-cfb_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cfb_encrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cfb_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-cfb_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>cfb_decrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cfb_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd>
+<p>Applies the encryption or decryption function <var>f</var> in <acronym>CFB</acronym>
+mode. The final ciphertext block processed is copied into <var>iv</var>
+before returning, so that a large message can be processed by a sequence
+of calls to <code>cfb_encrypt</code>. Note that for <acronym>CFB</acronym> mode
+internally uses encryption only function and hence <var>f</var> should always
+be the encryption function for the underlying block cipher.
+</p>
+<p>When a message is encrypted using a sequence of calls to
+<code>cfb_encrypt</code>, all but the last call <em>must</em> use a length that
+is a multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cfb8_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>cfb8_encrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cfb8_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-cfb8_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>cfb8_decrypt</strong> <em>(const void *<var>ctx</var>, nettle_cipher_func *<var>f</var>, size_t <var>block_size</var>, uint8_t *<var>iv</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-cfb8_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd>
+<p>Applies the encryption or decryption function <var>f</var> in <acronym>CFB8</acronym>
+mode. The final IV block processed is copied into <var>iv</var>
+before returning, so that a large message can be processed by a sequence of
+calls to <code>cfb8_encrypt</code>. Note that for <acronym>CFB8</acronym> mode internally
+uses encryption only function and hence <var>f</var> should always be the
+encryption function for the underlying block cipher.
+</p>
+</dd></dl>
+
+<p>Like for <acronym>CBC</acronym>, there are also a couple of helper macros.
+</p>
+<dl class="def">
+<dt id="index-CFB_005fCTX"><span class="category">Macro: </span><span><strong>CFB_CTX</strong> <em>(<var>context_type</var>, <var>block_size</var>)</em><a href='#index-CFB_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expands to
+</p><div class="example">
+<pre class="example">{
+ context_type ctx;
+ uint8_t iv[block_size];
+}
+</pre></div>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-CFB_005fSET_005fIV_0028ctx_002c"><span class="category">Macro: </span><span><strong>CFB_SET_IV(<var>ctx</var>,</strong> <em><var>iv</var>)</em><a href='#index-CFB_005fSET_005fIV_0028ctx_002c' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument is a pointer to a context struct as defined by
+<code>CFB_CTX</code>, and the second is a pointer to an initialization vector
+that is copied into that context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CFB_005fENCRYPT"><span class="category">Macro: </span><span><strong>CFB_ENCRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CFB_005fENCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>cfb_encrypt</code>. The first argument is a
+pointer to a context struct as defined by <code>CFB_CTX</code>, and the second
+argument is an encryption function following Nettle&rsquo;s conventions. The
+last three arguments define the source and destination area for the
+operation.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CFB_005fDECRYPT"><span class="category">Macro: </span><span><strong>CFB_DECRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CFB_005fDECRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>cfb_decrypt</code>. The first argument is a
+pointer to a context struct as defined by <code>CFB_CTX</code>, and the second
+argument is an encryption function following Nettle&rsquo;s conventions. The
+last three arguments define the source and destination area for the
+operation.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CFB8_005fCTX"><span class="category">Macro: </span><span><strong>CFB8_CTX</strong> <em>(<var>context_type</var>, <var>block_size</var>)</em><a href='#index-CFB8_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expands to
+</p><div class="example">
+<pre class="example">{
+ context_type ctx;
+ uint8_t iv[block_size];
+}
+</pre></div>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-CFB8_005fSET_005fIV"><span class="category">Macro: </span><span><strong>CFB8_SET_IV</strong> <em>(<var>ctx</var>, <var>iv</var>)</em><a href='#index-CFB8_005fSET_005fIV' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument is a pointer to a context struct as defined by
+<code>CFB8_CTX</code>, and the second is a pointer to an initialization vector
+that is copied into that context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CFB8_005fENCRYPT"><span class="category">Macro: </span><span><strong>CFB8_ENCRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CFB8_005fENCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>cfb8_encrypt</code>. The first argument is a
+pointer to a context struct as defined by <code>CFB8_CTX</code>, and the
+second argument is an encryption function following Nettle&rsquo;s
+conventions. The last three arguments define the source and destination
+area for the operation.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CFB8_005fDECRYPT"><span class="category">Macro: </span><span><strong>CFB8_DECRYPT</strong> <em>(<var>ctx</var>, <var>f</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-CFB8_005fDECRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A simpler way to invoke <code>cfb8_decrypt</code>. The first argument is a
+pointer to a context struct as defined by <code>CFB8_CTX</code>, and the
+second argument is an encryption function following Nettle&rsquo;s
+conventions. The last three arguments define the source and destination
+area for the operation.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="XTS">
+<div class="header">
+<p>
+Previous: <a href="#CFB-and-CFB8" accesskey="p" rel="prev">Cipher Feedback mode</a>, Up: <a href="#Cipher-modes" accesskey="u" rel="up">Cipher modes</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="XEX_002dbased-tweaked_002dcodebook-mode-with-ciphertext-stealing"></span><h4 class="subsection">7.3.4 XEX-based tweaked-codebook mode with ciphertext stealing</h4>
+
+<span id="index-XEX_002dbased-tweaked_002dcodebook-mode-with-ciphertext-stealing"></span>
+<span id="index-XTS-Mode"></span>
+
+
+<p>XEX-based tweaked-codebook mode with ciphertext stealing (<acronym>XTS</acronym>) is
+a block mode like (<acronym>CBC</acronym>) but tweaked to be able to encrypt partial
+blocks via a technique called ciphertext stealing, where the last complete
+block of ciphertext is split and part returned as the last block and part
+used as plaintext for the second to last block.
+This mode is principally used to encrypt data at rest where it is not possible
+to store additional metadata or blocks larger than the plain text. The most
+common usage is for disk encryption. Due to the fact that ciphertext expansion
+is not possible, data is not authenticated. This mode should not be used where
+authentication is critical.
+</p>
+<p>The message is divided into <code>n</code> blocks <code>M_1</code>,&hellip; <code>M_n</code>,
+where <code>M_n</code> is of size <code>m</code> which may be smaller than the block size.
+XTS always uses a fixed blocksize of 128 bit (16 bytes) length.
+</p>
+<p>Unlike other modes, the key is double the size of that for the used cipher mode
+(for example 256bit for AES-128 and 512bit for AES-256).
+</p>
+<p><acronym>XTS</acronym> encryption mode operates given:
+</p><ul>
+<li> A multiplication by a primitive element alpha.
+<code>MUL a^j</code> here represents the multiplication, where <code>j</code> is the power
+of alpha, and the input value is converted into a 16 bytes array
+<code>a_0[k], k = 0,1,..,15</code>. The multiplication is calculated as
+<code>a_(j+1)[0] = (2(a_j[0] mod 128)) XOR (135 * floor(a_j[15]/128)</code>
+<code>a_(j+1)[k] = (2(a_j[k] mod 128)) XOR (floor(a_j[k-1]/128), k = 1,2,..15</code>
+Note that this operation is practically a 1 bit left shift operation with carry
+propagating from one byte to the next, and if the last bit shift results in a
+carry the decimal value 135 is XORed into the first byte.
+
+</li><li> The encryption key is provided as the <code>Key = K1 | K2</code>, where <code>|</code>
+denotes string concatenation.
+<code>E_k1</code> is the encryption function of the block cipher using <code>K1</code> as
+the key, and <code>E_k2</code> is the same encryption function using <code>K2</code>
+
+</li><li> A 128 bit tweak value is provided as input and is denoted as <code>IV</code>
+</li></ul>
+
+<p>The <code>n</code> plaintext blocks are transformed into <code>n</code> ciphertext blocks
+<code>C_1</code>,&hellip; <code>C_n</code> as follows.
+</p>
+<p>For a plaintext length that is a perfect multiple of the XTS block size:
+</p><div class="example">
+<pre class="example">T_1 = E_k2(IV)
+C_1 = E_k1(P_1 XOR T_1) XOR T_1
+
+&hellip;
+
+T_n = T_(n-1) MUL a
+C_n = E_k1(P_n XOR T_n) XOR T_n
+</pre></div>
+
+<p>For any other plaintext lengths:
+</p><div class="example">
+<pre class="example">T_1 = E_k2(IV)
+C_1 = E_k1(P_1 XOR T_1) XOR T_1
+
+&hellip;
+
+T_(n-2) = T_(n-3) MUL a
+C_(n-2) = E_k1(P_(n-2) XOR T_(n-2)) XOR T_(n-2)
+
+T_(n-1) = T_(n-2) MUL a
+CC_(n-1) = E_k1(P_(n-1) XOR T_(n-1)) XOR T_(n-1)
+
+T_n = T_(n-1) MUL a
+PP = [1..m]Pn | [m+1..128]CC_(n-1)
+C_(n-1) = E_k1(PP XOR T_n) XOR T_n
+
+C_n = [1..m]CC_(n-1)
+</pre></div>
+
+<ul class="section-toc">
+<li><a href="#General-_0028XTS_0029-interface_002e" accesskey="1">General (<acronym>XTS</acronym>) interface.</a></li>
+<li><a href="#XTS_002dAES-interface" accesskey="2"><acronym>XTS</acronym>-<acronym>AES</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="General-_0028XTS_0029-interface_002e">
+<h4 class="subsubsection">7.3.4.1 General (<acronym>XTS</acronym>) interface.</h4>
+
+<p>The two general functions to encrypt and decrypt using the <acronym>XTS</acronym> block
+cipher mode are the following:
+</p>
+<dl class="def">
+<dt id="index-xts_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_encrypt_message</strong> <em>(const void *<var>enc_ctx</var>, const void *<var>twk_ctx</var>, nettle_cipher_func *<var>encf</var>, const uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_decrypt_message</strong> <em>(const void *<var>dec_ctx</var>, const void *<var>twk_ctx</var>, nettle_cipher_func *<var>decf</var>, nettle_cipher_func *<var>encf</var>, const uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd>
+<p>Applies the encryption function <var>encf</var> or the decryption function
+<var>decf</var> in <acronym>XTS</acronym> mode. At least one block (16 bytes) worth
+of data must be available therefore specifying a length less than 16
+bytes is illegal.
+</p>
+<p>The functions <var>encf</var> <var>decf</var> are of type
+</p>
+<p><code>void f (const void *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>,
+const uint8_t *<var>src</var>)</code>,
+</p>
+<p>and the <code>xts_encrypt_message</code> and <code>xts_decrypt_message</code>
+functions pass their arguments <var>enc_ctx</var>, <var>twk_ctx</var> and <var>dec_ctx</var>
+to the functions <var>encf</var>, <var>decf</var> as <var>ctx</var>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="XTS_002dAES-interface">
+<h4 class="subsubsection">7.3.4.2 <acronym>XTS</acronym>-<acronym>AES</acronym> interface</h4>
+
+<p>The <acronym>AES</acronym> <acronym>XTS</acronym> functions provide an API for using the
+<acronym>XTS</acronym> mode with the <acronym>AES</acronym> block ciphers. The parameters
+all have the same meaning as the general interface, except that the
+<var>enc_ctx</var>, <var>dec_ctx</var>, <var>twk_ctx</var>, <var>encf</var> and <var>decf</var> are
+replaced with an <acronym>AES</acronym> context structure called <var>ctx</var>, and a
+appropriate set-key function must be called before using any of the encryption
+or decryption functions in this interface.
+</p>
+<dl class="def">
+<dt id="index-struct-xts_005faes128_005fkey"><span class="category">Context struct: </span><span><strong>struct xts_aes128_key</strong><a href='#index-struct-xts_005faes128_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to the AES-128 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-xts_005faes256_005fkey"><span class="category">Context struct: </span><span><strong>struct xts_aes256_key</strong><a href='#index-struct-xts_005faes256_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to the AES-256 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-xts_005faes128_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes128_set_encrypt_key</strong> <em>(struct xts_aes128_key *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-xts_005faes128_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes256_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes256_set_encrypt_key</strong> <em>(struct xts_aes256_key *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-xts_005faes256_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes128_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes128_set_decrypt_key</strong> <em>(struct xts_aes128_key *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-xts_005faes128_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes256_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes256_set_decrypt_key</strong> <em>(struct xts_aes256_key *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-xts_005faes256_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the encryption or decryption key for the AES block cipher. The
+length of the key must be double the size of the key for the corresponding
+cipher (256 bits for AES-128 and 512 bits for AES-256). One of
+these functions must be called before any of the other functions.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-xts_005faes128_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes128_encrypt_message</strong> <em>(struct xts_aes128_key *<var>ctx</var>, uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005faes128_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes256_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes256_encrypt_message</strong> <em>(struct xts_aes256_key *<var>ctx</var>, uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005faes256_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes128_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes128_decrypt_message</strong> <em>(struct xts_aes128_key *<var>ctx</var>, uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005faes128_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-xts_005faes256_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>xts_aes256_decrypt_message</strong> <em>(struct xts_aes256_key *<var>ctx</var>, uint8_t *<var>tweak</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-xts_005faes256_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>xts_encrypt_message</code> and
+<code>xts_decrypt_message</code>, except that <var>enc_ctx</var>, <var>dec_ctx</var>,
+<var>twk_ctx</var>, <var>encf</var> and <var>decf</var> are replaced by the <var>ctx</var> context
+structure.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+</div>
+<div class="section" id="Authenticated-encryption">
+<div class="header">
+<p>
+Next: <a href="#Keyed-hash-functions" accesskey="n" rel="next">Keyed Hash Functions</a>, Previous: <a href="#Cipher-modes" accesskey="p" rel="prev">Cipher modes</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Authenticated-encryption-with-associated-data"></span><h3 class="section">7.4 Authenticated encryption with associated data</h3>
+<span id="index-AEAD"></span>
+<span id="index-Authenticated-encryption"></span>
+
+<p>Since there are some subtle design choices to be made when combining a
+block cipher mode with out authentication with a <acronym>MAC</acronym>. In
+recent years, several constructions that combine encryption and
+authentication have been defined. These constructions typically also
+have an additional input, the &ldquo;associated data&rdquo;, which is
+authenticated but not included with the message. A simple example is an
+implicit message number which is available at both sender and receiver,
+and which needs authentication in order to detect deletions or replay of
+messages. This family of building blocks are therefore called
+<acronym>AEAD</acronym>, Authenticated encryption with associated data.
+</p>
+<p>The aim is to provide building blocks that it is easier for designers of
+protocols and applications to use correctly. There is also some
+potential for improved performance, if encryption and authentication can
+be done in a single step, although that potential is not realized for
+the constructions currently supported by Nettle.
+</p>
+<p>For encryption, the inputs are:
+</p>
+<ul>
+<li> The key, which can be used for many messages.
+</li><li> A nonce, which must be unique for each message using the same key.
+</li><li> Additional associated data to be authenticated, but not included in the
+message.
+</li><li> The cleartext message to be encrypted.
+</li></ul>
+
+<p>The outputs are:
+</p>
+<ul>
+<li> The ciphertext, of the same size as the cleartext.
+</li><li> A digest or &ldquo;authentication tag&rdquo;.
+</li></ul>
+
+<p>Decryption works the same, but with cleartext and ciphertext
+interchanged. All currently supported <acronym>AEAD</acronym> algorithms always
+use the encryption function of the underlying block cipher, for both
+encryption and decryption.
+</p>
+<p>Usually, the authentication tag should be appended at the end of the
+ciphertext, producing an encrypted message which is slightly longer than
+the cleartext. However, Nettle&rsquo;s low level <acronym>AEAD</acronym> functions
+produce the authentication tag as a separate output for both encryption
+and decryption.
+</p>
+<p>Both associated data and the message data (cleartext or ciphertext) can
+be processed incrementally. In general, all associated data must be
+processed before the message data, and all calls but the last one must
+use a length that is a multiple of the block size, although some
+<acronym>AEAD</acronym> may implement more liberal conventions. The <acronym>CCM</acronym>
+mode is a bit special in that it requires the message lengths up front,
+other <acronym>AEAD</acronym> constructions don&rsquo;t have this restriction.
+</p>
+<p>The supported <acronym>AEAD</acronym> constructions are Galois/Counter mode
+(<acronym>GCM</acronym>), <acronym>EAX</acronym>, ChaCha-Poly1305, and Counter with
+<acronym>CBC</acronym>-<acronym>MAC</acronym> (<acronym>CCM</acronym>). There are some weaknesses
+in <acronym>GCM</acronym> authentication, see
+<a href="https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf">https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf</a>.
+<acronym>CCM</acronym> and <acronym>EAX</acronym> use the same building blocks, but the
+<acronym>EAX</acronym> design is cleaner and avoids a couple of inconveniences of
+<acronym>CCM</acronym>. Therefore, <acronym>EAX</acronym> seems like a good conservative
+choice. The more recent ChaCha-Poly1305 may also be an attractive but
+more adventurous alternative, in particular if performance is important.
+</p>
+
+<ul class="section-toc">
+<li><a href="#EAX" accesskey="1">EAX</a></li>
+<li><a href="#GCM" accesskey="2">Galois counter mode</a></li>
+<li><a href="#CCM" accesskey="3">Counter with CBC-MAC mode</a></li>
+<li><a href="#ChaCha_002dPoly1305" accesskey="4">ChaCha-Poly1305</a></li>
+<li><a href="#OCB" accesskey="5"><acronym>OCB</acronym> (Offset Code Book) Mode</a></li>
+<li><a href="#SIV_002dCMAC" accesskey="6">Synthetic Initialization Vector AEAD</a></li>
+<li><a href="#SIV_002dGCM" accesskey="7">SIV-GCM</a></li>
+<li><a href="#nettle_005faead-abstraction" accesskey="8">The <code>struct nettle_aead</code> abstraction</a></li>
+</ul>
+<hr>
+<div class="subsection" id="EAX">
+<div class="header">
+<p>
+Next: <a href="#GCM" accesskey="n" rel="next">Galois counter mode</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="EAX-1"></span><h4 class="subsection">7.4.1 EAX</h4>
+
+<p>The <acronym>EAX</acronym> mode is an <acronym>AEAD</acronym> mode which combines
+<acronym>CTR</acronym> mode encryption, See <a href="#CTR">Counter mode</a>, with a message authentication
+based on <acronym>CBC</acronym>, See <a href="#CBC">Cipher Block Chaining</a>. The implementation in Nettle is
+restricted to ciphers with a block size of 128 bits (16 octets).
+<acronym>EAX</acronym> was defined as a reaction to the <acronym>CCM</acronym> mode,
+See <a href="#CCM">Counter with CBC-MAC mode</a>, which uses the same primitives but has some undesirable and
+inelegant properties.
+</p>
+<p><acronym>EAX</acronym> supports arbitrary nonce size; it&rsquo;s even possible to use
+an empty nonce in case only a single message is encrypted for each key.
+</p>
+<p>Nettle&rsquo;s support for <acronym>EAX</acronym> consists of a low-level general
+interface, some convenience macros, and specific functions for
+<acronym>EAX</acronym> using <acronym>AES</acronym>-128 as the underlying cipher. These
+interfaces are defined in <samp>&lt;nettle/eax.h&gt;</samp>
+</p>
+<ul class="section-toc">
+<li><a href="#General-EAX-interface" accesskey="1">General <acronym>EAX</acronym> interface</a></li>
+<li><a href="#EAX-helper-macros" accesskey="2"><acronym>EAX</acronym> helper macros</a></li>
+<li><a href="#EAX_002dAES128-interface" accesskey="3"><acronym>EAX</acronym>-<acronym>AES</acronym>128 interface</a></li>
+</ul>
+<div class="subsubsection" id="General-EAX-interface">
+<h4 class="subsubsection">7.4.1.1 General <acronym>EAX</acronym> interface</h4>
+
+<dl class="def">
+<dt id="index-struct-eax_005fkey"><span class="category">Context struct: </span><span><strong>struct eax_key</strong><a href='#index-struct-eax_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>EAX</acronym> state which depends only on the key, but not on the nonce
+or the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-eax_005fctx"><span class="category">Context struct: </span><span><strong>struct eax_ctx</strong><a href='#index-struct-eax_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>EAX_BLOCK_SIZE</strong><a href='#index-EAX_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>EAX</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>EAX_DIGEST_SIZE</strong><a href='#index-EAX_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>EAX</acronym> digest, also 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>eax_set_key</strong> <em>(struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>)</em><a href='#index-eax_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>key</var>. <var>cipher</var> gives a context struct for the
+underlying cipher, which must have been previously initialized for
+encryption, and <var>f</var> is the encryption function.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>eax_set_nonce</strong> <em>(struct eax_ctx *<var>eax</var>, const struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>nonce_length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-eax_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> for processing a new message, using the given
+nonce.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>eax_update</strong> <em>(struct eax_ctx *<var>eax</var>, const struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>data_length</var>, const uint8_t *<var>data</var>)</em><a href='#index-eax_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size. Unlike many other <acronym>AEAD</acronym> constructions, for <acronym>EAX</acronym>
+it&rsquo;s not necessary to complete the processing of all associated data
+before encrypting or decrypting the message data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>eax_encrypt</strong> <em>(struct eax_ctx *<var>eax</var>, const struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-eax_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-eax_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>eax_decrypt</strong> <em>(struct eax_ctx *<var>eax</var>, const struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-eax_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. <var>cipher</var> is the context
+struct for the underlying cipher and <var>f</var> is the encryption function.
+All but the last call for each message <em>must</em> use a length that is
+a multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>eax_digest</strong> <em>(struct eax_ctx *<var>eax</var>, const struct eax_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-eax_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. If <var>length</var> is
+smaller than <code>EAX_DIGEST_SIZE</code>, only the first <var>length</var> octets
+of the digest are written.
+</p></dd></dl>
+
+
+</div>
+<div class="subsubsection" id="EAX-helper-macros">
+<h4 class="subsubsection">7.4.1.2 <acronym>EAX</acronym> helper macros</h4>
+
+<p>The following macros are defined.
+</p>
+<dl class="def">
+<dt id="index-EAX_005fCTX"><span class="category">Macro: </span><span><strong>EAX_CTX</strong> <em>(<var>context_type</var>)</em><a href='#index-EAX_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This defines an all-in-one context struct, including the context of the
+underlying cipher and all <acronym>EAX</acronym> state. It expands
+to
+</p><div class="example">
+<pre class="example">{
+ struct eax_key key;
+ struct eax_ctx eax;
+ context_type cipher;
+}
+</pre></div>
+</dd></dl>
+
+<p>For all these macros, <var>ctx</var>, is a context struct as defined by
+<code>EAX_CTX</code>, and <var>encrypt</var> is the encryption function of the
+underlying cipher.
+</p>
+<dl class="def">
+<dt id="index-EAX_005fSET_005fKEY"><span class="category">Macro: </span><span><strong>EAX_SET_KEY</strong> <em>(<var>ctx</var>, <var>set_key</var>, <var>encrypt</var>, <var>key</var>)</em><a href='#index-EAX_005fSET_005fKEY' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>set_key</var> is the function for setting the encryption key for the
+underlying cipher, and <var>key</var> is the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fSET_005fNONCE"><span class="category">Macro: </span><span><strong>EAX_SET_NONCE</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>nonce</var>)</em><a href='#index-EAX_005fSET_005fNONCE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce to be used for the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fUPDATE"><span class="category">Macro: </span><span><strong>EAX_UPDATE</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>data</var>)</em><a href='#index-EAX_005fUPDATE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fENCRYPT"><span class="category">Macro: </span><span><strong>EAX_ENCRYPT</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-EAX_005fENCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-EAX_005fDECRYPT"><span class="category">Macro: </span><span><strong>EAX_DECRYPT</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-EAX_005fDECRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process message data for encryption or decryption.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-EAX_005fDIGEST"><span class="category">Macro: </span><span><strong>EAX_DIGEST</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>digest</var>)</em><a href='#index-EAX_005fDIGEST' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extract the authentication tag for the message.
+</p></dd></dl>
+
+
+</div>
+<div class="subsubsection" id="EAX_002dAES128-interface">
+<h4 class="subsubsection">7.4.1.3 <acronym>EAX</acronym>-<acronym>AES</acronym>128 interface</h4>
+
+<p>The following functions implement <acronym>EAX</acronym> using <acronym>AES</acronym>-128
+as the underlying cipher.
+</p>
+<dl class="def">
+<dt id="index-struct-eax_005faes128_005fctx"><span class="category">Context struct: </span><span><strong>struct eax_aes128_ctx</strong><a href='#index-struct-eax_005faes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The context struct, defined using <code>EAX_CTX</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005faes128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_set_key</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-eax_005faes128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005faes128_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_set_nonce</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-eax_005faes128_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the per-message state, using the given nonce.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005faes128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_update</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-eax_005faes128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005faes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_encrypt</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-eax_005faes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-eax_005faes128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_decrypt</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-eax_005faes128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-eax_005faes128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>eax_aes128_digest</strong> <em>(struct eax_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-eax_005faes128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. If <var>length</var> is
+smaller than <code>EAX_DIGEST_SIZE</code>, only the first <var>length</var> octets
+of the digest are written.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="GCM">
+<div class="header">
+<p>
+Next: <a href="#CCM" accesskey="n" rel="next">Counter with CBC-MAC mode</a>, Previous: <a href="#EAX" accesskey="p" rel="prev">EAX</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Galois-counter-mode"></span><h4 class="subsection">7.4.2 Galois counter mode</h4>
+
+<span id="index-Galois-Counter-Mode"></span>
+<span id="index-GCM"></span>
+
+<p>Galois counter mode is an <acronym>AEAD</acronym> constructions combining counter
+mode with message authentication based on universal hashing. The main
+objective of the design is to provide high performance for hardware
+implementations, where other popular <acronym>MAC</acronym> algorithms
+(see <a href="#Keyed-hash-functions">Keyed Hash Functions</a>) become a bottleneck for high-speed
+hardware implementations. It was proposed by David A. McGrew and John
+Viega in 2005, and recommended by NIST in 2007,
+<a href="https://csrc.nist.gov/publications/nistpubs/800-38D/SP-800-38D.pdf">NIST Special Publication 800-38D</a>. It is constructed on top of a block
+cipher which must have a block size of 128 bits.
+</p>
+<p>The authentication in <acronym>GCM</acronym> has some known weaknesses, see
+<a href="https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf">https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf</a>.
+In particular, don&rsquo;t use <acronym>GCM</acronym> with short authentication tags.
+</p>
+<p>Nettle&rsquo;s support for <acronym>GCM</acronym> consists of a low-level general
+interface, some convenience macros, and specific functions for
+<acronym>GCM</acronym> using <acronym>AES</acronym> or Camellia as the underlying cipher.
+These interfaces are defined in <samp>&lt;nettle/gcm.h&gt;</samp>
+</p>
+<ul class="section-toc">
+<li><a href="#General-GCM-interface" accesskey="1">General <acronym>GCM</acronym> interface</a></li>
+<li><a href="#GCM-helper-macros" accesskey="2"><acronym>GCM</acronym> helper macros</a></li>
+<li><a href="#GCM_002dAES-interface" accesskey="3"><acronym>GCM</acronym>-<acronym>AES</acronym> interface</a></li>
+<li><a href="#GCM_002dCamellia-interface" accesskey="4"><acronym>GCM</acronym>-Camellia interface</a></li>
+<li><a href="#GCM_002dSM4-interface" accesskey="5"><acronym>GCM</acronym>-SM4 interface</a></li>
+</ul>
+<div class="subsubsection" id="General-GCM-interface">
+<h4 class="subsubsection">7.4.2.1 General <acronym>GCM</acronym> interface</h4>
+
+<dl class="def">
+<dt id="index-struct-gcm_005fkey"><span class="category">Context struct: </span><span><strong>struct gcm_key</strong><a href='#index-struct-gcm_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Message independent hash sub-key, and related tables.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-gcm_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_ctx</strong><a href='#index-struct-gcm_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>GCM_BLOCK_SIZE</strong><a href='#index-GCM_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>GCM</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>GCM_DIGEST_SIZE</strong><a href='#index-GCM_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>GCM</acronym> digest, also 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fIV_005fSIZE"><span class="category">Constant: </span><span><strong>GCM_IV_SIZE</strong><a href='#index-GCM_005fIV_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Recommended size of the <acronym>IV</acronym>, 12. Arbitrary sizes are allowed.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_set_key</strong> <em>(struct gcm_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>)</em><a href='#index-gcm_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>key</var>. <var>cipher</var> gives a context struct for the
+underlying cipher, which must have been previously initialized for
+encryption, and <var>f</var> is the encryption function.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_set_iv</strong> <em>(struct gcm_ctx *<var>ctx</var>, const struct gcm_key *<var>key</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given <acronym>IV</acronym>. The <var>key</var>
+argument is actually needed only if <var>length</var> differs from
+<code>GCM_IV_SIZE</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_update</strong> <em>(struct gcm_ctx *<var>ctx</var>, const struct gcm_key *<var>key</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Provides associated data to be authenticated. If used, must be called
+before <code>gcm_encrypt</code> or <code>gcm_decrypt</code>. All but the last call
+for each message <em>must</em> use a length that is a multiple of the
+block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_encrypt</strong> <em>(struct gcm_ctx *<var>ctx</var>, const struct gcm_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_decrypt</strong> <em>(struct gcm_ctx *<var>ctx</var>, const struct gcm_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. <var>cipher</var> is the context
+struct for the underlying cipher and <var>f</var> is the encryption function.
+All but the last call for each message <em>must</em> use a length that is
+a multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_digest</strong> <em>(struct gcm_ctx *<var>ctx</var>, const struct gcm_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. It&rsquo;s strongly recommended
+that <var>length</var> is <code>GCM_DIGEST_SIZE</code>, but if you provide a smaller
+value, only the first <var>length</var> octets of the digest are written.
+</p></dd></dl>
+
+<p>To encrypt a message using <acronym>GCM</acronym>, first initialize a context for
+the underlying block cipher with a key to use for encryption. Then call
+the above functions in the following order: <code>gcm_set_key</code>,
+<code>gcm_set_iv</code>, <code>gcm_update</code>, <code>gcm_encrypt</code>,
+<code>gcm_digest</code>. The decryption procedure is analogous, just calling
+<code>gcm_decrypt</code> instead of <code>gcm_encrypt</code> (note that
+<acronym>GCM</acronym> decryption still uses the encryption function of the
+underlying block cipher). To process a new message, using the same key,
+call <code>gcm_set_iv</code> with a new <acronym>iv</acronym>.
+</p>
+</div>
+<div class="subsubsection" id="GCM-helper-macros">
+<h4 class="subsubsection">7.4.2.2 <acronym>GCM</acronym> helper macros</h4>
+
+<p>The following macros are defined.
+</p>
+<dl class="def">
+<dt id="index-GCM_005fCTX"><span class="category">Macro: </span><span><strong>GCM_CTX</strong> <em>(<var>context_type</var>)</em><a href='#index-GCM_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This defines an all-in-one context struct, including the context of the
+underlying cipher, the hash sub-key, and the per-message state. It expands
+to
+</p><div class="example">
+<pre class="example">{
+ struct gcm_key key;
+ struct gcm_ctx gcm;
+ context_type cipher;
+}
+</pre></div>
+</dd></dl>
+
+<p>Example use:
+</p><div class="example">
+<pre class="example">struct gcm_aes128_ctx GCM_CTX(struct aes128_ctx);
+</pre></div>
+
+<p>The following macros operate on context structs of this form.
+</p>
+<dl class="def">
+<dt id="index-GCM_005fSET_005fKEY"><span class="category">Macro: </span><span><strong>GCM_SET_KEY</strong> <em>(<var>ctx</var>, <var>set_key</var>, <var>encrypt</var>, <var>key</var>)</em><a href='#index-GCM_005fSET_005fKEY' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument, <var>ctx</var>, is a context struct as defined
+by <code>GCM_CTX</code>. <var>set_key</var> and <var>encrypt</var> are functions for
+setting the encryption key and for encrypting data using the underlying
+cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fSET_005fIV"><span class="category">Macro: </span><span><strong>GCM_SET_IV</strong> <em>(<var>ctx</var>, <var>length</var>, <var>data</var>)</em><a href='#index-GCM_005fSET_005fIV' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>First argument is a context struct as defined by
+<code>GCM_CTX</code>. <var>length</var> and <var>data</var> give the initialization
+vector (<acronym>IV</acronym>).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fUPDATE"><span class="category">Macro: </span><span><strong>GCM_UPDATE</strong> <em>(<var>ctx</var>, <var>length</var>, <var>data</var>)</em><a href='#index-GCM_005fUPDATE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Simpler way to call <code>gcm_update</code>. First argument is a context
+struct as defined by <code>GCM_CTX</code>
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-GCM_005fENCRYPT"><span class="category">Macro: </span><span><strong>GCM_ENCRYPT</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-GCM_005fENCRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-GCM_005fDECRYPT"><span class="category">Macro: </span><span><strong>GCM_DECRYPT</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>dst</var>, <var>src</var>)</em><a href='#index-GCM_005fDECRYPT' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-GCM_005fDIGEST"><span class="category">Macro: </span><span><strong>GCM_DIGEST</strong> <em>(<var>ctx</var>, <var>encrypt</var>, <var>length</var>, <var>digest</var>)</em><a href='#index-GCM_005fDIGEST' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Simpler way to call <code>gcm_encrypt</code>, <code>gcm_decrypt</code> or
+<code>gcm_digest</code>. First argument is a context struct as defined by
+<code>GCM_CTX</code>. Second argument, <var>encrypt</var>, is the encryption
+function of the underlying cipher.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="GCM_002dAES-interface">
+<h4 class="subsubsection">7.4.2.3 <acronym>GCM</acronym>-<acronym>AES</acronym> interface</h4>
+
+<p>The following functions implement the common case of <acronym>GCM</acronym> using
+<acronym>AES</acronym> as the underlying cipher. The variants with a specific
+<acronym>AES</acronym> flavor are recommended, while the fucntinos using
+<code>struct gcm_aes_ctx</code> are kept for compatibility with older versiosn
+of Nettle.
+</p>
+<dl class="def">
+<dt id="index-struct-gcm_005faes128_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_aes128_ctx</strong><a href='#index-struct-gcm_005faes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-gcm_005faes192_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_aes192_ctx</strong><a href='#index-struct-gcm_005faes192_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-gcm_005faes256_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_aes256_ctx</strong><a href='#index-struct-gcm_005faes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Context structs, defined using <code>GCM_CTX</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-gcm_005faes_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_aes_ctx</strong><a href='#index-struct-gcm_005faes_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Alternative context struct, using the old <acronym>AES</acronym> interface.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_set_key</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005faes128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_set_key</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005faes192_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_set_key</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005faes256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_set_key</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005faes_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Corresponding function, using the old <acronym>AES</acronym> interface. All valid
+<acronym>AES</acronym> key sizes can be used.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes128_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_set_iv</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005faes128_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_set_iv</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005faes192_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_set_iv</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005faes256_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_set_iv</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005faes_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the per-message state, using the given <acronym>IV</acronym>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_update</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005faes128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_update</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005faes192_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_update</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005faes256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_update</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005faes_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Provides associated data to be authenticated. If used, must be called
+before <code>gcm_aes_encrypt</code> or <code>gcm_aes_decrypt</code>. All but the
+last call for each message <em>must</em> use a length that is a multiple
+of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_encrypt</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_encrypt</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes192_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_encrypt</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_encrypt</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_decrypt</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_decrypt</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes192_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_decrypt</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes256_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_decrypt</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005faes_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005faes128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes128_digest</strong> <em>(struct gcm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005faes128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes192_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes192_digest</strong> <em>(struct gcm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005faes192_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes256_digest</strong> <em>(struct gcm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005faes256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005faes_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_aes_digest</strong> <em>(struct gcm_aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005faes_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. It&rsquo;s strongly recommended
+that <var>length</var> is <code>GCM_DIGEST_SIZE</code>, but if you provide a smaller
+value, only the first <var>length</var> octets of the digest are written.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="GCM_002dCamellia-interface">
+<h4 class="subsubsection">7.4.2.4 <acronym>GCM</acronym>-Camellia interface</h4>
+
+<p>The following functions implement the case of <acronym>GCM</acronym> using
+Camellia as the underlying cipher.
+</p>
+<dl class="def">
+<dt id="index-struct-gcm_005fcamellia128_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_camellia128_ctx</strong><a href='#index-struct-gcm_005fcamellia128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-gcm_005fcamellia256_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_camellia256_ctx</strong><a href='#index-struct-gcm_005fcamellia256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Context structs, defined using <code>GCM_CTX</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fcamellia128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_set_key</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005fcamellia128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_set_key</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005fcamellia256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fcamellia128_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_set_iv</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005fcamellia128_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_set_iv</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005fcamellia256_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the per-message state, using the given <acronym>IV</acronym>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fcamellia128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_update</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005fcamellia128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_update</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005fcamellia256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Provides associated data to be authenticated. If used, must be called
+before <code>gcm_camellia_encrypt</code> or <code>gcm_camellia_decrypt</code>. All but the
+last call for each message <em>must</em> use a length that is a multiple
+of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fcamellia128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_encrypt</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fcamellia128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_encrypt</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fcamellia256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_decrypt</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fcamellia128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_decrypt</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fcamellia256_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fcamellia128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia128_digest</strong> <em>(struct gcm_camellia128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fcamellia128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia192_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia192_digest</strong> <em>(struct gcm_camellia192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fcamellia192_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia256_digest</strong> <em>(struct gcm_camellia256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fcamellia256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fcamellia_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_camellia_digest</strong> <em>(struct gcm_camellia_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fcamellia_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. It&rsquo;s strongly recommended
+that <var>length</var> is <code>GCM_DIGEST_SIZE</code>, but if you provide a smaller
+value, only the first <var>length</var> octets of the digest are written.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="GCM_002dSM4-interface">
+<h4 class="subsubsection">7.4.2.5 <acronym>GCM</acronym>-SM4 interface</h4>
+
+<p>The following functions implement the case of <acronym>GCM</acronym> using
+SM4 as the underlying cipher.
+</p>
+<dl class="def">
+<dt id="index-struct-gcm_005fsm4_005fctx"><span class="category">Context struct: </span><span><strong>struct gcm_sm4_ctx</strong><a href='#index-struct-gcm_005fsm4_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Context structs, defined using <code>GCM_CTX</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fsm4_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_set_key</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-gcm_005fsm4_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fsm4_005fset_005fiv"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_set_iv</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>iv</var>)</em><a href='#index-gcm_005fsm4_005fset_005fiv' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the per-message state, using the given <acronym>IV</acronym>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fsm4_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_update</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-gcm_005fsm4_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Provides associated data to be authenticated. If used, must be called
+before <code>gcm_sm4_encrypt</code> or <code>gcm_sm4_decrypt</code>. All but the
+last call for each message <em>must</em> use a length that is a multiple
+of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fsm4_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_encrypt</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fsm4_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-gcm_005fsm4_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_decrypt</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-gcm_005fsm4_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gcm_005fsm4_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>gcm_sm4_digest</strong> <em>(struct gcm_sm4_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-gcm_005fsm4_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. It&rsquo;s strongly recommended
+that <var>length</var> is <code>GCM_DIGEST_SIZE</code>, but if you provide a smaller
+value, only the first <var>length</var> octets of the digest are written.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="CCM">
+<div class="header">
+<p>
+Next: <a href="#ChaCha_002dPoly1305" accesskey="n" rel="next">ChaCha-Poly1305</a>, Previous: <a href="#GCM" accesskey="p" rel="prev">Galois counter mode</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Counter-with-CBC_002dMAC-mode"></span><h4 class="subsection">7.4.3 Counter with CBC-MAC mode</h4>
+
+<span id="index-Counter-with-CBC_002dMAC-Mode"></span>
+<span id="index-CCM-Mode"></span>
+
+<p><acronym>CCM</acronym> mode is a combination of counter mode with message
+authentication based on cipher block chaining, the same building blocks
+as <acronym>EAX</acronym>, see <a href="#EAX">EAX</a>. It is constructed on top of a block cipher
+which must have a block size of 128 bits. <acronym>CCM</acronym> mode is
+recommended by NIST in
+<a href="https://csrc.nist.gov/publications/nistpubs/800-38C/SP800-38C_updated-July20_2007.pdf">NIST Special Publication 800-38C</a>. Nettle&rsquo;s support for CCM consists of
+a low-level general interface, a message encryption and authentication
+interface, and specific functions for CCM using AES as the underlying
+block cipher. These interfaces are defined in <samp>&lt;nettle/ccm.h&gt;</samp>.
+</p>
+<p>In <acronym>CCM</acronym>, the length of the message must be known before
+processing. The maximum message size depends on the size of the nonce,
+since the message size is encoded in a field which must fit in a single
+block, together with the nonce and a flag byte. E.g., with a nonce size
+of 12 octets, there are three octets left for encoding the message
+length, the maximum message length is <em class='math'>2^24 - 1</em> octets.
+</p>
+<p><acronym>CCM</acronym> mode encryption operates as follows:
+</p><ul>
+<li> The nonce and message length are concatenated to create
+<code>B_0 = flags | nonce | mlength</code>
+
+</li><li> The authenticated data and plaintext is formatted into the string
+<code>B = L(adata) | adata | padding | plaintext | padding</code> with
+<code>padding</code> being the shortest string of zero bytes such that the
+length of the string is a multiple of the block size, and
+<code>L(adata)</code> is an encoding of the length of <code>adata</code>.
+
+</li><li> The string <code>B</code> is separated into blocks <code>B_1</code> ...
+<code>B_n</code>
+</li><li> The authentication tag <code>T</code> is calculated as
+<code>T=0, for i=0 to n, do T = E_k(B_i XOR T)</code>
+
+</li><li> An initial counter is then initialized from the nonce to create
+<code>IC = flags | nonce | padding</code>, where <code>padding</code> is the
+shortest string of zero bytes such that <code>IC</code> is exactly one block
+in length.
+
+</li><li> The authentication tag is encrypted using using <acronym>CTR</acronym> mode:
+<code>MAC = E_k(IC) XOR T</code>
+
+</li><li> The plaintext is then encrypted using <acronym>CTR</acronym> mode with an
+initial counter of <code>IC+1</code>.
+</li></ul>
+
+<p><acronym>CCM</acronym> mode decryption operates similarly, except that the
+ciphertext and <acronym>MAC</acronym> are first decrypted using CTR mode to
+retrieve the plaintext and authentication tag. The authentication tag
+can then be recalculated from the authenticated data and plaintext, and
+compared to the value in the message to check for authenticity.
+</p>
+<ul class="section-toc">
+<li><a href="#General-CCM-interface" accesskey="1">General <acronym>CCM</acronym> interface</a></li>
+<li><a href="#CCM-message-interface" accesskey="2"><acronym>CCM</acronym> message interface</a></li>
+<li><a href="#CCM_002dAES-interface" accesskey="3"><acronym>CCM</acronym>-<acronym>AES</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="General-CCM-interface">
+<h4 class="subsubsection">7.4.3.1 General <acronym>CCM</acronym> interface</h4>
+
+<p>For all of the functions in the <acronym>CCM</acronym> interface, <var>cipher</var> is
+the context struct for the underlying cipher and <var>f</var> is the
+encryption function. The cipher&rsquo;s encryption key must be set before
+calling any of the <acronym>CCM</acronym> functions. The cipher&rsquo;s decryption
+function and key are never used.
+</p>
+<dl class="def">
+<dt id="index-struct-ccm_005fctx"><span class="category">Context struct: </span><span><strong>struct ccm_ctx</strong><a href='#index-struct-ccm_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CCM_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>CCM_BLOCK_SIZE</strong><a href='#index-CCM_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>CCM</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CCM_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>CCM_DIGEST_SIZE</strong><a href='#index-CCM_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>CCM</acronym> digest, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CCM_005fMIN_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>CCM_MIN_NONCE_SIZE</strong><a href='#index-CCM_005fMIN_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-CCM_005fMAX_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>CCM_MAX_NONCE_SIZE</strong><a href='#index-CCM_005fMAX_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The the minimum and maximum sizes for an <acronym>CCM</acronym> nonce, 7 and 14,
+respectively.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CCM_005fMAX_005fMSG_005fSIZE"><span class="category">Macro: </span><span><strong>CCM_MAX_MSG_SIZE</strong> <em>(<var>nonce_size</var>)</em><a href='#index-CCM_005fMAX_005fMSG_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The largest allowed plaintext length, when using <acronym>CCM</acronym> with a
+nonce of the given size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ccm_set_nonce</strong> <em>(struct ccm_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>noncelen</var>, const uint8_t *<var>nonce</var>, size_t <var>authlen</var>, size_t <var>msglen</var>, size_t <var>taglen</var>)</em><a href='#index-ccm_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given nonce and the sizes of the
+authenticated data, message, and <acronym>MAC</acronym> to be processed.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ccm_update</strong> <em>(struct ccm_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ccm_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Provides associated data to be authenticated. Must be called after
+<code>ccm_set_nonce</code>, and before <code>ccm_encrypt</code>, <code>ccm_decrypt</code>, or
+<code>ccm_digest</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_encrypt</strong> <em>(struct ccm_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_decrypt</strong> <em>(struct ccm_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the message data. Must be called after
+<code>ccm_set_nonce</code> and before <code>ccm_digest</code>. All but the last call
+for each message <em>must</em> use a length that is a multiple of the
+block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ccm_digest</strong> <em>(struct ccm_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ccm_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. <var>length</var> is usually
+equal to the <var>taglen</var> parameter supplied to <code>ccm_set_nonce</code>,
+but if you provide a smaller value, only the first <var>length</var> octets
+of the digest are written.
+</p></dd></dl>
+
+<p>To encrypt a message using the general <acronym>CCM</acronym> interface, set the
+message nonce and length using <code>ccm_set_nonce</code> and then call
+<code>ccm_update</code> to generate the digest of any authenticated data.
+After all of the authenticated data has been digested use
+<code>ccm_encrypt</code> to encrypt the plaintext. Finally, use
+<code>ccm_digest</code> to return the encrypted <acronym>MAC</acronym>.
+</p>
+<p>To decrypt a message, use <code>ccm_set_nonce</code> and <code>ccm_update</code> the
+same as you would for encryption, and then call <code>ccm_decrypt</code> to
+decrypt the ciphertext. After decrypting the ciphertext
+<code>ccm_digest</code> will return the encrypted <acronym>MAC</acronym> which should
+be identical to the <acronym>MAC</acronym> in the received message.
+</p>
+</div>
+<div class="subsubsection" id="CCM-message-interface">
+<h4 class="subsubsection">7.4.3.2 <acronym>CCM</acronym> message interface</h4>
+
+<p>The <acronym>CCM</acronym> message fuctions provides a simple interface that will
+perform authentication and message encryption in a single function call.
+The length of the cleartext is given by <var>mlength</var> and the length of
+the ciphertext is given by <var>clength</var>, always exactly <var>tlength</var>
+bytes longer than the corresponding plaintext. The length argument
+passed to a function is always the size for the result, <var>clength</var>
+for the encryption functions, and <var>mlength</var> for the decryption
+functions.
+</p>
+<dl class="def">
+<dt id="index-ccm_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ccm_encrypt_message</strong> <em>(void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, appends the encrypted
+<acronym>MAC</acronym> to ciphertext and outputs it to <var>dst</var>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>ccm_decrypt_message</strong> <em>(void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>, recalculates the <acronym>MAC</acronym> from <var>adata</var> and the
+plaintext, and compares it to the final <var>tlength</var> bytes of
+<var>src</var>. If the values of the received and calculated <acronym>MAC</acronym>s
+are equal, this will return 1 indicating a valid and authenticated
+message. Otherwise, this function will return zero.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="CCM_002dAES-interface">
+<h4 class="subsubsection">7.4.3.3 <acronym>CCM</acronym>-<acronym>AES</acronym> interface</h4>
+
+<p>The <acronym>AES</acronym> <acronym>CCM</acronym> functions provide an API for using
+<acronym>CCM</acronym> mode with the <acronym>AES</acronym> block ciphers. The parameters
+all have the same meaning as the general and message interfaces, except
+that the <var>cipher</var>, <var>f</var>, and <var>ctx</var> parameters are replaced
+with an <acronym>AES</acronym> context structure, and a set-key function must be
+called before using any of the other functions in this interface.
+</p>
+<dl class="def">
+<dt id="index-struct-ccm_005faes128_005fctx"><span class="category">Context struct: </span><span><strong>struct ccm_aes128_ctx</strong><a href='#index-struct-ccm_005faes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message encrypted using the
+AES-128 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-ccm_005faes192_005fctx"><span class="category">Context struct: </span><span><strong>struct ccm_aes192_ctx</strong><a href='#index-struct-ccm_005faes192_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message encrypted using the
+AES-192 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-ccm_005faes256_005fctx"><span class="category">Context struct: </span><span><strong>struct ccm_aes256_ctx</strong><a href='#index-struct-ccm_005faes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message encrypted using the
+AES-256 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_set_key</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-ccm_005faes128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_set_key</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-ccm_005faes192_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_set_key</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-ccm_005faes256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the encryption key for the AES block cipher. One of these
+functions must be called before any of the other functions in the
+<acronym>AES</acronym> <acronym>CCM</acronym> interface.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_set_nonce</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>noncelen</var>, const uint8_t *<var>nonce</var>, size_t <var>authlen</var>, size_t <var>msglen</var>, size_t <var>taglen</var>)</em><a href='#index-ccm_005faes128_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_set_nonce</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>noncelen</var>, const uint8_t *<var>nonce</var>, size_t <var>authlen</var>, size_t <var>msglen</var>, size_t <var>taglen</var>)</em><a href='#index-ccm_005faes192_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_set_nonce</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>noncelen</var>, const uint8_t *<var>nonce</var>, size_t <var>authlen</var>, size_t <var>msglen</var>, size_t <var>taglen</var>)</em><a href='#index-ccm_005faes256_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>ccm_set_nonce</code>, except that <var>cipher</var>,
+<var>f</var>, and <var>ctx</var> are replaced with a context structure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_update</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ccm_005faes128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_update</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ccm_005faes192_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_update</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ccm_005faes256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>ccm_set_update</code>, except that <var>cipher</var>,
+<var>f</var>, and <var>ctx</var> are replaced with a context structure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_encrypt</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_encrypt</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes192_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_encrypt</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_decrypt</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_decrypt</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes192_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_decrypt</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes256_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>ccm_set_encrypt</code> and <code>ccm_set_decrypt</code>, except
+that <var>cipher</var>, <var>f</var>, and <var>ctx</var> are replaced with a context structure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_digest</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ccm_005faes128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_digest</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ccm_005faes192_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_digest</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ccm_005faes256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>ccm_set_digest</code>, except that <var>cipher</var>,
+<var>f</var>, and <var>ctx</var> are replaced with a context structure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ccm_005faes128_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes128_encrypt_message</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes128_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes192_encrypt_message</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes192_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes256_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ccm_aes256_encrypt_message</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes256_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes128_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>ccm_aes128_decrypt_message</strong> <em>(struct ccm_aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes128_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>ccm_aes192_decrypt_message</strong> <em>(struct ccm_aes192_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes192_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-ccm_005faes192_005fdecrypt_005fmessage-1"><span class="category">Function: </span><span><em>int</em> <strong>ccm_aes192_decrypt_message</strong> <em>(struct ccm_aes256_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ccm_005faes192_005fdecrypt_005fmessage-1' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are identical to <code>ccm_encrypt_message</code> and <code>ccm_decrypt_message</code>
+except that <var>cipher</var> and <var>f</var> are replaced with a context structure.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="ChaCha_002dPoly1305">
+<div class="header">
+<p>
+Next: <a href="#OCB" accesskey="n" rel="next"><acronym>OCB</acronym> (Offset Code Book) Mode</a>, Previous: <a href="#CCM" accesskey="p" rel="prev">Counter with CBC-MAC mode</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="ChaCha_002dPoly1305-1"></span><h4 class="subsection">7.4.4 ChaCha-Poly1305</h4>
+
+<p>ChaCha-Poly1305 is a combination of the ChaCha stream cipher and the
+poly1305 message authentication code (see <a href="#Poly1305">Poly1305</a>). It originates
+from the NaCl cryptographic library by D. J. Bernstein et al, which
+defines a similar construction but with Salsa20 instead of ChaCha.
+</p>
+<p>Nettle&rsquo;s implementation of ChaCha-Poly1305 follows <cite>RFC 8439</cite>,
+where the ChaCha cipher is initialized with a 12-byte nonce and a 4-byte
+block counter. This allows up to 256 gigabytes of data to be encrypted
+using the same key and nonce.
+</p>
+<p>For ChaCha-Poly1305, the ChaCha cipher is initialized with a key, of 256
+bits, and a per-message nonce. The first block of the key stream
+(counter all zero) is set aside for the authentication subkeys. Of this
+64-octet block, the first 16 octets specify the poly1305 evaluation
+point, and the next 16 bytes specify the value to add in for the final
+digest. The final 32 bytes of this block are unused. Note that unlike
+poly1305-aes, the evaluation point depends on the nonce. This is
+preferable, because it leaks less information in case the attacker for
+some reason is lucky enough to forge a valid authentication tag, and
+observe (from the receiver&rsquo;s behaviour) that the forgery succeeded.
+</p>
+<p>The ChaCha key stream, starting with counter value 1, is then used to
+encrypt the message. For authentication, poly1305 is applied to the
+concatenation of the associated data, the cryptotext, and the lengths of
+the associated data and the message, each a 64-bit number (eight octets,
+little-endian). Nettle defines ChaCha-Poly1305 in
+<samp>&lt;nettle/chacha-poly1305.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-CHACHA_005fPOLY1305_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_POLY1305_BLOCK_SIZE</strong><a href='#index-CHACHA_005fPOLY1305_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Same as the ChaCha block size, 64.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fPOLY1305_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_POLY1305_KEY_SIZE</strong><a href='#index-CHACHA_005fPOLY1305_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>ChaCha-Poly1305 key size, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fPOLY1305_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_POLY1305_NONCE_SIZE</strong><a href='#index-CHACHA_005fPOLY1305_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>ChaCha-Poly1305 nonce size, 12.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CHACHA_005fPOLY1305_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>CHACHA_POLY1305_DIGEST_SIZE</strong><a href='#index-CHACHA_005fPOLY1305_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Digest size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-chacha_005fpoly1305_005fctx"><span class="category">Context struct: </span><span><strong>struct chacha_poly1305_ctx</strong><a href='#index-struct-chacha_005fpoly1305_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-chacha_005fpoly1305_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_set_key</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-chacha_005fpoly1305_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> using the given key. Before using the context, you
+<em>must</em> also call <code>chacha_poly1305_set_nonce</code>, see below.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fpoly1305_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_set_nonce</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-chacha_005fpoly1305_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the per-message state, using the given nonce.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fpoly1305_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_update</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-chacha_005fpoly1305_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fpoly1305_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_encrypt</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-chacha_005fpoly1305_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-chacha_005fpoly1305_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_decrypt</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-chacha_005fpoly1305_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts or decrypts the data of a message. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-chacha_005fpoly1305_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>chacha_poly1305_digest</strong> <em>(struct chacha_poly1305_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-chacha_005fpoly1305_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. If <var>length</var> is
+smaller than <code>CHACHA_POLY1305_DIGEST_SIZE</code>, only the first
+<var>length</var> octets of the digest are written.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="OCB">
+<div class="header">
+<p>
+Next: <a href="#SIV_002dCMAC" accesskey="n" rel="next">Synthetic Initialization Vector AEAD</a>, Previous: <a href="#ChaCha_002dPoly1305" accesskey="p" rel="prev">ChaCha-Poly1305</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="OCB-_0028Offset-Code-Book_0029-Mode"></span><h4 class="subsection">7.4.5 <acronym>OCB</acronym> (Offset Code Book) Mode</h4>
+
+<span id="index-OCB"></span>
+<span id="index-OCB-mode"></span>
+<span id="index-Offset-Code-Book"></span>
+
+<p>The <acronym>OCB</acronym> mode is an <acronym>AEAD</acronym> construction, featuring
+particularly fast and simple authentication; it needs one block cipher
+operation per data block, and almost free authentication. It is
+constructed on top of a block cipher which must have a block size of 128
+bits.
+</p>
+<p>There have been several versions of the OCB scheme, the implementation
+in Nettle follows <cite>RFC 7253</cite>, which is almost the same as the
+scheme OCB3.
+</p>
+<ul class="section-toc">
+<li><a href="#General-interface" accesskey="1">General interface</a></li>
+<li><a href="#OCB_002dAES-interface" accesskey="2"><acronym>OCB-AES</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="General-interface">
+<h4 class="subsubsection">7.4.5.1 General interface</h4>
+
+<dl class="def">
+<dt id="index-struct-ocb_005fkey"><span class="category">Context struct: </span><span><strong>struct ocb_key</strong><a href='#index-struct-ocb_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>OCB</acronym> state which depends only on the key, but not on the nonce
+or the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-ocb_005fctx"><span class="category">Context struct: </span><span><strong>struct ocb_ctx</strong><a href='#index-struct-ocb_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-OCB_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>OCB_BLOCK_SIZE</strong><a href='#index-OCB_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The block size for <acronym>OCB</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-OCB_005fMAX_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>OCB_MAX_NONCE_SIZE</strong><a href='#index-OCB_005fMAX_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The maximum nonce size for <acronym>OCB</acronym>, 15.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-OCB_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>OCB_DIGEST_SIZE</strong><a href='#index-OCB_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>OCB</acronym> authentication tag.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ocb_set_key</strong> <em>(struct ocb_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>)</em><a href='#index-ocb_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the <var>key</var> struct. The <var>cipher</var> context must be
+initialized for encryption, and <var>f</var> should be the corresponding
+encryption function.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ocb_set_nonce</strong> <em>(struct ocb_ctx *<var>ctx</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>tag_length</var>, size_t <var>nonce_length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-ocb_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> for processing a new message, using the given
+nonce. The <var>cipher</var> must be initialized for encryption, and <var>f</var>
+should be the corresponding encryption function. The <var>tag_length</var>
+(non-zero, and at most 16) is included when initializing the state, and
+should be the same value later passed to <code>ocb_digest</code>. Nonce is
+optional, and length at most 15 bytes.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ocb_update</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ocb_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ocb_encrypt</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts the data of a message. <var>cipher</var> is the context struct for
+the underlying cipher and <var>f</var> is the encryption function. All but
+the last call for each message <em>must</em> use a length that is a
+multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ocb_decrypt</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_key *<var>key</var>, const void *<var>encrypt_ctx</var>, nettle_cipher_func *<var>encrypt</var>, const void *<var>decrypt_ctx</var>, nettle_cipher_func *<var>decrypt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the data of a message. <var>encrypt_ctx</var> and <var>encrypt</var>
+define the encryption operation of the underlying cipher, while
+<var>decrypt_ctx</var> and <var>decrypt</var> represent the decryption operation
+(for some ciphers, one of context pointer and function pointer may be
+the same). All but the last call for each message <em>must</em> use a
+length that is a multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ocb_digest</strong> <em>(const struct ocb_ctx *<var>ctx</var>, const struct ocb_key *<var>key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ocb_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. The <var>length</var> value
+<em>should</em> be the same as the tag length passed to the preceding
+<code>ocb_set_nonce</code> call (using a different length is possible, but
+incompatible with <cite>RFC 7253</cite>).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ocb_encrypt_message</strong> <em>(const struct ocb_key *<var>ocb_key</var>, const void *<var>cipher</var>, nettle_cipher_func *<var>f</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, appends the tag to
+the ciphertext and writes it to <var>dst</var>. The <var>clength</var> variable
+must be equal to the length of <var>src</var> plus <var>tlength</var>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>ocb_decrypt_message</strong> <em>(const struct ocb_key *<var>ocb_key</var>, const void *<var>encrypt_ctx</var>, nettle_cipher_func *<var>encrypt</var>, const void *<var>decrypt_ctx</var>, nettle_cipher_func *<var>decrypt</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>. Like <code>ocb_decrypt</code>, it needs both the encrypt and the
+decrypt function of the underlying cipher. It also recalculates the
+authentication tag from <var>adata</var> and the plaintext, and compares it
+to the final <var>tlength</var> bytes of <var>src</var>. If the values of the
+received and calculated tags are equal, this will return 1 indicating a
+valid and authenticated message. Otherwise, this function will return
+zero.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="OCB_002dAES-interface">
+<h4 class="subsubsection">7.4.5.2 <acronym>OCB-AES</acronym> interface</h4>
+
+
+<dl class="def">
+<dt id="index-struct-ocb_005faes128_005fencrypt_005fkey"><span class="category">Context struct: </span><span><strong>struct ocb_aes128_encrypt_key</strong><a href='#index-struct-ocb_005faes128_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Key-dependent state for encryption using <acronym>OCB-AES128</acronym>. For
+decryption, a separate <code>struct aes128_ctx</code>, initialized for
+decryption, is needed as well.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fset_005fencrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_set_encrypt_key</strong> <em>(struct ocb_aes128_encrypt_key *<var>ocb</var>, const uint8_t *<var>key</var>)</em><a href='#index-ocb_005faes128_005fset_005fencrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ocb</var> and the underlying AES cipher with the given key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fset_005fdecrypt_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_set_decrypt_key</strong> <em>(struct ocb_aes128_encrypt_key *<var>ocb</var>, struct aes128_ctx *<var>decrypt</var>, const uint8_t *<var>key</var>)</em><a href='#index-ocb_005faes128_005fset_005fdecrypt_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ocb</var> and the underlying AES cipher with the given key.
+In addition, initialize <var>decrypt</var> for decryption using the same key;
+this is needed for <code>ocb_aes128_decrypt</code> and
+<code>ocb_aes128_decrypt_message</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_set_nonce</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_aes128_encrypt_key *<var>key</var>, size_t <var>tag_length</var>, size_t <var>nonce_length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-ocb_005faes128_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>ctx</var> for processing a new message, using the given
+nonce and key. The <var>tag_length</var> (non-zero, and at most 16) is
+included when initializing the state, and should be the same value later
+passed to <code>ocb_digest</code>. Nonce is optional, and length at most 15
+bytes.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_update</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_aes128_encrypt_key *<var>key</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-ocb_005faes128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process associated data for authentication. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fencrypt"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_encrypt</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_aes128_encrypt_key *<var>key</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005faes128_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encrypts the data of a message. All but the last call for each message
+<em>must</em> use a length that is a multiple of the block size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fdecrypt"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_decrypt</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_aes128_encrypt_key *<var>key</var>, const struct aes128_ctx *<var>decrypt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005faes128_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the data of a message. <var>decrypt</var> is an AES context
+initialized for decryption using the same key. All but the last call for
+each message <em>must</em> use a length that is a multiple of the block
+size.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_digest</strong> <em>(struct ocb_ctx *<var>ctx</var>, const struct ocb_aes128_encrypt_key *<var>key</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-ocb_005faes128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the message digest (also known &ldquo;authentication tag&rdquo;). This is
+the final operation when processing a message. The <var>length</var> value
+<em>should</em> be the same as the tag length passed to the preceding
+<code>ocb_aes128_set_nonce</code> call (using a different length is possible, but
+incompatible with <cite>RFC 7253</cite>).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>ocb_aes128_encrypt_message</strong> <em>(const struct ocb_aes128_encrypt_key *<var>key</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005faes128_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, appends the tag to
+the ciphertext and writes it to <var>dst</var>. The <var>clength</var> variable
+must be equal to the length of <var>src</var> plus <var>tlength</var>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ocb_005faes128_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>ocb_aes128_decrypt_message</strong> <em>(const struct ocb_aes128_encrypt_key *<var>key</var>, const struct aes128_ctx *<var>decrypt</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>tlength</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-ocb_005faes128_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>. Like <code>ocb_aes128_decrypt</code>, it needs an AES context
+initialized for decryption using the same key. It also recalculates the
+authentication tag from <var>adata</var> and the plaintext, and compares it
+to the final <var>tlength</var> bytes of <var>src</var>. If the values of the
+received and calculated tags are equal, this will return 1 indicating a
+valid and authenticated message. Otherwise, this function will return
+zero.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="SIV_002dCMAC">
+<div class="header">
+<p>
+Next: <a href="#SIV_002dGCM" accesskey="n" rel="next">SIV-GCM</a>, Previous: <a href="#OCB" accesskey="p" rel="prev"><acronym>OCB</acronym> (Offset Code Book) Mode</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Synthetic-Initialization-Vector-AEAD"></span><h4 class="subsection">7.4.6 Synthetic Initialization Vector AEAD</h4>
+
+<span id="index-SIV-mode"></span>
+<span id="index-SIV_002dCMAC-mode"></span>
+
+<p><acronym>SIV-CMAC</acronym> mode is a combination of counter mode with message
+authentication based on <acronym>CMAC</acronym>. Unlike other counter <acronym>AEAD</acronym>
+modes, it provides protection against accidental nonce misuse, making it
+a good choice for stateless-servers that cannot ensure nonce uniqueness.
+It is constructed on top of a block cipher which must have a block size of
+128 bits. Nettle&rsquo;s support for <acronym>SIV-CMAC</acronym> consists of
+a message encryption and authentication interface, for
+<acronym>SIV-CMAC</acronym> using AES as the underlying block cipher.
+When a nonce is re-used with this mode, message authenticity is retained
+however an attacker can determine whether the same plaintext was protected
+with the two messages sharing the nonce.
+These interfaces are defined in <samp>&lt;nettle/siv-cmac.h&gt;</samp>.
+</p>
+<p>Unlike other <acronym>AEAD</acronym> mode in <acronym>SIV-CMAC</acronym> the initialization
+vector serves as the tag. That means that in the generated ciphertext
+the tag precedes the ciphertext.
+</p>
+<p>Note also, that the <acronym>SIV-CMAC</acronym> algorithm, as specified in
+<cite>RFC 5297</cite>, introduces the notion of authenticated data which
+consist of multiple components. For example with <acronym>SIV-CMAC</acronym> the
+authentication tag of data <code>X</code> followed by <code>Y</code>, is different
+than the concatenated data <code>X || Y</code>. The interfaces described below
+follow the <acronym>AEAD</acronym> paradigm and do not allow access to this
+feature and also require the use of a non-empty nonce. In the
+terminology of the RFC, the input to the S2V function is always a vector
+of three elements, where S1 is the authenticated data, S2 is the nonce,
+and S3 is the plaintext.
+</p>
+
+<ul class="section-toc">
+<li><a href="#General-interface-1" accesskey="1">General interface</a></li>
+<li><a href="#SIV_002dCMAC_002dAES-interface" accesskey="2"><acronym>SIV-CMAC</acronym>-<acronym>AES</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="General-interface-1">
+<h4 class="subsubsection">7.4.6.1 General interface</h4>
+
+<dl class="def">
+<dt id="index-SIV_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_BLOCK_SIZE</strong><a href='#index-SIV_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>SIV-CMAC</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SIV_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_DIGEST_SIZE</strong><a href='#index-SIV_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>SIV-CMAC</acronym> digest or initialization vector, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SIV_005fMIN_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_MIN_NONCE_SIZE</strong><a href='#index-SIV_005fMIN_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The the minimum size for an <acronym>SIV-CMAC</acronym> nonce, 1.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="SIV_002dCMAC_002dAES-interface">
+<h4 class="subsubsection">7.4.6.2 <acronym>SIV-CMAC</acronym>-<acronym>AES</acronym> interface</h4>
+
+<p>The <acronym>AES</acronym> <acronym>SIV-CMAC</acronym> functions provide an API for using
+<acronym>SIV-CMAC</acronym> mode with the <acronym>AES</acronym> block ciphers. The parameters
+all have the same meaning as the general and message interfaces, except
+that the <var>cipher</var>, <var>f</var>, and <var>ctx</var> parameters are replaced
+with an <acronym>AES</acronym> context structure, and a set-key function must be
+called before using any of the other functions in this interface.
+</p>
+<dl class="def">
+<dt id="index-struct-siv_005fcmac_005faes128_005fctx"><span class="category">Context struct: </span><span><strong>struct siv_cmac_aes128_ctx</strong><a href='#index-struct-siv_005fcmac_005faes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message encrypted using the
+AES-128 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-siv_005fcmac_005faes256_005fctx"><span class="category">Context struct: </span><span><strong>struct siv_cmac_aes256_ctx</strong><a href='#index-struct-siv_005fcmac_005faes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Holds state corresponding to a particular message encrypted using the
+AES-256 block cipher.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fcmac_005faes128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>siv_cmac_aes128_set_key</strong> <em>(struct siv_cmac_aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-siv_005fcmac_005faes128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-siv_005fcmac_005faes256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>siv_cmac_aes256_set_key</strong> <em>(struct siv_cmac_aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-siv_005fcmac_005faes256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the encryption key for the AES block cipher. One of these
+functions must be called before any of the other functions in the
+<acronym>AES</acronym> <acronym>SIV-CMAC</acronym> interface.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fcmac_005faes128_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>siv_cmac_aes128_encrypt_message</strong> <em>(struct siv_cmac_aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fcmac_005faes128_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-siv_005fcmac_005faes256_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>siv_cmac_aes256_encrypt_message</strong> <em>(struct siv_cmac_aes256_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fcmac_005faes256_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, prepends the
+initialization vector to the ciphertext and outputs it to <var>dst</var>.
+The <var>clength</var> variable must be equal to the length of <var>src</var>
+plus <code>SIV_DIGEST_SIZE</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fcmac_005faes128_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>siv_cmac_aes128_decrypt_message</strong> <em>(struct siv_cmac_aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fcmac_005faes128_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-siv_005fcmac_005faes256_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>siv_cmac_aes256_decrypt_message</strong> <em>(struct siv_cmac_aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fcmac_005faes256_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>, recalculates the initialization vector from <var>adata</var> and the
+plaintext. If the values of the received and calculated initialization vector
+are equal, this will return 1 indicating a valid and authenticated
+message. Otherwise, this function will return zero.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="SIV_002dGCM">
+<div class="header">
+<p>
+Next: <a href="#nettle_005faead-abstraction" accesskey="n" rel="next">The <code>struct nettle_aead</code> abstraction</a>, Previous: <a href="#SIV_002dCMAC" accesskey="p" rel="prev">Synthetic Initialization Vector AEAD</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="SIV_002dGCM-1"></span><h4 class="subsection">7.4.7 SIV-GCM</h4>
+
+<p><acronym>SIV-GCM</acronym>, described in <cite>RFC 8452</cite>, is an <acronym>AEAD</acronym>
+construction similar to <acronym>AES-GCM</acronym>, but provides protection against
+accidental nonce misuse like <acronym>SIV-CMAC</acronym> mode.
+</p>
+<p>It is constructed on top of a block cipher which must have a block size of 128
+bits and a nonce size of 12 bytes. Nettle&rsquo;s support for <acronym>SIV-GCM</acronym>
+consists of a message encryption and authentication interface, for
+<acronym>SIV-GCM</acronym> using AES as the underlying block cipher. These
+interfaces are defined in <samp>&lt;nettle/siv-gcm.h&gt;</samp>.
+</p>
+<p>Unlike other <acronym>AEAD</acronym> mode in <acronym>SIV-GCM</acronym> the tag is calculated
+over the encoded additional authentication data and plaintext instead of the
+ciphertext.
+</p>
+<ul class="section-toc">
+<li><a href="#General-interface-2" accesskey="1">General interface</a></li>
+<li><a href="#SIV_002dGCM_002dAES-interface" accesskey="2"><acronym>SIV-GCM</acronym>-<acronym>AES</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="General-interface-2">
+<h4 class="subsubsection">7.4.7.1 General interface</h4>
+
+<dl class="def">
+<dt id="index-SIV_005fGCM_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_GCM_BLOCK_SIZE</strong><a href='#index-SIV_005fGCM_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>SIV-GCM</acronym>&rsquo;s block size, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SIV_005fGCM_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_GCM_DIGEST_SIZE</strong><a href='#index-SIV_005fGCM_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>SIV-GCM</acronym> digest for tags, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-SIV_005fGCM_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>SIV_GCM_NONCE_SIZE</strong><a href='#index-SIV_005fGCM_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the <acronym>SIV-GCM</acronym> nonce, 12.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fgcm_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>siv_gcm_encrypt_message</strong> <em>(const struct nettle_cipher *<var>nc</var>, const void *<var>ctx</var>, void *<var>ctr_ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, appends the
+authentication tag to the ciphertext and outputs it to <var>dst</var>. The
+<var>clength</var> variable must be equal to the length of <var>src</var> plus
+<code>SIV_GCM_DIGEST_SIZE</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fgcm_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>siv_gcm_decrypt_message</strong> <em>(const struct nettle_cipher *<var>nc</var>, const void *<var>ctx</var>, void *<var>ctr_ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>, recalculates the initialization vector from <var>adata</var> and the
+plaintext. If the values of the received and calculated initialization vector
+are equal, this will return 1 indicating a valid and authenticated
+message. Otherwise, this function will return zero.
+</p></dd></dl>
+
+<p>In the above interface, <var>nc</var> must point to a cipher that works
+with 16-byte block size and the key sizes that are multiple of
+8-bytes. The <var>ctx</var> context structure must be initialized for
+encryption mode using a set-key function, before using any of the
+functions in this interface. While the <var>ctr_ctx</var> context
+structure must have the same size as <var>ctx</var>, it does not need to be
+initialized before calling those functions as it is used as working
+storage. These structures can point to the same area; in that case
+the contents of *<var>ctx</var> is destroyed by the call.
+</p>
+<p>For convenience, Nettle provides wrapper functions that works with
+<acronym>AES</acronym> described in the following section.
+</p>
+</div>
+<div class="subsubsection" id="SIV_002dGCM_002dAES-interface">
+<h4 class="subsubsection">7.4.7.2 <acronym>SIV-GCM</acronym>-<acronym>AES</acronym> interface</h4>
+
+<p>The <acronym>SIV-GCM</acronym> functions provide an API for using <acronym>SIV-GCM</acronym>
+mode with the <acronym>AES</acronym> block ciphers. The parameters all have the same
+meaning as the general and message interfaces, except that the <var>cipher</var>,
+<var>f</var>, and <var>ctx</var> parameters are replaced with an <acronym>AES</acronym> context
+structure. The <acronym>AES</acronym> context structure must be initialized for
+encryption mode using a set-key function, before using any of the functions in
+this interface.
+</p>
+<dl class="def">
+<dt id="index-siv_005fgcm_005faes128_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>siv_gcm_aes128_encrypt_message</strong> <em>(const struct aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005faes128_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-siv_005fgcm_005faes256_005fencrypt_005fmessage"><span class="category">Function: </span><span><em>void</em> <strong>siv_gcm_aes256_encrypt_message</strong> <em>(const struct aes256_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>clength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005faes256_005fencrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the message digest from the <var>adata</var> and <var>src</var>
+parameters, encrypts the plaintext from <var>src</var>, appends the
+authentication tag to the ciphertext and outputs it to <var>dst</var>.
+The <var>clength</var> variable must be equal to the length of <var>src</var>
+plus <code>SIV_GCM_DIGEST_SIZE</code>.
+</p>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-siv_005fgcm_005faes128_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>siv_gcm_aes128_decrypt_message</strong> <em>(const struct aes128_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005faes128_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-siv_005fgcm_005faes256_005fdecrypt_005fmessage"><span class="category">Function: </span><span><em>int</em> <strong>siv_gcm_aes256_decrypt_message</strong> <em>(const struct aes256_ctx *<var>ctx</var>, size_t <var>nlength</var>, const uint8_t *<var>nonce</var>, size_t <var>alength</var>, const uint8_t *<var>adata</var>, size_t <var>mlength</var>, uint8_t *<var>dst</var>, const uint8_t *<var>src</var>)</em><a href='#index-siv_005fgcm_005faes256_005fdecrypt_005fmessage' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decrypts the ciphertext from <var>src</var>, outputs the plaintext to
+<var>dst</var>, recalculates the initialization vector from <var>adata</var> and the
+plaintext. If the values of the received and calculated initialization vector
+are equal, this will return 1 indicating a valid and authenticated
+message. Otherwise, this function will return zero.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="nettle_005faead-abstraction">
+<div class="header">
+<p>
+Previous: <a href="#SIV_002dGCM" accesskey="p" rel="prev">SIV-GCM</a>, Up: <a href="#Authenticated-encryption" accesskey="u" rel="up">Authenticated encryption with associated data</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="The-struct-nettle_005faead-abstraction"></span><h4 class="subsection">7.4.8 The <code>struct nettle_aead</code> abstraction</h4>
+<span id="index-nettle_005faead"></span>
+
+<p>Nettle includes a struct including information about the supported hash
+functions. It is defined in <samp>&lt;nettle/nettle-meta.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-nettle_005faead"><span class="category">Meta struct: </span><span><strong><code>struct nettle_aead</code></strong> <em>name context_size block_size key_size nonce_size digest_size set_encrypt_key set_decrypt_key set_nonce update encrypt decrypt digest</em><a href='#index-struct-nettle_005faead' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The last seven attributes are function pointers.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005fgcm_005faes128"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_gcm_aes128</strong><a href='#index-nettle_005fgcm_005faes128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgcm_005faes192"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_gcm_aes192</strong><a href='#index-nettle_005fgcm_005faes192' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgcm_005faes256"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_gcm_aes256</strong><a href='#index-nettle_005fgcm_005faes256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgcm_005fcamellia128"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_gcm_camellia128</strong><a href='#index-nettle_005fgcm_005fcamellia128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fgcm_005fcamellia256"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_gcm_camellia256</strong><a href='#index-nettle_005fgcm_005fcamellia256' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005feax_005faes128"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_eax_aes128</strong><a href='#index-nettle_005feax_005faes128' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-nettle_005fchacha_005fpoly1305"><span class="category">Constant Struct: </span><span><em>struct nettle_aead</em> <strong>nettle_chacha_poly1305</strong><a href='#index-nettle_005fchacha_005fpoly1305' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These are most of the <acronym>AEAD</acronym> constructions that Nettle
+implements. Note that <acronym>CCM</acronym> is missing; it requirement that the
+message size is specified in advance makes it incompatible with the
+<code>nettle_aead</code> abstraction.
+</p></dd></dl>
+
+<p>Nettle also exports a list of all these constructions.
+</p>
+<dl class="def">
+<dt id="index-nettle_005fget_005faeads"><span class="category">Function: </span><span><em>const struct nettle_aead **</em> <strong>nettle_get_aeads</strong> <em>(void)</em><a href='#index-nettle_005fget_005faeads' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns a NULL-terminated list of pointers to supported algorithms.This
+list can be used to dynamically enumerate or search the supported
+algorithms.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005faeads"><span class="category">Macro: </span><span><strong>nettle_aeads</strong><a href='#index-nettle_005faeads' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>A macro expanding to a call to nettle_get_aeads. In earlier versions,
+this was not a macro but the actual array of pointers.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="section" id="Keyed-hash-functions">
+<div class="header">
+<p>
+Next: <a href="#Key-derivation-functions" accesskey="n" rel="next">Key derivation Functions</a>, Previous: <a href="#Authenticated-encryption" accesskey="p" rel="prev">Authenticated encryption with associated data</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Keyed-Hash-Functions"></span><h3 class="section">7.5 Keyed Hash Functions</h3>
+
+<span id="index-Keyed-Hash-Function"></span>
+<span id="index-Message-Authentication-Code"></span>
+<span id="index-MAC"></span>
+
+<p>A <em>keyed hash function</em>, or <em>Message Authentication Code</em>
+(<acronym>MAC</acronym>) is a function that takes a key and a message, and
+produces fixed size <acronym>MAC</acronym>. It should be hard to compute a
+message and a matching <acronym>MAC</acronym> without knowledge of the key. It
+should also be hard to compute the key given only messages and
+corresponding <acronym>MAC</acronym>s.
+</p>
+<p>Keyed hash functions are useful primarily for message authentication,
+when Alice and Bob shares a secret: The sender, Alice, computes the
+<acronym>MAC</acronym> and attaches it to the message. The receiver, Bob, also computes
+the <acronym>MAC</acronym> of the message, using the same key, and compares that
+to Alice&rsquo;s value. If they match, Bob can be assured that
+the message has not been modified on its way from Alice.
+</p>
+<p>However, unlike digital signatures, this assurance is not transferable.
+Bob can&rsquo;t show the message and the <acronym>MAC</acronym> to a third party and
+prove that Alice sent that message. Not even if he gives away the key to
+the third party. The reason is that the <em>same</em> key is used on both
+sides, and anyone knowing the key can create a correct <acronym>MAC</acronym> for
+any message. If Bob believes that only he and Alice knows the key, and
+he knows that he didn&rsquo;t attach a <acronym>MAC</acronym> to a particular message,
+he knows it must be Alice who did it. However, the third party can&rsquo;t
+distinguish between a <acronym>MAC</acronym> created by Alice and one created by
+Bob.
+</p>
+<p>Keyed hash functions are typically a lot faster than digital signatures
+as well.
+</p>
+
+<ul class="section-toc">
+<li><a href="#HMAC" accesskey="1"><acronym>HMAC</acronym></a></li>
+<li><a href="#UMAC" accesskey="2"><acronym>UMAC</acronym></a></li>
+<li><a href="#CMAC" accesskey="3"><acronym>CMAC</acronym></a></li>
+<li><a href="#Poly1305" accesskey="4">Poly1305</a></li>
+</ul>
+<hr>
+<div class="subsection" id="HMAC">
+<div class="header">
+<p>
+Next: <a href="#UMAC" accesskey="n" rel="next"><acronym>UMAC</acronym></a>, Up: <a href="#Keyed-hash-functions" accesskey="u" rel="up">Keyed Hash Functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="HMAC-1"></span><h4 class="subsection">7.5.1 <acronym>HMAC</acronym></h4>
+<span id="index-HMAC"></span>
+
+<p>One can build keyed hash functions from ordinary hash functions. Older
+constructions simply concatenate secret key and message and hashes that, but
+such constructions have weaknesses. A better construction is
+<acronym>HMAC</acronym>, described in <cite>RFC 2104</cite>.
+</p>
+<p>For an underlying hash function <code>H</code>, with digest size <code>l</code> and
+internal block size <code>b</code>, <acronym>HMAC-H</acronym> is constructed as
+follows: From a given key <code>k</code>, two distinct subkeys <code>k_i</code> and
+<code>k_o</code> are constructed, both of length <code>b</code>. The
+<acronym>HMAC-H</acronym> of a message <code>m</code> is then computed as <code>H(k_o |
+H(k_i | m))</code>, where <code>|</code> denotes string concatenation.
+</p>
+<p><acronym>HMAC</acronym> keys can be of any length, but it is recommended to use
+keys of length <code>l</code>, the digest size of the underlying hash function
+<code>H</code>. Keys that are longer than <code>b</code> are shortened to length
+<code>l</code> by hashing with <code>H</code>, so arbitrarily long keys aren&rsquo;t
+very useful.
+</p>
+<p>Nettle&rsquo;s <acronym>HMAC</acronym> functions are defined in <samp>&lt;nettle/hmac.h&gt;</samp>.
+There are abstract functions that use a pointer to a <code>struct
+nettle_hash</code> to represent the underlying hash function and <code>void *</code>
+pointers that point to three different context structs for that hash
+function. There are also concrete functions for <acronym>HMAC-MD5</acronym>,
+<acronym>HMAC-RIPEMD160</acronym> <acronym>HMAC-SHA1</acronym>, <acronym>HMAC-SHA256</acronym>,
+<acronym>HMAC-SHA512</acronym>, and <acronym>HMAC-SM3</acronym>. First, the abstract functions:
+</p>
+<dl class="def">
+<dt id="index-hmac_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_set_key</strong> <em>(void *<var>outer</var>, void *<var>inner</var>, void *<var>state</var>, const struct nettle_hash *<var>H</var>, size_t <var>length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the three context structs from the key. The <var>outer</var> and
+<var>inner</var> contexts corresponds to the subkeys <code>k_o</code> and
+<code>k_i</code>. <var>state</var> is used for hashing the message, and is
+initialized as a copy of the <var>inner</var> context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_update</strong> <em>(void *<var>state</var>, const struct nettle_hash *<var>H</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function is called zero or more times to process the message.
+Actually, <code>hmac_update(state, H, length, data)</code> is equivalent to
+<code>H-&gt;update(state, length, data)</code>, so if you wish you can use the
+ordinary update function of the underlying hash function instead.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_digest</strong> <em>(const void *<var>outer</var>, const void *<var>inner</var>, void *<var>state</var>, const struct nettle_hash *<var>H</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym> of the message, writing it to <var>digest</var>.
+<var>outer</var> and <var>inner</var> are not modified. <var>length</var> is usually
+equal to <code>H-&gt;digest_size</code>, but if you provide a smaller value,
+only the first <var>length</var> octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the <var>state</var> context so that you can start
+over processing a new message (with the same key).
+</p></dd></dl>
+
+<p>Like for <acronym>CBC</acronym>, there are some macros to help use these
+functions correctly.
+</p>
+<dl class="def">
+<dt id="index-HMAC_005fCTX"><span class="category">Macro: </span><span><strong>HMAC_CTX</strong> <em>(<var>type</var>)</em><a href='#index-HMAC_005fCTX' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expands to
+</p><div class="example">
+<pre class="example">{
+ type outer;
+ type inner;
+ type state;
+}
+</pre></div>
+</dd></dl>
+
+<p>It can be used to define a <acronym>HMAC</acronym> context struct, either
+directly,
+</p>
+<div class="example">
+<pre class="example">struct HMAC_CTX(struct md5_ctx) ctx;
+</pre></div>
+
+<p>or to give it a struct tag,
+</p>
+<div class="example">
+<pre class="example">struct hmac_md5_ctx HMAC_CTX (struct md5_ctx);
+</pre></div>
+
+<dl class="def">
+<dt id="index-HMAC_005fSET_005fKEY"><span class="category">Macro: </span><span><strong>HMAC_SET_KEY</strong> <em>(<var>ctx</var>, <var>H</var>, <var>length</var>, <var>key</var>)</em><a href='#index-HMAC_005fSET_005fKEY' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>ctx</var> is a pointer to a context struct as defined by
+<code>HMAC_CTX</code>, <var>H</var> is a pointer to a <code>const struct
+nettle_hash</code> describing the underlying hash function (so it must match
+the type of the components of <var>ctx</var>). The last two arguments specify
+the secret key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-HMAC_005fDIGEST"><span class="category">Macro: </span><span><strong>HMAC_DIGEST</strong> <em>(<var>ctx</var>, <var>H</var>, <var>length</var>, <var>digest</var>)</em><a href='#index-HMAC_005fDIGEST' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>ctx</var> is a pointer to a context struct as defined by
+<code>HMAC_CTX</code>, <var>H</var> is a pointer to a <code>const struct
+nettle_hash</code> describing the underlying hash function. The last two
+arguments specify where the digest is written.
+</p></dd></dl>
+
+<p>Note that there is no <code>HMAC_UPDATE</code> macro; simply call
+<code>hmac_update</code> function directly, or the update function of the
+underlying hash function.
+</p>
+<p>Now we come to the specialized <acronym>HMAC</acronym> functions, which are
+easier to use than the general <acronym>HMAC</acronym> functions.
+</p>
+<ul class="section-toc">
+<li><a href="#HMAC_002dMD5" accesskey="1"><acronym>HMAC-MD5</acronym></a></li>
+<li><a href="#HMAC_002dRIPEMD160" accesskey="2"><acronym>HMAC-RIPEMD160</acronym></a></li>
+<li><a href="#HMAC_002dSHA1" accesskey="3"><acronym>HMAC-SHA1</acronym></a></li>
+<li><a href="#HMAC_002dSHA256" accesskey="4"><acronym>HMAC-SHA256</acronym></a></li>
+<li><a href="#HMAC_002dSHA512" accesskey="5"><acronym>HMAC-SHA512</acronym></a></li>
+<li><a href="#HMAC_002dSM3" accesskey="6"><acronym>HMAC-SM3</acronym></a></li>
+</ul>
+<div class="subsubsection" id="HMAC_002dMD5">
+<h4 class="subsubsection">7.5.1.1 <acronym>HMAC-MD5</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fmd5_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_md5_ctx</strong><a href='#index-struct-hmac_005fmd5_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fmd5_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_md5_set_key</strong> <em>(struct hmac_md5_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fmd5_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fmd5_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_md5_update</strong> <em>(struct hmac_md5_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fmd5_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fmd5_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_md5_digest</strong> <em>(struct hmac_md5_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fmd5_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>MD5_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="HMAC_002dRIPEMD160">
+<h4 class="subsubsection">7.5.1.2 <acronym>HMAC-RIPEMD160</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fripemd160_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_ripemd160_ctx</strong><a href='#index-struct-hmac_005fripemd160_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fripemd160_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_ripemd160_set_key</strong> <em>(struct hmac_ripemd160_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fripemd160_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fripemd160_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_ripemd160_update</strong> <em>(struct hmac_ripemd160_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fripemd160_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fripemd160_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_ripemd160_digest</strong> <em>(struct hmac_ripemd160_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fripemd160_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>RIPEMD160_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="HMAC_002dSHA1">
+<h4 class="subsubsection">7.5.1.3 <acronym>HMAC-SHA1</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fsha1_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_sha1_ctx</strong><a href='#index-struct-hmac_005fsha1_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha1_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha1_set_key</strong> <em>(struct hmac_sha1_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fsha1_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha1_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha1_update</strong> <em>(struct hmac_sha1_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fsha1_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha1_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha1_digest</strong> <em>(struct hmac_sha1_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fsha1_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA1_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+
+</div>
+<div class="subsubsection" id="HMAC_002dSHA256">
+<h4 class="subsubsection">7.5.1.4 <acronym>HMAC-SHA256</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fsha256_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_sha256_ctx</strong><a href='#index-struct-hmac_005fsha256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha256_set_key</strong> <em>(struct hmac_sha256_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fsha256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha256_update</strong> <em>(struct hmac_sha256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fsha256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha256_digest</strong> <em>(struct hmac_sha256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fsha256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA256_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+
+</div>
+<div class="subsubsection" id="HMAC_002dSHA512">
+<h4 class="subsubsection">7.5.1.5 <acronym>HMAC-SHA512</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fsha512_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_sha512_ctx</strong><a href='#index-struct-hmac_005fsha512_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha512_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha512_set_key</strong> <em>(struct hmac_sha512_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fsha512_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha512_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha512_update</strong> <em>(struct hmac_sha512_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fsha512_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsha512_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sha512_digest</strong> <em>(struct hmac_sha512_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fsha512_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>SHA512_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+
+</div>
+<div class="subsubsection" id="HMAC_002dSM3">
+<h4 class="subsubsection">7.5.1.6 <acronym>HMAC-SM3</acronym></h4>
+
+<dl class="def">
+<dt id="index-struct-hmac_005fsm3_005fctx"><span class="category">Context struct: </span><span><strong>struct hmac_sm3_ctx</strong><a href='#index-struct-hmac_005fsm3_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsm3_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sm3_set_key</strong> <em>(struct hmac_sm3_ctx *<var>ctx</var>, size_t <var>key_length</var>, const uint8_t *<var>key</var>)</em><a href='#index-hmac_005fsm3_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context with the key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsm3_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sm3_update</strong> <em>(struct hmac_sm3_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-hmac_005fsm3_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process some more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hmac_005fsm3_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>hmac_sm3_digest</strong> <em>(struct hmac_sm3_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-hmac_005fsm3_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym>, writing it to <var>digest</var>. <var>length</var> may be smaller than
+<code>SM3_DIGEST_SIZE</code>, in which case only the first <var>length</var>
+octets of the <acronym>MAC</acronym> are written.
+</p>
+<p>This function also resets the context for processing new messages, with
+the same key.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="UMAC">
+<div class="header">
+<p>
+Next: <a href="#CMAC" accesskey="n" rel="next"><acronym>CMAC</acronym></a>, Previous: <a href="#HMAC" accesskey="p" rel="prev"><acronym>HMAC</acronym></a>, Up: <a href="#Keyed-hash-functions" accesskey="u" rel="up">Keyed Hash Functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="UMAC-1"></span><h4 class="subsection">7.5.2 <acronym>UMAC</acronym></h4>
+<span id="index-UMAC"></span>
+
+<p><acronym>UMAC</acronym> is a message authentication code based on universal
+hashing, and designed for high performance on modern processors (in
+contrast to GCM, See <a href="#GCM">Galois counter mode</a>, which is designed primarily for hardware
+performance). On processors with good integer multiplication
+performance, it can be 10 times faster than SHA256 and SHA512.
+<acronym>UMAC</acronym> is specified in <cite>RFC 4418</cite>.
+</p>
+<p>The secret key is always 128 bits (16 octets). The key is used as an
+encryption key for the <acronym>AES</acronym> block cipher. This cipher is used
+in counter mode to generate various internal subkeys needed in
+<acronym>UMAC</acronym>. Messages are of arbitrary size, and for each message,
+<acronym>UMAC</acronym> also needs a unique nonce. Nonce values must not be
+reused for two messages with the same key, but they need not be kept
+secret.
+</p>
+<p>The nonce must be at least one octet, and at most 16; nonces shorter
+than 16 octets are zero-padded. Nettle&rsquo;s implementation of
+<acronym>UMAC</acronym> increments the nonce automatically for each message, so
+explicitly setting the nonce for each message is optional. This
+auto-increment uses network byte order and it takes the length of the
+nonce into account. E.g., if the initial nonce is &ldquo;abc&rdquo; (3 octets),
+this value is zero-padded to 16 octets for the first message. For the
+next message, the nonce is incremented to &ldquo;abd&rdquo;, and this incremented
+value is zero-padded to 16 octets.
+</p>
+<p><acronym>UMAC</acronym> is defined in four variants, for different output sizes:
+32 bits (4 octets), 64 bits (8 octets), 96 bits (12 octets) and 128 bits
+(16 octets), corresponding to different trade-offs between speed and
+security. Using a shorter output size sometimes (but not always!) gives
+the same result as using a longer output size and truncating the result.
+So it is important to use the right variant. For consistency with other
+hash and <acronym>MAC</acronym> functions, Nettle&rsquo;s <code>_digest</code> functions for
+<acronym>UMAC</acronym> accept a length parameter so that the output can be
+truncated to any desired size, but it is recommended to stick to the
+specified output size and select the <acronym>umac</acronym> variant
+corresponding to the desired size.
+</p>
+<p>The internal block size of <acronym>UMAC</acronym> is 1024 octets, and it also
+generates more than 1024 bytes of subkeys. This makes the size of the
+context struct quite a bit larger than other hash functions and
+<acronym>MAC</acronym> algorithms in Nettle.
+</p>
+<p>Nettle defines <acronym>UMAC</acronym> in <samp>&lt;nettle/umac.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-umac32_005fctx"><span class="category">Context struct: </span><span><strong>struct umac32_ctx</strong><a href='#index-struct-umac32_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-umac64_005fctx"><span class="category">Context struct: </span><span><strong>struct umac64_ctx</strong><a href='#index-struct-umac64_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-umac96_005fctx"><span class="category">Context struct: </span><span><strong>struct umac96_ctx</strong><a href='#index-struct-umac96_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-umac128_005fctx"><span class="category">Context struct: </span><span><strong>struct umac128_ctx</strong><a href='#index-struct-umac128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Each <acronym>UMAC</acronym> variant uses its own context struct.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-UMAC_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC_KEY_SIZE</strong><a href='#index-UMAC_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The UMAC key size, 16.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC_005fMIN_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC_MIN_NONCE_SIZE</strong><a href='#index-UMAC_005fMIN_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-UMAC_005fMAX_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC_MAX_NONCE_SIZE</strong><a href='#index-UMAC_005fMAX_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The the minimum and maximum sizes for an UMAC nonce, 1 and 16,
+respectively.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC32_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC32_DIGEST_SIZE</strong><a href='#index-UMAC32_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an UMAC32 digest, 4.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC64_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC64_DIGEST_SIZE</strong><a href='#index-UMAC64_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an UMAC64 digest, 8.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC96_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC96_DIGEST_SIZE</strong><a href='#index-UMAC96_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an UMAC96 digest, 12.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC128_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC128_DIGEST_SIZE</strong><a href='#index-UMAC128_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an UMAC128 digest, 16.
+</p></dd></dl>
+<dl class="def">
+<dt id="index-UMAC_005fBLOCK_005fSIZE"><span class="category">Constant: </span><span><strong>UMAC_BLOCK_SIZE</strong><a href='#index-UMAC_005fBLOCK_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The internal block size of UMAC.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-umac32_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>umac32_set_key</strong> <em>(struct umac32_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-umac32_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac64_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>umac64_set_key</strong> <em>(struct umac64_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-umac64_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac96_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>umac96_set_key</strong> <em>(struct umac96_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-umac96_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>umac128_set_key</strong> <em>(struct umac128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-umac128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These functions initialize the <acronym>UMAC</acronym> context struct. They also
+initialize the nonce to zero (with length 16, for auto-increment).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-umac32_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>umac32_set_nonce</strong> <em>(struct umac32_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-umac32_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac64_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>umac64_set_nonce</strong> <em>(struct umac64_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-umac64_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac96_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>umac96_set_nonce</strong> <em>(struct umac96_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-umac96_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac128_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>umac128_set_nonce</strong> <em>(struct umac128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-umac128_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce to be used for the next message. In general, nonces
+should be set before processing of the message. This is not strictly
+required for <acronym>UMAC</acronym> (the nonce only affects the final processing
+generating the digest), but it is nevertheless recommended that this
+function is called <em>before</em> the first <code>_update</code> call for the
+message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-umac32_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>umac32_update</strong> <em>(struct umac32_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-umac32_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac64_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>umac64_update</strong> <em>(struct umac64_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-umac64_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac96_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>umac96_update</strong> <em>(struct umac96_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-umac96_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>umac128_update</strong> <em>(struct umac128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-umac128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>These functions are called zero or more times to process the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-umac32_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>umac32_digest</strong> <em>(struct umac32_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-umac32_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac64_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>umac64_digest</strong> <em>(struct umac64_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-umac64_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac96_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>umac96_digest</strong> <em>(struct umac96_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-umac96_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-umac128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>umac128_digest</strong> <em>(struct umac128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-umac128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym> of the message, writing it to <var>digest</var>.
+<var>length</var> is usually equal to the specified output size, but if you
+provide a smaller value, only the first <var>length</var> octets of the
+<acronym>MAC</acronym> are written. These functions reset the context for
+processing of a new message with the same key. The nonce is incremented
+as described above, the new value is used unless you call the
+<code>_set_nonce</code> function explicitly for each message.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="CMAC">
+<div class="header">
+<p>
+Next: <a href="#Poly1305" accesskey="n" rel="next">Poly1305</a>, Previous: <a href="#UMAC" accesskey="p" rel="prev"><acronym>UMAC</acronym></a>, Up: <a href="#Keyed-hash-functions" accesskey="u" rel="up">Keyed Hash Functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="CMAC-1"></span><h4 class="subsection">7.5.3 <acronym>CMAC</acronym></h4>
+<span id="index-CMAC"></span>
+<span id="index-CMAC_002d128"></span>
+<span id="index-CMAC_002d64"></span>
+
+<p><acronym>CMAC</acronym> is a message authentication code based on CBC encryption
+mode. It is suitable for systems where block ciphers are preferrable
+and perform better than hash functions. <acronym>CMAC-128</acronym> is specified in
+<cite>RFC4493</cite>. The block size is always 128 bits (16 octets).
+<acronym>CMAC-64</acronym> is specified by
+<a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38B.pdf">NIST Special Publication 800-38B</a>. The block size is always 64 bits
+(8 octets).
+</p>
+<p>Nettle provides helper functions for <acronym>CMAC-128</acronym> with
+the <acronym>AES</acronym> block cipher and for <acronym>CMAC-64</acronym> with
+the <acronym>Tripple-DES</acronym> block cipher.
+</p>
+<p>Nettle defines <acronym>CMAC</acronym> in <samp>&lt;nettle/cmac.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-cmac_005faes128_005fctx"><span class="category">Context struct: </span><span><strong>struct cmac_aes128_ctx</strong><a href='#index-struct-cmac_005faes128_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-struct-cmac_005faes256_005fctx"><span class="category">Context struct: </span><span><strong>struct cmac_aes256_ctx</strong><a href='#index-struct-cmac_005faes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-CMAC128_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>CMAC128_DIGEST_SIZE</strong><a href='#index-CMAC128_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an CMAC-128 digest, 16.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes128_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes128_set_key</strong> <em>(struct cmac_aes128_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-cmac_005faes128_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function initializes the <acronym>CMAC</acronym> context struct for AES-128.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes128_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes128_update</strong> <em>(struct cmac_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-cmac_005faes128_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function is called zero or more times to process the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes128_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes128_digest</strong> <em>(struct cmac_aes128_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-cmac_005faes128_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym> of the message, writing it to <var>digest</var>.
+<var>length</var> is usually equal to the specified output size, but if you
+provide a smaller value, only the first <var>length</var> octets of the
+<acronym>MAC</acronym> are written. This function resets the context for
+processing of a new message with the same key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes256_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes256_set_key</strong> <em>(struct cmac_aes256_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-cmac_005faes256_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function initializes the <acronym>CMAC</acronym> context struct for AES-256.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes256_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes256_update</strong> <em>(struct cmac_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-cmac_005faes256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function is called zero or more times to process the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005faes256_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>cmac_aes256_digest</strong> <em>(struct cmac_aes256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-cmac_005faes256_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym> of the message, writing it to <var>digest</var>.
+<var>length</var> is usually equal to the specified output size, but if you
+provide a smaller value, only the first <var>length</var> octets of the
+<acronym>MAC</acronym> are written. This function resets the context for
+processing of a new message with the same key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-cmac_005fdes3_005fctx"><span class="category">Context struct: </span><span><strong>struct cmac_des3_ctx</strong><a href='#index-struct-cmac_005fdes3_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-CMAC64_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>CMAC64_DIGEST_SIZE</strong><a href='#index-CMAC64_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an CMAC-64 digest, 8.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005fdes3_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>cmac_des3_set_key</strong> <em>(struct cmac_des3_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-cmac_005fdes3_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function initializes the <acronym>CMAC</acronym> context struct for <acronym>Tripple-DES</acronym>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005fdes3_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>cmac_des3_update</strong> <em>(struct cmac_des3_ctx *<var>ctx</var>,size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-cmac_005fdes3_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>This function is called zero or more times to process the message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-cmac_005fdes3_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>cmac_des3_digest</strong> <em>(struct cmac_des3_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-cmac_005fdes3_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the <acronym>MAC</acronym> of the message, writing it to <var>digest</var>.
+<var>length</var> is usually equal to the specified output size, but if you
+provide a smaller value, only the first <var>length</var> octets of the
+<acronym>MAC</acronym> are written. This function resets the context for
+processing of a new message with the same key.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsection" id="Poly1305">
+<div class="header">
+<p>
+Previous: <a href="#CMAC" accesskey="p" rel="prev"><acronym>CMAC</acronym></a>, Up: <a href="#Keyed-hash-functions" accesskey="u" rel="up">Keyed Hash Functions</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Poly1305-1"></span><h4 class="subsection">7.5.4 Poly1305</h4>
+
+<p>Poly1305-<acronym>AES</acronym> is a message authentication code designed by D. J.
+Bernstein. It treats the message as a polynomial modulo the prime number
+<em class='math'>2^130 - 5</em>.
+</p>
+<p>The key, 256 bits, consists of two parts, where the first half is an
+<acronym>AES</acronym>-128 key, and the second half specifies the point where the
+polynomial is evaluated. Of the latter half, 22 bits are set to zero, to
+enable high-performance implementation, leaving 106 bits for specifying
+an evaluation point <code>r</code>. For each message, one must also provide a
+128-bit nonce. The nonce is encrypted using the <acronym>AES</acronym> key, and
+that&rsquo;s the only thing <acronym>AES</acronym> is used for.
+</p>
+<p>The message is split into 128-bit chunks (with final chunk possibly
+being shorter), each read as a little-endian integer. Each chunk has a
+one-bit appended at the high end. The resulting integers are treated as
+polynomial coefficients modulo <em class='math'>2^130 - 5</em>, and the polynomial is
+evaluated at the point <code>r</code>. Finally, this value is reduced modulo
+<em class='math'>2^128</em>, and added (also modulo <em class='math'>2^128</em>) to the encrypted
+nonce, to produce an 128-bit authenticator for the message. See
+<a href="https://cr.yp.to/mac/poly1305-20050329.pdf">https://cr.yp.to/mac/poly1305-20050329.pdf</a> for further details.
+</p>
+<p>Clearly, variants using a different cipher than <acronym>AES</acronym> could be
+defined. Another variant is the ChaCha-Poly1305 <acronym>AEAD</acronym>
+construction (see <a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a>). Nettle defines
+Poly1305-<acronym>AES</acronym> in <samp>nettle/poly1305.h</samp>.
+</p>
+<dl class="def">
+<dt id="index-POLY1305_005fAES_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>POLY1305_AES_KEY_SIZE</strong><a href='#index-POLY1305_005fAES_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Key size, 32 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-POLY1305_005fAES_005fDIGEST_005fSIZE"><span class="category">Constant: </span><span><strong>POLY1305_AES_DIGEST_SIZE</strong><a href='#index-POLY1305_005fAES_005fDIGEST_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Size of the digest or &ldquo;authenticator&rdquo;, 16 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-POLY1305_005fAES_005fNONCE_005fSIZE"><span class="category">Constant: </span><span><strong>POLY1305_AES_NONCE_SIZE</strong><a href='#index-POLY1305_005fAES_005fNONCE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Nonce size, 16 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-poly1305_005faes_005fctx"><span class="category">Context struct: </span><span><strong>struct poly1305_aes_ctx</strong><a href='#index-struct-poly1305_005faes_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The poly1305-aes context struct.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-poly1305_005faes_005fset_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>poly1305_aes_set_key</strong> <em>(struct poly1305_aes_ctx *<var>ctx</var>, const uint8_t *<var>key</var>)</em><a href='#index-poly1305_005faes_005fset_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the context struct. Also sets the nonce to zero.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-poly1305_005faes_005fset_005fnonce"><span class="category">Function: </span><span><em>void</em> <strong>poly1305_aes_set_nonce</strong> <em>(struct poly1305_aes_ctx *<var>ctx</var>, const uint8_t *<var>nonce</var>)</em><a href='#index-poly1305_005faes_005fset_005fnonce' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Sets the nonce. Calling this function is optional, since the nonce is
+incremented automatically for each message.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-poly1305_005faes_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>poly1305_aes_update</strong> <em>(struct poly1305_aes_ctx *<var>ctx</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-poly1305_005faes_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Process more data.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-poly1305_005faes_005fdigest"><span class="category">Function: </span><span><em>void</em> <strong>poly1305_aes_digest</strong> <em>(struct poly1305_aes_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>digest</var>)</em><a href='#index-poly1305_005faes_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the digest. If <var>length</var> is smaller than
+<code>POLY1305_AES_DIGEST_SIZE</code>, only the first <var>length</var> octets are
+written. Also increments the nonce, and prepares the context for
+processing a new message.
+</p></dd></dl>
+
+
+<hr>
+</div>
+</div>
+<div class="section" id="Key-derivation-functions">
+<div class="header">
+<p>
+Next: <a href="#Public_002dkey-algorithms" accesskey="n" rel="next">Public-key algorithms</a>, Previous: <a href="#Keyed-hash-functions" accesskey="p" rel="prev">Keyed Hash Functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Key-derivation-Functions"></span><h3 class="section">7.6 Key derivation Functions</h3>
+<span id="index-Key-Derivation-Function"></span>
+
+<p>A <em>key derivation function</em> (<acronym>KDF</acronym>) is a function that from
+a given symmetric key derives other symmetric keys. A sub-class of KDFs
+is the <em>password-based key derivation functions</em> (<acronym>PBKDFs</acronym>),
+which take as input a password or passphrase, and its purpose is
+typically to strengthen it and protect against certain pre-computation
+attacks by using salting and expensive computation.
+</p>
+<ul class="section-toc">
+<li><a href="#HKDF_003a-HMAC_002dbased-Extract_002dand_002dExpand" accesskey="1">HKDF: HMAC-based Extract-and-Expand</a></li>
+<li><a href="#PBKDF2" accesskey="2"><acronym>PBKDF2</acronym></a></li>
+<li><a href="#Concrete-PBKDF2-functions" accesskey="3">Concrete <acronym>PBKDF2</acronym> functions</a></li>
+<li><a href="#BALLOON" accesskey="4"><acronym>BALLOON</acronym></a></li>
+<li><a href="#Concrete-BALLOON-functions" accesskey="5">Concrete <acronym>BALLOON</acronym> functions</a></li>
+</ul>
+<div class="subsection" id="HKDF_003a-HMAC_002dbased-Extract_002dand_002dExpand">
+<h4 class="subsection">7.6.1 HKDF: HMAC-based Extract-and-Expand</h4>
+<span id="index-HKDF"></span>
+
+<p>HKDF is a key derivation function used as a building block of
+higher-level protocols like TLS 1.3. It is a derivation function
+based on HMAC described in <cite>RFC 5869</cite>,
+and is split into two logical modules, called &rsquo;extract&rsquo; and &rsquo;expand&rsquo;.
+The extract module takes an initial secret and a random
+salt to &quot;extract&quot; a fixed-length pseudorandom key (PRK). The second stage
+takes as input the previous PRK and some informational data (e.g.,
+text) and expands them into multiple keys.
+</p>
+<p>Nettle&rsquo;s <acronym>HKDF</acronym> functions are defined in
+<samp>&lt;nettle/hkdf.h&gt;</samp>. There are two abstract functions for the extract
+and expand operations that operate on any HMAC implemented via the <code>nettle_hash_update_func</code>,
+and <code>nettle_hash_digest_func</code> interfaces.
+</p>
+<dl class="def">
+<dt id="index-hkdf_005fextract"><span class="category">Function: </span><span><em>void</em> <strong>hkdf_extract</strong> <em>(void *mac_ctx, nettle_hash_update_func *update, nettle_hash_digest_func *digest, size_t digest_size,size_t secret_size, const uint8_t *secret, uint8_t *dst)</em><a href='#index-hkdf_005fextract' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extract a Pseudorandom Key (PRK) from a secret and a salt according
+to HKDF. The HMAC must have been initialized, with its key being the
+salt for the Extract operation. This function will call the
+<var>update</var> and <var>digest</var> functions passing the <var>mac_ctx</var>
+context parameter as an argument in order to compute digest of size
+<var>digest_size</var>. Inputs are the secret <var>secret</var> of length
+<var>secret_length</var>. The output length is fixed to <var>digest_size</var> octets,
+thus the output buffer <var>dst</var> must have room for at least <var>digest_size</var> octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-hkdf_005fexpand"><span class="category">Function: </span><span><em>void</em> <strong>hkdf_expand</strong> <em>(void *mac_ctx, nettle_hash_update_func *update, nettle_hash_digest_func *digest, size_t digest_size, size_t info_size, const uint8_t *info, size_t length, uint8_t *dst)</em><a href='#index-hkdf_005fexpand' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Expand a Pseudorandom Key (PRK) to an arbitrary size according to HKDF.
+The HMAC must have been initialized, with its key being the
+PRK from the Extract operation. This function will call the
+<var>update</var> and <var>digest</var> functions passing the <var>mac_ctx</var>
+context parameter as an argument in order to compute digest of size
+<var>digest_size</var>. Inputs are the info <var>info</var> of length
+<var>info_length</var>, and the desired derived output length <var>length</var>.
+The output buffer is <var>dst</var> which must have room for at least <var>length</var> octets.
+</p></dd></dl>
+
+
+</div>
+<div class="subsection" id="PBKDF2">
+<h4 class="subsection">7.6.2 <acronym>PBKDF2</acronym></h4>
+<span id="index-Password-Based-Key-Derivation-Function"></span>
+<span id="index-PKCS-_00235"></span>
+<span id="index-KDF"></span>
+<span id="index-PBKDF"></span>
+<p>The most well known PBKDF is the <code>PKCS #5 PBKDF2</code> described in
+<cite>RFC 2898</cite> which uses a pseudo-random function such as
+<acronym>HMAC-SHA1</acronym>.
+</p>
+<p>Nettle&rsquo;s <acronym>PBKDF2</acronym> functions are defined in
+<samp>&lt;nettle/pbkdf2.h&gt;</samp>. There is an abstract function that operate on
+any PRF implemented via the <code>nettle_hash_update_func</code>,
+<code>nettle_hash_digest_func</code> interfaces. There is also helper macros
+and concrete functions PBKDF2-HMAC-SHA1, PBKDF2-HMAC-SHA256, PBKDF2-HMAC-SHA384
+and PBKDF2-HMAC-SHA512. First, the abstract function:
+</p>
+<dl class="def">
+<dt id="index-pbkdf2"><span class="category">Function: </span><span><em>void</em> <strong>pbkdf2</strong> <em>(void *mac_ctx, nettle_hash_update_func *update, nettle_hash_digest_func *digest, size_t digest_size, unsigned iterations, size_t salt_length, const uint8_t *salt, size_t length, uint8_t *dst)</em><a href='#index-pbkdf2' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Derive symmetric key from a password according to PKCS #5 PBKDF2. The
+PRF is assumed to have been initialized and this function will call the
+<var>update</var> and <var>digest</var> functions passing the <var>mac_ctx</var>
+context parameter as an argument in order to compute digest of size
+<var>digest_size</var>. Inputs are the salt <var>salt</var> of length
+<var>salt_length</var>, the iteration counter <var>iterations</var> (&gt; 0), and the
+desired derived output length <var>length</var>. The output buffer is
+<var>dst</var> which must have room for at least <var>length</var> octets.
+</p></dd></dl>
+
+<p>Like for CBC and HMAC, there is a macro to help use the function
+correctly.
+</p>
+<dl class="def">
+<dt id="index-PBKDF2"><span class="category">Macro: </span><span><strong>PBKDF2</strong> <em>(<var>ctx</var>, <var>update</var>, <var>digest</var>, <var>digest_size</var>, <var>iterations</var>, <var>salt_length</var>, <var>salt</var>, <var>length</var>, <var>dst</var>)</em><a href='#index-PBKDF2' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>ctx</var> is a pointer to a context struct passed to the <var>update</var>
+and <var>digest</var> functions (of the types <code>nettle_hash_update_func</code>
+and <code>nettle_hash_digest_func</code> respectively) to implement the
+underlying PRF with digest size of <var>digest_size</var>. Inputs are the
+salt <var>salt</var> of length <var>salt_length</var>, the iteration counter
+<var>iterations</var> (&gt; 0), and the desired derived output length
+<var>length</var>. The output buffer is <var>dst</var> which must have room for
+at least <var>length</var> octets.
+</p></dd></dl>
+
+</div>
+<div class="subsection" id="Concrete-PBKDF2-functions">
+<h4 class="subsection">7.6.3 Concrete <acronym>PBKDF2</acronym> functions</h4>
+<p>Now we come to the specialized <acronym>PBKDF2</acronym> functions, which are
+easier to use than the general <acronym>PBKDF2</acronym> function.
+</p>
+<ul class="section-toc">
+<li><a href="#PBKDF2_002dHMAC_002dSHA1" accesskey="1"><acronym>PBKDF2-HMAC-SHA1</acronym></a></li>
+<li><a href="#PBKDF2_002dHMAC_002dSHA256" accesskey="2"><acronym>PBKDF2-HMAC-SHA256</acronym></a></li>
+<li><a href="#PBKDF2_002dHMAC_002dSHA384" accesskey="3"><acronym>PBKDF2-HMAC-SHA384</acronym></a></li>
+<li><a href="#PBKDF2_002dHMAC_002dSHA512" accesskey="4"><acronym>PBKDF2-HMAC-SHA512</acronym></a></li>
+</ul>
+<div class="subsubsection" id="PBKDF2_002dHMAC_002dSHA1">
+<h4 class="subsubsection">7.6.3.1 <acronym>PBKDF2-HMAC-SHA1</acronym></h4>
+
+<dl class="def">
+<dt id="index-pbkdf2_005fhmac_005fsha1"><span class="category">Function: </span><span><em>void</em> <strong>pbkdf2_hmac_sha1</strong> <em>(size_t <var>key_length</var>, const uint8_t *<var>key</var>, unsigned <var>iterations</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>)</em><a href='#index-pbkdf2_005fhmac_005fsha1' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>PBKDF2 with HMAC-SHA1. Derive <var>length</var> bytes of key into buffer
+<var>dst</var> using the password <var>key</var> of length <var>key_length</var> and
+salt <var>salt</var> of length <var>salt_length</var>, with iteration counter
+<var>iterations</var> (&gt; 0). The output buffer is <var>dst</var> which must have
+room for at least <var>length</var> octets.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="PBKDF2_002dHMAC_002dSHA256">
+<h4 class="subsubsection">7.6.3.2 <acronym>PBKDF2-HMAC-SHA256</acronym></h4>
+
+<dl class="def">
+<dt id="index-pbkdf2_005fhmac_005fsha256"><span class="category">Function: </span><span><em>void</em> <strong>pbkdf2_hmac_sha256</strong> <em>(size_t <var>key_length</var>, const uint8_t *<var>key</var>, unsigned <var>iterations</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>)</em><a href='#index-pbkdf2_005fhmac_005fsha256' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>PBKDF2 with HMAC-SHA256. Derive <var>length</var> bytes of key into buffer
+<var>dst</var> using the password <var>key</var> of length <var>key_length</var> and
+salt <var>salt</var> of length <var>salt_length</var>, with iteration counter
+<var>iterations</var> (&gt; 0). The output buffer is <var>dst</var> which must have
+room for at least <var>length</var> octets.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="PBKDF2_002dHMAC_002dSHA384">
+<h4 class="subsubsection">7.6.3.3 <acronym>PBKDF2-HMAC-SHA384</acronym></h4>
+
+<dl class="def">
+<dt id="index-pbkdf2_005fhmac_005fsha384"><span class="category">Function: </span><span><em>void</em> <strong>pbkdf2_hmac_sha384</strong> <em>(size_t <var>key_length</var>, const uint8_t *<var>key</var>, unsigned <var>iterations</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>)</em><a href='#index-pbkdf2_005fhmac_005fsha384' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>PBKDF2 with HMAC-SHA384. Derive <var>length</var> bytes of key into buffer
+<var>dst</var> using the password <var>key</var> of length <var>key_length</var> and
+salt <var>salt</var> of length <var>salt_length</var>, with iteration counter
+<var>iterations</var> (&gt; 0). The output buffer is <var>dst</var> which must have
+room for at least <var>length</var> octets.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="PBKDF2_002dHMAC_002dSHA512">
+<h4 class="subsubsection">7.6.3.4 <acronym>PBKDF2-HMAC-SHA512</acronym></h4>
+
+<dl class="def">
+<dt id="index-pbkdf2_005fhmac_005fsha512"><span class="category">Function: </span><span><em>void</em> <strong>pbkdf2_hmac_sha512</strong> <em>(size_t <var>key_length</var>, const uint8_t *<var>key</var>, unsigned <var>iterations</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, size_t <var>length</var>, uint8_t *<var>dst</var>)</em><a href='#index-pbkdf2_005fhmac_005fsha512' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>PBKDF2 with HMAC-SHA512. Derive <var>length</var> bytes of key into buffer
+<var>dst</var> using the password <var>key</var> of length <var>key_length</var> and
+salt <var>salt</var> of length <var>salt_length</var>, with iteration counter
+<var>iterations</var> (&gt; 0). The output buffer is <var>dst</var> which must have
+room for at least <var>length</var> octets.
+</p></dd></dl>
+
+
+</div>
+</div>
+<div class="subsection" id="BALLOON">
+<h4 class="subsection">7.6.4 <acronym>BALLOON</acronym></h4>
+<span id="index-Balloon-password_002dhashing-algorithm"></span>
+<p>Balloon is a memory-hard password-hashing algorithm. An in-depth description
+of the algorithm and its properties can be found in an online research paper:
+Boneh, D., Corrigan-Gibbs, H., Schechter, S. (2017, May 12). Balloon Hashing:
+A Memory-Hard Function Providing Provable Protection Against Sequential Attacks.
+Retrieved Sep 1, 2022, from <a href="https://eprint.iacr.org/2016/027.pdf">https://eprint.iacr.org/2016/027.pdf</a>
+</p>
+<p>Nettle&rsquo;s definition of the <acronym>BALLOON</acronym> algorithm can be found in
+<samp>&lt;nettle/balloon.h&gt;</samp>. There is a general <acronym>BALLOON</acronym> function where
+the user can specify desired hash algorithm that will be used by the function.
+There are also concrete, more user-friendly functions that use common hash algorithms
+like SHA1, SHA256, SHA384 and SHA512. There is also a utility function which helps to
+determine the size of the working buffer that must be provided as one of the inputs.
+</p>
+<p>Each <acronym>BALLOON</acronym> function takes as an input a password and a salt of arbitrary
+lengths, a time and a space parameters, and a scratch buffer. The space parameter
+<var>s_cost</var> determines how many blocks of working space the algorithm will require
+during its computation. It is common to set <var>s_cost</var> to a high value in order
+to increase the cost of hardware accelerators built by the adversary. The time
+parameter <var>t_cost</var> determines the number of rounds of computation that the algorithm
+will perform. This can be used to further increase the cost of computation without raising
+the memory requirement. Scratch buffer <var>scratch</var> is a user allocated working space
+required by the algorithm. To determine the required size of the scratch buffer use the
+utility function <code>balloon_itch</code>. Output of <acronym>BALLOON</acronym> algorithm will be
+written into the output buffer <var>dst</var> that has to be at least <var>digest_size</var> bytes
+long. Note that it is safe to use the same buffer for both <var>scratch</var> and <var>dst</var>.
+Next follows the description of the general <acronym>BALLOON</acronym> function.
+</p>
+<dl class="def">
+<dt id="index-balloon"><span class="category">Function: </span><span><em>void</em> <strong>balloon</strong> <em>(void *<var>hash_ctx</var>, nettle_hash_update_func *<var>update</var>, nettle_hash_digest_func *<var>digest</var>, size_t <var>digest_size</var>, size_t <var>s_cost</var>, size_t <var>t_cost</var>, size_t <var>passwd_length</var>, const uint8_t *<var>passwd</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, uint8_t *<var>scratch</var>, uint8_t *<var>dst</var>)</em><a href='#index-balloon' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Compute hash of given password <var>passwd</var> of length <var>passwd_length</var> salted
+with <var>salt</var> of length <var>salt_length</var> and write <var>digest_size</var> bytes into
+the output buffer <var>dst</var>. Parameter <var>hash_ctx</var> is a context for the
+underlying hash function, which much be initialized by the caller. <var>update</var>
+and <var>digest</var> are the update and digest functions of the chosen hash algorithm.
+<var>digest_size</var> is the digest size of the chosen hash algorithm and determines
+the size of the output.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-balloon_005fitch"><span class="category">Function: </span><span><em>size_t</em> <strong>balloon_itch</strong> <em>(size_t <var>digest_size</var>, size_t <var>s_cost</var>)</em><a href='#index-balloon_005fitch' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Compute the size of the scratch buffer <var>scratch</var>. <var>digest_size</var> is the
+digest size of the chosen hash algorithm. <var>s_cost</var> is the space parameter
+used by the <code>balloon</code> function.
+</p></dd></dl>
+
+</div>
+<div class="subsection" id="Concrete-BALLOON-functions">
+<h4 class="subsection">7.6.5 Concrete <acronym>BALLOON</acronym> functions</h4>
+<p>Here follows a list of the specialized <acronym>BALLOON</acronym> functions, which are
+more user-friendly variants of the general function.
+</p>
+<ul class="section-toc">
+<li><a href="#BALLOON_002dSHA1" accesskey="1"><acronym>BALLOON-SHA1</acronym></a></li>
+<li><a href="#BALLOON_002dSHA256" accesskey="2"><acronym>BALLOON-SHA256</acronym></a></li>
+<li><a href="#BALLOON_002dSHA384" accesskey="3"><acronym>BALLOON-SHA384</acronym></a></li>
+<li><a href="#BALLOON_002dSHA512" accesskey="4"><acronym>BALLOON-SHA512</acronym></a></li>
+</ul>
+<div class="subsubsection" id="BALLOON_002dSHA1">
+<h4 class="subsubsection">7.6.5.1 <acronym>BALLOON-SHA1</acronym></h4>
+
+<dl class="def">
+<dt id="index-balloon_005fsha1"><span class="category">Function: </span><span><em>void</em> <strong>balloon_sha1</strong> <em>(size_t <var>s_cost</var>, size_t <var>t_cost</var>, size_t <var>passwd_length</var>, const uint8_t *<var>passwd</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, uint8_t *<var>scratch</var>, uint8_t *<var>dst</var>)</em><a href='#index-balloon_005fsha1' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>BALLOON</acronym> algorithm using SHA1 as the underlying hash function.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="BALLOON_002dSHA256">
+<h4 class="subsubsection">7.6.5.2 <acronym>BALLOON-SHA256</acronym></h4>
+
+<dl class="def">
+<dt id="index-balloon_005fsha256"><span class="category">Function: </span><span><em>void</em> <strong>balloon_sha256</strong> <em>(size_t <var>s_cost</var>, size_t <var>t_cost</var>, size_t <var>passwd_length</var>, const uint8_t *<var>passwd</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, uint8_t *<var>scratch</var>, uint8_t *<var>dst</var>)</em><a href='#index-balloon_005fsha256' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>BALLOON</acronym> algorithm using SHA256 as the underlying hash function.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="BALLOON_002dSHA384">
+<h4 class="subsubsection">7.6.5.3 <acronym>BALLOON-SHA384</acronym></h4>
+
+<dl class="def">
+<dt id="index-balloon_005fsha384"><span class="category">Function: </span><span><em>void</em> <strong>balloon_sha384</strong> <em>(size_t <var>s_cost</var>, size_t <var>t_cost</var>, size_t <var>passwd_length</var>, const uint8_t *<var>passwd</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, uint8_t *<var>scratch</var>, uint8_t *<var>dst</var>)</em><a href='#index-balloon_005fsha384' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>BALLOON</acronym> algorithm using SHA384 as the underlying hash function.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="BALLOON_002dSHA512">
+<h4 class="subsubsection">7.6.5.4 <acronym>BALLOON-SHA512</acronym></h4>
+
+<dl class="def">
+<dt id="index-balloon_005fsha512"><span class="category">Function: </span><span><em>void</em> <strong>balloon_sha512</strong> <em>(size_t <var>s_cost</var>, size_t <var>t_cost</var>, size_t <var>passwd_length</var>, const uint8_t *<var>passwd</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, uint8_t *<var>scratch</var>, uint8_t *<var>dst</var>)</em><a href='#index-balloon_005fsha512' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><acronym>BALLOON</acronym> algorithm using SHA512 as the underlying hash function.
+</p></dd></dl>
+
+
+<hr>
+</div>
+</div>
+</div>
+<div class="section" id="Public_002dkey-algorithms">
+<div class="header">
+<p>
+Next: <a href="#Randomness" accesskey="n" rel="next">Randomness</a>, Previous: <a href="#Key-derivation-functions" accesskey="p" rel="prev">Key derivation Functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Public_002dkey-algorithms-1"></span><h3 class="section">7.7 Public-key algorithms</h3>
+
+<p>Nettle uses <acronym>GMP</acronym>, the GNU bignum library, for all calculations
+with large numbers. In order to use the public-key features of Nettle,
+you must install <acronym>GMP</acronym>, at least version 3.0, before compiling
+Nettle, and you need to link your programs with <code>-lhogweed -lnettle
+-lgmp</code>.
+</p>
+<p>The concept of <em>Public-key</em> encryption and digital signatures was
+discovered by Whitfield Diffie and Martin E. Hellman and described in a
+paper 1976. In traditional, &ldquo;symmetric&rdquo;, cryptography, sender and
+receiver share the same keys, and these keys must be distributed in a
+secure way. And if there are many users or entities that need to
+communicate, each <em>pair</em> needs a shared secret key known by nobody
+else.
+</p>
+<span id="index-Public-Key-Cryptography"></span>
+<span id="index-One_002dway-function"></span>
+
+<p>Public-key cryptography uses trapdoor one-way functions. A
+<em>one-way function</em> is a function <code>F</code> such that it is easy to
+compute the value <code>F(x)</code> for any <code>x</code>, but given a value
+<code>y</code>, it is hard to compute a corresponding <code>x</code> such that
+<code>y = F(x)</code>. Two examples are cryptographic hash functions, and
+exponentiation in certain groups.
+</p>
+<p>A <em>trapdoor one-way function</em> is a function <code>F</code> that is
+one-way, unless one knows some secret information about <code>F</code>. If one
+knows the secret, it is easy to compute both <code>F</code> and it&rsquo;s inverse.
+If this sounds strange, look at the <acronym>RSA</acronym> example below.
+</p>
+<p>Two important uses for one-way functions with trapdoors are public-key
+encryption, and digital signatures. The public-key encryption functions
+in Nettle are not yet documented; the rest of this chapter is about
+digital signatures.
+</p>
+<p>To use a digital signature algorithm, one must first create a
+<em>key-pair</em>: A public key and a corresponding private key. The private
+key is used to sign messages, while the public key is used for verifying
+that that signatures and messages match. Some care must be taken when
+distributing the public key; it need not be kept secret, but if a bad
+guy is able to replace it (in transit, or in some user&rsquo;s list of known
+public keys), bad things may happen.
+</p>
+<p>There are two operations one can do with the keys. The signature
+operation takes a message and a private key, and creates a signature for
+the message. A signature is some string of bits, usually at most a few
+thousand bits or a few hundred octets. Unlike paper-and-ink signatures,
+the digital signature depends on the message, so one can&rsquo;t cut it out of
+context and glue it to a different message.
+</p>
+<p>The verification operation takes a public key, a message, and a string
+that is claimed to be a signature on the message, and returns true or
+false. If it returns true, that means that the three input values
+matched, and the verifier can be sure that someone went through with the
+signature operation on that very message, and that the &ldquo;someone&rdquo; also
+knows the private key corresponding to the public key.
+</p>
+<p>The desired properties of a digital signature algorithm are as follows:
+Given the public key and pairs of messages and valid signatures on them,
+it should be hard to compute the private key, and it should also be hard
+to create a new message and signature that is accepted by the
+verification operation.
+</p>
+<p>Besides signing meaningful messages, digital signatures can be used for
+authorization. A server can be configured with a public key, such that
+any client that connects to the service is given a random nonce message.
+If the server gets a reply with a correct signature matching the nonce
+message and the configured public key, the client is granted access. So
+the configuration of the server can be understood as &ldquo;grant access to
+whoever knows the private key corresponding to this particular public
+key, and to no others&rdquo;.
+</p>
+
+
+<ul class="section-toc">
+<li><a href="#RSA" accesskey="1"><acronym>RSA</acronym></a></li>
+<li><a href="#DSA" accesskey="2"><acronym>DSA</acronym></a></li>
+<li><a href="#Elliptic-curves" accesskey="3">Elliptic curves</a></li>
+</ul>
+<hr>
+<div class="subsection" id="RSA">
+<div class="header">
+<p>
+Next: <a href="#DSA" accesskey="n" rel="next"><acronym>DSA</acronym></a>, Up: <a href="#Public_002dkey-algorithms" accesskey="u" rel="up">Public-key algorithms</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="RSA-1"></span><h4 class="subsection">7.7.1 <acronym>RSA</acronym></h4>
+
+<p>The <acronym>RSA</acronym> algorithm was the first practical digital signature
+algorithm that was constructed. It was described 1978 in a paper by
+Ronald Rivest, Adi Shamir and L.M. Adleman, and the technique was also
+patented in the <acronym>USA</acronym> in 1983. The patent expired on September 20, 2000, and since
+that day, <acronym>RSA</acronym> can be used freely, even in the <acronym>USA</acronym>.
+</p>
+<p>It&rsquo;s remarkably simple to describe the trapdoor function behind
+<acronym>RSA</acronym>. The &ldquo;one-way&rdquo;-function used is
+</p>
+<div class="example">
+<pre class="example">F(x) = x^e mod n
+</pre></div>
+
+<p>I.e. raise x to the <code>e</code>&rsquo;th power, while discarding all multiples of
+<code>n</code>. The pair of numbers <code>n</code> and <code>e</code> is the public key.
+<code>e</code> can be quite small, even <code>e = 3</code> has been used, although
+slightly larger numbers are recommended. <code>n</code> should be about 2000
+bits or larger.
+</p>
+<p>If <code>n</code> is large enough, and properly chosen, the inverse of F,
+the computation of <code>e</code>&rsquo;th roots modulo <code>n</code>, is very difficult.
+But, where&rsquo;s the trapdoor?
+</p>
+<p>Let&rsquo;s first look at how <acronym>RSA</acronym> key-pairs are generated. First
+<code>n</code> is chosen as the product of two large prime numbers <code>p</code>
+and <code>q</code> of roughly the same size (so if <code>n</code> is 2000 bits,
+<code>p</code> and <code>q</code> are about 1000 bits each). One also computes the
+number <code>phi = (p-1)(q-1)</code>, in mathematical speak, <code>phi</code> is the
+order of the multiplicative group of integers modulo n.
+</p>
+<p>Next, <code>e</code> is chosen. It must have no factors in common with <code>phi</code> (in
+particular, it must be odd), but can otherwise be chosen more or less
+randomly. <code>e = 65537</code> is a popular choice, because it makes raising
+to the <code>e</code>&rsquo;th power particularly efficient, and being prime, it
+usually has no factors common with <code>phi</code>.
+</p>
+<p>Finally, a number <code>d</code>, <code>d &lt; n</code> is computed such that <code>e d
+mod phi = 1</code>. It can be shown that such a number exists (this is why
+<code>e</code> and <code>phi</code> must have no common factors), and that for all x,
+</p>
+<div class="example">
+<pre class="example">(x^e)^d mod n = x^(ed) mod n = (x^d)^e mod n = x
+</pre></div>
+
+<p>Using Euclid&rsquo;s algorithm, <code>d</code> can be computed quite easily from
+<code>phi</code> and <code>e</code>. But it is still hard to get <code>d</code> without
+knowing <code>phi</code>, which depends on the factorization of <code>n</code>.
+</p>
+<p>So <code>d</code> is the trapdoor, if we know <code>d</code> and <code>y = F(x)</code>, we can
+recover x as <code>y^d mod n</code>. <code>d</code> is also the private half of
+the <acronym>RSA</acronym> key-pair.
+</p>
+<p>The most common signature operation for <acronym>RSA</acronym> is defined in
+<cite>PKCS#1</cite>, a specification by RSA Laboratories. The message to be
+signed is first hashed using a cryptographic hash function, e.g.
+<acronym>MD5</acronym> or <acronym>SHA1</acronym>. Next, some padding, the <acronym>ASN.1</acronym>
+&ldquo;Algorithm Identifier&rdquo; for the hash function, and the message digest
+itself, are concatenated and converted to a number <code>x</code>. The
+signature is computed from <code>x</code> and the private key as <code>s = x^d
+mod n</code><a id="DOCF1" href="#FOOT1"><sup>1</sup></a>. The signature, <code>s</code> is a
+number of about the same size of <code>n</code>, and it usually encoded as a
+sequence of octets, most significant octet first.
+</p>
+<p>The verification operation is straight-forward, <code>x</code> is computed
+from the message in the same way as above. Then <code>s^e mod n</code> is
+computed, the operation returns true if and only if the result equals
+<code>x</code>.
+</p>
+<p>The <acronym>RSA</acronym> algorithm can also be used for encryption. RSA encryption uses
+the public key <code>(n,e)</code> to compute the ciphertext <code>m^e mod n</code>.
+The <cite>PKCS#1</cite> padding scheme will use at least 8 random and non-zero
+octets, using <var>m</var> of the form <code>[00 02 padding 00 plaintext]</code>.
+It is required that <code>m &lt; n</code>, and therefor the plaintext must be
+smaller than the octet size of the modulo <code>n</code>, with some margin.
+</p>
+<p>To decrypt the message, one needs the private key to compute <code>m =
+c^e mod n</code> followed by checking and removing the padding.
+</p>
+<ul class="section-toc">
+<li><a href="#Nettle_0027s-RSA-support" accesskey="1">Nettle&rsquo;s <acronym>RSA</acronym> support</a></li>
+</ul>
+<div class="subsubsection" id="Nettle_0027s-RSA-support">
+<h4 class="subsubsection">7.7.1.1 Nettle&rsquo;s <acronym>RSA</acronym> support</h4>
+
+<p>Nettle represents <acronym>RSA</acronym> keys using two structures that contain
+large numbers (of type <code>mpz_t</code>).
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpublic_005fkey"><span class="category">Context struct: </span><span><strong>rsa_public_key</strong> <em>size n e</em><a href='#index-rsa_005fpublic_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><code>size</code> is the size, in octets, of the modulo, and is used internally.
+<code>n</code> and <code>e</code> is the public key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fprivate_005fkey"><span class="category">Context struct: </span><span><strong>rsa_private_key</strong> <em>size d p q a b c</em><a href='#index-rsa_005fprivate_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><code>size</code> is the size, in octets, of the modulo, and is used internally.
+<code>d</code> is the secret exponent, but it is not actually used when
+signing. Instead, the factors <code>p</code> and <code>q</code>, and the parameters
+<code>a</code>, <code>b</code> and <code>c</code> are used. They are computed from <code>p</code>,
+<code>q</code> and <code>e</code> such that <code>a e mod (p - 1) = 1, b e mod (q -
+1) = 1, c q mod p = 1</code>.
+</p></dd></dl>
+
+<p>Before use, these structs must be initialized by calling one of
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpublic_005fkey_005finit"><span class="category">Function: </span><span><em>void</em> <strong>rsa_public_key_init</strong> <em>(struct rsa_public_key *<var>pub</var>)</em><a href='#index-rsa_005fpublic_005fkey_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fprivate_005fkey_005finit"><span class="category">Function: </span><span><em>void</em> <strong>rsa_private_key_init</strong> <em>(struct rsa_private_key *<var>key</var>)</em><a href='#index-rsa_005fprivate_005fkey_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_init</code> on all numbers in the key struct.
+</p></dd></dl>
+
+<p>and when finished with them, the space for the numbers must be
+deallocated by calling one of
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpublic_005fkey_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>rsa_public_key_clear</strong> <em>(struct rsa_public_key *<var>pub</var>)</em><a href='#index-rsa_005fpublic_005fkey_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fprivate_005fkey_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>rsa_private_key_clear</strong> <em>(struct rsa_private_key *<var>key</var>)</em><a href='#index-rsa_005fprivate_005fkey_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_clear</code> on all numbers in the key struct.
+</p></dd></dl>
+
+<p>In general, Nettle&rsquo;s <acronym>RSA</acronym> functions deviates from Nettle&rsquo;s &ldquo;no
+memory allocation&rdquo;-policy. Space for all the numbers, both in the key structs
+above, and temporaries, are allocated dynamically. For information on how
+to customize allocation, see
+See <a data-manual="gmp" href="https://www.gmplib.org/manual/Custom-Allocation.html#Custom-Allocation">GMP Allocation</a> in <cite>GMP Manual</cite>.
+</p>
+<p>When you have assigned values to the attributes of a key, you must call
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpublic_005fkey_005fprepare"><span class="category">Function: </span><span><em>int</em> <strong>rsa_public_key_prepare</strong> <em>(struct rsa_public_key *<var>pub</var>)</em><a href='#index-rsa_005fpublic_005fkey_005fprepare' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fprivate_005fkey_005fprepare"><span class="category">Function: </span><span><em>int</em> <strong>rsa_private_key_prepare</strong> <em>(struct rsa_private_key *<var>key</var>)</em><a href='#index-rsa_005fprivate_005fkey_005fprepare' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the octet size of the key (stored in the <code>size</code> attribute,
+and may also do other basic sanity checks. Returns one if successful, or
+zero if the key can&rsquo;t be used, for instance if the modulo is smaller
+than the minimum size needed for <acronym>RSA</acronym> operations specified by PKCS#1.
+</p></dd></dl>
+
+<p>For each operation using the private key, there are two variants, e.g.,
+<code>rsa_sha256_sign</code> and <code>rsa_sha256_sign_tr</code>. The former
+function is older, and it should be avoided, because it provides no
+defenses against side-channel attacks. The latter function use
+randomized <acronym>RSA</acronym> blinding, which defends against timing attacks
+using chosen-ciphertext, and it also checks the correctness of the
+private key computation using the public key, which defends against
+software or hardware errors which could leak the private key.
+</p>
+<p>Before signing or verifying a message, you first hash it with the
+appropriate hash function. You pass the hash function&rsquo;s context struct
+to the <acronym>RSA</acronym> signature function, and it will extract the message
+digest and do the rest of the work. There are also alternative functions
+that take the hash digest as argument.
+</p>
+<p>There is currently no support for using SHA224 or SHA384 with
+<acronym>RSA</acronym> signatures, since there&rsquo;s no gain in either computation
+time nor message size compared to using SHA256 and SHA512, respectively.
+</p>
+<p>Creating an <acronym>RSA</acronym> signature is done with one of the following
+functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fsign_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_sign_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, struct md5_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fsign_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fsign_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_sign_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, struct sha1_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fsign_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fsign_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_sign_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, struct sha256_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fsign_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fsign_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_sign_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, struct sha512_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fsign_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The signature is stored in <var>signature</var> (which must have been
+<code>mpz_init</code>&rsquo;ed earlier). The hash context is reset so that it can be
+used for new messages. The <var>random_ctx</var> and <var>random</var> pointers
+are used to generate the <acronym>RSA</acronym> blinding. Returns one on success,
+or zero on failure. Signing fails if an error in the computation was
+detected, or if the key is too small for the given hash size, e.g., it&rsquo;s
+not possible to create a signature using SHA512 and a 512-bit
+<acronym>RSA</acronym> key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Creates a signature from the given hash digest. <var>digest</var> should
+point to a digest of size <code>MD5_DIGEST_SIZE</code>,
+<code>SHA1_DIGEST_SIZE</code>, <code>SHA256_DIGEST_SIZE</code>, or
+<code>SHA512_DIGEST_SIZE</code>respectively. The signature is stored in
+<var>signature</var> (which must have been <code>mpz_init</code>:ed earlier).
+Returns one on success, or zero on failure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fpkcs1_005fsign_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pkcs1_sign_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>length</var>, const uint8_t *<var>digest_info</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpkcs1_005fsign_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Similar to the above <code>_sign_digest_tr</code> functions, but the input is not the
+plain hash digest, but a PKCS#1 &ldquo;DigestInfo&rdquo;, an ASN.1 DER-encoding
+of the digest together with an object identifier for the used hash
+algorithm.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_sign</strong> <em>(const struct rsa_private_key *<var>key</var>, struct md5_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_sign</strong> <em>(const struct rsa_private_key *<var>key</var>, struct sha1_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_sign</strong> <em>(const struct rsa_private_key *<var>key</var>, struct sha256_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_sign</strong> <em>(const struct rsa_private_key *<var>key</var>, struct sha512_ctx *<var>hash</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The signature is stored in <var>signature</var> (which must have been
+<code>mpz_init</code>&rsquo;ed earlier). The hash context is reset so that it can be
+used for new messages. Returns one on success, or zero on failure.
+Signing fails if the key is too small for the given hash size, e.g.,
+it&rsquo;s not possible to create a signature using SHA512 and a 512-bit
+<acronym>RSA</acronym> key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_sign_digest</strong> <em>(const struct rsa_private_key *<var>key</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_sign_digest</strong> <em>(const struct rsa_private_key *<var>key</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_sign_digest</strong> <em>(const struct rsa_private_key *<var>key</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_sign_digest</strong> <em>(const struct rsa_private_key *<var>key</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Creates a signature from the given hash digest; otherwise analoguous to
+the above signing functions. <var>digest</var> should point to a digest of
+size <code>MD5_DIGEST_SIZE</code>, <code>SHA1_DIGEST_SIZE</code>,
+<code>SHA256_DIGEST_SIZE</code>, or <code>SHA512_DIGEST_SIZE</code>, respectively.
+The signature is stored in <var>signature</var> (which must have been
+<code>mpz_init</code>:ed earlier). Returns one on success, or zero on failure.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fpkcs1_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pkcs1_sign</strong> <em>(const struct rsa_private_key *<var>key</var>, size_t <var>length</var>, const uint8_t *<var>digest_info</var>, mpz_t <var>s</var>)</em><a href='#index-rsa_005fpkcs1_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Similar to the above _sign_digest functions, but the input is not the
+plain hash digest, but a PKCS#1 &ldquo;DigestInfo&rdquo;, an ASN.1 DER-encoding
+of the digest together with an object identifier for the used hash
+algorithm.
+</p></dd></dl>
+
+<p>Verifying an RSA signature is done with one of the following functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_verify</strong> <em>(const struct rsa_public_key *<var>key</var>, struct md5_ctx *<var>hash</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_verify</strong> <em>(const struct rsa_public_key *<var>key</var>, struct sha1_ctx *<var>hash</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_verify</strong> <em>(const struct rsa_public_key *<var>key</var>, struct sha256_ctx *<var>hash</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_verify</strong> <em>(const struct rsa_public_key *<var>key</var>, struct sha512_ctx *<var>hash</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 if the signature is valid, or 0 if it isn&rsquo;t. In either case,
+the hash context is reset so that it can be used for new messages.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fmd5_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_md5_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fmd5_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha1_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha1_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha1_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha256_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha256_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha256_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fsha512_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_sha512_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fsha512_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 if the signature is valid, or 0 if it isn&rsquo;t. <var>digest</var>
+should point to a digest of size <code>MD5_DIGEST_SIZE</code>,
+<code>SHA1_DIGEST_SIZE</code>, <code>SHA256_DIGEST_SIZE</code>, or
+<code>SHA512_DIGEST_SIZE</code> respectively.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fpkcs1_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pkcs1_verify</strong> <em>(const struct rsa_public_key *<var>key</var>, size_t <var>length</var>, const uint8_t *<var>digest_info</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpkcs1_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Similar to the above _verify_digest functions, but the input is not the
+plain hash digest, but a PKCS#1 &ldquo;DigestInfo&rdquo;, and ASN.1 DER-encoding
+of the digest together with an object identifier for the used hash
+algorithm.
+</p></dd></dl>
+
+<p>While the above functions for the RSA signature operations use the
+<cite>PKCS#1</cite> padding scheme, Nettle also provides the variants based on
+the PSS padding scheme, specified in <cite>RFC 8017</cite>. These variants
+take advantage of a randomly choosen salt value, which could enhance the
+security by causing output to be different for equivalent inputs.
+However, assuming the same security level as inverting the <acronym>RSA</acronym>
+algorithm, a longer salt value does not always mean a better security
+<a href="https://www.iacr.org/archive/eurocrypt2002/23320268/coron.pdf">https://www.iacr.org/archive/eurocrypt2002/23320268/coron.pdf</a>.
+The typical choices of the length are between 0 and the digest size of
+the underlying hash function.
+</p>
+<p>Creating an RSA signature with the PSS padding scheme is done with one
+of the following functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpss_005fsha256_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha256_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha256_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fpss_005fsha384_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha384_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha384_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fpss_005fsha512_005fsign_005fdigest_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha512_sign_digest_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>salt_length</var>, const uint8_t *<var>salt</var>, const uint8_t *<var>digest</var>, mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha512_005fsign_005fdigest_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Creates a signature using the PSS padding scheme. <var>salt</var> should
+point to a salt string of size <var>salt_length</var>. <var>digest</var> should
+point to a digest of size <code>SHA256_DIGEST_SIZE</code>,
+<code>SHA384_DIGEST_SIZE</code>, or <code>SHA512_DIGEST_SIZE</code>respectively. The
+signature is stored in <var>signature</var> (which must have been
+<code>mpz_init</code>:ed earlier).
+Returns one on success, or zero on failure.
+</p></dd></dl>
+
+<p>Verifying an RSA signature with the PSS padding scheme is done with one
+of the following functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005fpss_005fsha256_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha256_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, size_t <var>salt_length</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha256_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fpss_005fsha384_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha384_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, size_t <var>salt_length</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha384_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005fpss_005fsha512_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>rsa_pss_sha512_verify_digest</strong> <em>(const struct rsa_public_key *<var>key</var>, size_t <var>salt_length</var>, const uint8_t *<var>digest</var>, const mpz_t <var>signature</var>)</em><a href='#index-rsa_005fpss_005fsha512_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 if the signature is valid, or 0 if it isn&rsquo;t. <var>digest</var>
+should point to a digest of size <code>SHA256_DIGEST_SIZE</code>,
+<code>SHA384_DIGEST_SIZE</code>, or <code>SHA512_DIGEST_SIZE</code> respectively.
+</p></dd></dl>
+
+<p>The following function is used to encrypt a clear text message using RSA.
+</p><dl class="def">
+<dt id="index-rsa_005fencrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_encrypt</strong> <em>(const struct rsa_public_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>length</var>, const uint8_t *<var>cleartext</var>, mpz_t <var>ciphertext</var>)</em><a href='#index-rsa_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 on success, 0 on failure. If the message is too long then this
+will lead to a failure.
+</p></dd></dl>
+<p>The following function is used to decrypt a cipher text message using RSA.
+</p><dl class="def">
+<dt id="index-rsa_005fdecrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_decrypt</strong> <em>(const struct rsa_private_key *<var>key</var>, size_t *<var>length</var>, uint8_t *<var>cleartext</var>, const mpz_t <var>ciphertext</var>)</em><a href='#index-rsa_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 on success, 0 on failure. Causes of failure include decryption
+failing or the resulting message being to large. The message buffer
+pointed to by <var>cleartext</var> must be of size *<var>length</var>. After
+decryption, *<var>length</var> will be updated with the size of the
+message.
+</p></dd></dl>
+<p>There is also a timing resistant version of decryption that utilizes
+randomized RSA blinding.
+</p><dl class="def">
+<dt id="index-rsa_005fdecrypt_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_decrypt_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t *<var>length</var>, uint8_t *<var>message</var>, const mpz_t <var>ciphertext</var>)</em><a href='#index-rsa_005fdecrypt_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 on success, 0 on failure.
+</p></dd></dl>
+
+<p>While the above functions for the RSA encryption operations use the
+<cite>PKCS#1</cite> padding scheme, Nettle also provides the variants based
+on the OAEP padding scheme, specified in <cite>RFC 8017</cite>. These
+variants take advantage of a randomly choosen seed value, which could
+enhance the security by causing output to be different for equivalent
+inputs.
+</p>
+<p>Encrypting a clear text message using RSA with the OAEP padding scheme
+is done with one of the following functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005foaep_005fsha256_005fencrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha256_encrypt</strong> <em>(const struct rsa_public_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t <var>length</var>, const uint8_t *<var>message</var>, uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha256_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005foaep_005fsha384_005fencrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha384_encrypt</strong> <em>(const struct rsa_public_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t <var>length</var>, const uint8_t *<var>message</var>, uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha384_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005foaep_005fsha512_005fencrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha512_encrypt</strong> <em>(const struct rsa_public_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t <var>length</var>, const uint8_t *<var>message</var>, uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha512_005fencrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 on success, 0 on failure. The label is optional and if
+omitted, <var>label_length</var> and <var>label</var> is set to 0 and
+<code>NULL</code> respectively. The maximum size of <var>message</var> can be
+calculated with <code>k - 2 * hLen - 2</code>, where <code>k</code> is the key
+size in octets obtained with <var>key</var>-&gt;size, and <code>hLen</code> is the
+output size of the underlying hash function (e.g.,
+<code>SHA256_DIGEST_SIZE</code> for <code>rsa_oaep_sha256_encrypt</code>).
+</p></dd></dl>
+
+<p>Decrypting a cipher text message using RSA with the OAEP padding
+scheme is done with one of the following functions:
+</p>
+<dl class="def">
+<dt id="index-rsa_005foaep_005fsha256_005fdecrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha256_decrypt</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t *<var>length</var>, uint8_t *<var>message</var>, const uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha256_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005foaep_005fsha384_005fdecrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha384_decrypt</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t *<var>length</var>, uint8_t *<var>message</var>, const uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha384_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-rsa_005foaep_005fsha512_005fdecrypt"><span class="category">Function: </span><span><em>int</em> <strong>rsa_oaep_sha512_decrypt</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>label_length</var>, const uint8_t *<var>label</var>, size_t *<var>length</var>, uint8_t *<var>message</var>, const uint8_t *<var>ciphertext</var>)</em><a href='#index-rsa_005foaep_005fsha512_005fdecrypt' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 on success, 0 on failure. These function utilize randomized
+RSA blinding similarly to <code>rsa_decrypt_tr</code>. The message buffer
+pointed to by <var>cleartext</var> must be of size *<var>length</var>. After
+decryption, *<var>length</var> will be updated with the size of the
+message.
+</p></dd></dl>
+
+
+<p>If you need to use the <acronym>RSA</acronym> trapdoor, the private key, in a way
+that isn&rsquo;t supported by the above functions Nettle also includes a
+function that computes <code>x^d mod n</code> and nothing more, using the
+<acronym>CRT</acronym> optimization.
+</p>
+<dl class="def">
+<dt id="index-rsa_005fcompute_005froot_005ftr"><span class="category">Function: </span><span><em>int</em> <strong>rsa_compute_root_tr</strong> <em>(const struct rsa_public_key *<var>pub</var>, const struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, mpz_t <var>x</var>, const mpz_t <var>m</var>)</em><a href='#index-rsa_005fcompute_005froot_005ftr' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <code>x = m^d</code>. Returns one on success, or zero if a failure in
+the computation was detected.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-rsa_005fcompute_005froot"><span class="category">Function: </span><span><em>void</em> <strong>rsa_compute_root</strong> <em>(struct rsa_private_key *<var>key</var>, mpz_t <var>x</var>, const mpz_t <var>m</var>)</em><a href='#index-rsa_005fcompute_005froot' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <code>x = m^d</code>.
+</p></dd></dl>
+
+<p>At last, how do you create new keys?
+</p>
+<dl class="def">
+<dt id="index-rsa_005fgenerate_005fkeypair"><span class="category">Function: </span><span><em>int</em> <strong>rsa_generate_keypair</strong> <em>(struct rsa_public_key *<var>pub</var>, struct rsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, void *<var>progress_ctx</var>, nettle_progress_func <var>progress</var>, unsigned <var>n_size</var>, unsigned <var>e_size</var>)</em><a href='#index-rsa_005fgenerate_005fkeypair' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>There are lots of parameters. <var>pub</var> and <var>key</var> is where the
+resulting key pair is stored. The structs should be initialized, but you
+don&rsquo;t need to call <code>rsa_public_key_prepare</code> or
+<code>rsa_private_key_prepare</code> after key generation.
+</p>
+<p><var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>.
+</p>
+<p><var>progress</var> and <var>progress_ctx</var> can be used to get callbacks
+during the key generation process, in order to uphold an illusion of
+progress. <var>progress</var> can be NULL, in that case there are no
+callbacks.
+</p>
+<p><var>size_n</var> is the desired size of the modulo, in bits. If <var>size_e</var>
+is non-zero, it is the desired size of the public exponent and a random
+exponent of that size is selected. But if <var>e_size</var> is zero, it is
+assumed that the caller has already chosen a value for <code>e</code>, and
+stored it in <var>pub</var>.
+Returns one on success, and zero on failure. The function can fail for
+example if if <var>n_size</var> is too small, or if <var>e_size</var> is zero and
+<code>pub-&gt;e</code> is an even number.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="DSA">
+<div class="header">
+<p>
+Next: <a href="#Elliptic-curves" accesskey="n" rel="next">Elliptic curves</a>, Previous: <a href="#RSA" accesskey="p" rel="prev"><acronym>RSA</acronym></a>, Up: <a href="#Public_002dkey-algorithms" accesskey="u" rel="up">Public-key algorithms</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="DSA-1"></span><h4 class="subsection">7.7.2 <acronym>DSA</acronym></h4>
+
+<p>The <acronym>DSA</acronym> digital signature algorithm is more complex than
+<acronym>RSA</acronym>. It was specified during the early 1990s, and in 1994 NIST
+published <acronym>FIPS</acronym> 186 which is the authoritative specification.
+Sometimes <acronym>DSA</acronym> is referred to using the acronym <acronym>DSS</acronym>,
+for Digital Signature Standard. The most recent revision of the
+specification, FIPS186-3, was issued in 2009, and it adds support for
+larger hash functions than <acronym>sha1</acronym>.
+</p>
+<p>For <acronym>DSA</acronym>, the underlying mathematical problem is the
+computation of discrete logarithms. The public key consists of a large
+prime <code>p</code>, a small prime <code>q</code> which is a factor of <code>p-1</code>,
+a number <code>g</code> which generates a subgroup of order <code>q</code> modulo
+<code>p</code>, and an element <code>y</code> in that subgroup.
+</p>
+<p>In the original <acronym>DSA</acronym>, the size of <code>q</code> is fixed to 160
+bits, to match with the <acronym>SHA1</acronym> hash algorithm. The size of
+<code>p</code> is in principle unlimited, but the
+standard specifies only nine specific sizes: <code>512 + l*64</code>, where
+<code>l</code> is between 0 and 8. Thus, the maximum size of <code>p</code> is 1024
+bits, and sizes less than 1024 bits are considered obsolete and not
+secure.
+</p>
+<p>The subgroup requirement means that if you compute
+</p>
+<div class="example">
+<pre class="example">g^t mod p
+</pre></div>
+
+<p>for all possible integers <code>t</code>, you will get precisely <code>q</code>
+distinct values.
+</p>
+<p>The private key is a secret exponent <code>x</code>, such that
+</p>
+<div class="example">
+<pre class="example">g^x = y mod p
+</pre></div>
+
+<p>In mathematical speak, <code>x</code> is the <em>discrete logarithm</em> of
+<code>y</code> mod <code>p</code>, with respect to the generator <code>g</code>. The size
+of <code>x</code> will also be about the same size as <code>q</code>. The security of the
+<acronym>DSA</acronym> algorithm relies on the difficulty of the discrete
+logarithm problem. Current algorithms to compute discrete logarithms in
+this setting, and hence crack <acronym>DSA</acronym>, are of two types. The first
+type works directly in the (multiplicative) group of integers mod
+<code>p</code>. The best known algorithm of this type is the Number Field
+Sieve, and it&rsquo;s complexity is similar to the complexity of factoring
+numbers of the same size as <code>p</code>. The other type works in the
+smaller <code>q</code>-sized subgroup generated by <code>g</code>, which has a more
+difficult group structure. One good algorithm is Pollard-rho, which has
+complexity <code>sqrt(q)</code>.
+</p>
+<p>The important point is that security depends on the size of <em>both</em>
+<code>p</code> and <code>q</code>, and they should be chosen so that the difficulty
+of both discrete logarithm methods are comparable. Today, the security
+margin of the original <acronym>DSA</acronym> may be uncomfortably small. Using a
+<code>p</code> of 1024 bits implies that cracking using the number field sieve
+is expected to take about the same time as factoring a 1024-bit
+<acronym>RSA</acronym> modulo, and using a <code>q</code> of size 160 bits implies
+that cracking using Pollard-rho will take roughly <code>2^80</code> group
+operations. With the size of <code>q</code> fixed, tied to the <acronym>SHA1</acronym>
+digest size, it may be tempting to increase the size of <code>p</code> to,
+say, 4096 bits. This will provide excellent resistance against attacks
+like the number field sieve which works in the large group. But it will
+do very little to defend against Pollard-rho attacking the small
+subgroup; the attacker is slowed down at most by a single factor of 10
+due to the more expensive group operation. And the attacker will surely
+choose the latter attack.
+</p>
+<p>The signature generation algorithm is randomized; in order to create a
+<acronym>DSA</acronym> signature, you need a good source for random numbers
+(see <a href="#Randomness">Randomness</a>). Let us describe the common case of a 160-bit
+<code>q</code>.
+</p>
+<p>To create a signature, one starts with the hash digest of the message,
+<code>h</code>, which is a 160 bit number, and a random number <code>k,
+0&lt;k&lt;q</code>, also 160 bits. Next, one computes
+</p>
+<div class="example">
+<pre class="example">r = (g^k mod p) mod q
+s = k^-1 (h + x r) mod q
+</pre></div>
+
+<p>The signature is the pair <code>(r, s)</code>, two 160 bit numbers. Note the
+two different mod operations when computing <code>r</code>, and the use of the
+secret exponent <code>x</code>.
+</p>
+<p>To verify a signature, one first checks that <code>0 &lt; r,s &lt; q</code>, and
+then one computes backwards,
+</p>
+<div class="example">
+<pre class="example">w = s^-1 mod q
+v = (g^(w h) y^(w r) mod p) mod q
+</pre></div>
+
+<p>The signature is valid if <code>v = r</code>. This works out because <code>w =
+s^-1 mod q = k (h + x r)^-1 mod q</code>, so that
+</p>
+<div class="example">
+<pre class="example">g^(w h) y^(w r) = g^(w h) (g^x)^(w r) = g^(w (h + x r)) = g^k
+</pre></div>
+
+<p>When reducing mod <code>q</code> this yields <code>r</code>. Note that when
+verifying a signature, we don&rsquo;t know either <code>k</code> or <code>x</code>: those
+numbers are secret.
+</p>
+<p>If you can choose between <acronym>RSA</acronym> and <acronym>DSA</acronym>, which one is
+best? Both are believed to be secure. <acronym>DSA</acronym> gained popularity in
+the late 1990s, as a patent free alternative to <acronym>RSA</acronym>. Now that
+the <acronym>RSA</acronym> patents have expired, there&rsquo;s no compelling reason to
+want to use <acronym>DSA</acronym>. Today, the original <acronym>DSA</acronym> key size
+does not provide a large security margin, and it should probably be
+phased out together with <acronym>RSA</acronym> keys of 1024 bits. Using the
+revised <acronym>DSA</acronym> algorithm with a larger hash function, in
+particular, <acronym>SHA256</acronym>, a 256-bit <code>q</code>, and <code>p</code> of size
+2048 bits or more, should provide for a more comfortable security
+margin, but these variants are not yet in wide use.
+</p>
+<p><acronym>DSA</acronym> signatures are smaller than <acronym>RSA</acronym> signatures,
+which is important for some specialized applications.
+</p>
+<p>From a practical point of view, <acronym>DSA</acronym>&rsquo;s need for a good
+randomness source is a serious disadvantage. If you ever use the same
+<code>k</code> (and <code>r</code>) for two different message, you leak your private
+key.
+</p>
+<ul class="section-toc">
+<li><a href="#Nettle_0027s-DSA-support" accesskey="1">Nettle&rsquo;s <acronym>DSA</acronym> support</a></li>
+<li><a href="#Old_002c-deprecated_002c-DSA-interface" accesskey="2">Old, deprecated, <acronym>DSA</acronym> interface</a></li>
+</ul>
+<div class="subsubsection" id="Nettle_0027s-DSA-support">
+<h4 class="subsubsection">7.7.2.1 Nettle&rsquo;s <acronym>DSA</acronym> support</h4>
+
+<p>Like for <acronym>RSA</acronym>, Nettle represents <acronym>DSA</acronym> keys using two
+structures, containing values of type <code>mpz_t</code>. For information on
+how to customize allocation, see See <a data-manual="gmp" href="https://www.gmplib.org/manual/Custom-Allocation.html#Custom-Allocation">GMP
+Allocation</a> in <cite>GMP Manual</cite>. Nettle&rsquo;s <acronym>DSA</acronym> interface is defined
+in <samp>&lt;nettle/dsa.h&gt;</samp>.
+</p>
+<p>A <acronym>DSA</acronym> group is represented using the following struct.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fparams"><span class="category">Context struct: </span><span><strong>dsa_params</strong> <em>p q g</em><a href='#index-dsa_005fparams' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Parameters of the <acronym>DSA</acronym> group.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fparams_005finit"><span class="category">Function: </span><span><em>void</em> <strong>dsa_params_init</strong> <em>(struct dsa_params *<var>params</var>)</em><a href='#index-dsa_005fparams_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_init</code> on all numbers in the struct.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fparams_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>dsa_params_clear</strong> <em>(struct dsa_params *<var>params</var>params)</em><a href='#index-dsa_005fparams_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_clear</code> on all numbers in the struct.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fgenerate_005fparams"><span class="category">Function: </span><span><em>int</em> <strong>dsa_generate_params</strong> <em>(struct dsa_params *<var>params</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, void *<var>progress_ctx</var>, nettle_progress_func *<var>progress</var>, unsigned <var>p_bits</var>, unsigned <var>q_bits</var>)</em><a href='#index-dsa_005fgenerate_005fparams' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Generates parameters of a new group. The <var>params</var> struct should be
+initialized before you call this function.
+</p>
+<p><var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>.
+</p>
+<p><var>progress</var> and <var>progress_ctx</var> can be used to get callbacks
+during the key generation process, in order to uphold an illusion of
+progress. <var>progress</var> can be NULL, in that case there are no
+callbacks.
+</p>
+<p><var>p_bits</var> and <var>q_bits</var> are the desired sizes of <code>p</code> and
+<code>q</code>. To generate keys that conform to the original <acronym>DSA</acronym>
+standard, you must use <code>q_bits = 160</code> and select <var>p_bits</var> of
+the form <code>p_bits = 512 + l*64</code>, for <code>0 &lt;= l &lt;= 8</code>, where the
+smaller sizes are no longer recommended, so you should most likely stick
+to <code>p_bits = 1024</code>. Non-standard sizes are possible, in particular
+<code>p_bits</code> larger than 1024, although <acronym>DSA</acronym> implementations
+can not in general be expected to support such keys. Also note that
+using very large <var>p_bits</var>, with <var>q_bits</var> fixed at 160, doesn&rsquo;t
+make much sense, because the security is also limited by the size of the
+smaller prime. To generate <acronym>DSA</acronym> keys for use with
+<acronym>SHA256</acronym>, use <code>q_bits = 256</code> and, e.g., <code>p_bits =
+2048</code>.
+</p>
+<p>Returns one on success, and zero on failure. The function will fail if
+<var>q_bits</var> is too small, or too close to <var>p_bits</var>.
+</p></dd></dl>
+
+<p>Signatures are represented using the structure below.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fsignature"><span class="category">Context struct: </span><span><strong>dsa_signature</strong> <em>r s</em><a href='#index-dsa_005fsignature' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The <var>r</var> and <var>s</var> fields are both of type <code>mpz_t</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fsignature_005finit"><span class="category">Function: </span><span><em>void</em> <strong>dsa_signature_init</strong> <em>(struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsignature_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsignature_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>dsa_signature_clear</strong> <em>(struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsignature_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>You must call <code>dsa_signature_init</code> before creating or using a
+signature, and call <code>dsa_signature_clear</code> when you are finished
+with it.
+</p></dd></dl>
+
+<p>Keys are represented as bignums, of type <code>mpz_t</code>. A public key
+represents a group element, and is of the same size as <code>p</code>, while a
+private key is an exponent, of the same size as <code>q</code>.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sign</strong> <em>(const struct dsa_params *<var>params</var>, const mpz_t <var>x</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>digest_size</var>, const uint8_t *<var>digest</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Creates a signature from the given hash digest, using the private key
+<var>x</var>. <var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>. Returns one on success, or zero on failure. Signing
+can fail only if the key is invalid, so that inversion modulo <code>q</code>
+fails.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>dsa_verify</strong> <em>(const struct dsa_params *<var>params</var>, const mpz_t <var>y</var>, size_t <var>digest_size</var>, const uint8_t *<var>digest</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Verifies a signature, using the public key y. Returns 1 if the signature
+is valid, otherwise 0.
+</p></dd></dl>
+
+<p>To generate a keypair, first generate a <acronym>DSA</acronym> group using
+<code>dsa_generate_params</code>. A keypair in this group is then created
+using
+</p>
+<dl class="def">
+<dt id="index-dsa_005fgenerate_005fkeypair"><span class="category">Function: </span><span><em>void</em> <strong>dsa_generate_keypair</strong> <em>(const struct dsa_params *<var>params</var>, mpz_t <var>pub</var>, mpz_t <var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>)</em><a href='#index-dsa_005fgenerate_005fkeypair' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Generates a new keypair, using the group <var>params</var>. The public key is
+stored in <var>pub</var>, and the private key in <var>key</var>. Both variables
+must be initialized using <code>mpz_init</code> before this call.
+</p>
+<p><var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="Old_002c-deprecated_002c-DSA-interface">
+<h4 class="subsubsection">7.7.2.2 Old, deprecated, <acronym>DSA</acronym> interface</h4>
+
+<p>Versions before nettle-3.0 used a different interface for <acronym>DSA</acronym>
+signatures, where the group parameters and the public key was packed
+together as <code>struct dsa_public_key</code>. Most of this interface is kept
+for backwards compatibility, and declared in <samp>nettle/dsa-compat.h</samp>.
+Below is the old documentation. The old and new interface use distinct
+names and don&rsquo;t confict, with one exception: The key generation
+function. The <samp>nettle/dsa-compat.h</samp> redefines
+<code>dsa_generate_keypair</code> as an alias for
+<code>dsa_compat_generate_keypair</code>, compatible with the old interface
+and documented below.
+</p>
+<p>The old <acronym>DSA</acronym> functions are very similar to the corresponding
+<acronym>RSA</acronym> functions, but there are a few differences pointed out
+below. For a start, there are no functions corresponding to
+<code>rsa_public_key_prepare</code> and <code>rsa_private_key_prepare</code>.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fpublic_005fkey"><span class="category">Context struct: </span><span><strong>dsa_public_key</strong> <em>p q g y</em><a href='#index-dsa_005fpublic_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The public parameters described above.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-dsa_005fprivate_005fkey"><span class="category">Context struct: </span><span><strong>dsa_private_key</strong> <em>x</em><a href='#index-dsa_005fprivate_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The private key <code>x</code>.
+</p></dd></dl>
+
+<p>Before use, these structs must be initialized by calling one of
+</p>
+<dl class="def">
+<dt id="index-dsa_005fpublic_005fkey_005finit"><span class="category">Function: </span><span><em>void</em> <strong>dsa_public_key_init</strong> <em>(struct dsa_public_key *<var>pub</var>)</em><a href='#index-dsa_005fpublic_005fkey_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fprivate_005fkey_005finit"><span class="category">Function: </span><span><em>void</em> <strong>dsa_private_key_init</strong> <em>(struct dsa_private_key *<var>key</var>)</em><a href='#index-dsa_005fprivate_005fkey_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_init</code> on all numbers in the key struct.
+</p></dd></dl>
+
+<p>When finished with them, the space for the numbers must be
+deallocated by calling one of
+</p>
+<dl class="def">
+<dt id="index-dsa_005fpublic_005fkey_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>dsa_public_key_clear</strong> <em>(struct dsa_public_key *<var>pub</var>)</em><a href='#index-dsa_005fpublic_005fkey_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fprivate_005fkey_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>dsa_private_key_clear</strong> <em>(struct dsa_private_key *<var>key</var>)</em><a href='#index-dsa_005fprivate_005fkey_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Calls <code>mpz_clear</code> on all numbers in the key struct.
+</p></dd></dl>
+
+<p>Signatures are represented using <code>struct dsa_signature</code>, described
+earlier.
+</p>
+<p>For signing, you need to provide both the public and the private key
+(unlike <acronym>RSA</acronym>, where the private key struct includes all
+information needed for signing), and a source for random numbers.
+Signatures can use the <acronym>SHA1</acronym> or the <acronym>SHA256</acronym> hash
+function, although the implementation of <acronym>DSA</acronym> with
+<acronym>SHA256</acronym> should be considered somewhat experimental due to lack
+of official test vectors and interoperability testing.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fsha1_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha1_sign</strong> <em>(const struct dsa_public_key *<var>pub</var>, const struct dsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, struct sha1_ctx *<var>hash</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha1_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha1_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha1_sign_digest</strong> <em>(const struct dsa_public_key *<var>pub</var>, const struct dsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, const uint8_t *<var>digest</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha1_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha256_005fsign"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha256_sign</strong> <em>(const struct dsa_public_key *<var>pub</var>, const struct dsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, struct sha256_ctx *<var>hash</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha256_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha256_005fsign_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha256_sign_digest</strong> <em>(const struct dsa_public_key *<var>pub</var>, const struct dsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, const uint8_t *<var>digest</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha256_005fsign_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Creates a signature from the given hash context or digest.
+<var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>. Returns one on success, or zero on failure.
+Signing fails if the key size and the hash size don&rsquo;t match.
+</p></dd></dl>
+
+<p>Verifying signatures is a little easier, since no randomness generator is
+needed. The functions are
+</p>
+<dl class="def">
+<dt id="index-dsa_005fsha1_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha1_verify</strong> <em>(const struct dsa_public_key *<var>key</var>, struct sha1_ctx *<var>hash</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha1_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha1_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha1_verify_digest</strong> <em>(const struct dsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha1_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha256_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha256_verify</strong> <em>(const struct dsa_public_key *<var>key</var>, struct sha256_ctx *<var>hash</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha256_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-dsa_005fsha256_005fverify_005fdigest"><span class="category">Function: </span><span><em>int</em> <strong>dsa_sha256_verify_digest</strong> <em>(const struct dsa_public_key *<var>key</var>, const uint8_t *<var>digest</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-dsa_005fsha256_005fverify_005fdigest' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Verifies a signature. Returns 1 if the signature is valid, otherwise 0.
+</p></dd></dl>
+
+<p>Key generation uses mostly the same parameters as the corresponding
+<acronym>RSA</acronym> function.
+</p>
+<dl class="def">
+<dt id="index-dsa_005fcompat_005fgenerate_005fkeypair"><span class="category">Function: </span><span><em>int</em> <strong>dsa_compat_generate_keypair</strong> <em>(struct dsa_public_key *<var>pub</var>, struct dsa_private_key *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func <var>random</var>, void *<var>progress_ctx</var>, nettle_progress_func <var>progress</var>, unsigned <var>p_bits</var>, unsigned <var>q_bits</var>)</em><a href='#index-dsa_005fcompat_005fgenerate_005fkeypair' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>pub</var> and <var>key</var> is where the resulting key pair is stored. The
+structs should be initialized before you call this function.
+</p>
+<p><var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>.
+</p>
+<p><var>progress</var> and <var>progress_ctx</var> can be used to get callbacks
+during the key generation process, in order to uphold an illusion of
+progress. <var>progress</var> can be NULL, in that case there are no
+callbacks.
+</p>
+<p><var>p_bits</var> and <var>q_bits</var> are the desired sizes of <code>p</code> and
+<code>q</code>. See <code>dsa_generate_keypair</code> for details.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="subsection" id="Elliptic-curves">
+<div class="header">
+<p>
+Previous: <a href="#DSA" accesskey="p" rel="prev"><acronym>DSA</acronym></a>, Up: <a href="#Public_002dkey-algorithms" accesskey="u" rel="up">Public-key algorithms</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Elliptic-curves-1"></span><h4 class="subsection">7.7.3 Elliptic curves</h4>
+
+<p>For cryptographic purposes, an elliptic curve is a mathematical group of
+points, and computing logarithms in this group is computationally
+difficult problem. Nettle uses additive notation for elliptic curve
+groups. If <em class='math'>P</em> and <em class='math'>Q</em> are two points, and <em class='math'>k</em> is an
+integer, the point sum, <em class='math'>P + Q</em>, and the multiple <em class='math'>k P</em> can be
+computed efficiently, but given only two points <em class='math'>P</em> and <em class='math'>Q</em>,
+finding an integer <em class='math'>k</em> such that <em class='math'>Q = k P</em> is the elliptic
+curve discrete logarithm problem.
+</p>
+<p>Nettle supports standard curves which are all of the form <em class='math'>y^2 =
+x^3 - 3 x + b (mod p)</em>, i.e., the points have coordinates <em class='math'>(x,y)</em>,
+both considered as integers modulo a specified prime <em class='math'>p</em>. Curves
+are represented as a <code>struct ecc_curve</code>. It also supports
+curve25519, which uses a different form of curve. Supported curves are
+declared in <samp>&lt;nettle/ecc-curve.h&gt;</samp>, e.g., call
+<code>nettle_get_secp_256r1</code> for a standardized curve using the 256-bit
+prime <em class='math'>p = 2^{256} - 2^{224} + 2^{192} + 2^{96} - 1</em>. The contents
+of these structs is not visible to nettle users. The &ldquo;bitsize of the
+curve&rdquo; is used as a shorthand for the bitsize of the curve&rsquo;s prime
+<em class='math'>p</em>, e.g., 256 bits for the SECP 256R1 curve.
+</p>
+
+<ul class="section-toc">
+<li><a href="#Side_002dchannel-silence" accesskey="1">Side-channel silence</a></li>
+<li><a href="#ECDSA" accesskey="2">ECDSA</a></li>
+<li><a href="#GOSTDSA" accesskey="3">GOSTDSA</a></li>
+<li><a href="#Curve-25519-and-Curve-448" accesskey="4">Curve25519 and Curve448</a></li>
+<li><a href="#EdDSA" accesskey="5">EdDSA</a></li>
+</ul>
+<hr>
+<div class="subsubsection" id="Side_002dchannel-silence">
+<div class="header">
+<p>
+Next: <a href="#ECDSA" accesskey="n" rel="next">ECDSA</a>, Up: <a href="#Elliptic-curves" accesskey="u" rel="up">Elliptic curves</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Side_002dchannel-silence-1"></span><h4 class="subsubsection">7.7.3.1 Side-channel silence</h4>
+<span id="index-Side_002dchannel-attack"></span>
+
+<p>Nettle&rsquo;s implementation of the elliptic curve operations is intended to
+be side-channel silent. The side-channel attacks considered are:
+</p>
+<ul>
+<li> Timing attacks
+If the timing of operations depends on secret values, an attacker
+interacting with your system can measure the response time, and infer
+information about your secrets, e.g., a private signature key.
+
+</li><li> Attacks using memory caches
+Assume you have some secret data on a multi-user system, and that this
+data is properly protected so that other users get no direct access to
+it. If you have a process operating on the secret data, and this process
+does memory accesses depending on the data, e.g, an internal lookup
+table in some cryptographic algorithm, an attacker running a separate
+process on the same system may use behavior of internal CPU caches to
+get information about your secrets. This type of attack can even cross
+virtual machine boundaries.
+</li></ul>
+
+<p>Nettle&rsquo;s ECC implementation is designed to be <em>side-channel silent</em>,
+and not leak any information to these attacks. Timing and memory
+accesses depend only on the size of the input data and its location in
+memory, not on the actual data bits. This implies a performance penalty
+in several of the building blocks.
+</p>
+<hr>
+</div>
+<div class="subsubsection" id="ECDSA">
+<div class="header">
+<p>
+Next: <a href="#GOSTDSA" accesskey="n" rel="next">GOSTDSA</a>, Previous: <a href="#Side_002dchannel-silence" accesskey="p" rel="prev">Side-channel silence</a>, Up: <a href="#Elliptic-curves" accesskey="u" rel="up">Elliptic curves</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="ECDSA-1"></span><h4 class="subsubsection">7.7.3.2 ECDSA</h4>
+
+<p>ECDSA is a variant of the DSA digital signature scheme (see <a href="#DSA"><acronym>DSA</acronym></a>),
+which works over an elliptic curve group rather than over a (subgroup
+of) integers modulo <em class='math'>p</em>. Like DSA, creating a signature requires a unique
+random nonce (repeating the nonce with two different messages reveals
+the private key, and any leak or bias in the generation of the nonce
+also leaks information about the key).
+</p>
+<p>Unlike DSA, signatures are in general not tied to any particular hash
+function or even hash size. Any hash function can be used, and the hash
+value is truncated or padded as needed to get a size matching the curve
+being used. It is recommended to use a strong cryptographic hash
+function with digest size close to the bit size of the curve, e.g.,
+SHA256 is a reasonable choice when using ECDSA signature over the curve
+secp256r1. A protocol or application using ECDSA has to specify which
+curve and which hash function to use, or provide some mechanism for
+negotiating.
+</p>
+<p>Nettle defines ECDSA in <samp>&lt;nettle/ecdsa.h&gt;</samp>. We first need
+to define the data types used to represent public and private keys.
+</p>
+<dl class="def">
+<dt id="index-struct-ecc_005fpoint"><span class="category">struct: </span><span><strong>struct ecc_point</strong><a href='#index-struct-ecc_005fpoint' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Represents a point on an elliptic curve. In particular, it is used to
+represent an ECDSA public key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fpoint_005finit"><span class="category">Function: </span><span><em>void</em> <strong>ecc_point_init</strong> <em>(struct ecc_point *<var>p</var>, const struct ecc_curve *<var>ecc</var>)</em><a href='#index-ecc_005fpoint_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>p</var> to represent points on the given curve <var>ecc</var>.
+Allocates storage for the coordinates, using the same allocation
+functions as GMP.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fpoint_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>ecc_point_clear</strong> <em>(struct ecc_point *<var>p</var>)</em><a href='#index-ecc_005fpoint_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Deallocate storage allocated by previous ecc_point_init.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fpoint_005fset"><span class="category">Function: </span><span><em>int</em> <strong>ecc_point_set</strong> <em>(struct ecc_point *<var>p</var>, const mpz_t <var>x</var>, const mpz_t <var>y</var>)</em><a href='#index-ecc_005fpoint_005fset' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Check that the given coordinates represent a point on the curve. If so,
+the coordinates are copied and converted to internal representation, and
+the function returns 1. Otherwise, it returns 0. Currently, the
+infinity point (or zero point, with additive notation) is not allowed.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fpoint_005fget"><span class="category">Function: </span><span><em>void</em> <strong>ecc_point_get</strong> <em>(const struct ecc_point *<var>p</var>, mpz_t <var>x</var>, mpz_t <var>y</var>)</em><a href='#index-ecc_005fpoint_005fget' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the coordinate of the point <var>p</var>. The output parameters
+<var>x</var> or <var>y</var> may be NULL if the caller doesn&rsquo;t want that
+coordinate.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-ecc_005fscalar"><span class="category">struct: </span><span><strong>struct ecc_scalar</strong><a href='#index-struct-ecc_005fscalar' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Represents an integer in the range <em class='math'>0 &lt; x &lt; group order</em>, where the
+&ldquo;group order&rdquo; refers to the order of an ECC group. In particular, it
+is used to represent an ECDSA private key.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fscalar_005finit"><span class="category">Function: </span><span><em>void</em> <strong>ecc_scalar_init</strong> <em>(struct ecc_scalar *<var>s</var>, const struct ecc_curve *<var>ecc</var>)</em><a href='#index-ecc_005fscalar_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes <var>s</var> to represent a scalar suitable for the given curve
+<var>ecc</var>. Allocates storage using the same allocation functions as GMP.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fscalar_005fclear"><span class="category">Function: </span><span><em>void</em> <strong>ecc_scalar_clear</strong> <em>(struct ecc_scalar *<var>s</var>)</em><a href='#index-ecc_005fscalar_005fclear' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Deallocate the storage allocated by previous ecc_scalar_init.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fscalar_005fset"><span class="category">Function: </span><span><em>int</em> <strong>ecc_scalar_set</strong> <em>(struct ecc_scalar *<var>s</var>, const mpz_t <var>z</var>)</em><a href='#index-ecc_005fscalar_005fset' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Check that <var>z</var> is in the correct range. If so, copies the value to
+<var>s</var> and returns 1, otherwise returns 0.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecc_005fscalar_005fget"><span class="category">Function: </span><span><em>void</em> <strong>ecc_scalar_get</strong> <em>(const struct ecc_scalar *<var>s</var>, mpz_t <var>z</var>)</em><a href='#index-ecc_005fscalar_005fget' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Extracts the scalar, in GMP <code>mpz_t</code> representation.
+</p></dd></dl>
+
+<p>To create and verify ECDSA signatures, the following functions are used.
+</p>
+<dl class="def">
+<dt id="index-ecdsa_005fsign"><span class="category">Function: </span><span><em>void</em> <strong>ecdsa_sign</strong> <em>(const struct ecc_scalar *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>digest_length</var>, const uint8_t *<var>digest</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-ecdsa_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Uses the private key <var>key</var> to create a signature of <var>digest</var>.
+<var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. The signature is stored in
+<var>signature</var>, in the same way as for plain DSA.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ecdsa_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>ecdsa_verify</strong> <em>(const struct ecc_point *<var>pub</var>, size_t <var>length</var>, const uint8_t *<var>digest</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-ecdsa_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Uses the public key <var>pub</var> to verify that <var>signature</var> is a valid
+signature for the message digest <var>digest</var> (of <var>length</var> octets).
+Returns 1 if the signature is valid, otherwise 0.
+</p></dd></dl>
+
+<p>Finally, generating a new ECDSA key pair:
+</p>
+<dl class="def">
+<dt id="index-ecdsa_005fgenerate_005fkeypair"><span class="category">Function: </span><span><em>void</em> <strong>ecdsa_generate_keypair</strong> <em>(struct ecc_point *<var>pub</var>, struct ecc_scalar *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>)</em><a href='#index-ecdsa_005fgenerate_005fkeypair' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>pub</var> and <var>key</var> is where the resulting key pair is stored. The
+structs should be initialized, for the desired ECC curve, before you call this function.
+</p>
+<p><var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. For advice, see
+See <a href="#Randomness">Randomness</a>.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsubsection" id="GOSTDSA">
+<div class="header">
+<p>
+Next: <a href="#Curve-25519-and-Curve-448" accesskey="n" rel="next">Curve25519 and Curve448</a>, Previous: <a href="#ECDSA" accesskey="p" rel="prev">ECDSA</a>, Up: <a href="#Elliptic-curves" accesskey="u" rel="up">Elliptic curves</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="GOSTDSA-1"></span><h4 class="subsubsection">7.7.3.3 GOSTDSA</h4>
+<span id="index-GOST-DSA"></span>
+
+<p>GOSTDSA (GOST R 34.10-2001, GOST R 34.10-2012) is a variant of the DSA
+(see <a href="#DSA"><acronym>DSA</acronym></a>) and ECDSA (see <a href="#ECDSA">ECDSA</a>) digital signature schemes, which works
+over an elliptic curve group. Original documents are written in Russian.
+English translations are provided in <cite>RFC 5832</cite> and <cite>RFC 7091</cite>.
+While technically nothing stops one from using GOSTDSA over any curve, it
+is defined only over several 256 and 512-bit curves. Like DSA and ECDSA,
+creating a signature requires a unique random nonce (repeating the nonce
+with two different messages reveals the private key, and any leak or bias
+in the generation of the nonce also leaks information about the key).
+</p>
+<p>GOST R 34.10-2001 was defined to use GOST R 34.11-94 hash function
+(GOSTHASH94 and GOSTHASH94CP, <cite>RFC 5831</cite>). GOST R 34.10-2012 is
+defined to use GOST R 34.11-2012 hash function (Streebog, <cite>RFC
+6986</cite>) of corresponding size (256 or 512) depending on curve size.
+</p>
+<p>Nettle defines GOSTDSA in <samp>&lt;nettle/gostdsa.h&gt;</samp>. GOSTDSA reuses ECDSA
+data types (<code>struct ecc_point</code>, <code>struct ecc_scalar</code>) to
+represent public and private keys. Also to generate a new GOSTDSA key
+pair one has to use <code>ecdsa_generate_keypair()</code> function.
+</p>
+<p>To create and verify GOSTDSA signatures, the following functions are used.
+</p>
+<dl class="def">
+<dt id="index-gostdsa_005fsign"><span class="category">Function: </span><span><em>void</em> <strong>gostdsa_sign</strong> <em>(const struct ecc_scalar *<var>key</var>, void *<var>random_ctx</var>, nettle_random_func *<var>random</var>, size_t <var>digest_length</var>, const uint8_t *<var>digest</var>, struct dsa_signature *<var>signature</var>)</em><a href='#index-gostdsa_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Uses the private key <var>key</var> to create a signature of <var>digest</var>.
+<var>random_ctx</var> and <var>random</var> is a randomness generator.
+<code>random(random_ctx, length, dst)</code> should generate <code>length</code>
+random octets and store them at <code>dst</code>. The signature is stored in
+<var>signature</var>, in the same was as for plain DSA.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-gostdsa_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>gostdsa_verify</strong> <em>(const struct ecc_point *<var>pub</var>, size_t <var>length</var>, const uint8_t *<var>digest</var>, const struct dsa_signature *<var>signature</var>)</em><a href='#index-gostdsa_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Uses the public key <var>pub</var> to verify that <var>signature</var> is a valid
+signature for the message digest <var>digest</var> (of <var>length</var> octets).
+Returns 1 if the signature is valid, otherwise 0.
+</p></dd></dl>
+
+<p>For historical reason several curve IDs (OIDs) may correspond to a single
+curve/generator combination. Following list defines correspondence
+between nettle&rsquo;s view on curves and actual identifiers defined in <cite>RFC
+4357</cite> and <cite>RFC 7836</cite>.
+</p>
+<dl class="def">
+<dt id="index-nettle_005fget_005fgost_005fgc256b"><span class="category">Function: </span><span><em>const struct ecc_curve</em> <strong>nettle_get_gost_gc256b</strong> <em>(void)</em><a href='#index-nettle_005fget_005fgost_005fgc256b' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns curve corresponding to following identifiers:
+</p><ul>
+<li> id-GostR3410-2001-CryptoPro-A-ParamSet (<cite>RFC 4357</cite>)
+</li><li> id-GostR3410-2001-CryptoPro-XchA-ParamSet (<cite>RFC 4357</cite>)
+</li><li> id-tc26-gost-3410-12-256-paramSetB
+</li></ul>
+</dd></dl>
+
+<dl class="def">
+<dt id="index-nettle_005fget_005fgost_005fgc512a"><span class="category">Function: </span><span><em>const struct ecc_curve</em> <strong>nettle_get_gost_gc512a</strong> <em>(void)</em><a href='#index-nettle_005fget_005fgost_005fgc512a' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns curve corresponding to following identifiers:
+</p><ul>
+<li> id-tc26-gost-3410-12-512-paramSetA (<cite>RFC 7836</cite>)
+</li></ul>
+</dd></dl>
+
+<p>For GOST key pairs key derivation/key agreement function (VKO) is defined in
+<cite>RFC 4357</cite> and <cite>RFC 7836</cite>. Basically shared key is equal to
+hash(cofactor * ukm * priv * pub). Nettle library provides a function that does
+multiplication. Caller should do hashing on his own (it will be either
+GOST R 34.11-94 (see <a href="#GOSTHASH94CP">GOSTHASH94CP</a>) or GOST R 34.11-2012, Streebog, which nor part of the library yet).
+</p>
+<dl class="def">
+<dt id="index-gostdsa_005fvko"><span class="category">Function: </span><span><em>void</em> <strong>gostdsa_vko</strong> <em>(const struct ecc_scalar *<var>priv</var>, const struct ecc_point *<var>pub</var>, size_t <var>ukm_length</var>, const uint8_t *<var>ukm</var>, uint8_t *<var>out</var>)</em><a href='#index-gostdsa_005fvko' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Uses private key <var>priv</var>, public ket <var>pub</var> and shared key material
+<var>ukm</var> to generate shared secret, written to buffer <var>out</var>. The buffer
+should be of the size equal to 2 private key lengths: 64 bytes for 256 bit
+curves and 128 bytes for 512 bit ones. UKM is a shared key material, usually
+transferred in cleartext. It does not have to be secret.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="subsubsection" id="Curve-25519-and-Curve-448">
+<div class="header">
+<p>
+Previous: <a href="#GOSTDSA" accesskey="p" rel="prev">GOSTDSA</a>, Up: <a href="#Elliptic-curves" accesskey="u" rel="up">Elliptic curves</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Curve25519-and-Curve448"></span><h4 class="subsubsection">7.7.3.4 Curve25519 and Curve448</h4>
+<span id="index-Curve-25519"></span>
+<span id="index-Curve-448"></span>
+
+
+<p>Curve25519 is an elliptic curve of Montgomery type, <em class='math'>y^2 = x^3 +
+486662 x^2 + x (mod p)</em>, with <em class='math'>p = 2^255 - 19</em>. Montgomery curves
+have the advantage of simple and efficient point addition based on the
+x-coordinate only. This particular curve was proposed by D. J. Bernstein
+in 2006, for fast Diffie-Hellman key exchange, and is also described in
+<cite>RFC 7748</cite>. The group generator is defined by <em class='math'>x = 9</em> (there
+are actually two points with <em class='math'>x = 9</em>, differing by the sign of the
+y-coordinate, but that doesn&rsquo;t matter for the curve25519 operations
+which work with the x-coordinate only).
+</p>
+<p>The curve25519 functions are defined as operations on octet strings,
+representing 255-bit scalars or x-coordinates, in little-endian byte
+order. The most significant input bit, i.e, the most significant bit of
+the last octet, is always ignored.
+</p>
+<p>For scalars, in addition, the least significant three bits are ignored,
+and treated as zero, and the second most significant bit is ignored too,
+and treated as one. Then the scalar input string always represents 8
+times a number in the range <em class='math'>2^251 &lt;= s &lt; 2^252</em>.
+</p>
+<p>Of all the possible input strings, only about half correspond to
+x-coordinates of points on curve25519, i.e., a value <em class='math'>x</em> for which
+the the curve equation can be solved for <em class='math'>y</em>. The other half
+correspond to points on a related &ldquo;twist curve&rdquo;. The function
+<code>curve25519_mul</code> uses a Montgomery ladder for the scalar
+multiplication, as suggested in the curve25519 literature, and required
+by <cite>RFC 7748</cite>. The output is therefore well defined for
+<em>all</em> possible inputs, no matter if the input string represents a
+valid point on the curve or not.
+</p>
+<p>Note that the curve25519 implementation in earlier versions of Nettle
+deviates slightly from <cite>RFC 7748</cite>, in that bit 255 of the <em class='math'>x</em>
+coordinate of the point input to curve25519_mul was not ignored. The
+<samp>nette/curve25519.h</samp> defines a preprocessor symbol
+<code>NETTLE_CURVE25519_RFC7748</code> to indicate conformance with the
+standard.
+</p>
+<p>Nettle defines Curve 25519 in <samp>&lt;nettle/curve25519.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-NETTLE_005fCURVE25519_005fRFC7748"><span class="category">Constant: </span><span><strong>NETTLE_CURVE25519_RFC7748</strong><a href='#index-NETTLE_005fCURVE25519_005fRFC7748' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Defined to 1 in Nettle versions conforming to RFC 7748. Undefined in
+earlier versions.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-CURVE25519_005fSIZE"><span class="category">Constant: </span><span><strong>CURVE25519_SIZE</strong><a href='#index-CURVE25519_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of the strings representing curve25519 points and scalars, 32.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-curve25519_005fmul_005fg"><span class="category">Function: </span><span><em>void</em> <strong>curve25519_mul_g</strong> <em>(uint8_t *<var>q</var>, const uint8_t *<var>n</var>)</em><a href='#index-curve25519_005fmul_005fg' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <em class='math'>Q = N G</em>, where <em class='math'>G</em> is the group generator and
+<em class='math'>N</em> is an integer. The input argument <var>n</var> and the output
+argument <var>q</var> use a little-endian representation of the scalar and
+the x-coordinate, respectively. They are both of size
+<code>CURVE25519_SIZE</code>.
+</p>
+<p>This function is intended to be compatible with the function
+<code>crypto_scalar_mult_base</code> in the NaCl library.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-curve25519_005fmul"><span class="category">Function: </span><span><em>void</em> <strong>curve25519_mul</strong> <em>(uint8_t *<var>q</var>, const uint8_t *<var>n</var>, const uint8_t *<var>p</var>)</em><a href='#index-curve25519_005fmul' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <em class='math'>Q = N P</em>, where <em class='math'>P</em> is an input point and <em class='math'>N</em>
+is an integer. The input arguments <var>n</var> and <var>p</var> and the output
+argument <var>q</var> use a little-endian representation of the scalar and
+the x-coordinates, respectively. They are all of size
+<code>CURVE25519_SIZE</code>.
+</p>
+<p>This function is intended to be compatible with the function
+<code>crypto_scalar_mult</code> in the NaCl library.
+</p></dd></dl>
+
+<p>Similarly, Nettle also implements Curve448, an elliptic curve of
+Montgomery type, <em class='math'>y^2 = x^3 + 156326 x^2 + x (mod p)</em>, with
+<em class='math'>p = 2^448 - 2^224 - 1</em>. This particular curve was proposed by
+Mike Hamburg in 2015, for fast Diffie-Hellman key exchange, and is also
+described in <cite>RFC 7748</cite>.
+</p>
+<p>Nettle defines Curve 448 in <samp>&lt;nettle/curve448.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-CURVE448_005fSIZE"><span class="category">Constant: </span><span><strong>CURVE448_SIZE</strong><a href='#index-CURVE448_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The octet length of the strings representing curve448 points and scalars, 56.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-curve448_005fmul_005fg"><span class="category">Function: </span><span><em>void</em> <strong>curve448_mul_g</strong> <em>(uint8_t *<var>q</var>, const uint8_t *<var>n</var>)</em><a href='#index-curve448_005fmul_005fg' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <em class='math'>Q = N G</em>, where <em class='math'>G</em> is the group generator and
+<em class='math'>N</em> is an integer. The input argument <var>n</var> and the output
+argument <var>q</var> use a little-endian representation of the scalar and
+the x-coordinate, respectively. They are both of size
+<code>CURVE448_SIZE</code>.
+</p>
+<p>This function is intended to be compatible with the function
+<code>crypto_scalar_mult_base</code> in the NaCl library.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-curve448_005fmul"><span class="category">Function: </span><span><em>void</em> <strong>curve448_mul</strong> <em>(uint8_t *<var>q</var>, const uint8_t *<var>n</var>, const uint8_t *<var>p</var>)</em><a href='#index-curve448_005fmul' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes <em class='math'>Q = N P</em>, where <em class='math'>P</em> is an input point and <em class='math'>N</em>
+is an integer. The input arguments <var>n</var> and <var>p</var> and the output
+argument <var>q</var> use a little-endian representation of the scalar and
+the x-coordinates, respectively. They are all of size
+<code>CURVE448_SIZE</code>.
+</p>
+<p>This function is intended to be compatible with the function
+<code>crypto_scalar_mult</code> in the NaCl library.
+</p></dd></dl>
+
+</div>
+<div class="subsubsection" id="EdDSA">
+<h4 class="subsubsection">7.7.3.5 EdDSA</h4>
+<span id="index-eddsa"></span>
+
+<p>EdDSA is a signature scheme proposed by D. J. Bernstein et al. in 2011.
+It is defined using a &ldquo;Twisted Edwards curve&rdquo;, of the form <em class='math'>-x^2
++ y^2 = 1 + d x^2 y^2</em>. The specific signature scheme Ed25519 uses a
+curve which is equivalent to curve25519: The two groups used differ only
+by a simple change of coordinates, so that the discrete logarithm
+problem is of equal difficulty in both groups.
+</p>
+<p>Unlike other signature schemes in Nettle, the input to the EdDSA sign
+and verify functions is the possibly large message itself, not a hash
+digest. EdDSA is a variant of Schnorr signatures, where the message is
+hashed together with other data during the signature process, providing
+resilience to hash-collisions: A successful attack finding collisions in
+the hash function does not automatically translate into an attack to
+forge signatures. EdDSA also avoids the use of a randomness source by
+generating the needed signature nonce from a hash of the private key and
+the message, which means that the message is actually hashed twice when
+creating a signature. If signing huge messages, it is possible to hash
+the message first and pass the short message digest as input to the sign
+and verify functions, however, the resilience to hash collision is then
+lost.
+</p>
+<dl class="def">
+<dt id="index-ED25519_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ED25519_KEY_SIZE</strong><a href='#index-ED25519_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a private or public Ed25519 key, 32 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ED25519_005fSIGNATURE_005fSIZE"><span class="category">Constant: </span><span><strong>ED25519_SIGNATURE_SIZE</strong><a href='#index-ED25519_005fSIGNATURE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an Ed25519 signature, 64 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed25519_005fsha512_005fpublic_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ed25519_sha512_public_key</strong> <em>(uint8_t *<var>pub</var>, const uint8_t *<var>priv</var>)</em><a href='#index-ed25519_005fsha512_005fpublic_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the public key corresponding to the given private key. Both
+input and output are of size <code>ED25519_KEY_SIZE</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed25519_005fsha512_005fsign"><span class="category">Function: </span><span><em>void</em> <strong>ed25519_sha512_sign</strong> <em>(const uint8_t *<var>pub</var>, const uint8_t *<var>priv</var>, size_t <var>length</var>, const uint8_t *<var>msg</var>, uint8_t *<var>signature</var>)</em><a href='#index-ed25519_005fsha512_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Signs a message using the provided key pair.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed25519_005fsha512_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>ed25519_sha512_verify</strong> <em>(const uint8_t *<var>pub</var>, size_t <var>length</var>, const uint8_t *<var>msg</var>, const uint8_t *<var>signature</var>)</em><a href='#index-ed25519_005fsha512_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Verifies a message using the provided public key. Returns 1 if the
+signature is valid, otherwise 0.
+</p></dd></dl>
+
+<p>Nettle also provides Ed448, an EdDSA signature scheme based on an
+Edwards curve equivalent to curve448.
+</p>
+<dl class="def">
+<dt id="index-ED448_005fKEY_005fSIZE"><span class="category">Constant: </span><span><strong>ED448_KEY_SIZE</strong><a href='#index-ED448_005fKEY_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of a private or public Ed448 key, 57 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ED448_005fSIGNATURE_005fSIZE"><span class="category">Constant: </span><span><strong>ED448_SIGNATURE_SIZE</strong><a href='#index-ED448_005fSIGNATURE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of an Ed448 signature, 114 octets.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed448_005fshake256_005fpublic_005fkey"><span class="category">Function: </span><span><em>void</em> <strong>ed448_shake256_public_key</strong> <em>(uint8_t *<var>pub</var>, const uint8_t *<var>priv</var>)</em><a href='#index-ed448_005fshake256_005fpublic_005fkey' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Computes the public key corresponding to the given private key. Both
+input and output are of size <code>ED448_KEY_SIZE</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed448_005fshake256_005fsign"><span class="category">Function: </span><span><em>void</em> <strong>ed448_shake256_sign</strong> <em>(const uint8_t *<var>pub</var>, const uint8_t *<var>priv</var>, size_t <var>length</var>, const uint8_t *<var>msg</var>, uint8_t *<var>signature</var>)</em><a href='#index-ed448_005fshake256_005fsign' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Signs a message using the provided key pair.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-ed448_005fshake256_005fverify"><span class="category">Function: </span><span><em>int</em> <strong>ed448_shake256_verify</strong> <em>(const uint8_t *<var>pub</var>, size_t <var>length</var>, const uint8_t *<var>msg</var>, const uint8_t *<var>signature</var>)</em><a href='#index-ed448_005fshake256_005fverify' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Verifies a message using the provided public key. Returns 1 if the
+signature is valid, otherwise 0.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+</div>
+<div class="section" id="Randomness">
+<div class="header">
+<p>
+Next: <a href="#ASCII-encoding" accesskey="n" rel="next">ASCII encoding</a>, Previous: <a href="#Public_002dkey-algorithms" accesskey="p" rel="prev">Public-key algorithms</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Randomness-1"></span><h3 class="section">7.8 Randomness</h3>
+
+<span id="index-Randomness"></span>
+
+<p>A crucial ingredient in many cryptographic contexts is randomness: Let
+<code>p</code> be a random prime, choose a random initialization vector
+<code>iv</code>, a random key <code>k</code> and a random exponent <code>e</code>, etc. In
+the theories, it is assumed that you have plenty of randomness around.
+If this assumption is not true in practice, systems that are otherwise
+perfectly secure, can be broken. Randomness has often turned out to be
+the weakest link in the chain.
+</p>
+<p>In non-cryptographic applications, such as games as well as scientific
+simulation, a good randomness generator usually means a generator that
+has good statistical properties, and is seeded by some simple function
+of things like the current time, process id, and host name.
+</p>
+<p>However, such a generator is inadequate for cryptography, for at least
+two reasons:
+</p>
+
+<ul>
+<li> It&rsquo;s too easy for an attacker to guess the initial seed. Even if it will
+take some 2^32 tries before he guesses right, that&rsquo;s far too easy. For
+example, if the process id is 16 bits, the resolution of &ldquo;current time&rdquo;
+is one second, and the attacker knows what day the generator was seeded,
+there are only about 2^32 possibilities to try if all possible values
+for the process id and time-of-day are tried.
+
+</li><li> The generator output reveals too much. By observing only a small segment
+of the generator&rsquo;s output, its internal state can be recovered, and from
+there, all previous output and all future output can be computed by the
+attacker.
+</li></ul>
+
+<p>A randomness generator that is used for cryptographic purposes must have
+better properties. Let&rsquo;s first look at the seeding, as the issues here
+are mostly independent of the rest of the generator. The initial state
+of the generator (its seed) must be unguessable by the attacker. So
+what&rsquo;s unguessable? It depends on what the attacker already knows. The
+concept used in information theory to reason about such things is called
+&ldquo;entropy&rdquo;, or &ldquo;conditional entropy&rdquo; (not to be confused with the
+thermodynamic concept with the same name). A reasonable requirement is
+that the seed contains a conditional entropy of at least some 80-100
+bits. This property can be explained as follows: Allow the attacker to
+ask <code>n</code> yes-no-questions, of his own choice, about the seed. If
+the attacker, using this question-and-answer session, as well as any
+other information he knows about the seeding process, still can&rsquo;t guess
+the seed correctly, then the conditional entropy is more than <code>n</code>
+bits.
+</p>
+<span id="index-Entropy"></span>
+<span id="index-Conditional-entropy"></span>
+
+<p>Let&rsquo;s look at an example. Say information about timing of received
+network packets is used in the seeding process. If there is some random
+network traffic going on, this will contribute some bits of entropy or
+&ldquo;unguessability&rdquo; to the seed. However, if the attacker can listen in to
+the local network, or if all but a small number of the packets were
+transmitted by machines that the attacker can monitor, this additional
+information makes the seed easier for the attacker to figure out. Even
+if the information is exactly the same, the conditional entropy, or
+unguessability, is smaller for an attacker that knows some of it already
+before the hypothetical question-and-answer session.
+</p>
+<p>Seeding of good generators is usually based on several sources. The key
+point here is that the amount of unguessability that each source
+contributes, depends on who the attacker is. Some sources that have been
+used are:
+</p>
+<dl compact="compact">
+<dt><span>High resolution timing of i/o activities</span></dt>
+<dd><p>Such as completed blocks from spinning hard disks, network packets, etc.
+Getting access to such information is quite system dependent, and not
+all systems include suitable hardware. If available, it&rsquo;s one of the
+better randomness source one can find in a digital, mostly predictable,
+computer.
+</p>
+</dd>
+<dt><span>User activity</span></dt>
+<dd><p>Timing and contents of user interaction events is another popular source
+that is available for interactive programs (even if I suspect that it is
+sometimes used in order to make the user feel good, not because the
+quality of the input is needed or used properly). Obviously, not
+available when a machine is unattended. Also beware of networks: User
+interaction that happens across a long serial cable, <acronym>TELNET</acronym>
+session, or even <acronym>SSH</acronym> session may be visible to an attacker, in
+full or partially.
+</p>
+</dd>
+<dt><span>Audio input</span></dt>
+<dd><p>Any room, or even a microphone input that&rsquo;s left unconnected, is a
+source of some random background noise, which can be fed into the
+seeding process.
+</p>
+</dd>
+<dt><span>Specialized hardware</span></dt>
+<dd><p>Hardware devices with the sole purpose of generating random data have
+been designed. They range from radioactive samples with an attached
+Geiger counter, to amplification of the inherent noise in electronic
+components such as diodes and resistors, to low-frequency sampling of
+chaotic systems. Hashing successive images of a Lava lamp is a
+spectacular example of the latter type.
+</p>
+</dd>
+<dt><span>Secret information</span></dt>
+<dd><p>Secret information, such as user passwords or keys, or private files
+stored on disk, can provide some unguessability. A problem is that if
+the information is revealed at a later time, the unguessability
+vanishes. Another problem is that this kind of information tends to be
+fairly constant, so if you rely on it and seed your generator regularly,
+you risk constructing almost similar seeds or even constructing the same
+seed more than once.
+</p></dd>
+</dl>
+
+<p>For all practical sources, it&rsquo;s difficult but important to provide a
+reliable lower bound on the amount of unguessability that it provides.
+Two important points are to make sure that the attacker can&rsquo;t observe
+your sources (so if you like the Lava lamp idea, remember that you have
+to get your own lamp, and not put it by a window or anywhere else where
+strangers can see it), and that hardware failures are detected. What if
+the bulb in the Lava lamp, which you keep locked into a cupboard
+following the above advice, breaks after a few months?
+</p>
+<p>So let&rsquo;s assume that we have been able to find an unguessable seed,
+which contains at least 80 bits of conditional entropy, relative to all
+attackers that we care about (typically, we must at the very least
+assume that no attacker has root privileges on our machine).
+</p>
+<p>How do we generate output from this seed, and how much can we get? Some
+generators (notably the Linux <samp>/dev/random</samp> generator) tries to
+estimate available entropy and restrict the amount of output. The goal
+is that if you read 128 bits from <samp>/dev/random</samp>, you should get 128
+&ldquo;truly random&rdquo; bits. This is a property that is useful in some
+specialized circumstances, for instance when generating key material for
+a one time pad, or when working with unconditional blinding, but in most
+cases, it doesn&rsquo;t matter much. For most application, there&rsquo;s no limit on
+the amount of useful &ldquo;random&rdquo; data that we can generate from a small
+seed; what matters is that the seed is unguessable and that the
+generator has good cryptographic properties.
+</p>
+<p>At the heart of all generators lies its internal state. Future output
+is determined by the internal state alone. Let&rsquo;s call it the generator&rsquo;s
+key. The key is initialized from the unguessable seed. Important
+properties of a generator are:
+</p>
+<dl compact="compact">
+<dt><span><em>Key-hiding</em></span></dt>
+<dd><p>An attacker observing the output should not be able to recover the
+generator&rsquo;s key.
+</p>
+</dd>
+<dt><span><em>Independence of outputs</em></span></dt>
+<dd><p>Observing some of the output should not help the attacker to guess
+previous or future output.
+</p>
+</dd>
+<dt><span><em>Forward secrecy</em></span></dt>
+<dd><p>Even if an attacker compromises the generator&rsquo;s key, he should not be
+able to guess the generator output <em>before</em> the key compromise.
+</p>
+</dd>
+<dt><span><em>Recovery from key compromise</em></span></dt>
+<dd><p>If an attacker compromises the generator&rsquo;s key, he can compute
+<em>all</em> future output. This is inevitable if the generator is seeded
+only once, at startup. However, the generator can provide a reseeding
+mechanism, to achieve recovery from key compromise. More precisely: If
+the attacker compromises the key at a particular time <code>t_1</code>, there
+is another later time <code>t_2</code>, such that if the attacker observes all
+output generated between <code>t_1</code> and <code>t_2</code>, he still can&rsquo;t guess
+what output is generated after <code>t_2</code>.
+</p>
+</dd>
+</dl>
+
+<p>Nettle includes one randomness generator that is believed to have all
+the above properties, and two simpler ones.
+</p>
+<p><acronym>ChaCha</acronym> (see <a href="#ChaCha">ChaCha</a>), like any stream cipher, can be used
+as a randomness generator. Its output should be of reasonable
+quality. There&rsquo;s no single natural way to reseed it, but if you need
+reseeding, you should be using Yarrow instead. Historically ARCFOUR
+(see <a href="#Arcfour">Arcfour</a>) has been used as a randomness generator, however it is
+known to be distinguishable from random data and the output leaks
+information about the key.
+</p>
+<p>The &ldquo;lagged Fibonacci&rdquo; generator in <samp>&lt;nettle/knuth-lfib.h&gt;</samp> is a
+fast generator with good statistical properties, but is <strong>not</strong> for
+cryptographic use, and therefore not documented here. It is included
+mostly because the Nettle test suite needs to generate some test data
+from a small seed.
+</p>
+<p>The recommended generator to use is Yarrow, described below.
+</p>
+<ul class="section-toc">
+<li><a href="#Yarrow" accesskey="1">Yarrow</a></li>
+<li><a href="#DRBG_002dCTR" accesskey="2">DRBG-CTR</a></li>
+</ul>
+<div class="subsection" id="Yarrow">
+<h4 class="subsection">7.8.1 Yarrow</h4>
+
+<p>Yarrow is a family of pseudo-randomness generators, designed for
+cryptographic use, by John Kelsey, Bruce Schneier and Niels Ferguson.
+Yarrow-160 is described in a paper at
+<a href="https://www.schneier.com/academic/yarrow/">https://www.schneier.com/academic/yarrow/</a>, and it uses <acronym>SHA1</acronym>
+and triple-DES, and has a 160-bit internal state. Nettle implements
+Yarrow-256, which is similar, but uses <acronym>SHA256</acronym> and
+<acronym>AES</acronym> to get an internal state of 256 bits.
+</p>
+<p>Yarrow was an almost finished project, the paper mentioned above is the
+closest thing to a specification for it, but some smaller details are
+left out. There is no official reference implementation or test cases.
+This section includes an overview of Yarrow, but for the details of
+Yarrow-256, as implemented by Nettle, you have to consult the source
+code. Maybe a complete specification can be written later.
+</p>
+<p>Yarrow can use many sources (at least two are needed for proper
+reseeding), and two randomness &ldquo;pools&rdquo;, referred to as the &ldquo;slow pool&rdquo; and
+the &ldquo;fast pool&rdquo;. Input from the sources is fed alternatingly into the
+two pools. When one of the sources has contributed 100 bits of entropy
+to the fast pool, a &ldquo;fast reseed&rdquo; happens and the fast pool is mixed
+into the internal state. When at least two of the sources have
+contributed at least 160 bits each to the slow pool, a &ldquo;slow reseed&rdquo;
+takes place. The contents of both pools are mixed into the internal
+state. These procedures should ensure that the generator will eventually
+recover after a key compromise.
+</p>
+<p>The output is generated by using <acronym>AES</acronym> to encrypt a counter,
+using the generator&rsquo;s current key. After each request for output,
+another 256 bits are generated which replace the key. This ensures
+forward secrecy.
+</p>
+<p>Yarrow can also use a <em>seed file</em> to save state across restarts.
+Yarrow is seeded by either feeding it the contents of the previous seed
+file, or feeding it input from its sources until a slow reseed happens.
+</p>
+<p>Nettle defines Yarrow-256 in <samp>&lt;nettle/yarrow.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-yarrow256_005fctx"><span class="category">Context struct: </span><span><strong>struct yarrow256_ctx</strong><a href='#index-struct-yarrow256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-struct-yarrow_005fsource"><span class="category">Context struct: </span><span><strong>struct yarrow_source</strong><a href='#index-struct-yarrow_005fsource' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Information about a single source.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-YARROW256_005fSEED_005fFILE_005fSIZE"><span class="category">Constant: </span><span><strong>YARROW256_SEED_FILE_SIZE</strong><a href='#index-YARROW256_005fSEED_005fFILE_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Recommended size of the Yarrow-256 seed file.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>yarrow256_init</strong> <em>(struct yarrow256_ctx *<var>ctx</var>, unsigned <var>nsources</var>, struct yarrow_source *<var>sources</var>)</em><a href='#index-yarrow256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the yarrow context, and its <var>nsources</var> sources. It&rsquo;s
+possible to call it with <var>nsources</var>=0 and <var>sources</var>=NULL, if
+you don&rsquo;t need the update features.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005fseed"><span class="category">Function: </span><span><em>void</em> <strong>yarrow256_seed</strong> <em>(struct yarrow256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>seed_file</var>)</em><a href='#index-yarrow256_005fseed' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Seeds Yarrow-256 from a previous seed file. <var>length</var> should be at least
+<code>YARROW256_SEED_FILE_SIZE</code>, but it can be larger.
+</p>
+<p>The generator will trust you that the <var>seed_file</var> data really is
+unguessable. After calling this function, you <em>must</em> overwrite the old
+seed file with newly generated data from <code>yarrow256_random</code>. If it&rsquo;s
+possible for several processes to read the seed file at about the same
+time, access must be coordinated using some locking mechanism.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005fupdate"><span class="category">Function: </span><span><em>int</em> <strong>yarrow256_update</strong> <em>(struct yarrow256_ctx *<var>ctx</var>, unsigned <var>source</var>, unsigned <var>entropy</var>, size_t <var>length</var>, const uint8_t *<var>data</var>)</em><a href='#index-yarrow256_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Updates the generator with data from source <var>SOURCE</var> (an index that
+must be smaller than the number of sources). <var>entropy</var> is your
+estimated lower bound for the entropy in the data, measured in bits.
+Calling update with zero <var>entropy</var> is always safe, no matter if the
+data is random or not.
+</p>
+<p>Returns 1 if a reseed happened, in which case an application using a
+seed file may want to generate new seed data with
+<code>yarrow256_random</code> and overwrite the seed file. Otherwise, the
+function returns 0.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005frandom"><span class="category">Function: </span><span><em>void</em> <strong>yarrow256_random</strong> <em>(struct yarrow256_ctx *<var>ctx</var>, size_t <var>length</var>, uint8_t *<var>dst</var>)</em><a href='#index-yarrow256_005frandom' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Generates <var>length</var> octets of output. The generator must be seeded
+before you call this function.
+</p>
+<p>If you don&rsquo;t need forward secrecy, e.g. if you need non-secret
+randomness for initialization vectors or padding, you can gain some
+efficiency by buffering, calling this function for reasonably large
+blocks of data, say 100-1000 octets at a time.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005fis_005fseeded"><span class="category">Function: </span><span><em>int</em> <strong>yarrow256_is_seeded</strong> <em>(struct yarrow256_ctx *<var>ctx</var>)</em><a href='#index-yarrow256_005fis_005fseeded' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns 1 if the generator is seeded and ready to generate output,
+otherwise 0.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005fneeded_005fsources"><span class="category">Function: </span><span><em>unsigned</em> <strong>yarrow256_needed_sources</strong> <em>(struct yarrow256_ctx *<var>ctx</var>)</em><a href='#index-yarrow256_005fneeded_005fsources' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Returns the number of sources that must reach the threshold before a
+slow reseed will happen. Useful primarily when the generator is unseeded.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow256_005ffast_005freseed"><span class="category">Function: </span><span><em>void</em> <strong>yarrow256_fast_reseed</strong> <em>(struct yarrow256_ctx *<var>ctx</var>)</em><a href='#index-yarrow256_005ffast_005freseed' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-yarrow256_005fslow_005freseed"><span class="category">Function: </span><span><em>void</em> <strong>yarrow256_slow_reseed</strong> <em>(struct yarrow256_ctx *<var>ctx</var>)</em><a href='#index-yarrow256_005fslow_005freseed' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Causes a fast or slow reseed to take place immediately, regardless of the
+current entropy estimates of the two pools. Use with care.
+</p></dd></dl>
+
+<p>Nettle includes an entropy estimator for one kind of input source: User
+keyboard input.
+</p>
+<dl class="def">
+<dt id="index-struct-yarrow_005fkey_005fevent_005fctx"><span class="category">Context struct: </span><span><strong>struct yarrow_key_event_ctx</strong><a href='#index-struct-yarrow_005fkey_005fevent_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Information about recent key events.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow_005fkey_005fevent_005finit"><span class="category">Function: </span><span><em>void</em> <strong>yarrow_key_event_init</strong> <em>(struct yarrow_key_event_ctx *<var>ctx</var>)</em><a href='#index-yarrow_005fkey_005fevent_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes the context.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-yarrow_005fkey_005fevent_005festimate"><span class="category">Function: </span><span><em>unsigned</em> <strong>yarrow_key_event_estimate</strong> <em>(struct yarrow_key_event_ctx *<var>ctx</var>, unsigned <var>key</var>, unsigned <var>time</var>)</em><a href='#index-yarrow_005fkey_005fevent_005festimate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p><var>key</var> is the id of the key (ASCII value, hardware key code, X
+keysym, &hellip;, it doesn&rsquo;t matter), and <var>time</var> is the timestamp of
+the event. The time must be given in units matching the resolution by
+which you read the clock. If you read the clock with microsecond
+precision, <var>time</var> should be provided in units of microseconds. But
+if you use <code>gettimeofday</code> on a typical Unix system where the clock
+ticks 10 or so microseconds at a time, <var>time</var> should be given in
+units of 10 microseconds.
+</p>
+<p>Returns an entropy estimate, in bits, suitable for calling
+<code>yarrow256_update</code>. Usually, 0, 1 or 2 bits.
+</p></dd></dl>
+
+</div>
+<div class="subsection" id="DRBG_002dCTR">
+<h4 class="subsection">7.8.2 DRBG-CTR</h4>
+
+<p>The Deterministic Random Bit Generator (DRBG) family is a complex family
+of deterministic randomness generators published by NIST in SP 800-90A.
+</p>
+<p>We support what we believe is the reasonable parts of the CTR_DRBG
+algorithm for AES256. Re-seeding, personalization strings, derivation
+functions and support for non-AES256 is not implemented.
+Personalization strings can be implemented by the caller, if desired,
+with xor. If you need re-seeding or entropy derivation, we suggest that
+you use Yarrow instead.
+</p>
+<p>The security bounds of DRBG-CTR are not intuitive, see &ldquo;Security Bounds
+for the NIST Codebook-based Deterministic Random Bit Generator&rdquo; by
+Matthew J. Campagna, from <a href="https://eprint.iacr.org/2006/379.pdf">https://eprint.iacr.org/2006/379.pdf</a>.
+</p>
+<p>Our suggested use-case for DRBG-CTR is to deterministically generate
+known values from a seed when comparing against expected values for some
+other algorithm.
+</p>
+<p>Nettle defines DRBG-CTR in <samp>&lt;nettle/drbg-ctr.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-drbg_005fctr_005faes256_005fctx"><span class="category">Context struct: </span><span><strong>struct drbg_ctr_aes256_ctx</strong><a href='#index-struct-drbg_005fctr_005faes256_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-DRBG_005fCTR_005fAES256_005fSEED_005fSIZE"><span class="category">Constant: </span><span><strong>DRBG_CTR_AES256_SEED_SIZE</strong><a href='#index-DRBG_005fCTR_005fAES256_005fSEED_005fSIZE' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The size of the seeding material.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-drbg_005fctr_005faes256_005finit"><span class="category">Function: </span><span><em>void</em> <strong>drbg_ctr_aes256_init</strong> <em>(struct drbg_ctr_aes256_ctx *<var>ctx</var>, uint8_t *<var>seed_material</var>)</em><a href='#index-drbg_005fctr_005faes256_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initialize the DRBG-CTR-AES256 context using
+<code>DRBG_CTR_AES256_SEED_SIZE</code> bytes of <var>seed_material</var>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-drbg_005fctr_005faes256_005frandom"><span class="category">Function: </span><span><em>void</em> <strong>drbg_ctr_aes256_random</strong> <em>(struct drbg_ctr_aes256_ctx *<var>ctx</var>, size_t n, uint8_t *<var>dst</var>)</em><a href='#index-drbg_005fctr_005faes256_005frandom' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Generates <var>n</var> octets of output into <var>dst</var>. The generator must
+be initialized before you call this function.
+</p></dd></dl>
+
+<hr>
+</div>
+</div>
+<div class="section" id="ASCII-encoding">
+<div class="header">
+<p>
+Next: <a href="#Miscellaneous-functions" accesskey="n" rel="next">Miscellaneous functions</a>, Previous: <a href="#Randomness" accesskey="p" rel="prev">Randomness</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="ASCII-encoding-1"></span><h3 class="section">7.9 ASCII encoding</h3>
+
+<p>Encryption will transform your data from text into binary format, and that
+may be a problem if, for example, you want to send the data as if it was
+plain text in an email, or store it along with descriptive text in a
+file. You may then use an encoding from binary to text: each binary byte
+is translated into a number of bytes of plain text.
+</p>
+<p>A base-N encoding of data is one representation of data that only uses N
+different symbols (instead of the 256 possible values of a byte).
+</p>
+<p>The base64 encoding will always use alphanumeric (upper and lower case)
+characters and the &rsquo;+&rsquo;, &rsquo;/&rsquo; and &rsquo;=&rsquo; symbols to represent the data. Four
+output characters are generated for each three bytes of input. In case
+the length of the input is not a multiple of three, padding characters
+are added at the end. There&rsquo;s also a &ldquo;URL safe&rdquo; variant, which is
+useful for encoding binary data into URLs and filenames. See <cite>RFC
+4648</cite>.
+</p>
+<p>The base16 encoding, also known as &ldquo;hexadecimal&rdquo;, uses the decimal
+digits and the letters from A to F. Two hexadecimal digits are generated
+for each input byte.
+</p>
+<p>Nettle supports both base64 and base16 encoding and decoding.
+</p>
+<p>Encoding and decoding uses a context struct to maintain its state (with
+the exception of base16 encoding, which doesn&rsquo;t need any). To encode or
+decode the data, first initialize the context, then call the update
+function as many times as necessary, and complete the operation by
+calling the final function.
+</p>
+<p>The following functions can be used to perform base64 encoding and decoding.
+They are defined in <samp>&lt;nettle/base64.h&gt;</samp>.
+</p>
+<dl class="def">
+<dt id="index-struct-base64_005fencode_005fctx"><span class="category">Context struct: </span><span><strong>struct base64_encode_ctx</strong><a href='#index-struct-base64_005fencode_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-base64_005fencode_005finit"><span class="category">Function: </span><span><em>void</em> <strong>base64_encode_init</strong> <em>(struct base64_encode_ctx *<var>ctx</var>)</em><a href='#index-base64_005fencode_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-base64url_005fencode_005finit"><span class="category">Function: </span><span><em>void</em> <strong>base64url_encode_init</strong> <em>(struct base64_encode_ctx *<var>ctx</var>)</em><a href='#index-base64url_005fencode_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes a base64 context. This is necessary before starting an
+encoding session. <code>base64_encode_init</code> selects the standard base64
+alphabet, while <code>base64url_encode_init</code> selects the URL safe
+alphabet.
+</p></dd></dl>
+
+
+<dl class="def">
+<dt id="index-base64_005fencode_005fsingle"><span class="category">Function: </span><span><em>size_t</em> <strong>base64_encode_single</strong> <em>(struct base64_encode_ctx *<var>ctx</var>, uint8_t *<var>dst</var>, uint8_t <var>src</var>)</em><a href='#index-base64_005fencode_005fsingle' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encodes a single byte. Returns amount of output (always 1 or 2).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BASE64_005fENCODE_005fLENGTH"><span class="category">Macro: </span><span><strong>BASE64_ENCODE_LENGTH</strong> <em>(<var>length</var>)</em><a href='#index-BASE64_005fENCODE_005fLENGTH' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The maximum number of output bytes when passing <var>length</var> input bytes
+to <code>base64_encode_update</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base64_005fencode_005fupdate"><span class="category">Function: </span><span><em>size_t</em> <strong>base64_encode_update</strong> <em>(struct base64_encode_ctx *<var>ctx</var>, uint8_t *<var>dst</var>, size_t <var>length</var>, const uint8_t *<var>src</var>)</em><a href='#index-base64_005fencode_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>After <var>ctx</var> is initialized, this function may be called to encode <var>length</var>
+bytes from <var>src</var>. The result will be placed in <var>dst</var>, and the return value
+will be the number of bytes generated. Note that <var>dst</var> must be at least of size
+BASE64_ENCODE_LENGTH(<var>length</var>).
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BASE64_005fENCODE_005fFINAL_005fLENGTH"><span class="category">Constant: </span><span><strong>BASE64_ENCODE_FINAL_LENGTH</strong><a href='#index-BASE64_005fENCODE_005fFINAL_005fLENGTH' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The maximum amount of output from <code>base64_encode_final</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base64_005fencode_005ffinal"><span class="category">Function: </span><span><em>size_t</em> <strong>base64_encode_final</strong> <em>(struct base64_encode_ctx *<var>ctx</var>, uint8_t *<var>dst</var>)</em><a href='#index-base64_005fencode_005ffinal' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>After calling base64_encode_update one or more times, this function
+should be called to generate the final output bytes, including any
+needed paddding. The return value is the number of output bytes
+generated.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-base64_005fdecode_005fctx"><span class="category">Context struct: </span><span><strong>struct base64_decode_ctx</strong><a href='#index-struct-base64_005fdecode_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-base64_005fdecode_005finit"><span class="category">Function: </span><span><em>void</em> <strong>base64_decode_init</strong> <em>(struct base64_decode_ctx *<var>ctx</var>)</em><a href='#index-base64_005fdecode_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dt id="index-base64url_005fdecode_005finit"><span class="category">Function: </span><span><em>void</em> <strong>base64url_decode_init</strong> <em>(struct base64_decode_ctx *<var>ctx</var>)</em><a href='#index-base64url_005fdecode_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes a base64 decoding context. This is necessary before starting
+a decoding session. <code>base64_decode_init</code> selects the standard
+base64 alphabet, while <code>base64url_decode_init</code> selects the URL safe
+alphabet.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base64_005fdecode_005fsingle"><span class="category">Function: </span><span><em>int</em> <strong>base64_decode_single</strong> <em>(struct base64_decode_ctx *<var>ctx</var>, uint8_t *<var>dst</var>, uint8_t <var>src</var>)</em><a href='#index-base64_005fdecode_005fsingle' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decodes a single byte (<var>src</var>) and stores the result in <var>dst</var>.
+Returns amount of output (0 or 1), or -1 on errors.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BASE64_005fDECODE_005fLENGTH"><span class="category">Macro: </span><span><strong>BASE64_DECODE_LENGTH</strong> <em>(<var>length</var>)</em><a href='#index-BASE64_005fDECODE_005fLENGTH' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The maximum number of output bytes when passing <var>length</var> input bytes
+to <code>base64_decode_update</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base64_005fdecode_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>base64_decode_update</strong> <em>(struct base64_decode_ctx *<var>ctx</var>, size_t *<var>dst_length</var>, uint8_t *<var>dst</var>, size_t <var>src_length</var>, const uint8_t *<var>src</var>)</em><a href='#index-base64_005fdecode_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>After <var>ctx</var> is initialized, this function may be called to decode
+<var>src_length</var> bytes from <var>src</var>. <var>dst</var> should point to an area
+of size at least BASE64_DECODE_LENGTH(<var>src_length</var>). The amount of data
+generated is returned in *<var>dst_length</var>. Returns 1 on success
+and 0 on error.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base64_005fdecode_005ffinal"><span class="category">Function: </span><span><em>int</em> <strong>base64_decode_final</strong> <em>(struct base64_decode_ctx *<var>ctx</var>)</em><a href='#index-base64_005fdecode_005ffinal' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Check that final padding is correct. Returns 1 on success, and 0 on
+error.
+</p></dd></dl>
+
+<p>Similarly to the base64 functions, the following functions perform base16 encoding,
+and are defined in <samp>&lt;nettle/base16.h&gt;</samp>. Note that there is no encoding context
+necessary for doing base16 encoding.
+</p>
+<dl class="def">
+<dt id="index-base16_005fencode_005fsingle"><span class="category">Function: </span><span><em>void</em> <strong>base16_encode_single</strong> <em>(uint8_t *<var>dst</var>, uint8_t <var>src</var>)</em><a href='#index-base16_005fencode_005fsingle' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Encodes a single byte. Always stores two digits in <var>dst</var>[0] and <var>dst</var>[1].
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BASE16_005fENCODE_005fLENGTH"><span class="category">Macro: </span><span><strong>BASE16_ENCODE_LENGTH</strong> <em>(<var>length</var>)</em><a href='#index-BASE16_005fENCODE_005fLENGTH' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The number of output bytes when passing <var>length</var> input bytes to
+<code>base16_encode_update</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base16_005fencode_005fupdate"><span class="category">Function: </span><span><em>void</em> <strong>base16_encode_update</strong> <em>(uint8_t *<var>dst</var>, size_t <var>length</var>, const uint8_t *<var>src</var>)</em><a href='#index-base16_005fencode_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Always stores BASE16_ENCODE_LENGTH(<var>length</var>) digits in <var>dst</var>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-struct-base16_005fdecode_005fctx"><span class="category">Context struct: </span><span><strong>struct base16_decode_ctx</strong><a href='#index-struct-base16_005fdecode_005fctx' class='copiable-anchor'> &para;</a></span></dt>
+</dl>
+
+<dl class="def">
+<dt id="index-base16_005fdecode_005finit"><span class="category">Function: </span><span><em>void</em> <strong>base16_decode_init</strong> <em>(struct base16_decode_ctx *<var>ctx</var>)</em><a href='#index-base16_005fdecode_005finit' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Initializes a base16 decoding context. This is necessary before starting a decoding
+session.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base16_005fdecode_005fsingle"><span class="category">Function: </span><span><em>int</em> <strong>base16_decode_single</strong> <em>(struct base16_decode_ctx *<var>ctx</var>, uint8_t *<var>dst</var>, uint8_t <var>src</var>)</em><a href='#index-base16_005fdecode_005fsingle' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Decodes a single byte from <var>src</var> into <var>dst</var>. Returns amount of output (0 or 1), or -1 on errors.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-BASE16_005fDECODE_005fLENGTH"><span class="category">Macro: </span><span><strong>BASE16_DECODE_LENGTH</strong> <em>(<var>length</var>)</em><a href='#index-BASE16_005fDECODE_005fLENGTH' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>The maximum number of output bytes when passing <var>length</var> input bytes
+to <code>base16_decode_update</code>.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base16_005fdecode_005fupdate"><span class="category">Function: </span><span><em>int</em> <strong>base16_decode_update</strong> <em>(struct base16_decode_ctx *<var>ctx</var>, size_t *<var>dst_length</var>, uint8_t *<var>dst</var>, size_t <var>src_length</var>, const uint8_t *<var>src</var>)</em><a href='#index-base16_005fdecode_005fupdate' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>After <var>ctx</var> is initialized, this function may be called to decode
+<var>src_length</var> bytes from <var>src</var>. <var>dst</var> should point to an area
+of size at least BASE16_DECODE_LENGTH(<var>src_length</var>). The amount of data
+generated is returned in *<var>dst_length</var>. Returns 1 on success
+and 0 on error.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-base16_005fdecode_005ffinal"><span class="category">Function: </span><span><em>int</em> <strong>base16_decode_final</strong> <em>(struct base16_decode_ctx *<var>ctx</var>)</em><a href='#index-base16_005fdecode_005ffinal' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Checks that the end of data is correct (i.e., an even number of
+hexadecimal digits have been seen). Returns 1 on success, and 0 on
+error.
+</p></dd></dl>
+
+<hr>
+</div>
+<div class="section" id="Miscellaneous-functions">
+<div class="header">
+<p>
+Next: <a href="#Compatibility-functions" accesskey="n" rel="next">Compatibility functions</a>, Previous: <a href="#ASCII-encoding" accesskey="p" rel="prev">ASCII encoding</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Miscellaneous-functions-1"></span><h3 class="section">7.10 Miscellaneous functions</h3>
+
+<dl class="def">
+<dt id="index-memxor"><span class="category">Function: </span><span><em>void *</em> <strong>memxor</strong> <em>(void *<var>dst</var>, const void *<var>src</var>, size_t <var>n</var>)</em><a href='#index-memxor' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>XORs the source area on top of the destination area. The interface
+doesn&rsquo;t follow the Nettle conventions, because it is intended to be
+similar to the ANSI-C <code>memcpy</code> function.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-memxor3"><span class="category">Function: </span><span><em>void *</em> <strong>memxor3</strong> <em>(void *<var>dst</var>, const void *<var>a</var>, const void *<var>b</var>, size_t <var>n</var>)</em><a href='#index-memxor3' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Like <code>memxor</code>, but takes two source areas and separate
+destination area.
+</p></dd></dl>
+
+<dl class="def">
+<dt id="index-memeql_005fsec"><span class="category">Function: </span><span><em>int</em> <strong>memeql_sec</strong> <em>(const void *<var>a</var>, const void *<var>b</var>, size_t <var>n</var>)</em><a href='#index-memeql_005fsec' class='copiable-anchor'> &para;</a></span></dt>
+<dd><p>Side-channel silent comparison of the <var>n</var> bytes at <var>a</var> and
+<var>b</var>. I.e., instructions executed and memory accesses are identical
+no matter where the areas differ, see <a href="#Side_002dchannel-silence">Side-channel silence</a>. Return
+non-zero if the areas are equal, and zero if they differ.
+</p></dd></dl>
+
+<p>These functions are declared in <samp>&lt;nettle/memops.h&gt;</samp>. For
+compatibility with earlier versions of Nettle, <code>memxor</code> and
+<code>memxor3</code> are also declared in <samp>&lt;nettle/memxor.h&gt;</samp>.
+</p>
+<hr>
+</div>
+<div class="section" id="Compatibility-functions">
+<div class="header">
+<p>
+Previous: <a href="#Miscellaneous-functions" accesskey="p" rel="prev">Miscellaneous functions</a>, Up: <a href="#Reference" accesskey="u" rel="up">Reference</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Compatibility-functions-1"></span><h3 class="section">7.11 Compatibility functions</h3>
+
+<p>For convenience, Nettle includes alternative interfaces to some
+algorithms, for compatibility with some other popular crypto toolkits.
+These are not fully documented here; refer to the source or to the
+documentation for the original implementation.
+</p>
+<p>MD5 is defined in [RFC 1321], which includes a reference implementation.
+Nettle defines a compatible interface to MD5 in
+<samp>&lt;nettle/md5-compat.h&gt;</samp>. This file defines the typedef
+<code>MD5_CTX</code>, and declares the functions <code>MD5Init</code>, <code>MD5Update</code> and
+<code>MD5Final</code>.
+</p>
+<hr>
+</div>
+</div>
+<div class="chapter" id="Nettle-soup">
+<div class="header">
+<p>
+Next: <a href="#Installation" accesskey="n" rel="next">Installation</a>, Previous: <a href="#Reference" accesskey="p" rel="prev">Reference</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Traditional-Nettle-Soup"></span><h2 class="chapter">8 Traditional Nettle Soup</h2>
+<p>For the serious nettle hacker, here is a recipe for nettle soup. 4 servings.
+</p>
+<ul class="no-bullet">
+<li><!-- /@w --> 1 liter fresh nettles (urtica dioica)
+</li><li><!-- /@w --> 2 tablespoons butter
+</li><li><!-- /@w --> 3 tablespoons flour
+</li><li><!-- /@w --> 1 liter stock (meat or vegetable)
+</li><li><!-- /@w --> 1/2 teaspoon salt
+</li><li><!-- /@w --> a tad white pepper
+</li><li><!-- /@w --> some cream or milk
+</li></ul>
+
+<p>Gather 1 liter fresh nettles. Use gloves! Small, tender shoots are
+preferable but the tops of larger nettles can also be used.
+</p>
+<p>Rinse the nettles very well. Boil them for 10 minutes in lightly salted
+water. Strain the nettles and save the water. Hack the nettles. Melt the
+butter and mix in the flour. Dilute with stock and the nettle-water you
+saved earlier. Add the hacked nettles. If you wish you can add some milk
+or cream at this stage. Bring to a boil and let boil for a few minutes.
+Season with salt and pepper.
+</p>
+<p>Serve with boiled egg-halves.
+</p>
+
+<hr>
+</div>
+<div class="chapter" id="Installation">
+<div class="header">
+<p>
+Next: <a href="#Index" accesskey="n" rel="next">Function and Concept Index</a>, Previous: <a href="#Nettle-soup" accesskey="p" rel="prev">Traditional Nettle Soup</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Installation-1"></span><h2 class="chapter">9 Installation</h2>
+
+<p>Nettle uses <code>autoconf</code>. To build it, unpack the source and run
+</p>
+<div class="example">
+<pre class="example">./configure
+make
+make check
+make install
+</pre></div>
+
+<p>to install it under the default prefix, <samp>/usr/local</samp>. Using GNU
+make is strongly recommended. By default, both static and shared
+libraries are built and installed.
+</p>
+<p>To get a list of configure options, use <code>./configure --help</code>. Some
+of the more interesting are:
+</p>
+<dl compact="compact">
+<dt><span><samp>--enable-fat</samp></span></dt>
+<dd><p>Include multiple versions of certain functions in the library, and
+select the ones to use at run-time, depending on available processor
+features. Supported for ARM and x86_64.
+</p>
+</dd>
+<dt><span><samp>--enable-mini-gmp</samp></span></dt>
+<dd><p>Use the smaller and slower &ldquo;mini-gmp&rdquo; implementation of the bignum
+functions needed for public-key cryptography, instead of the real GNU
+GMP library. This option is intended primarily for smaller embedded
+systems. Note that builds using mini-gmp are <strong>not</strong> binary compatible
+with regular builds of Nettle, and more likely to leak side-channel
+information.
+</p>
+</dd>
+<dt><span><samp>--disable-shared</samp></span></dt>
+<dd><p>Omit building the shared libraries.
+</p>
+</dd>
+<dt><span><samp>--disable-dependency-tracking</samp></span></dt>
+<dd><p>Disable the automatic dependency tracking. You will likely need this
+option to be able to build with BSD make.
+</p>
+</dd>
+</dl>
+
+<hr>
+</div>
+<div class="unnumbered" id="Index">
+<div class="header">
+<p>
+Previous: <a href="#Installation" accesskey="p" rel="prev">Installation</a>, Up: <a href="#Top" accesskey="u" rel="up">Nettle</a> &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<span id="Function-and-Concept-Index"></span><h2 class="unnumbered">Function and Concept Index</h2>
+
+<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>3</b></a>
+ &nbsp;
+<br>
+<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-K"><b>K</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-X"><b>X</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-Y"><b>Y</b></a>
+ &nbsp;
+</td></tr></table>
+<table class="index-cp" border="0">
+<tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> Section</th></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_symbol-1">3</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-3DES">3DES</a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-A">A</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ABI-compatibility">ABI compatibility</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Compatibility">Compatibility</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-AEAD">AEAD</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Authenticated-encryption">Authenticated encryption</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-AES">AES</a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes128_005fdecrypt"><code>aes128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes128_005fencrypt"><code>aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes128_005finvert_005fkey"><code>aes128_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes128_005fset_005fdecrypt_005fkey"><code>aes128_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes128_005fset_005fencrypt_005fkey"><code>aes128_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes192_005fdecrypt"><code>aes192_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes192_005fencrypt"><code>aes192_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes192_005finvert_005fkey"><code>aes192_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes192_005fset_005fdecrypt_005fkey"><code>aes192_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes192_005fset_005fencrypt_005fkey"><code>aes192_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes256_005fdecrypt"><code>aes256_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes256_005fencrypt"><code>aes256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes256_005finvert_005fkey"><code>aes256_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes256_005fset_005fdecrypt_005fkey"><code>aes256_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes256_005fset_005fencrypt_005fkey"><code>aes256_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes_005fdecrypt"><code>aes_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes_005fencrypt"><code>aes_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes_005finvert_005fkey"><code>aes_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes_005fset_005fdecrypt_005fkey"><code>aes_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-aes_005fset_005fencrypt_005fkey"><code>aes_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-API-compatibility">API compatibility</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Compatibility">Compatibility</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Arcfour">Arcfour</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arcfour">Arcfour</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arcfour_005fcrypt"><code>arcfour_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arcfour">Arcfour</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arcfour_005fset_005fkey"><code>arcfour_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arcfour">Arcfour</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Arctwo">Arctwo</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arctwo_005fdecrypt"><code>arctwo_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arctwo_005fencrypt"><code>arctwo_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arctwo_005fset_005fkey"><code>arctwo_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arctwo_005fset_005fkey_005fekb"><code>arctwo_set_key_ekb</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-arctwo_005fset_005fkey_005fgutmann"><code>arctwo_set_key_gutmann</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Authenticated-encryption">Authenticated encryption</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Authenticated-encryption">Authenticated encryption</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-B">B</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon"><code>balloon</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Balloon-password_002dhashing-algorithm">Balloon password-hashing algorithm</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon_005fitch"><code>balloon_itch</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon_005fsha1"><code>balloon_sha1</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon_005fsha256"><code>balloon_sha256</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon_005fsha384"><code>balloon_sha384</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-balloon_005fsha512"><code>balloon_sha512</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fdecode_005ffinal"><code>base16_decode_final</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fdecode_005finit"><code>base16_decode_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-BASE16_005fDECODE_005fLENGTH"><code>BASE16_DECODE_LENGTH</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fdecode_005fsingle"><code>base16_decode_single</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fdecode_005fupdate"><code>base16_decode_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-BASE16_005fENCODE_005fLENGTH"><code>BASE16_ENCODE_LENGTH</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fencode_005fsingle"><code>base16_encode_single</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base16_005fencode_005fupdate"><code>base16_encode_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64url_005fdecode_005finit"><code>base64url_decode_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64url_005fencode_005finit"><code>base64url_encode_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fdecode_005ffinal"><code>base64_decode_final</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fdecode_005finit"><code>base64_decode_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-BASE64_005fDECODE_005fLENGTH"><code>BASE64_DECODE_LENGTH</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fdecode_005fsingle"><code>base64_decode_single</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fdecode_005fupdate"><code>base64_decode_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fencode_005ffinal"><code>base64_encode_final</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fencode_005finit"><code>base64_encode_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-BASE64_005fENCODE_005fLENGTH"><code>BASE64_ENCODE_LENGTH</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fencode_005fsingle"><code>base64_encode_single</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-base64_005fencode_005fupdate"><code>base64_encode_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Binary-compatibility">Binary compatibility</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Compatibility">Compatibility</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Block-Cipher">Block Cipher</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Cipher-functions">Cipher functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Blowfish">Blowfish</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-blowfish_005fbcrypt_005fhash"><code>blowfish_bcrypt_hash</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-blowfish_005fbcrypt_005fverify"><code>blowfish_bcrypt_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-blowfish_005fdecrypt"><code>blowfish_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-blowfish_005fencrypt"><code>blowfish_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-blowfish_005fset_005fkey"><code>blowfish_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-C">C</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Camellia">Camellia</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia128_005fcrypt"><code>camellia128_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia128_005finvert_005fkey"><code>camellia128_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia128_005fset_005fdecrypt_005fkey"><code>camellia128_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia128_005fset_005fencrypt_005fkey"><code>camellia128_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia192_005fcrypt"><code>camellia192_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia192_005finvert_005fkey"><code>camellia192_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia192_005fset_005fdecrypt_005fkey"><code>camellia192_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia192_005fset_005fencrypt_005fkey"><code>camellia192_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia256_005fcrypt"><code>camellia256_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia256_005finvert_005fkey"><code>camellia256_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia256_005fset_005fdecrypt_005fkey"><code>camellia256_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia256_005fset_005fencrypt_005fkey"><code>camellia256_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia_005fcrypt"><code>camellia_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia_005finvert_005fkey"><code>camellia_invert_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia_005fset_005fdecrypt_005fkey"><code>camellia_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-camellia_005fset_005fencrypt_005fkey"><code>camellia_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CAST">CAST</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cast128_005fdecrypt"><code>cast128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cast128_005fencrypt"><code>cast128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cast128_005fset_005fkey"><code>cast128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cast5_005fset_005fkey"><code>cast5_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CBC-Mode">CBC Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cbc_005faes128_005fencrypt"><code>cbc_aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cbc_005faes192_005fencrypt"><code>cbc_aes192_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cbc_005faes256_005fencrypt"><code>cbc_aes256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CBC_005fCTX"><code>CBC_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cbc_005fdecrypt"><code>cbc_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CBC_005fDECRYPT"><code>CBC_DECRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cbc_005fencrypt"><code>cbc_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CBC_005fENCRYPT"><code>CBC_ENCRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CBC_005fSET_005fIV"><code>CBC_SET_IV</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CCM-Mode">CCM Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fdecrypt"><code>ccm_aes128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fdecrypt_005fmessage"><code>ccm_aes128_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fdigest"><code>ccm_aes128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fencrypt"><code>ccm_aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fencrypt_005fmessage"><code>ccm_aes128_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fset_005fkey"><code>ccm_aes128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fset_005fnonce"><code>ccm_aes128_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes128_005fupdate"><code>ccm_aes128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fdecrypt"><code>ccm_aes192_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fdecrypt_005fmessage"><code>ccm_aes192_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fdecrypt_005fmessage-1"><code>ccm_aes192_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fdigest"><code>ccm_aes192_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fencrypt"><code>ccm_aes192_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fencrypt_005fmessage"><code>ccm_aes192_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fset_005fkey"><code>ccm_aes192_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fset_005fnonce"><code>ccm_aes192_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes192_005fupdate"><code>ccm_aes192_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fdecrypt"><code>ccm_aes256_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fdigest"><code>ccm_aes256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fencrypt"><code>ccm_aes256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fencrypt_005fmessage"><code>ccm_aes256_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fset_005fkey"><code>ccm_aes256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fset_005fnonce"><code>ccm_aes256_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005faes256_005fupdate"><code>ccm_aes256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fdecrypt"><code>ccm_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fdecrypt_005fmessage"><code>ccm_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fdigest"><code>ccm_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fencrypt"><code>ccm_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fencrypt_005fmessage"><code>ccm_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CCM_005fMAX_005fMSG_005fSIZE"><code>CCM_MAX_MSG_SIZE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fset_005fnonce"><code>ccm_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ccm_005fupdate"><code>ccm_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB-Modes">CFB Modes</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB8-Mode">CFB8 Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB8_005fCTX"><code>CFB8_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cfb8_005fdecrypt"><code>cfb8_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB8_005fDECRYPT"><code>CFB8_DECRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cfb8_005fencrypt"><code>cfb8_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB8_005fENCRYPT"><code>CFB8_ENCRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB8_005fSET_005fIV"><code>CFB8_SET_IV</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB_005fCTX"><code>CFB_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cfb_005fdecrypt"><code>cfb_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB_005fDECRYPT"><code>CFB_DECRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cfb_005fencrypt"><code>cfb_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB_005fENCRYPT"><code>CFB_ENCRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CFB_005fSET_005fIV_0028ctx_002c"><code>CFB_SET_IV(<var>ctx</var>,</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ChaCha">ChaCha</a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fcrypt"><code>chacha_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fcrypt32"><code>chacha_crypt32</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fdecrypt"><code>chacha_poly1305_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fdigest"><code>chacha_poly1305_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fencrypt"><code>chacha_poly1305_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fset_005fkey"><code>chacha_poly1305_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fset_005fnonce"><code>chacha_poly1305_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fpoly1305_005fupdate"><code>chacha_poly1305_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fset_005fcounter"><code>chacha_set_counter</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fset_005fcounter32"><code>chacha_set_counter32</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fset_005fkey"><code>chacha_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fset_005fnonce"><code>chacha_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-chacha_005fset_005fnonce96"><code>chacha_set_nonce96</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Cipher">Cipher</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Cipher-functions">Cipher functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Cipher-Block-Chaining">Cipher Block Chaining</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CBC">CBC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Cipher-Feedback-8_002dbit-Mode">Cipher Feedback 8-bit Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Cipher-Feedback-Mode">Cipher Feedback Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CFB-and-CFB8">CFB and CFB8</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CMAC">CMAC</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CMAC_002d128">CMAC-128</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CMAC_002d64">CMAC-64</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes128_005fdigest"><code>cmac_aes128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes128_005fset_005fkey"><code>cmac_aes128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes128_005fupdate"><code>cmac_aes128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes256_005fdigest"><code>cmac_aes256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes256_005fset_005fkey"><code>cmac_aes256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005faes256_005fupdate"><code>cmac_aes256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005fdes3_005fdigest"><code>cmac_des3_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005fdes3_005fset_005fkey"><code>cmac_des3_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-cmac_005fdes3_005fupdate"><code>cmac_des3_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Collision_002dresistant">Collision-resistant</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Hash-functions">Hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Conditional-entropy">Conditional entropy</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Counter-Mode">Counter Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Counter-with-CBC_002dMAC-Mode">Counter with CBC-MAC Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CTR-Mode">CTR Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ctr_005fcrypt"><code>ctr_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CTR_005fCRYPT"><code>CTR_CRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CTR_005fCTX"><code>CTR_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-CTR_005fSET_005fCOUNTER"><code>CTR_SET_COUNTER</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CTR">CTR</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Curve-25519">Curve 25519</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Curve-448">Curve 448</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-curve25519_005fmul"><code>curve25519_mul</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-curve25519_005fmul_005fg"><code>curve25519_mul_g</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-curve448_005fmul"><code>curve448_mul</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-curve448_005fmul_005fg"><code>curve448_mul_g</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-D">D</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-DES">DES</a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-DES3">DES3</a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des3_005fdecrypt"><code>des3_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des3_005fencrypt"><code>des3_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des3_005fset_005fkey"><code>des3_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des_005fcheck_005fparity"><code>des_check_parity</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des_005fdecrypt"><code>des_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des_005fencrypt"><code>des_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des_005ffix_005fparity"><code>des_fix_parity</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-des_005fset_005fkey"><code>des_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-drbg_005fctr_005faes256_005finit"><code>drbg_ctr_aes256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-drbg_005fctr_005faes256_005frandom"><code>drbg_ctr_aes256_random</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fcompat_005fgenerate_005fkeypair"><code>dsa_compat_generate_keypair</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fgenerate_005fkeypair"><code>dsa_generate_keypair</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fgenerate_005fparams"><code>dsa_generate_params</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fparams"><code>dsa_params</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fparams_005fclear"><code>dsa_params_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fparams_005finit"><code>dsa_params_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fprivate_005fkey"><code>dsa_private_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fprivate_005fkey_005fclear"><code>dsa_private_key_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fprivate_005fkey_005finit"><code>dsa_private_key_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fpublic_005fkey"><code>dsa_public_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fpublic_005fkey_005fclear"><code>dsa_public_key_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fpublic_005fkey_005finit"><code>dsa_public_key_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha1_005fsign"><code>dsa_sha1_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha1_005fsign_005fdigest"><code>dsa_sha1_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha1_005fverify"><code>dsa_sha1_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha1_005fverify_005fdigest"><code>dsa_sha1_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha256_005fsign"><code>dsa_sha256_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha256_005fsign_005fdigest"><code>dsa_sha256_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha256_005fverify"><code>dsa_sha256_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsha256_005fverify_005fdigest"><code>dsa_sha256_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsign"><code>dsa_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsignature"><code>dsa_signature</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsignature_005fclear"><code>dsa_signature_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fsignature_005finit"><code>dsa_signature_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-dsa_005fverify"><code>dsa_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DSA">DSA</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-E">E</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fdecrypt"><code>eax_aes128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fdigest"><code>eax_aes128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fencrypt"><code>eax_aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fset_005fkey"><code>eax_aes128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fset_005fnonce"><code>eax_aes128_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005faes128_005fupdate"><code>eax_aes128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fCTX"><code>EAX_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fdecrypt"><code>eax_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fDECRYPT"><code>EAX_DECRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fdigest"><code>eax_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fDIGEST"><code>EAX_DIGEST</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fencrypt"><code>eax_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fENCRYPT"><code>EAX_ENCRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fset_005fkey"><code>eax_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fSET_005fKEY"><code>EAX_SET_KEY</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fset_005fnonce"><code>eax_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fSET_005fNONCE"><code>EAX_SET_NONCE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eax_005fupdate"><code>eax_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-EAX_005fUPDATE"><code>EAX_UPDATE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fpoint_005fclear"><code>ecc_point_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fpoint_005fget"><code>ecc_point_get</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fpoint_005finit"><code>ecc_point_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fpoint_005fset"><code>ecc_point_set</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fscalar_005fclear"><code>ecc_scalar_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fscalar_005fget"><code>ecc_scalar_get</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fscalar_005finit"><code>ecc_scalar_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecc_005fscalar_005fset"><code>ecc_scalar_set</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecdsa_005fgenerate_005fkeypair"><code>ecdsa_generate_keypair</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecdsa_005fsign"><code>ecdsa_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ecdsa_005fverify"><code>ecdsa_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed25519_005fsha512_005fpublic_005fkey"><code>ed25519_sha512_public_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed25519_005fsha512_005fsign"><code>ed25519_sha512_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed25519_005fsha512_005fverify"><code>ed25519_sha512_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed448_005fshake256_005fpublic_005fkey"><code>ed448_shake256_public_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed448_005fshake256_005fsign"><code>ed448_shake256_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ed448_005fshake256_005fverify"><code>ed448_shake256_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-eddsa">eddsa</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Curve-25519-and-Curve-448">Curve 25519 and Curve 448</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Entropy">Entropy</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-G">G</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Galois-Counter-Mode">Galois Counter Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM">GCM</a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fdecrypt"><code>gcm_aes128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fdigest"><code>gcm_aes128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fencrypt"><code>gcm_aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fset_005fiv"><code>gcm_aes128_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fset_005fkey"><code>gcm_aes128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes128_005fupdate"><code>gcm_aes128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fdecrypt"><code>gcm_aes192_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fdigest"><code>gcm_aes192_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fencrypt"><code>gcm_aes192_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fset_005fiv"><code>gcm_aes192_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fset_005fkey"><code>gcm_aes192_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes192_005fupdate"><code>gcm_aes192_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fdecrypt"><code>gcm_aes256_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fdigest"><code>gcm_aes256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fencrypt"><code>gcm_aes256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fset_005fiv"><code>gcm_aes256_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fset_005fkey"><code>gcm_aes256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes256_005fupdate"><code>gcm_aes256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fdecrypt"><code>gcm_aes_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fdigest"><code>gcm_aes_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fencrypt"><code>gcm_aes_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fset_005fiv"><code>gcm_aes_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fset_005fkey"><code>gcm_aes_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005faes_005fupdate"><code>gcm_aes_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fdecrypt"><code>gcm_camellia128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fdigest"><code>gcm_camellia128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fencrypt"><code>gcm_camellia128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fset_005fiv"><code>gcm_camellia128_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fset_005fkey"><code>gcm_camellia128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia128_005fupdate"><code>gcm_camellia128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia192_005fdigest"><code>gcm_camellia192_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fdecrypt"><code>gcm_camellia256_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fdigest"><code>gcm_camellia256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fencrypt"><code>gcm_camellia256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fset_005fiv"><code>gcm_camellia256_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fset_005fkey"><code>gcm_camellia256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia256_005fupdate"><code>gcm_camellia256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fcamellia_005fdigest"><code>gcm_camellia_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fCTX"><code>GCM_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fdecrypt"><code>gcm_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fDECRYPT"><code>GCM_DECRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fdigest"><code>gcm_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fDIGEST"><code>GCM_DIGEST</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fencrypt"><code>gcm_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fENCRYPT"><code>GCM_ENCRYPT</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fset_005fiv"><code>gcm_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fSET_005fIV"><code>GCM_SET_IV</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fset_005fkey"><code>gcm_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fSET_005fKEY"><code>GCM_SET_KEY</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fdecrypt"><code>gcm_sm4_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fdigest"><code>gcm_sm4_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fencrypt"><code>gcm_sm4_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fset_005fiv"><code>gcm_sm4_set_iv</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fset_005fkey"><code>gcm_sm4_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fsm4_005fupdate"><code>gcm_sm4_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gcm_005fupdate"><code>gcm_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GCM_005fUPDATE"><code>GCM_UPDATE</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GOST-DSA">GOST DSA</a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-GOST-hash">GOST hash</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gostdsa_005fsign"><code>gostdsa_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gostdsa_005fverify"><code>gostdsa_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gostdsa_005fvko"><code>gostdsa_vko</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94cp_005fdigest"><code>gosthash94cp_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94cp_005finit"><code>gosthash94cp_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94cp_005fupdate"><code>gosthash94cp_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94_005fdigest"><code>gosthash94_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94_005finit"><code>gosthash94_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-gosthash94_005fupdate"><code>gosthash94_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-H">H</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Hash-function">Hash function</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Hash-functions">Hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-HKDF">HKDF</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hkdf_005fexpand"><code>hkdf_expand</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hkdf_005fextract"><code>hkdf_extract</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-HMAC">HMAC</a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-HMAC_005fCTX"><code>HMAC_CTX</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fdigest"><code>hmac_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-HMAC_005fDIGEST"><code>HMAC_DIGEST</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fmd5_005fdigest"><code>hmac_md5_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fmd5_005fset_005fkey"><code>hmac_md5_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fmd5_005fupdate"><code>hmac_md5_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fripemd160_005fdigest"><code>hmac_ripemd160_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fripemd160_005fset_005fkey"><code>hmac_ripemd160_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fripemd160_005fupdate"><code>hmac_ripemd160_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fset_005fkey"><code>hmac_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-HMAC_005fSET_005fKEY"><code>HMAC_SET_KEY</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha1_005fdigest"><code>hmac_sha1_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha1_005fset_005fkey"><code>hmac_sha1_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha1_005fupdate"><code>hmac_sha1_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha256_005fdigest"><code>hmac_sha256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha256_005fset_005fkey"><code>hmac_sha256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha256_005fupdate"><code>hmac_sha256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha512_005fdigest"><code>hmac_sha512_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha512_005fset_005fkey"><code>hmac_sha512_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsha512_005fupdate"><code>hmac_sha512_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsm3_005fdigest"><code>hmac_sm3_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsm3_005fset_005fkey"><code>hmac_sm3_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fsm3_005fupdate"><code>hmac_sm3_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-hmac_005fupdate"><code>hmac_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-K">K</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-KDF">KDF</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Key-Derivation-Function">Key Derivation Function</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Keyed-Hash-Function">Keyed Hash Function</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Keyed-hash-functions">Keyed hash functions</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-M">M</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-MAC">MAC</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Keyed-hash-functions">Keyed hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md2_005fdigest"><code>md2_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md2_005finit"><code>md2_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md2_005fupdate"><code>md2_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md4_005fdigest"><code>md4_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md4_005finit"><code>md4_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md4_005fupdate"><code>md4_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md5_005fcompress"><code>md5_compress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md5_005fdigest"><code>md5_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md5_005finit"><code>md5_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-md5_005fupdate"><code>md5_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-memeql_005fsec"><code>memeql_sec</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-functions">Miscellaneous functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-memxor"><code>memxor</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-functions">Miscellaneous functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-memxor3"><code>memxor3</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-functions">Miscellaneous functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Message-Authentication-Code">Message Authentication Code</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Keyed-hash-functions">Keyed hash functions</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-N">N</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005faead">nettle_aead</a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005faead-abstraction">nettle_aead abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005faeads"><code>nettle_aeads</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005faead-abstraction">nettle_aead abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fcipher">nettle_cipher</a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fcipher-abstraction">nettle_cipher abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fciphers"><code>nettle_ciphers</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fcipher-abstraction">nettle_cipher abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fget_005faeads"><code>nettle_get_aeads</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005faead-abstraction">nettle_aead abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fget_005fciphers"><code>nettle_get_ciphers</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fcipher-abstraction">nettle_cipher abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fget_005fgost_005fgc256b"><code>nettle_get_gost_gc256b</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fget_005fgost_005fgc512a"><code>nettle_get_gost_gc512a</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GOSTDSA">GOSTDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fget_005fhashes"><code>nettle_get_hashes</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fhash-abstraction">nettle_hash abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fhash">nettle_hash</a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fhash-abstraction">nettle_hash abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-nettle_005fhashes"><code>nettle_hashes</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fhash-abstraction">nettle_hash abstraction</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-O">O</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-OCB">OCB</a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-OCB-mode">OCB mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fdecrypt"><code>ocb_aes128_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fdecrypt_005fmessage"><code>ocb_aes128_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fdigest"><code>ocb_aes128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fencrypt"><code>ocb_aes128_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fencrypt_005fmessage"><code>ocb_aes128_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fset_005fdecrypt_005fkey"><code>ocb_aes128_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fset_005fencrypt_005fkey"><code>ocb_aes128_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fset_005fnonce"><code>ocb_aes128_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005faes128_005fupdate"><code>ocb_aes128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fdecrypt"><code>ocb_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fdecrypt_005fmessage"><code>ocb_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fdigest"><code>ocb_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fencrypt"><code>ocb_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fencrypt_005fmessage"><code>ocb_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fset_005fkey"><code>ocb_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fset_005fnonce"><code>ocb_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ocb_005fupdate"><code>ocb_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Offset-Code-Book">Offset Code Book</a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-One_002dway">One-way</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Hash-functions">Hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-One_002dway-function">One-way function</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Public_002dkey-algorithms">Public-key algorithms</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-P">P</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Password-Based-Key-Derivation-Function">Password Based Key Derivation Function</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-PBKDF">PBKDF</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-pbkdf2"><code>pbkdf2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-PBKDF2"><code>PBKDF2</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-pbkdf2_005fhmac_005fsha1"><code>pbkdf2_hmac_sha1</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-pbkdf2_005fhmac_005fsha256"><code>pbkdf2_hmac_sha256</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-pbkdf2_005fhmac_005fsha384"><code>pbkdf2_hmac_sha384</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-pbkdf2_005fhmac_005fsha512"><code>pbkdf2_hmac_sha512</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-PKCS-_00235">PKCS #5</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Key-derivation-functions">Key derivation functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-poly1305_005faes_005fdigest"><code>poly1305_aes_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Poly1305">Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-poly1305_005faes_005fset_005fkey"><code>poly1305_aes_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Poly1305">Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-poly1305_005faes_005fset_005fnonce"><code>poly1305_aes_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Poly1305">Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-poly1305_005faes_005fupdate"><code>poly1305_aes_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Poly1305">Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Public-Key-Cryptography">Public Key Cryptography</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Public_002dkey-algorithms">Public-key algorithms</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-R">R</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Randomness">Randomness</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-RC2">RC2</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-RC4">RC4</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arcfour">Arcfour</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ripemd160_005fdigest"><code>ripemd160_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ripemd160_005finit"><code>ripemd160_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-ripemd160_005fupdate"><code>ripemd160_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fcompute_005froot"><code>rsa_compute_root</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fcompute_005froot_005ftr"><code>rsa_compute_root_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fdecrypt"><code>rsa_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fdecrypt_005ftr"><code>rsa_decrypt_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fencrypt"><code>rsa_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fgenerate_005fkeypair"><code>rsa_generate_keypair</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fsign"><code>rsa_md5_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fsign_005fdigest"><code>rsa_md5_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fsign_005fdigest_005ftr"><code>rsa_md5_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fsign_005ftr"><code>rsa_md5_sign_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fverify"><code>rsa_md5_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fmd5_005fverify_005fdigest"><code>rsa_md5_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha256_005fdecrypt"><code>rsa_oaep_sha256_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha256_005fencrypt"><code>rsa_oaep_sha256_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha384_005fdecrypt"><code>rsa_oaep_sha384_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha384_005fencrypt"><code>rsa_oaep_sha384_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha512_005fdecrypt"><code>rsa_oaep_sha512_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005foaep_005fsha512_005fencrypt"><code>rsa_oaep_sha512_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpkcs1_005fsign"><code>rsa_pkcs1_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpkcs1_005fsign_005ftr"><code>rsa_pkcs1_sign_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpkcs1_005fverify"><code>rsa_pkcs1_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fprivate_005fkey"><code>rsa_private_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fprivate_005fkey_005fclear"><code>rsa_private_key_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fprivate_005fkey_005finit"><code>rsa_private_key_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fprivate_005fkey_005fprepare"><code>rsa_private_key_prepare</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha256_005fsign_005fdigest_005ftr"><code>rsa_pss_sha256_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha256_005fverify_005fdigest"><code>rsa_pss_sha256_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha384_005fsign_005fdigest_005ftr"><code>rsa_pss_sha384_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha384_005fverify_005fdigest"><code>rsa_pss_sha384_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha512_005fsign_005fdigest_005ftr"><code>rsa_pss_sha512_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpss_005fsha512_005fverify_005fdigest"><code>rsa_pss_sha512_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpublic_005fkey"><code>rsa_public_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpublic_005fkey_005fclear"><code>rsa_public_key_clear</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpublic_005fkey_005finit"><code>rsa_public_key_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fpublic_005fkey_005fprepare"><code>rsa_public_key_prepare</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fsign"><code>rsa_sha1_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fsign_005fdigest"><code>rsa_sha1_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fsign_005fdigest_005ftr"><code>rsa_sha1_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fsign_005ftr"><code>rsa_sha1_sign_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fverify"><code>rsa_sha1_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha1_005fverify_005fdigest"><code>rsa_sha1_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fsign"><code>rsa_sha256_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fsign_005fdigest"><code>rsa_sha256_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fsign_005fdigest_005ftr"><code>rsa_sha256_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fsign_005ftr"><code>rsa_sha256_sign_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fverify"><code>rsa_sha256_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha256_005fverify_005fdigest"><code>rsa_sha256_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fsign"><code>rsa_sha512_sign</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fsign_005fdigest"><code>rsa_sha512_sign_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fsign_005fdigest_005ftr"><code>rsa_sha512_sign_digest_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fsign_005ftr"><code>rsa_sha512_sign_tr</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fverify"><code>rsa_sha512_verify</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-rsa_005fsha512_005fverify_005fdigest"><code>rsa_sha512_verify_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#RSA">RSA</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-S">S</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Salsa20">Salsa20</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20r12_005fcrypt"><code>salsa20r12_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20_005f128_005fset_005fkey"><code>salsa20_128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20_005f256_005fset_005fkey"><code>salsa20_256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20_005fcrypt"><code>salsa20_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20_005fset_005fkey"><code>salsa20_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-salsa20_005fset_005fnonce"><code>salsa20_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Serpent">Serpent</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Serpent">Serpent</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-serpent_005fdecrypt"><code>serpent_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Serpent">Serpent</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-serpent_005fencrypt"><code>serpent_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Serpent">Serpent</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-serpent_005fset_005fkey"><code>serpent_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Serpent">Serpent</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha1_005fcompress"><code>sha1_compress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha1_005fdigest"><code>sha1_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha1_005finit"><code>sha1_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha1_005fupdate"><code>sha1_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha224_005fdigest"><code>sha224_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha224_005finit"><code>sha224_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha224_005fupdate"><code>sha224_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha256_005fcompress"><code>sha256_compress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha256_005fdigest"><code>sha256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha256_005finit"><code>sha256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha256_005fupdate"><code>sha256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-SHA3">SHA3</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha384_005fdigest"><code>sha384_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha384_005finit"><code>sha384_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha384_005fupdate"><code>sha384_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f128_005finit"><code>sha3_128_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f128_005fshake"><code>sha3_128_shake</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f128_005fshake_005foutput"><code>sha3_128_shake_output</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f128_005fupdate"><code>sha3_128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f224_005fdigest"><code>sha3_224_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f224_005finit"><code>sha3_224_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f224_005fupdate"><code>sha3_224_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f256_005fdigest"><code>sha3_256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f256_005finit"><code>sha3_256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f256_005fshake"><code>sha3_256_shake</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f256_005fshake_005foutput"><code>sha3_256_shake_output</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f256_005fupdate"><code>sha3_256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f384_005fdigest"><code>sha3_384_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f384_005finit"><code>sha3_384_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f384_005fupdate"><code>sha3_384_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f512_005fdigest"><code>sha3_512_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f512_005finit"><code>sha3_512_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha3_005f512_005fupdate"><code>sha3_512_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f224_005fdigest"><code>sha512_224_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f224_005finit"><code>sha512_224_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f224_005fupdate"><code>sha512_224_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f256_005fdigest"><code>sha512_256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f256_005finit"><code>sha512_256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005f256_005fupdate"><code>sha512_256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005fcompress"><code>sha512_compress</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005fdigest"><code>sha512_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005finit"><code>sha512_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sha512_005fupdate"><code>sha512_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-SHAKE">SHAKE</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Side_002dchannel-attack">Side-channel attack</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Side_002dchannel-silence">Side-channel silence</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-SIV-mode">SIV mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-SIV_002dCMAC-mode">SIV-CMAC mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes128_005fdecrypt_005fmessage"><code>siv_cmac_aes128_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes128_005fencrypt_005fmessage"><code>siv_cmac_aes128_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes128_005fset_005fkey"><code>siv_cmac_aes128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes256_005fdecrypt_005fmessage"><code>siv_cmac_aes256_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes256_005fencrypt_005fmessage"><code>siv_cmac_aes256_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fcmac_005faes256_005fset_005fkey"><code>siv_cmac_aes256_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005faes128_005fdecrypt_005fmessage"><code>siv_gcm_aes128_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005faes128_005fencrypt_005fmessage"><code>siv_gcm_aes128_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005faes256_005fdecrypt_005fmessage"><code>siv_gcm_aes256_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005faes256_005fencrypt_005fmessage"><code>siv_gcm_aes256_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005fdecrypt_005fmessage"><code>siv_gcm_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-siv_005fgcm_005fencrypt_005fmessage"><code>siv_gcm_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dGCM">SIV-GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm3_005fdigest"><code>sm3_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm3_005finit"><code>sm3_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm3_005fupdate"><code>sm3_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-SM4">SM4</a>:</td><td>&nbsp;</td><td valign="top"><a href="#SM4">SM4</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm4_005fcrypt"><code>sm4_crypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SM4">SM4</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm4_005fset_005fdecrypt_005fkey"><code>sm4_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SM4">SM4</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-sm4_005fset_005fencrypt_005fkey"><code>sm4_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SM4">SM4</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Stream-Cipher">Stream Cipher</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Cipher-functions">Cipher functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog256_005fdigest"><code>streebog256_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog256_005finit"><code>streebog256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog256_005fupdate"><code>streebog256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog512_005fdigest"><code>streebog512_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog512_005finit"><code>streebog512_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-streebog512_005fupdate"><code>streebog512_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-aes128_005fctx"><code>struct aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-aes192_005fctx"><code>struct aes192_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-aes256_005fctx"><code>struct aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-aes_005fctx"><code>struct aes_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#AES">AES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-arcfour_005fctx"><code>struct arcfour_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arcfour">Arcfour</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-arctwo_005fctx"><code>struct arctwo_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Arctwo">Arctwo</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-base16_005fdecode_005fctx"><code>struct base16_decode_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-base64_005fdecode_005fctx"><code>struct base64_decode_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-base64_005fencode_005fctx"><code>struct base64_encode_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ASCII-encoding">ASCII encoding</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-blowfish_005fctx"><code>struct blowfish_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Blowfish">Blowfish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-camellia128_005fctx"><code>struct camellia128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-camellia192_005fctx"><code>struct camellia192_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-camellia256_005fctx"><code>struct camellia256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-camellia_005fctx"><code>struct camellia_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Camellia">Camellia</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-cast128_005fctx"><code>struct cast128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CAST128">CAST128</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ccm_005faes128_005fctx"><code>struct ccm_aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ccm_005faes192_005fctx"><code>struct ccm_aes192_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ccm_005faes256_005fctx"><code>struct ccm_aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ccm_005fctx"><code>struct ccm_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CCM">CCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-chacha_005fctx"><code>struct chacha_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha">ChaCha</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-chacha_005fpoly1305_005fctx"><code>struct chacha_poly1305_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ChaCha_002dPoly1305">ChaCha-Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-cmac_005faes128_005fctx"><code>struct cmac_aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-cmac_005faes256_005fctx"><code>struct cmac_aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-cmac_005fdes3_005fctx"><code>struct cmac_des3_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#CMAC">CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-des3_005fctx"><code>struct des3_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-des_005fctx"><code>struct des_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES">DES</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-drbg_005fctr_005faes256_005fctx"><code>struct drbg_ctr_aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-eax_005faes128_005fctx"><code>struct eax_aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-eax_005fctx"><code>struct eax_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-eax_005fkey"><code>struct eax_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#EAX">EAX</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ecc_005fpoint"><code>struct ecc_point</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ecc_005fscalar"><code>struct ecc_scalar</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#ECDSA">ECDSA</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005faes128_005fctx"><code>struct gcm_aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005faes192_005fctx"><code>struct gcm_aes192_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005faes256_005fctx"><code>struct gcm_aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005faes_005fctx"><code>struct gcm_aes_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005fcamellia128_005fctx"><code>struct gcm_camellia128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005fcamellia256_005fctx"><code>struct gcm_camellia256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005fctx"><code>struct gcm_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005fkey"><code>struct gcm_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gcm_005fsm4_005fctx"><code>struct gcm_sm4_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#GCM">GCM</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gosthash94cp_005fctx"><code>struct gosthash94cp_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-gosthash94_005fctx"><code>struct gosthash94_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fmd5_005fctx"><code>struct hmac_md5_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fripemd160_005fctx"><code>struct hmac_ripemd160_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fsha1_005fctx"><code>struct hmac_sha1_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fsha256_005fctx"><code>struct hmac_sha256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fsha512_005fctx"><code>struct hmac_sha512_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-hmac_005fsm3_005fctx"><code>struct hmac_sm3_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#HMAC">HMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-md2_005fctx"><code>struct md2_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-md4_005fctx"><code>struct md4_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-md5_005fctx"><code>struct md5_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-nettle_005faead"><code><code>struct nettle_aead</code></code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005faead-abstraction">nettle_aead abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-nettle_005fcipher"><code><code>struct nettle_cipher</code></code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fcipher-abstraction">nettle_cipher abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-nettle_005fhash"><code><code>struct nettle_hash</code></code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#nettle_005fhash-abstraction">nettle_hash abstraction</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ocb_005faes128_005fencrypt_005fkey"><code>struct ocb_aes128_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ocb_005fctx"><code>struct ocb_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ocb_005fkey"><code>struct ocb_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#OCB">OCB</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-poly1305_005faes_005fctx"><code>struct poly1305_aes_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Poly1305">Poly1305</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-ripemd160_005fctx"><code>struct ripemd160_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-salsa20_005fctx"><code>struct salsa20_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Salsa20">Salsa20</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-serpent_005fctx"><code>struct serpent_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Serpent">Serpent</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha1_005fctx"><code>struct sha1_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Legacy-hash-functions">Legacy hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha224_005fctx"><code>struct sha224_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha256_005fctx"><code>struct sha256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha384_005fctx"><code>struct sha384_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha3_005f128_005fctx"><code>struct sha3_128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha3_005f224_005fctx"><code>struct sha3_224_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha3_005f256_005fctx"><code>struct sha3_256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha3_005f384_005fctx"><code>struct sha3_384_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha3_005f512_005fctx"><code>struct sha3_512_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha512_005f224_005fctx"><code>struct sha512_224_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha512_005f256_005fctx"><code>struct sha512_256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sha512_005fctx"><code>struct sha512_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Recommended-hash-functions">Recommended hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-siv_005fcmac_005faes128_005fctx"><code>struct siv_cmac_aes128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-siv_005fcmac_005faes256_005fctx"><code>struct siv_cmac_aes256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SIV_002dCMAC">SIV-CMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sm3_005fctx"><code>struct sm3_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-sm4_005fctx"><code>struct sm4_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#SM4">SM4</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-streebog256_005fctx"><code>struct streebog256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-streebog512_005fctx"><code>struct streebog512_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Miscellaneous-hash-functions">Miscellaneous hash functions</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-twofish_005fctx"><code>struct twofish_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Twofish">Twofish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-umac128_005fctx"><code>struct umac128_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-umac32_005fctx"><code>struct umac32_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-umac64_005fctx"><code>struct umac64_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-umac96_005fctx"><code>struct umac96_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-xts_005faes128_005fkey"><code>struct xts_aes128_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-xts_005faes256_005fkey"><code>struct xts_aes256_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-yarrow256_005fctx"><code>struct yarrow256_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-yarrow_005fkey_005fevent_005fctx"><code>struct yarrow_key_event_ctx</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-struct-yarrow_005fsource"><code>struct yarrow_source</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-T">T</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Triple_002dDES">Triple-DES</a>:</td><td>&nbsp;</td><td valign="top"><a href="#DES3">DES3</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-Twofish">Twofish</a>:</td><td>&nbsp;</td><td valign="top"><a href="#Twofish">Twofish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-twofish_005fdecrypt"><code>twofish_decrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Twofish">Twofish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-twofish_005fencrypt"><code>twofish_encrypt</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Twofish">Twofish</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-twofish_005fset_005fkey"><code>twofish_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Twofish">Twofish</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-U">U</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-UMAC">UMAC</a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac128_005fdigest"><code>umac128_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac128_005fset_005fkey"><code>umac128_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac128_005fset_005fnonce"><code>umac128_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac128_005fupdate"><code>umac128_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac32_005fdigest"><code>umac32_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac32_005fset_005fkey"><code>umac32_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac32_005fset_005fnonce"><code>umac32_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac32_005fupdate"><code>umac32_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac64_005fdigest"><code>umac64_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac64_005fset_005fkey"><code>umac64_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac64_005fset_005fnonce"><code>umac64_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac64_005fupdate"><code>umac64_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac96_005fdigest"><code>umac96_digest</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac96_005fset_005fkey"><code>umac96_set_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac96_005fset_005fnonce"><code>umac96_set_nonce</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-umac96_005fupdate"><code>umac96_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#UMAC">UMAC</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-X">X</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-XEX_002dbased-tweaked_002dcodebook-mode-with-ciphertext-stealing">XEX-based tweaked-codebook mode with ciphertext stealing</a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-XTS-Mode">XTS Mode</a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes128_005fdecrypt_005fmessage"><code>xts_aes128_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes128_005fencrypt_005fmessage"><code>xts_aes128_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes128_005fset_005fdecrypt_005fkey"><code>xts_aes128_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes128_005fset_005fencrypt_005fkey"><code>xts_aes128_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes256_005fdecrypt_005fmessage"><code>xts_aes256_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes256_005fencrypt_005fmessage"><code>xts_aes256_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes256_005fset_005fdecrypt_005fkey"><code>xts_aes256_set_decrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005faes256_005fset_005fencrypt_005fkey"><code>xts_aes256_set_encrypt_key</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005fdecrypt_005fmessage"><code>xts_decrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-xts_005fencrypt_005fmessage"><code>xts_encrypt_message</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#XTS">XTS</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th id="Index_cp_letter-Y">Y</th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005ffast_005freseed"><code>yarrow256_fast_reseed</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005finit"><code>yarrow256_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005fis_005fseeded"><code>yarrow256_is_seeded</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005fneeded_005fsources"><code>yarrow256_needed_sources</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005frandom"><code>yarrow256_random</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005fseed"><code>yarrow256_seed</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005fslow_005freseed"><code>yarrow256_slow_reseed</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow256_005fupdate"><code>yarrow256_update</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow_005fkey_005fevent_005festimate"><code>yarrow_key_event_estimate</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td></td><td valign="top"><a href="#index-yarrow_005fkey_005fevent_005finit"><code>yarrow_key_event_init</code></a>:</td><td>&nbsp;</td><td valign="top"><a href="#Randomness">Randomness</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+</table>
+<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" href="#Index_cp_symbol-1"><b>3</b></a>
+ &nbsp;
+<br>
+<a class="summary-letter" href="#Index_cp_letter-A"><b>A</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-B"><b>B</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-C"><b>C</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-D"><b>D</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-E"><b>E</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-G"><b>G</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-H"><b>H</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-K"><b>K</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-M"><b>M</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-N"><b>N</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-O"><b>O</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-P"><b>P</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-R"><b>R</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-S"><b>S</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-T"><b>T</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-U"><b>U</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-X"><b>X</b></a>
+ &nbsp;
+<a class="summary-letter" href="#Index_cp_letter-Y"><b>Y</b></a>
+ &nbsp;
+</td></tr></table>
+
+<hr>
+</div>
+</div>
+<div class="Footnotes_element" id="SEC_Foot">
+<div class="header">
+<p>
+ &nbsp; [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
+</div>
+<h4 class="footnotes-heading">Footnotes</h4>
+
+<h5><a id="FOOT1" href="#DOCF1">(1)</a></h5>
+<p>Actually, the computation is not done like this, it is
+done more efficiently using <code>p</code>, <code>q</code> and the Chinese remainder
+theorem (<acronym>CRT</acronym>). But the result is the same.</p>
+</div>
+
+
+</body>
+</html>
diff --git a/nettle.info b/nettle.info
new file mode 100644
index 00000000..a3f2f32c
--- /dev/null
+++ b/nettle.info
@@ -0,0 +1,7665 @@
+This is nettle.info, produced by makeinfo version 6.8 from
+nettle.texinfo.
+
+This manual is for the Nettle library (version 3.9), a low-level
+cryptographic library.
+
+ Originally written 2001 by Niels Möller, updated 2023.
+
+ This manual is placed in the public domain. You may freely copy
+ it, in whole or in part, with or without modification. Attribution
+ is appreciated, but not required.
+INFO-DIR-SECTION Encryption
+START-INFO-DIR-ENTRY
+* Nettle: (nettle). A low-level cryptographic library.
+END-INFO-DIR-ENTRY
+
+
+File: nettle.info, Node: Top, Next: Introduction, Up: (dir)
+
+Nettle
+******
+
+This document describes the Nettle low-level cryptographic library. You
+can use the library directly from your C programs, or write or use an
+object-oriented wrapper for your favorite language or application.
+
+ This manual is for the Nettle library (version 3.9), a low-level
+cryptographic library.
+
+ Originally written 2001 by Niels Möller, updated 2023.
+
+ This manual is placed in the public domain. You may freely copy
+ it, in whole or in part, with or without modification. Attribution
+ is appreciated, but not required.
+
+* Menu:
+
+* Introduction:: What is Nettle?
+* Copyright:: Your rights.
+* Conventions:: General interface conventions.
+* Example:: An example program.
+* Linking:: Linking with libnettle and libhogweed.
+* Compatibility:: On API and ABI compatibility between versions.
+* Reference:: All Nettle functions and features.
+* Nettle soup:: For the serious nettle hacker.
+* Installation:: How to install Nettle.
+* Index:: Function and concept index.
+
+ — The Detailed Node Listing —
+
+Reference
+
+* Hash functions::
+* Cipher functions::
+* Cipher modes::
+* Authenticated encryption::
+* Keyed hash functions::
+* Key derivation functions::
+* Public-key algorithms::
+* Randomness::
+* ASCII encoding::
+* Miscellaneous functions::
+* Compatibility functions::
+
+Hash functions
+
+* Recommended hash functions::
+* Miscellaneous hash functions::
+* Legacy hash functions::
+* nettle_hash abstraction::
+
+Cipher functions
+
+* AES::
+* Arcfour::
+* Arctwo::
+* Blowfish::
+* Camellia::
+* CAST128::
+* ChaCha::
+* DES::
+* DES3::
+* Salsa20::
+* Serpent::
+* SM4::
+* Twofish::
+* nettle_cipher abstraction::
+
+Cipher modes
+
+* CBC::
+* CTR::
+* CFB and CFB8::
+* XTS::
+
+Authenticated encryption with associated data
+
+* EAX::
+* GCM::
+* CCM::
+* ChaCha-Poly1305::
+* OCB::
+* SIV-CMAC::
+* SIV-GCM::
+* nettle_aead abstraction::
+
+Keyed Hash Functions
+
+* HMAC::
+* UMAC::
+* CMAC::
+* Poly1305::
+
+Public-key algorithms
+
+* RSA:: The RSA public key algorithm.
+* DSA:: The DSA digital signature algorithm.
+* Elliptic curves:: Elliptic curves and ECDSA
+
+Elliptic curves
+
+* Side-channel silence::
+* ECDSA::
+* GOSTDSA::
+* Curve 25519 and Curve 448::
+
+
+
+File: nettle.info, Node: Introduction, Next: Copyright, Prev: Top, Up: Top
+
+1 Introduction
+**************
+
+Nettle is a cryptographic library that is designed to fit easily in more
+or less any context: In crypto toolkits for object-oriented languages
+(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
+kernel space. In most contexts, you need more than the basic
+cryptographic algorithms, you also need some way to keep track of
+available algorithms, their properties and variants. You often have
+some algorithm selection process, often dictated by a protocol you want
+to implement.
+
+ And as the requirements of applications differ in subtle and not so
+subtle ways, an API that fits one application well can be a pain to use
+in a different context. And that is why there are so many different
+cryptographic libraries around.
+
+ Nettle tries to avoid this problem by doing one thing, the low-level
+crypto stuff, and providing a _simple_ but general interface to it. In
+particular, Nettle doesn’t do algorithm selection. It doesn’t do memory
+allocation. It doesn’t do any I/O.
+
+ The idea is that one can build several application and context
+specific interfaces on top of Nettle, and share the code, test cases,
+benchmarks, documentation, etc. Examples are the Nettle module for the
+Pike language, and LSH, which both use an object-oriented abstraction on
+top of the library.
+
+ This manual explains how to use the Nettle library. It also tries to
+provide some background on the cryptography, and advice on how to best
+put it to use.
+
+
+File: nettle.info, Node: Copyright, Next: Conventions, Prev: Introduction, Up: Top
+
+2 Copyright
+***********
+
+Nettle is dual licenced under the GNU General Public License version 2
+or later, and the GNU Lesser General Public License version 3 or later.
+When using Nettle, you must comply fully with all conditions of at least
+one of these licenses. A few of the individual files are licensed under
+more permissive terms, or in the public domain. To find the current
+status of particular files, you have to read the copyright notices at
+the top of the files.
+
+ This manual is in the public domain. You may freely copy it in whole
+or in part, e.g., into documentation of programs that build on Nettle.
+Attribution, as well as contribution of improvements to the text, is of
+course appreciated, but it is not required.
+
+
+File: nettle.info, Node: Conventions, Next: Example, Prev: Copyright, Up: Top
+
+3 Conventions
+*************
+
+For each supported algorithm, there is an include file that defines a
+_context struct_, a few constants, and declares functions for operating
+on the context. The context struct encapsulates all information needed
+by the algorithm, and it can be copied or moved in memory with no
+unexpected effects.
+
+ For consistency, functions for different algorithms are very similar,
+but there are some differences, for instance reflecting if the key setup
+or encryption function differ for encryption and decryption, and whether
+or not key setup can fail. There are also differences between
+algorithms that don’t show in function prototypes, but which the
+application must nevertheless be aware of. There is no big difference
+between the functions for stream ciphers and for block ciphers, although
+they should be used quite differently by the application.
+
+ If your application uses more than one algorithm of the same type,
+you should probably create an interface that is tailor-made for your
+needs, and then write a few lines of glue code on top of Nettle.
+
+ By convention, for an algorithm named ‘foo’, the struct tag for the
+context struct is ‘foo_ctx’, constants and functions uses prefixes like
+‘FOO_BLOCK_SIZE’ (a constant) and ‘foo_set_key’ (a function).
+
+ In all functions, strings are represented with an explicit length, of
+type ‘size_t’, and a pointer of type ‘uint8_t *’ or ‘const uint8_t *’.
+For functions that transform one string to another, the argument order
+is length, destination pointer and source pointer. Source and
+destination areas are usually of the same length. When they differ,
+e.g., for ‘ccm_encrypt_message’, the length argument specifies the size
+of the destination area. Source and destination pointers may be equal,
+so that you can process strings in place, but source and destination
+areas _must not_ overlap in any other way.
+
+ Many of the functions lack return value and can never fail. Those
+functions which can fail, return one on success and zero on failure.
+
+
+File: nettle.info, Node: Example, Next: Linking, Prev: Conventions, Up: Top
+
+4 Example
+*********
+
+A simple example program that reads a file from standard input and
+writes its SHA1 check-sum on standard output should give the flavor of
+Nettle.
+
+ #include <stdio.h>
+ #include <stdlib.h>
+
+ #include <nettle/sha1.h>
+
+ #define BUF_SIZE 1000
+
+ static void
+ display_hex(unsigned length, uint8_t *data)
+ {
+ unsigned i;
+
+ for (i = 0; i<length; i++)
+ printf("%02x ", data[i]);
+
+ printf("\n");
+ }
+
+ int
+ main(int argc, char **argv)
+ {
+ struct sha1_ctx ctx;
+ uint8_t buffer[BUF_SIZE];
+ uint8_t digest[SHA1_DIGEST_SIZE];
+
+ sha1_init(&ctx);
+ for (;;)
+ {
+ int done = fread(buffer, 1, sizeof(buffer), stdin);
+ sha1_update(&ctx, done, buffer);
+ if (done < sizeof(buffer))
+ break;
+ }
+ if (ferror(stdin))
+ return EXIT_FAILURE;
+
+ sha1_digest(&ctx, SHA1_DIGEST_SIZE, digest);
+
+ display_hex(SHA1_DIGEST_SIZE, digest);
+ return EXIT_SUCCESS;
+ }
+
+ On a typical Unix system, this program can be compiled and linked
+with the command line
+ gcc sha-example.c -o sha-example -lnettle
+
+
+File: nettle.info, Node: Linking, Next: Compatibility, Prev: Example, Up: Top
+
+5 Linking
+*********
+
+Nettle actually consists of two libraries, ‘libnettle’ and ‘libhogweed’.
+The ‘libhogweed’ library contains those functions of Nettle that uses
+bignum operations, and depends on the GMP library. With this division,
+linking works the same for both static and dynamic libraries.
+
+ If an application uses only the symmetric crypto algorithms of Nettle
+(i.e., block ciphers, hash functions, and the like), it’s sufficient to
+link with ‘-lnettle’. If an application also uses public-key
+algorithms, the recommended linker flags are ‘-lhogweed -lnettle -lgmp’.
+If the involved libraries are installed as dynamic libraries, it may be
+sufficient to link with just ‘-lhogweed’, and the loader will resolve
+the dependencies automatically.
+
+
+File: nettle.info, Node: Compatibility, Next: Reference, Prev: Linking, Up: Top
+
+6 Compatibility
+***************
+
+When you write a program using the Nettle library, it’s desirable to
+have it work together not only with exactly the same version of Nettle
+you had at hand, but with other current and future versions. If a
+different version of Nettle is used at compile time, i.e., you recompile
+it using the header and library files belonging to a different version,
+we talk about API compatibility (for Application Programming Interface).
+If a different version of Nettle isn’t used until link time, we talk
+about ABI compatibility (Application Binary Interface) or binary
+compatibility. ABI compatibility matters mainly when using dynamic
+linking with a shared library. E.g., a user has an executable linking
+at run-time with ‘libnettle.so’, and then updates to a later version of
+the shared library, without updating or recompiling the executable.
+
+ Nettle aims to provide backwards compatibility, i.e., a program
+written for a particular version of the Nettle library should usually
+work fine with later version of the library. Note that the opposite is
+not supported: The program should _not_ be expected to work with older
+versions of the Nettle library; and ABI breakage can be unobvious. E.g,
+the later version may define a new library symbol, and let header files
+redefine an old API name as an alias for the new symbol. If the later
+version ensures that the old symbol is still defined in the library,
+this change is backwards compatible: A program compiled using headers
+from the older version can be successfully linked with either version of
+the library. But if you compile the same program using headers from the
+later version of the library, and attempt to link with the older
+version, you’ll get an undefined reference to the new symbol.
+
+ API compatibility is rarely broken; exceptions are noted in the NEWS
+file. For example, the key size argument to the function
+‘cast128_set_key’ was dropped in the Nettle-3.0 release, and all
+programs using that function had to be updated to work with the new
+version.
+
+ ABI compatibility is broken occasionally. This is also noted in the
+NEWS file, and the name of the shared library is updated to prevent
+accidental run-time linking with the wrong version. All programs have
+to be recompiled before they can link with the new version. Since names
+are different, multiple versions can be installed on the same system,
+with a mix of programs linking to one version or the other.
+
+ Under some circumstances, it is possible to have a single program
+linking dynamically with two binary incompatible versions of the Nettle
+library, thanks to the use of symbol versioning. Consider a program
+calling functions in both Nettle and GnuTLS. For the direct dependency
+on Nettle, the program is linked with a particular version of the Nettle
+shared library. GnuTLS uses Nettle internally, but does not expose any
+Nettle data structures or the like in its own ABI. In this situation,
+the GnuTLS shared library may link with a different version of the
+Nettle library. Then both versions of the Nettle library will be loaded
+into the program’s address space, and each reference to a symbol will be
+resolved to the correct version.
+
+ Finally, some of Nettle’s symbols are internal. They carry a leading
+underscore, and are not declared in installed header files. They can be
+used for local or experimental purposes, but programs referring directly
+to those symbols get neither API nor ABI compatibility, not even between
+minor versions.
+
+
+File: nettle.info, Node: Reference, Next: Nettle soup, Prev: Compatibility, Up: Top
+
+7 Reference
+***********
+
+This chapter describes all the Nettle functions, grouped by family.
+
+* Menu:
+
+* Hash functions::
+* Cipher functions::
+* Cipher modes::
+* Authenticated encryption::
+* Keyed hash functions::
+* Key derivation functions::
+* Public-key algorithms::
+* Randomness::
+* ASCII encoding::
+* Miscellaneous functions::
+* Compatibility functions::
+
+
+File: nettle.info, Node: Hash functions, Next: Cipher functions, Up: Reference
+
+7.1 Hash functions
+==================
+
+A cryptographic “hash function” is a function that takes variable size
+strings, and maps them to strings of fixed, short, length. There are
+naturally lots of collisions, as there are more possible 1MB files than
+20 byte strings. But the function is constructed such that is hard to
+find the collisions. More precisely, a cryptographic hash function ‘H’
+should have the following properties:
+
+_One-way_
+ Given a hash value ‘H(x)’ it is hard to find a string ‘x’ that
+ hashes to that value.
+
+_Collision-resistant_
+ It is hard to find two different strings, ‘x’ and ‘y’, such that
+ ‘H(x)’ = ‘H(y)’.
+
+ Hash functions are useful as building blocks for digital signatures,
+message authentication codes, pseudo random generators, association of
+unique ids to documents, and many other things.
+
+ The most commonly used hash functions are MD5 and SHA1.
+Unfortunately, both these fail the collision-resistance requirement;
+cryptologists have found ways to construct colliding inputs. The
+recommended hash functions for new applications are SHA2 (with main
+variants SHA256 and SHA512). At the time of this writing (Autumn 2015),
+SHA3 has recently been standardized, and the new SHA3 and other top SHA3
+candidates may also be reasonable alternatives.
+
+* Menu:
+
+* Recommended hash functions::
+* Miscellaneous hash functions::
+* Legacy hash functions::
+* nettle_hash abstraction::
+
+
+File: nettle.info, Node: Recommended hash functions, Next: Miscellaneous hash functions, Up: Hash functions
+
+7.1.1 Recommended hash functions
+--------------------------------
+
+The following hash functions have no known weaknesses, and are suitable
+for new applications. The SHA2 family of hash functions were specified
+by “NIST”, intended as a replacement for SHA1.
+
+7.1.1.1 SHA256
+..............
+
+SHA256 is a member of the SHA2 family. It outputs hash values of 256
+bits, or 32 octets. Nettle defines SHA256 in ‘<nettle/sha2.h>’.
+
+ -- Context struct: struct sha256_ctx
+
+ -- Constant: SHA256_DIGEST_SIZE
+ The size of a SHA256 digest, i.e. 32.
+
+ -- Constant: SHA256_BLOCK_SIZE
+ The internal block size of SHA256. Useful for some special
+ constructions, in particular HMAC-SHA256.
+
+ -- Function: void sha256_init (struct sha256_ctx *CTX)
+ Initialize the SHA256 state.
+
+ -- Function: void sha256_update (struct sha256_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha256_digest (struct sha256_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA256_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘sha256_init’.
+
+ -- Function: void sha256_compress (const uint32_t *STATE, uint8_t
+ *INPUT)
+ Perform a raw SHA256 compress on SHA256_BLOCK_SIZE bytes fromINPUT
+ using STATE as IV (an array of 8 uint32_t). The output is stored
+ in STATE. This function provides access to the underlying
+ compression function, for the rare applications that need that
+ (e.g., using different IV from standard SHA256).
+
+ Earlier versions of nettle defined SHA256 in the header file
+‘<nettle/sha.h>’, which is now deprecated, but kept for compatibility.
+
+7.1.1.2 SHA224
+..............
+
+SHA224 is a variant of SHA256, with a different initial state, and with
+the output truncated to 224 bits, or 28 octets. Nettle defines SHA224
+in ‘<nettle/sha2.h>’ (and in ‘<nettle/sha.h>’, for backwards
+compatibility).
+
+ -- Context struct: struct sha224_ctx
+
+ -- Constant: SHA224_DIGEST_SIZE
+ The size of a SHA224 digest, i.e. 28.
+
+ -- Constant: SHA224_BLOCK_SIZE
+ The internal block size of SHA224. Useful for some special
+ constructions, in particular HMAC-SHA224.
+
+ -- Function: void sha224_init (struct sha224_ctx *CTX)
+ Initialize the SHA224 state.
+
+ -- Function: void sha224_update (struct sha224_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha224_digest (struct sha224_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA224_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘sha224_init’.
+
+7.1.1.3 SHA512
+..............
+
+SHA512 is a larger sibling to SHA256, with a very similar structure but
+with both the output and the internal variables of twice the size. The
+internal variables are 64 bits rather than 32, making it significantly
+slower on 32-bit computers. It outputs hash values of 512 bits, or 64
+octets. Nettle defines SHA512 in ‘<nettle/sha2.h>’ (and in
+‘<nettle/sha.h>’, for backwards compatibility).
+
+ -- Context struct: struct sha512_ctx
+
+ -- Constant: SHA512_DIGEST_SIZE
+ The size of a SHA512 digest, i.e. 64.
+
+ -- Constant: SHA512_BLOCK_SIZE
+ The internal block size of SHA512, 128. Useful for some special
+ constructions, in particular HMAC-SHA512.
+
+ -- Function: void sha512_init (struct sha512_ctx *CTX)
+ Initialize the SHA512 state.
+
+ -- Function: void sha512_update (struct sha512_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha512_digest (struct sha512_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA512_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘sha512_init’.
+
+ -- Function: void sha512_compress (const uint64_t *STATE, uint8_t
+ *INPUT)
+ Perform a raw SHA512 compress on SHA512_BLOCK_SIZE bytes from INPUT
+ using STATE as IV (an array of 8 uint64_t). The output is stored
+ in STATE. This function provides access to the underlying
+ compression function, for the rare applications that need that
+ (e.g., using different IV from standard SHA512).
+
+7.1.1.4 SHA384 and other variants of SHA512
+...........................................
+
+Several variants of SHA512 have been defined, with a different initial
+state, and with the output truncated to shorter length than 512 bits.
+Naming is a bit confused, these algorithms are called SHA512-224,
+SHA512-256 and SHA384, for output sizes of 224, 256 and 384 bits,
+respectively. Nettle defines these in ‘<nettle/sha2.h>’ (and in
+‘<nettle/sha.h>’, for backwards compatibility).
+
+ -- Context struct: struct sha512_224_ctx
+ -- Context struct: struct sha512_256_ctx
+ -- Context struct: struct sha384_ctx
+ These context structs are all the same as sha512_ctx. They are
+ defined as simple preprocessor aliases, which may cause some
+ problems if used as identifiers for other purposes. So avoid doing
+ that.
+
+ -- Constant: SHA512_224_DIGEST_SIZE
+ -- Constant: SHA512_256_DIGEST_SIZE
+ -- Constant: SHA384_DIGEST_SIZE
+ The digest size for each variant, i.e., 28, 32, and 48,
+ respectively.
+
+ -- Constant: SHA512_224_BLOCK_SIZE
+ -- Constant: SHA512_256_BLOCK_SIZE
+ -- Constant: SHA384_BLOCK_SIZE
+ The internal block size, same as SHA512_BLOCK_SIZE, i.e., 128.
+ Useful for some special constructions, in particular HMAC-SHA384.
+
+ -- Function: void sha512_224_init (struct sha512_224_ctx *CTX)
+ -- Function: void sha512_256_init (struct sha512_256_ctx *CTX)
+ -- Function: void sha384_init (struct sha384_ctx *CTX)
+ Initialize the context struct.
+
+ -- Function: void sha512_224_update (struct sha512_224_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void sha512_256_update (struct sha512_256_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void sha384_update (struct sha384_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ Hash some more data. These are all aliases for sha512_update,
+ which does the same thing.
+
+ -- Function: void sha512_224_digest (struct sha512_224_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void sha512_256_digest (struct sha512_256_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void sha384_digest (struct sha384_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than the specified digest
+ size, in which case only the first LENGTH octets of the digest are
+ written.
+
+ These function also reset the context in the same way as the
+ corresponding init function.
+
+7.1.1.5 SHA3-224
+................
+
+The SHA3 hash functions were specified by NIST in response to weaknesses
+in SHA1, and doubts about SHA2 hash functions which structurally are
+very similar to SHA1. SHA3 is a result of a competition, where the
+winner, also known as Keccak, was designed by Guido Bertoni, Joan
+Daemen, Michaël Peeters and Gilles Van Assche. It is structurally very
+different from all widely used earlier hash functions. Like SHA2, there
+are several variants, with output sizes of 224, 256, 384 and 512 bits
+(28, 32, 48 and 64 octets, respectively). In August 2015, it was
+formally standardized by NIST, as FIPS 202,
+<https://dx.doi.org/10.6028/NIST.FIPS.202>.
+
+ Note that the SHA3 implementation in earlier versions of Nettle was
+based on the specification at the time Keccak was announced as the
+winner of the competition, which is incompatible with the final standard
+and hence with current versions of Nettle. The ‘nette/sha3.h’ defines a
+preprocessor symbol ‘NETTLE_SHA3_FIPS202’ to indicate conformance with
+the standard.
+
+ -- Constant: NETTLE_SHA3_FIPS202
+ Defined to 1 in Nettle versions supporting FIPS 202. Undefined in
+ earlier versions.
+
+ Nettle defines SHA3-224 in ‘<nettle/sha3.h>’.
+
+ -- Context struct: struct sha3_224_ctx
+
+ -- Constant: SHA3_224_DIGEST_SIZE
+ The size of a SHA3_224 digest, i.e., 28.
+
+ -- Constant: SHA3_224_BLOCK_SIZE
+ The internal block size of SHA3_224.
+
+ -- Function: void sha3_224_init (struct sha3_224_ctx *CTX)
+ Initialize the SHA3-224 state.
+
+ -- Function: void sha3_224_update (struct sha3_224_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha3_224_digest (struct sha3_224_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA3_224_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context.
+
+7.1.1.6 SHA3-256
+................
+
+This is SHA3 with 256-bit output size, and possibly the most useful of
+the SHA3 hash functions.
+
+ Nettle defines SHA3-256 in ‘<nettle/sha3.h>’.
+
+ -- Context struct: struct sha3_256_ctx
+
+ -- Constant: SHA3_256_DIGEST_SIZE
+ The size of a SHA3_256 digest, i.e., 32.
+
+ -- Constant: SHA3_256_BLOCK_SIZE
+ The internal block size of SHA3_256.
+
+ -- Function: void sha3_256_init (struct sha3_256_ctx *CTX)
+ Initialize the SHA3-256 state.
+
+ -- Function: void sha3_256_update (struct sha3_256_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha3_256_digest (struct sha3_256_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA3_256_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context.
+
+7.1.1.7 SHA3-384
+................
+
+This is SHA3 with 384-bit output size.
+
+ Nettle defines SHA3-384 in ‘<nettle/sha3.h>’.
+
+ -- Context struct: struct sha3_384_ctx
+
+ -- Constant: SHA3_384_DIGEST_SIZE
+ The size of a SHA3_384 digest, i.e., 48.
+
+ -- Constant: SHA3_384_BLOCK_SIZE
+ The internal block size of SHA3_384.
+
+ -- Function: void sha3_384_init (struct sha3_384_ctx *CTX)
+ Initialize the SHA3-384 state.
+
+ -- Function: void sha3_384_update (struct sha3_384_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha3_384_digest (struct sha3_384_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA3_384_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context.
+
+7.1.1.8 SHA3-512
+................
+
+This is SHA3 with 512-bit output size.
+
+ Nettle defines SHA3-512 in ‘<nettle/sha3.h>’.
+
+ -- Context struct: struct sha3_512_ctx
+
+ -- Constant: SHA3_512_DIGEST_SIZE
+ The size of a SHA3_512 digest, i.e. 64.
+
+ -- Constant: SHA3_512_BLOCK_SIZE
+ The internal block size of SHA3_512.
+
+ -- Function: void sha3_512_init (struct sha3_512_ctx *CTX)
+ Initialize the SHA3-512 state.
+
+ -- Function: void sha3_512_update (struct sha3_512_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha3_512_digest (struct sha3_512_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA3_512_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context.
+
+7.1.1.9 SHAKE
+.............
+
+In addition to those SHA-3 hash functions, Nettle also supports a SHA-3
+extendable-output function (XOF) called SHAKE. Unlike hash functions,
+SHAKE can produce an output digest of any desired length. There are two
+variants, SHAKE-128 and SHAKE-256, with different security strengths in
+terms of collision or preimage resistance: SHAKE-128 internally uses a
+SHA-3 hash function with 128-bit security, while SHAKE-256 corresponds
+to SHA3-256 which provides 256-bit security.
+
+ To use SHAKE, the context struct needs to be initialized with the
+‘init’ function and data is hashed using the ‘update’ function.
+Afterwards, a digest can be generated using either the ‘shake’ or
+‘shake_ouput’ function, where the former generates the digest at once
+and resets the context, while the latter can be called multiple times to
+generate the digest in an incremental manner.
+
+ For SHAKE-128 they are defined as follows.
+
+ -- Context struct: struct sha3_128_ctx
+
+ -- Function: void sha3_128_init (struct sha3_128_ctx *CTX)
+ Initialize the SHA3-256 state.
+
+ -- Function: void sha3_128_update (struct sha3_128_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha3_128_shake (struct sha3_128_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and produces a SHAKE-128 digest, writing
+ it to DIGEST. LENGTH can be of arbitrary size.
+
+ This function also resets the context.
+
+ -- Function: void sha3_128_shake_output (struct sha3_128_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Performs final processing and produces a SHAKE-128 digest, writing
+ it to DIGEST. LENGTH can be of arbitrary size.
+
+ This function does not reset the context.
+
+ For SHAKE-256, the corresponding context struct and the ‘init’ and
+‘update’ functions are the same as SHA3-256. To generate a digest, use
+either the ‘shake’ or ‘shake_output’ function.
+
+ -- Function: void sha3_256_shake (struct sha3_256_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and produces a SHAKE-256 digest, writing
+ it to DIGEST. LENGTH can be of arbitrary size.
+
+ This function also resets the context.
+
+ -- Function: void sha3_256_shake_output (struct sha3_256_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Performs final processing and produces a SHAKE-256 digest, writing
+ it to DIGEST. LENGTH can be of arbitrary size.
+
+ This function does not reset the context.
+
+
+File: nettle.info, Node: Miscellaneous hash functions, Next: Legacy hash functions, Prev: Recommended hash functions, Up: Hash functions
+
+7.1.2 Miscellaneous hash functions
+----------------------------------
+
+7.1.2.1 STREEBOG512
+...................
+
+STREEBOG512 is a member of the Streebog (GOST R 34.11-2012) family. It
+outputs hash values of 512 bits, or 64 octets. Nettle defines
+STREEBOG512 in ‘<nettle/streebog.h>’.
+
+ -- Context struct: struct streebog512_ctx
+
+ -- Constant: STREEBOG512_DIGEST_SIZE
+ The size of a STREEBOG512 digest, i.e. 64.
+
+ -- Constant: STREEBOG512_BLOCK_SIZE
+ The internal block size of STREEBOG512. Useful for some special
+ constructions, in particular HMAC-STREEBOG512.
+
+ -- Function: void streebog512_init (struct streebog512_ctx *CTX)
+ Initialize the STREEBOG512 state.
+
+ -- Function: void streebog512_update (struct streebog512_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void streebog512_digest (struct streebog512_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than
+ ‘STREEBOG512_DIGEST_SIZE’, in which case only the first LENGTH
+ octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘streebog512_init’.
+
+7.1.2.2 STREEBOG256
+...................
+
+STREEBOG256 is a variant of STREEBOG512, with a different initial state,
+and with the output truncated to 256 bits, or 32 octets. Nettle defines
+STREEBOG256 in ‘<nettle/streebog.h>’.
+
+ -- Context struct: struct streebog256_ctx
+
+ -- Constant: STREEBOG256_DIGEST_SIZE
+ The size of a STREEBOG256 digest, i.e. 32.
+
+ -- Constant: STREEBOG256_BLOCK_SIZE
+ The internal block size of STREEBOG256. Useful for some special
+ constructions, in particular HMAC-STREEBOG256.
+
+ -- Function: void streebog256_init (struct streebog256_ctx *CTX)
+ Initialize the STREEBOG256 state.
+
+ -- Function: void streebog256_update (struct streebog256_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void streebog256_digest (struct streebog256_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than
+ ‘STREEBOG256_DIGEST_SIZE’, in which case only the first LENGTH
+ octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘streebog256_init’.
+
+7.1.2.3 SM3
+...........
+
+SM3 is a cryptographic hash function standard adopted by the government
+of the People’s Republic of China, which was issued by the Cryptography
+Standardization Technical Committee of China on December 17, 2010. The
+corresponding standard is GM/T 0004-2012 "SM3 Cryptographic Hash
+Algorithm".
+
+ SM3 algorithm is a hash algorithm in ShangMi cryptosystems. SM3 is
+mainly used for digital signature and verification, message
+authentication code generation and verification, random number
+generation, and the RFC 8998 specification defines the usage of ShangMi
+algorithm suite in TLS 1.3, etc. According to the State Cryptography
+Administration of China, its security and efficiency are equivalent to
+SHA-256.
+
+ Nettle defines SM3 in ‘<nettle/sm3.h>’.
+
+ -- Context struct: struct sm3_ctx
+
+ -- Constant: SM3_DIGEST_SIZE
+ The size of a SM3 digest, i.e. 32.
+
+ -- Constant: SM3_BLOCK_SIZE
+ The internal block size of SM3. Useful for some special
+ constructions, in particular HMAC-SM3.
+
+ -- Function: void sm3_init (struct sm3_ctx *CTX)
+ Initialize the SM3 state.
+
+ -- Function: void sm3_update (struct sm3_ctx *CTX, size_t LENGTH, const
+ uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sm3_digest (struct sm3_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SM3_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘sm3_init’.
+
+
+File: nettle.info, Node: Legacy hash functions, Next: nettle_hash abstraction, Prev: Miscellaneous hash functions, Up: Hash functions
+
+7.1.3 Legacy hash functions
+---------------------------
+
+The hash functions in this section all have some known weaknesses, and
+should be avoided for new applications. These hash functions are mainly
+useful for compatibility with old applications and protocols. Some are
+still considered safe as building blocks for particular constructions,
+e.g., there seems to be no known attacks against HMAC-SHA1 or even
+HMAC-MD5. In some important cases, use of a “legacy” hash function does
+not in itself make the application insecure; if a known weakness is
+relevant depends on how the hash function is used, and on the threat
+model.
+
+7.1.3.1 MD5
+...........
+
+MD5 is a message digest function constructed by Ronald Rivest, and
+described in ‘RFC 1321’. It outputs message digests of 128 bits, or 16
+octets. Nettle defines MD5 in ‘<nettle/md5.h>’.
+
+ -- Context struct: struct md5_ctx
+
+ -- Constant: MD5_DIGEST_SIZE
+ The size of an MD5 digest, i.e. 16.
+
+ -- Constant: MD5_BLOCK_SIZE
+ The internal block size of MD5. Useful for some special
+ constructions, in particular HMAC-MD5.
+
+ -- Function: void md5_init (struct md5_ctx *CTX)
+ Initialize the MD5 state.
+
+ -- Function: void md5_update (struct md5_ctx *CTX, size_t LENGTH, const
+ uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void md5_digest (struct md5_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘MD5_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘md5_init’.
+
+ -- Function: void md5_compress (const uint32_t *STATE, uint8_t *INPUT)
+ Perform a raw MD5 compress on MD5_BLOCK_SIZE bytes from INPUT using
+ STATE as IV (an array of 4 uint32_t). The output is stored in
+ STATE. This function provides access to the underlying compression
+ function, for the rare applications that need that (e.g., using
+ different IV from standard MD5).
+
+ The normal way to use MD5 is to call the functions in order: First
+‘md5_init’, then ‘md5_update’ zero or more times, and finally
+‘md5_digest’. After ‘md5_digest’, the context is reset to its initial
+state, so you can start over calling ‘md5_update’ to hash new data.
+
+ To start over, you can call ‘md5_init’ at any time.
+
+7.1.3.2 MD2
+...........
+
+MD2 is another hash function of Ronald Rivest’s, described in ‘RFC
+1319’. It outputs message digests of 128 bits, or 16 octets. Nettle
+defines MD2 in ‘<nettle/md2.h>’.
+
+ -- Context struct: struct md2_ctx
+
+ -- Constant: MD2_DIGEST_SIZE
+ The size of an MD2 digest, i.e. 16.
+
+ -- Constant: MD2_BLOCK_SIZE
+ The internal block size of MD2.
+
+ -- Function: void md2_init (struct md2_ctx *CTX)
+ Initialize the MD2 state.
+
+ -- Function: void md2_update (struct md2_ctx *CTX, size_t LENGTH, const
+ uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void md2_digest (struct md2_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘MD2_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘md2_init’.
+
+7.1.3.3 MD4
+...........
+
+MD4 is a predecessor of MD5, described in ‘RFC 1320’. Like MD5, it is
+constructed by Ronald Rivest. It outputs message digests of 128 bits,
+or 16 octets. Nettle defines MD4 in ‘<nettle/md4.h>’. Use of MD4 is
+not recommended, but it is sometimes needed for compatibility with
+existing applications and protocols.
+
+ -- Context struct: struct md4_ctx
+
+ -- Constant: MD4_DIGEST_SIZE
+ The size of an MD4 digest, i.e. 16.
+
+ -- Constant: MD4_BLOCK_SIZE
+ The internal block size of MD4.
+
+ -- Function: void md4_init (struct md4_ctx *CTX)
+ Initialize the MD4 state.
+
+ -- Function: void md4_update (struct md4_ctx *CTX, size_t LENGTH, const
+ uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void md4_digest (struct md4_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘MD4_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘md4_init’.
+
+7.1.3.4 RIPEMD160
+.................
+
+RIPEMD160 is a hash function designed by Hans Dobbertin, Antoon
+Bosselaers, and Bart Preneel, as a strengthened version of RIPEMD
+(which, like MD4 and MD5, fails the collision-resistance requirement).
+It produces message digests of 160 bits, or 20 octets. Nettle defined
+RIPEMD160 in ‘nettle/ripemd160.h’.
+
+ -- Context struct: struct ripemd160_ctx
+
+ -- Constant: RIPEMD160_DIGEST_SIZE
+ The size of a RIPEMD160 digest, i.e. 20.
+
+ -- Constant: RIPEMD160_BLOCK_SIZE
+ The internal block size of RIPEMD160.
+
+ -- Function: void ripemd160_init (struct ripemd160_ctx *CTX)
+ Initialize the RIPEMD160 state.
+
+ -- Function: void ripemd160_update (struct ripemd160_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void ripemd160_digest (struct ripemd160_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘RIPEMD160_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context in the same way as
+ ‘ripemd160_init’.
+
+7.1.3.5 SHA1
+............
+
+SHA1 is a hash function specified by “NIST” (The U.S. National Institute
+for Standards and Technology). It outputs hash values of 160 bits, or
+20 octets. Nettle defines SHA1 in ‘<nettle/sha1.h>’ (and in
+‘<nettle/sha.h>’, for backwards compatibility).
+
+ -- Context struct: struct sha1_ctx
+
+ -- Constant: SHA1_DIGEST_SIZE
+ The size of a SHA1 digest, i.e. 20.
+
+ -- Constant: SHA1_BLOCK_SIZE
+ The internal block size of SHA1. Useful for some special
+ constructions, in particular HMAC-SHA1.
+
+ -- Function: void sha1_init (struct sha1_ctx *CTX)
+ Initialize the SHA1 state.
+
+ -- Function: void sha1_update (struct sha1_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void sha1_digest (struct sha1_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘SHA1_DIGEST_SIZE’, in
+ which case only the first LENGTH octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘sha1_init’.
+
+ -- Function: void sha1_compress (const uint32_t *STATE, uint8_t *INPUT)
+ Perform a raw SHA1 compress on SHA1_BLOCK_SIZE bytes from INPUT
+ using STATE as IV (an array of 5 uint32_t). The output is stored
+ in STATE. This function provides access to the underlying
+ compression function, for the rare applications that need that
+ (e.g., using different IV from standard SHA1).
+
+7.1.3.6 GOSTHASH94 and GOSTHASH94CP
+...................................
+
+The GOST94 or GOST R 34.11-94 hash algorithm is a Soviet-era algorithm
+used in Russian government standards (see ‘RFC 4357’). It outputs
+message digests of 256 bits, or 32 octets. The standard itself does not
+fix the S-box used by the hash algorith, so there are two popular
+variants (the testing S-box from the standard itself and the S-box
+defined by CryptoPro company, see RFC 4357). Nettle provides support
+for the former S-box in the form of GOSTHASH94 hash algorithm and for
+the latter in the form of GOSTHASH94CP hash algorithm. Nettle defines
+GOSTHASH94 and GOSTHASH94CP in ‘<nettle/gosthash94.h>’.
+
+ -- Context struct: struct gosthash94_ctx
+
+ -- Constant: GOSTHASH94_DIGEST_SIZE
+ The size of a GOSTHASH94 digest, i.e. 32.
+
+ -- Constant: GOSTHASH94_BLOCK_SIZE
+ The internal block size of GOSTHASH94, i.e., 32.
+
+ -- Function: void gosthash94_init (struct gosthash94_ctx *CTX)
+ Initialize the GOSTHASH94 state.
+
+ -- Function: void gosthash94_update (struct gosthash94_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void gosthash94_digest (struct gosthash94_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than ‘GOSTHASH94_DIGEST_SIZE’,
+ in which case only the first LENGTH octets of the digest are
+ written.
+
+ This function also resets the context in the same way as
+ ‘gosthash94_init’.
+
+ -- Context struct: struct gosthash94cp_ctx
+
+ -- Constant: GOSTHASH94CP_DIGEST_SIZE
+ The size of a GOSTHASH94CP digest, i.e. 32.
+
+ -- Constant: GOSTHASH94CP_BLOCK_SIZE
+ The internal block size of GOSTHASH94CP, i.e., 32.
+
+ -- Function: void gosthash94cp_init (struct gosthash94cp_ctx *CTX)
+ Initialize the GOSTHASH94CP state.
+
+ -- Function: void gosthash94cp_update (struct gosthash94cp_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Hash some more data.
+
+ -- Function: void gosthash94cp_digest (struct gosthash94cp_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Performs final processing and extracts the message digest, writing
+ it to DIGEST. LENGTH may be smaller than
+ ‘GOSTHASH94CP_DIGEST_SIZE’, in which case only the first LENGTH
+ octets of the digest are written.
+
+ This function also resets the context in the same way as
+ ‘gosthash94cp_init’.
+
+
+File: nettle.info, Node: nettle_hash abstraction, Prev: Legacy hash functions, Up: Hash functions
+
+7.1.4 The ‘struct nettle_hash’ abstraction
+------------------------------------------
+
+Nettle includes a struct including information about the supported hash
+functions. It is defined in ‘<nettle/nettle-meta.h>’, and is used by
+Nettle’s implementation of HMAC (*note Keyed hash functions::).
+
+ -- Meta struct: struct nettle_hash name context_size digest_size
+ block_size init update digest
+ The last three attributes are function pointers, of types
+ ‘nettle_hash_init_func *’, ‘nettle_hash_update_func *’, and
+ ‘nettle_hash_digest_func *’. The first argument to these functions
+ is ‘void *’ pointer to a context struct, which is of size
+ ‘context_size’.
+
+ -- Constant Struct: struct nettle_hash nettle_md2
+ -- Constant Struct: struct nettle_hash nettle_md4
+ -- Constant Struct: struct nettle_hash nettle_md5
+ -- Constant Struct: struct nettle_hash nettle_ripemd160
+ -- Constant Struct: struct nettle_hash nettle_sha1
+ -- Constant Struct: struct nettle_hash nettle_sha224
+ -- Constant Struct: struct nettle_hash nettle_sha256
+ -- Constant Struct: struct nettle_hash nettle_sha384
+ -- Constant Struct: struct nettle_hash nettle_sha512
+ -- Constant Struct: struct nettle_hash nettle_sha3_256
+ -- Constant Struct: struct nettle_hash nettle_gosthash94
+ -- Constant Struct: struct nettle_hash nettle_gosthash94cp
+ -- Constant Struct: struct nettle_hash nettle_sm3
+ These are all the hash functions that Nettle implements.
+
+ Nettle also exports a list of all these hashes.
+
+ -- Function: const struct nettle_hash ** nettle_get_hashes (void)
+ Returns a NULL-terminated list of pointers to supported hash
+ functions. This list can be used to dynamically enumerate or
+ search the supported algorithms.
+
+ -- Macro: nettle_hashes
+ A macro expanding to a call to nettle_get_hashes, so that one could
+ write, e.g., ‘nettle_hashes[0]->name’ for the name of the first
+ hash function on the list. In earlier versions, this was not a
+ macro but the actual array of pointers. However, referring
+ directly to the array makes the array size leak into the ABI in
+ some cases.
+
+
+File: nettle.info, Node: Cipher functions, Next: Cipher modes, Prev: Hash functions, Up: Reference
+
+7.2 Cipher functions
+====================
+
+A “cipher” is a function that takes a message or “plaintext” and a
+secret “key” and transforms it to a “ciphertext”. Given only the
+ciphertext, but not the key, it should be hard to find the plaintext.
+Given matching pairs of plaintext and ciphertext, it should be hard to
+find the key.
+
+ There are two main classes of ciphers: Block ciphers and stream
+ciphers.
+
+ A block cipher can process data only in fixed size chunks, called
+“blocks”. Typical block sizes are 8 or 16 octets. To encrypt arbitrary
+messages, you usually have to pad it to an integral number of blocks,
+split it into blocks, and then process each block. The simplest way is
+to process one block at a time, independent of each other. That mode of
+operation is called “ECB”, Electronic Code Book mode. However, using
+ECB is usually a bad idea. For a start, plaintext blocks that are equal
+are transformed to ciphertext blocks that are equal; that leaks
+information about the plaintext. Usually you should apply the cipher is
+some “feedback mode”, “CBC” (Cipher Block Chaining) and “CTR” (Counter
+mode) being two of of the most popular. See *Note Cipher modes::, for
+information on how to apply CBC and CTR with Nettle.
+
+ A stream cipher can be used for messages of arbitrary length. A
+typical stream cipher is a keyed pseudo-random generator. To encrypt a
+plaintext message of N octets, you key the generator, generate N octets
+of pseudo-random data, and XOR it with the plaintext. To decrypt,
+regenerate the same stream using the key, XOR it to the ciphertext, and
+the plaintext is recovered.
+
+ *Caution:* The first rule for this kind of cipher is the same as for
+a One Time Pad: _never_ ever use the same key twice.
+
+ A common misconception is that encryption, by itself, implies
+authentication. Say that you and a friend share a secret key, and you
+receive an encrypted message. You apply the key, and get a plaintext
+message that makes sense to you. Can you then be sure that it really
+was your friend that wrote the message you’re reading? The answer is
+no. For example, if you were using a block cipher in ECB mode, an
+attacker may pick up the message on its way, and reorder, delete or
+repeat some of the blocks. Even if the attacker can’t decrypt the
+message, he can change it so that you are not reading the same message
+as your friend wrote. If you are using a block cipher in CBC mode
+rather than ECB, or are using a stream cipher, the possibilities for
+this sort of attack are different, but the attacker can still make
+predictable changes to the message.
+
+ It is recommended to _always_ use an authentication mechanism in
+addition to encrypting the messages. Popular choices are Message
+Authentication Codes like HMAC-SHA1 (*note Keyed hash functions::), or
+digital signatures like RSA.
+
+ Some ciphers have so called “weak keys”, keys that results in
+undesirable structure after the key setup processing, and should be
+avoided. In Nettle, most key setup functions have no return value, but
+for ciphers with weak keys, the return value indicates whether or not
+the given key is weak. For good keys, key setup returns 1, and for weak
+keys, it returns 0. When possible, avoid algorithms that have weak
+keys. There are several good ciphers that don’t have any weak keys.
+
+ To encrypt a message, you first initialize a cipher context for
+encryption or decryption with a particular key. You then use the
+context to process plaintext or ciphertext messages. The initialization
+is known as “key setup”. With Nettle, it is recommended to use each
+context struct for only one direction, even if some of the ciphers use a
+single key setup function that can be used for both encryption and
+decryption.
+
+* Menu:
+
+* AES::
+* Arcfour::
+* Arctwo::
+* Blowfish::
+* Camellia::
+* CAST128::
+* ChaCha::
+* DES::
+* DES3::
+* Salsa20::
+* Serpent::
+* SM4::
+* Twofish::
+* nettle_cipher abstraction::
+
+
+File: nettle.info, Node: AES, Next: Arcfour, Up: Cipher functions
+
+7.2.1 AES
+---------
+
+AES is a block cipher, specified by NIST as a replacement for the older
+DES standard. The standard is the result of a competition between
+cipher designers. The winning design, also known as RIJNDAEL, was
+constructed by Joan Daemen and Vincent Rijnmen.
+
+ Like all the AES candidates, the winning design uses a block size of
+128 bits, or 16 octets, and three possible key-size, 128, 192 and 256
+bits (16, 24 and 32 octets) being the allowed key sizes. It does not
+have any weak keys. Nettle defines AES in ‘<nettle/aes.h>’, and there
+is one context struct for each key size. (Earlier versions of Nettle
+used a single context struct, ‘struct aes_ctx’, for all key sizes. This
+interface kept for backwards compatibility).
+
+ -- Context struct: struct aes128_ctx
+ -- Context struct: struct aes192_ctx
+ -- Context struct: struct aes256_ctx
+
+ -- Context struct: struct aes_ctx
+ Alternative struct, for the old AES interface.
+
+ -- Constant: AES_BLOCK_SIZE
+ The AES block-size, 16.
+
+ -- Constant: AES128_KEY_SIZE
+ -- Constant: AES192_KEY_SIZE
+ -- Constant: AES256_KEY_SIZE
+ -- Constant: AES_MIN_KEY_SIZE
+ -- Constant: AES_MAX_KEY_SIZE
+
+ -- Constant: AES_KEY_SIZE
+ Default AES key size, 32.
+
+ -- Function: void aes128_set_encrypt_key (struct aes128_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes128_set_decrypt_key (struct aes128_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes192_set_encrypt_key (struct aes192_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes192_set_decrypt_key (struct aes192_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes256_set_encrypt_key (struct aes256_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes256_set_decrypt_key (struct aes256_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void aes_set_encrypt_key (struct aes_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ -- Function: void aes_set_decrypt_key (struct aes_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher, for encryption or decryption, respectively.
+
+ -- Function: void aes128_invert_key (struct aes128_ctx *DST, const
+ struct aes128_ctx *SRC)
+ -- Function: void aes192_invert_key (struct aes192_ctx *DST, const
+ struct aes192_ctx *SRC)
+ -- Function: void aes256_invert_key (struct aes256_ctx *DST, const
+ struct aes256_ctx *SRC)
+ -- Function: void aes_invert_key (struct aes_ctx *DST, const struct
+ aes_ctx *SRC)
+ Given a context SRC initialized for encryption, initializes the
+ context struct DST for decryption, using the same key. If the same
+ context struct is passed for both ‘src’ and ‘dst’, it is converted
+ in place. These functions are mainly useful for applications which
+ needs to both encrypt and decrypt using the _same_ key, because
+ calling, e.g., ‘aes128_set_encrypt_key’ and ‘aes128_invert_key’, is
+ more efficient than calling ‘aes128_set_encrypt_key’ and
+ ‘aes128_set_decrypt_key’.
+
+ -- Function: void aes128_encrypt (struct aes128_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes192_encrypt (struct aes192_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes256_encrypt (struct aes256_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes_encrypt (struct aes_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void aes128_decrypt (struct aes128_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes192_decrypt (struct aes192_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes256_decrypt (struct aes256_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void aes_decrypt (struct aes_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Analogous to the encryption functions above.
+
+
+File: nettle.info, Node: Arcfour, Next: Arctwo, Prev: AES, Up: Cipher functions
+
+7.2.2 Arcfour
+-------------
+
+ARCFOUR is a historic stream cipher, also known under the trade marked
+name RC4, and was a widely used fast stream cipher.
+
+ We do not recommend the use of ARCFOUR; the Nettle implementation is
+provided primarily for interoperability with existing applications and
+standards.
+
+ One problem is that the key setup of ARCFOUR is quite weak, you
+should never use keys with structure, keys that are ordinary passwords,
+or sequences of keys like “secret:1”, “secret:2”, .... If you have keys
+that don’t look like random bit strings, and you want to use ARCFOUR,
+always hash the key before feeding it to ARCFOUR.
+
+ Another problem is that the output is distinguishable from random
+data, and that the initial bytes of the generated key stream leak
+information about the key; for this reason, it was sometimes recommended
+to discard the first 512, 768 or 1024 bytes of the key stream.
+
+ /* A more robust key setup function for ARCFOUR */
+ void
+ arcfour_set_key_hashed(struct arcfour_ctx *ctx,
+ size_t length, const uint8_t *key)
+ {
+ struct sha256_ctx hash;
+ uint8_t digest[SHA256_DIGEST_SIZE];
+ uint8_t buffer[0x200];
+
+ sha256_init(&hash);
+ sha256_update(&hash, length, key);
+ sha256_digest(&hash, SHA256_DIGEST_SIZE, digest);
+
+ arcfour_set_key(ctx, SHA256_DIGEST_SIZE, digest);
+ arcfour_crypt(ctx, sizeof(buffer), buffer, buffer);
+ }
+
+ Nettle defines ARCFOUR in ‘<nettle/arcfour.h>’.
+
+ -- Context struct: struct arcfour_ctx
+
+ -- Constant: ARCFOUR_MIN_KEY_SIZE
+ Minimum key size, 1.
+
+ -- Constant: ARCFOUR_MAX_KEY_SIZE
+ Maximum key size, 256.
+
+ -- Constant: ARCFOUR_KEY_SIZE
+ Default ARCFOUR key size, 16.
+
+ -- Function: void arcfour_set_key (struct arcfour_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption.
+
+ -- Function: void arcfour_crypt (struct arcfour_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypt some data. The same function is used for both encryption
+ and decryption. Unlike the block ciphers, this function modifies
+ the context, so you can split the data into arbitrary chunks and
+ encrypt them one after another. The result is the same as if you
+ had called ‘arcfour_crypt’ only once with all the data.
+
+
+File: nettle.info, Node: Arctwo, Next: Blowfish, Prev: Arcfour, Up: Cipher functions
+
+7.2.3 Arctwo
+------------
+
+ARCTWO (also known as the trade marked name RC2) is a block cipher
+specified in RFC 2268. Nettle also include a variation of the ARCTWO
+set key operation that lack one step, to be compatible with the reverse
+engineered RC2 cipher description, as described in a Usenet post to
+‘sci.crypt’ by Peter Gutmann.
+
+ ARCTWO uses a block size of 64 bits, and variable key-size ranging
+from 1 to 128 octets. Besides the key, ARCTWO also has a second
+parameter to key setup, the number of effective key bits, ‘ekb’. This
+parameter can be used to artificially reduce the key size. In practice,
+‘ekb’ is usually set equal to the input key size. Nettle defines ARCTWO
+in ‘<nettle/arctwo.h>’.
+
+ We do not recommend the use of ARCTWO; the Nettle implementation is
+provided primarily for interoperability with existing applications and
+standards.
+
+ -- Context struct: struct arctwo_ctx
+
+ -- Constant: ARCTWO_BLOCK_SIZE
+ The ARCTWO block-size, 8.
+
+ -- Constant: ARCTWO_MIN_KEY_SIZE
+
+ -- Constant: ARCTWO_MAX_KEY_SIZE
+
+ -- Constant: ARCTWO_KEY_SIZE
+ Default ARCTWO key size, 8.
+
+ -- Function: void arctwo_set_key_ekb (struct arctwo_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY, unsigned EKB)
+ -- Function: void arctwo_set_key (struct arctwo_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ -- Function: void arctwo_set_key_gutmann (struct arctwo_ctx *CTX,
+ size_t LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. The first function is the most general
+ one, which lets you provide both the variable size key, and the
+ desired effective key size (in bits). The maximum value for EKB is
+ 1024, and for convenience, ‘ekb = 0’ has the same effect as ‘ekb =
+ 1024’.
+
+ ‘arctwo_set_key(ctx, length, key)’ is equivalent to
+ ‘arctwo_set_key_ekb(ctx, length, key, 8*length)’, and
+ ‘arctwo_set_key_gutmann(ctx, length, key)’ is equivalent to
+ ‘arctwo_set_key_ekb(ctx, length, key, 1024)’
+
+ -- Function: void arctwo_encrypt (struct arctwo_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void arctwo_decrypt (struct arctwo_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘arctwo_encrypt’
+
+
+File: nettle.info, Node: Blowfish, Next: Camellia, Prev: Arctwo, Up: Cipher functions
+
+7.2.4 Blowfish
+--------------
+
+BLOWFISH is a block cipher designed by Bruce Schneier. It uses a block
+size of 64 bits (8 octets), and a variable key size, up to 448 bits. It
+has some weak keys. Nettle defines BLOWFISH in ‘<nettle/blowfish.h>’.
+
+ -- Context struct: struct blowfish_ctx
+
+ -- Constant: BLOWFISH_BLOCK_SIZE
+ The BLOWFISH block-size, 8.
+
+ -- Constant: BLOWFISH_MIN_KEY_SIZE
+ Minimum BLOWFISH key size, 8.
+
+ -- Constant: BLOWFISH_MAX_KEY_SIZE
+ Maximum BLOWFISH key size, 56.
+
+ -- Constant: BLOWFISH_KEY_SIZE
+ Default BLOWFISH key size, 16.
+
+ -- Function: int blowfish_set_key (struct blowfish_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. Checks for weak keys, returning 1 for
+ good keys and 0 for weak keys. Applications that don’t care about
+ weak keys can ignore the return value.
+
+ ‘blowfish_encrypt’ or ‘blowfish_decrypt’ with a weak key will crash
+ with an assert violation.
+
+ -- Function: void blowfish_encrypt (struct blowfish_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void blowfish_decrypt (struct blowfish_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘blowfish_encrypt’
+
+ -- Function: int blowfish_bcrypt_hash (char *DST, size_t LENKEY, const
+ char *KEY, size_t LENSCHEME, const char *SCHEME, int
+ LOG2ROUNDS, const uint8_t *SALT)
+ Compute the bcrypt password hash. The function will return ‘0’ if
+ the hash cannot be computed due to invalid input. The function
+ will return ‘1’ and store the computed hash in the array pointed to
+ by DST. The hash is computed based on the chosen SCHEME, number of
+ rounds LOG2ROUNDS and specified SALT.
+
+ DST must point to a character array of at least
+ ‘BLOWFISH_BCRYPT_HASH_SIZE’ bytes.
+
+ KEY contains the plaintext password string of size LENKEY.
+
+ SCHEME is of size LENSCHEME and contains either just the chosen
+ scheme (valid schemes are: ‘2a’, ‘2b’, ‘2x’ or ‘2y’), or (the
+ prefix of) an existing hashed password (typically ‘$2b$10$...’).
+
+ LOG2ROUNDS contains the log2 of the number of encryption rounds
+ that must be used to compute the hash. If it is ‘-1’ the value
+ will be extracted from SCHEME.
+
+ SALT should point to an array of ‘BLOWFISH_BCRYPT_BINSALT_SIZE’
+ random bytes to be used to perturb the hash computation. If it is
+ ‘NULL’ the salt will be extracted from SCHEME.
+
+ Sample code to generate a bcrypt hash:
+ char password[] = "ExamplePassword";
+ char scheme[] = "2b";
+ uint8_t salt[BLOWFISH_BCRYPT_BINSALT_SIZE];
+ ...
+ /* Make sure that salt is filled with random bytes */
+ ...
+ char hash[BLOWFISH_BCRYPT_HASH_SIZE];
+ int result = blowfish_bcrypt(hash,
+ sizeof(password) - 1, password,
+ sizeof(scheme) - 1, scheme, 10, salt);
+ if (result)
+ printf("%s\n", hash);
+
+ -- Function: int blowfish_bcrypt_verify (size_t LENKEY, const char
+ *KEY, size_t LENHASHED, const char *HASHED)
+ Verifies the bcrypt password hash against the supplied plaintext
+ password. The function will return ‘0’ if the password does not
+ match. The function will return ‘1’ if the password matches.
+
+ KEY contains the plaintext password string of size LENKEY.
+
+ HASHED contains the hashed string of size LENHASHED to compare
+ with.
+
+ Sample code to verify a bcrypt hash:
+ char password[] = "ExamplePassword";
+ char hash[] =
+ "$2y$" /* Hash algorithm version */
+ "10" /* 2^10 hash rounds (strength) */
+ "$" /* separator */
+ "1b2lPgo4XumibnJGN3r3sO" /* base64 encoded 16-byte salt */
+ "u7wE7xNfYDKlAxZffJDCJdVfFTAyevu"; /* Hashedpart */
+ if (blowfish_bcrypt_verify(sizeof(password) - 1, password,
+ sizeof(hash) - 1, hash))
+ printf("Password is correct.");
+ else
+ printf("Password is incorrect.");
+
+
+File: nettle.info, Node: Camellia, Next: CAST128, Prev: Blowfish, Up: Cipher functions
+
+7.2.5 Camellia
+--------------
+
+Camellia is a block cipher developed by Mitsubishi and Nippon Telegraph
+and Telephone Corporation, described in ‘RFC3713’. It is recommended by
+some Japanese and European authorities as an alternative to AES, and it
+is one of the selected algorithms in the New European Schemes for
+Signatures, Integrity and Encryption (NESSIE) project. The algorithm is
+patented. The implementation in Nettle is derived from the
+implementation released by NTT under the GNU LGPL (v2.1 or later), and
+relies on the implicit patent license of the LGPL. There is also a
+statement of royalty-free licensing for Camellia at
+<https://www.ntt.co.jp/news/news01e/0104/010417.html>, but this
+statement has some limitations which seem problematic for free software.
+
+ Camellia uses a the same block size and key sizes as AES: The block
+size is 128 bits (16 octets), and the supported key sizes are 128, 192,
+and 256 bits. The variants with 192 and 256 bit keys are identical,
+except for the key setup. Nettle defines Camellia in
+‘<nettle/camellia.h>’, and there is one context struct for each key
+size. (Earlier versions of Nettle used a single context struct, ‘struct
+camellia_ctx’, for all key sizes. This interface kept for backwards
+compatibility).
+
+ -- Context struct: struct camellia128_ctx
+ -- Context struct: struct camellia192_ctx
+ -- Context struct: struct camellia256_ctx
+ Contexts structs. Actually, ‘camellia192_ctx’ is an alias for
+ ‘camellia256_ctx’.
+
+ -- Context struct: struct camellia_ctx
+ Alternative struct, for the old Camellia interface.
+
+ -- Constant: CAMELLIA_BLOCK_SIZE
+ The CAMELLIA block-size, 16.
+
+ -- Constant: CAMELLIA128_KEY_SIZE
+ -- Constant: CAMELLIA192_KEY_SIZE
+ -- Constant: CAMELLIA256_KEY_SIZE
+ -- Constant: CAMELLIA_MIN_KEY_SIZE
+ -- Constant: CAMELLIA_MAX_KEY_SIZE
+
+ -- Constant: CAMELLIA_KEY_SIZE
+ Default CAMELLIA key size, 32.
+
+ -- Function: void camellia128_set_encrypt_key (struct camellia128_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia128_set_decrypt_key (struct camellia128_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia192_set_encrypt_key (struct camellia192_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia192_set_decrypt_key (struct camellia192_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia256_set_encrypt_key (struct camellia256_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia256_set_decrypt_key (struct camellia256_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void camellia_set_encrypt_key (struct camellia_ctx *CTX,
+ size_t LENGTH, const uint8_t *KEY)
+ -- Function: void camellia_set_decrypt_key (struct camellia_ctx *CTX,
+ size_t LENGTH, const uint8_t *KEY)
+ Initialize the cipher, for encryption or decryption, respectively.
+
+ -- Function: void camellia128_invert_key (struct camellia128_ctx *DST,
+ const struct camellia128_ctx *SRC)
+ -- Function: void camellia192_invert_key (struct camellia192_ctx *DST,
+ const struct camellia192_ctx *SRC)
+ -- Function: void camellia256_invert_key (struct camellia256_ctx *DST,
+ const struct camellia256_ctx *SRC)
+ -- Function: void camellia_invert_key (struct camellia_ctx *DST, const
+ struct camellia_ctx *SRC)
+ Given a context SRC initialized for encryption, initializes the
+ context struct DST for decryption, using the same key. If the same
+ context struct is passed for both ‘src’ and ‘dst’, it is converted
+ in place. These functions are mainly useful for applications which
+ needs to both encrypt and decrypt using the _same_ key.
+
+ -- Function: void camellia128_crypt (struct camellia128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void camellia192_crypt (struct camellia192_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void camellia256_crypt (struct camellia256_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void camellia_crypt (struct camellia_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ The same function is used for both encryption and decryption.
+ LENGTH must be an integral multiple of the block size. If it is
+ more than one block, the data is processed in ECB mode. ‘src’ and
+ ‘dst’ may be equal, but they must not overlap in any other way.
+
+
+File: nettle.info, Node: CAST128, Next: ChaCha, Prev: Camellia, Up: Cipher functions
+
+7.2.6 CAST128
+-------------
+
+CAST-128 is a block cipher, specified in ‘RFC 2144’. It uses a 64 bit
+(8 octets) block size, and a key size of 128 bits. It is possible, but
+discouraged, to use the same algorithm with shorter keys. Nettle refers
+to the variant with variable key size as CAST-5. Keys for CAST-5 are
+zero padded to 128 bits, and with very short keys, less than 80 bits,
+encryption also uses fewer rounds than CAST128. Nettle defines cast128
+in ‘<nettle/cast128.h>’.
+
+ -- Context struct: struct cast128_ctx
+
+ -- Constant: CAST128_BLOCK_SIZE
+ The CAST128 block-size, 8.
+
+ -- Constant: CAST128_KEY_SIZE
+ The CAST128 key size, 16.
+
+ -- Constant: CAST5_MIN_KEY_SIZE
+ Minimum CAST5 key size, 5.
+
+ -- Constant: CAST5_MAX_KEY_SIZE
+ Maximum CAST5 key size, 16. With 16 octets key (128 bits), CAST-5
+ is the same as CAST-128.
+
+ -- Function: void cast128_set_key (struct cast128_ctx *CTX, const
+ uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption.
+
+ -- Function: void cast128_encrypt (struct cast128_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void cast128_decrypt (struct cast128_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘cast128_encrypt’
+
+ -- Function: void cast5_set_key (struct cast128_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. This variant of the key setup takes the key
+ size as argument. The same function is used for both encryption
+ and decryption.
+
+
+File: nettle.info, Node: ChaCha, Next: DES, Prev: CAST128, Up: Cipher functions
+
+7.2.7 ChaCha
+------------
+
+ChaCha is a variant of the stream cipher Salsa20 (*note Salsa20::),
+below, also designed by D. J. Bernstein. Nettle defines ChaCha in
+‘<nettle/chacha.h>’.
+
+ -- Context struct: struct chacha_ctx
+
+ -- Constant: CHACHA_KEY_SIZE
+ ChaCha key size, 32.
+
+ -- Constant: CHACHA_BLOCK_SIZE
+ ChaCha block size, 64.
+
+ -- Constant: CHACHA_NONCE_SIZE
+ Size of the nonce, 8.
+
+ -- Constant: CHACHA_COUNTER_SIZE
+ Size of the counter, 8.
+
+ -- Function: void chacha_set_key (struct chacha_ctx *CTX, const uint8_t
+ *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. Before using the cipher, you _must_
+ also call ‘chacha_set_nonce’, see below.
+
+ -- Function: void chacha_set_nonce (struct chacha_ctx *CTX, const
+ uint8_t *NONCE)
+ Sets the nonce. It is always of size ‘CHACHA_NONCE_SIZE’, 8
+ octets. This function also initializes the block counter, setting
+ it to zero.
+
+ -- Function: void chacha_set_counter (struct chacha_ctx *CTX, const
+ uint8_t *COUNTER)
+ Sets the block counter. It is always of size
+ ‘CHACHA_COUNTER_SIZE’, 8 octets. This is rarely needed since
+ ‘chacha_set_nonce’ initializes the block counter to zero. When it
+ is still necessary, this function must be called after
+ ‘chacha_set_nonce’.
+
+ -- Function: void chacha_crypt (struct chacha_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message, using ChaCha. When a
+ message is encrypted using a sequence of calls to ‘chacha_crypt’,
+ all but the last call _must_ use a length that is a multiple of
+ ‘CHACHA_BLOCK_SIZE’.
+
+7.2.7.1 32-bit counter variant
+..............................
+
+While the original paper uses 64-bit counter value, the variant defined
+in ‘RFC 8439’ uses 32-bit counter value. This variant is particularly
+useful for *note ChaCha-Poly1305:: AEAD construction, which supports
+12-octet nonces.
+
+ -- Constant: CHACHA_NONCE96_SIZE
+ Size of the nonce, 12.
+
+ -- Constant: CHACHA_COUNTER32_SIZE
+ Size of the counter, 4.
+
+ -- Function: void chacha_set_nonce96 (struct chacha_ctx *CTX, const
+ uint8_t *NONCE)
+ Sets the nonce. This is similar to the above ‘chacha_set_nonce’,
+ but the input is always of size ‘CHACHA_NONCE96_SIZE’, 12 octets.
+
+ -- Function: void chacha_set_counter32 (struct chacha_ctx *CTX, const
+ uint8_t *COUNTER)
+ Sets the block counter. This is similar to the above
+ ‘chacha_set_counter’, but the input is always of size
+ ‘CHACHA_COUNTER32_SIZE’, 4 octets.
+
+ -- Function: void chacha_crypt32 (struct chacha_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message, using ChaCha. This is
+ similar to the above ‘chacha_crypt’, but it assumes the internal
+ counter value is 32-bit long and the nonce is 96-bit long.
+
+
+File: nettle.info, Node: DES, Next: DES3, Prev: ChaCha, Up: Cipher functions
+
+7.2.8 DES
+---------
+
+DES is the old Data Encryption Standard, specified by NIST. It uses a
+block size of 64 bits (8 octets), and a key size of 56 bits. However,
+the key bits are distributed over 8 octets, where the least significant
+bit of each octet may be used for parity. A common way to use DES is to
+generate 8 random octets in some way, then set the least significant bit
+of each octet to get odd parity, and initialize DES with the resulting
+key.
+
+ The key size of DES is so small that keys can be found by brute
+force, using specialized hardware or lots of ordinary work stations in
+parallel. One shouldn’t be using plain DES at all today, if one uses
+DES at all one should be using “triple DES”, see DES3 below.
+
+ DES also has some weak keys. Nettle defines DES in ‘<nettle/des.h>’.
+
+ -- Context struct: struct des_ctx
+
+ -- Constant: DES_BLOCK_SIZE
+ The DES block-size, 8.
+
+ -- Constant: DES_KEY_SIZE
+ DES key size, 8.
+
+ -- Function: int des_set_key (struct des_ctx *CTX, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. Parity bits are ignored. Checks for
+ weak keys, returning 1 for good keys and 0 for weak keys.
+ Applications that don’t care about weak keys can ignore the return
+ value.
+
+ -- Function: void des_encrypt (struct des_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void des_decrypt (struct des_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘des_encrypt’
+
+ -- Function: int des_check_parity (size_t LENGTH, const uint8_t *KEY)
+ Checks that the given key has correct, odd, parity. Returns 1 for
+ correct parity, and 0 for bad parity.
+
+ -- Function: void des_fix_parity (size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ Adjusts the parity bits to match DES’s requirements. You need this
+ function if you have created a random-looking string by a key
+ agreement protocol, and want to use it as a DES key. DST and SRC
+ may be equal.
+
+
+File: nettle.info, Node: DES3, Next: Salsa20, Prev: DES, Up: Cipher functions
+
+7.2.9 DES3
+----------
+
+The inadequate key size of DES has already been mentioned. One way to
+increase the key size is to pipe together several DES boxes with
+independent keys. It turns out that using two DES ciphers is not as
+secure as one might think, even if the key size of the combination is a
+respectable 112 bits.
+
+ The standard way to increase DES’s key size is to use three DES
+boxes. The mode of operation is a little peculiar: the middle DES box
+is wired in the reverse direction. To encrypt a block with DES3, you
+encrypt it using the first 56 bits of the key, then _decrypt_ it using
+the middle 56 bits of the key, and finally encrypt it again using the
+last 56 bits of the key. This is known as “ede” triple-DES, for
+“encrypt-decrypt-encrypt”.
+
+ The “ede” construction provides some backward compatibility, as you
+get plain single DES simply by feeding the same key to all three boxes.
+That should help keeping down the gate count, and the price, of hardware
+circuits implementing both plain DES and DES3.
+
+ DES3 has a key size of 168 bits, but just like plain DES, useless
+parity bits are inserted, so that keys are represented as 24 octets (192
+bits). As a 112 bit key is large enough to make brute force attacks
+impractical, some applications uses a “two-key” variant of triple-DES.
+In this mode, the same key bits are used for the first and the last DES
+box in the pipe, while the middle box is keyed independently. The
+two-key variant is believed to be secure, i.e. there are no known
+attacks significantly better than brute force.
+
+ Naturally, it’s simple to implement triple-DES on top of Nettle’s DES
+functions. Nettle includes an implementation of three-key “ede”
+triple-DES, it is defined in the same place as plain DES,
+‘<nettle/des.h>’.
+
+ -- Context struct: struct des3_ctx
+
+ -- Constant: DES3_BLOCK_SIZE
+ The DES3 block-size is the same as DES_BLOCK_SIZE, 8.
+
+ -- Constant: DES3_KEY_SIZE
+ DES key size, 24.
+
+ -- Function: int des3_set_key (struct des3_ctx *CTX, const uint8_t
+ *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. Parity bits are ignored. Checks for
+ weak keys, returning 1 if all three keys are good keys, and 0 if
+ one or more key is weak. Applications that don’t care about weak
+ keys can ignore the return value.
+
+ For random-looking strings, you can use ‘des_fix_parity’ to adjust
+the parity bits before calling ‘des3_set_key’.
+
+ -- Function: void des3_encrypt (struct des3_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void des3_decrypt (struct des3_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘des_encrypt’
+
+
+File: nettle.info, Node: Salsa20, Next: Serpent, Prev: DES3, Up: Cipher functions
+
+7.2.10 Salsa20
+--------------
+
+Salsa20 is a fairly recent stream cipher designed by D. J. Bernstein.
+It is built on the observation that a cryptographic hash function can be
+used for encryption: Form the hash input from the secret key and a
+counter, xor the hash output and the first block of the plaintext, then
+increment the counter to process the next block (similar to CTR mode,
+*note CTR::). Bernstein defined an encryption algorithm, Snuffle, in
+this way to ridicule United States export restrictions which treated
+hash functions as nice and harmless, but ciphers as dangerous munitions.
+
+ Salsa20 uses the same idea, but with a new specialized hash function
+to mix key, block counter, and a couple of constants. It’s also
+designed for speed; on x86_64, it is currently the fastest cipher
+offered by nettle. It uses a block size of 512 bits (64 octets) and
+there are two specified key sizes, 128 and 256 bits (16 and 32 octets).
+
+ *Caution:* The hash function used in Salsa20 is _not_ directly
+applicable for use as a general hash function. It’s _not_ collision
+resistant if arbitrary inputs are allowed, and furthermore, the input
+and output is of fixed size.
+
+ When using Salsa20 to process a message, one specifies both a key and
+a “nonce”, the latter playing a similar rôle to the initialization
+vector (IV) used with CBC or CTR mode. One can use the same key for
+several messages, provided one uses a unique random iv for each message.
+The iv is 64 bits (8 octets). The block counter is initialized to zero
+for each message, and is also 64 bits (8 octets). Nettle defines
+Salsa20 in ‘<nettle/salsa20.h>’.
+
+ -- Context struct: struct salsa20_ctx
+
+ -- Constant: SALSA20_128_KEY_SIZE
+ -- Constant: SALSA20_256_KEY_SIZE
+ The two supported key sizes, 16 and 32 octets.
+
+ -- Constant: SALSA20_KEY_SIZE
+ Recommended key size, 32.
+
+ -- Constant: SALSA20_BLOCK_SIZE
+ Salsa20 block size, 64.
+
+ -- Constant: SALSA20_NONCE_SIZE
+ Size of the nonce, 8.
+
+ -- Function: void salsa20_128_set_key (struct salsa20_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void salsa20_256_set_key (struct salsa20_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void salsa20_set_key (struct salsa20_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption. ‘salsa20_128_set_key’ and
+ ‘salsa20_128_set_key’ use a fix key size each, 16 and 32 octets,
+ respectively. The function ‘salsa20_set_key’ is provided for
+ backwards compatibility, and the LENGTH argument must be either 16
+ or 32. Before using the cipher, you _must_ also call
+ ‘salsa20_set_nonce’, see below.
+
+ -- Function: void salsa20_set_nonce (struct salsa20_ctx *CTX, const
+ uint8_t *NONCE)
+ Sets the nonce. It is always of size ‘SALSA20_NONCE_SIZE’, 8
+ octets. This function also initializes the block counter, setting
+ it to zero.
+
+ -- Function: void salsa20_crypt (struct salsa20_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message, using salsa20. When a
+ message is encrypted using a sequence of calls to ‘salsa20_crypt’,
+ all but the last call _must_ use a length that is a multiple of
+ ‘SALSA20_BLOCK_SIZE’.
+
+ The full salsa20 cipher uses 20 rounds of mixing. Variants of
+Salsa20 with fewer rounds are possible, and the 12-round variant is
+specified by eSTREAM, see
+<https://www.ecrypt.eu.org/stream/finallist.html>. Nettle calls this
+variant ‘salsa20r12’. It uses the same context struct and key setup as
+the full salsa20 cipher, but a separate function for encryption and
+decryption.
+
+ -- Function: void salsa20r12_crypt (struct salsa20_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message, using salsa20 reduced
+ to 12 rounds.
+
+
+File: nettle.info, Node: Serpent, Next: SM4, Prev: Salsa20, Up: Cipher functions
+
+7.2.11 Serpent
+--------------
+
+SERPENT is one of the AES finalists, designed by Ross Anderson, Eli
+Biham and Lars Knudsen. Thus, the interface and properties are similar
+to AES’. One peculiarity is that it is quite pointless to use it with
+anything but the maximum key size, smaller keys are just padded to
+larger ones. Nettle defines SERPENT in ‘<nettle/serpent.h>’.
+
+ -- Context struct: struct serpent_ctx
+
+ -- Constant: SERPENT_BLOCK_SIZE
+ The SERPENT block-size, 16.
+
+ -- Constant: SERPENT_MIN_KEY_SIZE
+ Minimum SERPENT key size, 16.
+
+ -- Constant: SERPENT_MAX_KEY_SIZE
+ Maximum SERPENT key size, 32.
+
+ -- Constant: SERPENT_KEY_SIZE
+ Default SERPENT key size, 32.
+
+ -- Function: void serpent_set_key (struct serpent_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption.
+
+ -- Function: void serpent_encrypt (struct serpent_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void serpent_decrypt (struct serpent_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘serpent_encrypt’
+
+
+File: nettle.info, Node: SM4, Next: Twofish, Prev: Serpent, Up: Cipher functions
+
+7.2.12 SM4
+----------
+
+SM4 is a block cipher standard adopted by the government of the People’s
+Republic of China, and it was issued by the State Cryptography
+Administration on March 21, 2012. The standard is GM/T 0002-2012 "SM4
+block cipher algorithm". Nettle defines it in ‘<nettle/sm4.h>’.
+
+ -- Context struct: struct sm4_ctx
+
+ -- Constant: SM4_BLOCK_SIZE
+ The SM4 block-size, 16.
+
+ -- Constant: SM4_KEY_SIZE
+ Default SM4 key size, 16.
+
+ -- Function: void sm4_set_encrypt_key (struct sm4_ctx *CTX, const
+ uint8_t *KEY)
+ Initialize the cipher. The function is used for encryption.
+
+ -- Function: void sm4_set_decrypt_key (struct sm4_ctx *CTX, const
+ uint8_t *KEY)
+ Initialize the cipher. The function is used for decryption.
+
+ -- Function: void sm4_crypt (const struct sm4_ctx *CTX, size_t LENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Cryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way. The same function is used for both encryption
+ and decryption.
+
+
+File: nettle.info, Node: Twofish, Next: nettle_cipher abstraction, Prev: SM4, Up: Cipher functions
+
+7.2.13 Twofish
+--------------
+
+Another AES finalist, this one designed by Bruce Schneier and others.
+Nettle defines it in ‘<nettle/twofish.h>’.
+
+ -- Context struct: struct twofish_ctx
+
+ -- Constant: TWOFISH_BLOCK_SIZE
+ The TWOFISH block-size, 16.
+
+ -- Constant: TWOFISH_MIN_KEY_SIZE
+ Minimum TWOFISH key size, 16.
+
+ -- Constant: TWOFISH_MAX_KEY_SIZE
+ Maximum TWOFISH key size, 32.
+
+ -- Constant: TWOFISH_KEY_SIZE
+ Default TWOFISH key size, 32.
+
+ -- Function: void twofish_set_key (struct twofish_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Initialize the cipher. The same function is used for both
+ encryption and decryption.
+
+ -- Function: void twofish_encrypt (struct twofish_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encryption function. LENGTH must be an integral multiple of the
+ block size. If it is more than one block, the data is processed in
+ ECB mode. ‘src’ and ‘dst’ may be equal, but they must not overlap
+ in any other way.
+
+ -- Function: void twofish_decrypt (struct twofish_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Analogous to ‘twofish_encrypt’
+
+
+File: nettle.info, Node: nettle_cipher abstraction, Prev: Twofish, Up: Cipher functions
+
+7.2.14 The ‘struct nettle_cipher’ abstraction
+---------------------------------------------
+
+Nettle includes a struct including information about some of the more
+regular cipher functions. It can be useful for applications that need a
+simple way to handle various algorithms. Nettle defines these structs
+in ‘<nettle/nettle-meta.h>’.
+
+ -- Meta struct: struct nettle_cipher name context_size block_size
+ key_size set_encrypt_key set_decrypt_key encrypt decrypt
+ The last four attributes are function pointers, of types
+ ‘nettle_set_key_func *’ and ‘nettle_cipher_func *’. The first
+ argument to these functions is a ‘const void *’ pointer to a
+ context struct, which is of size ‘context_size’.
+
+ -- Constant Struct: struct nettle_cipher nettle_aes128
+ -- Constant Struct: struct nettle_cipher nettle_aes192
+ -- Constant Struct: struct nettle_cipher nettle_aes256
+
+ -- Constant Struct: struct nettle_cipher nettle_arctwo40
+ -- Constant Struct: struct nettle_cipher nettle_arctwo64
+ -- Constant Struct: struct nettle_cipher nettle_arctwo128
+ -- Constant Struct: struct nettle_cipher nettle_arctwo_gutmann128
+
+ -- Constant Struct: struct nettle_cipher nettle_arcfour128
+
+ -- Constant Struct: struct nettle_cipher nettle_camellia128
+ -- Constant Struct: struct nettle_cipher nettle_camellia192
+ -- Constant Struct: struct nettle_cipher nettle_camellia256
+
+ -- Constant Struct: struct nettle_cipher nettle_cast128
+
+ -- Constant Struct: struct nettle_cipher nettle_serpent128
+ -- Constant Struct: struct nettle_cipher nettle_serpent192
+ -- Constant Struct: struct nettle_cipher nettle_serpent256
+
+ -- Constant Struct: struct nettle_cipher nettle_twofish128
+ -- Constant Struct: struct nettle_cipher nettle_twofish192
+ -- Constant Struct: struct nettle_cipher nettle_twofish256
+ Nettle includes such structs for all the _regular_ ciphers, i.e.
+ ones without weak keys or other oddities.
+
+ Nettle also exports a list of all these ciphers without weak keys or
+other oddities.
+
+ -- Function: const struct nettle_cipher ** nettle_get_ciphers (void)
+ Returns a NULL-terminated list of pointers to supported block
+ ciphers. This list can be used to dynamically enumerate or search
+ the supported algorithms.
+
+ -- Macro: nettle_ciphers
+ A macro expanding to a call to nettle_get_ciphers. In earlier
+ versions, this was not a macro but the actual array of pointers.
+
+
+File: nettle.info, Node: Cipher modes, Next: Authenticated encryption, Prev: Cipher functions, Up: Reference
+
+7.3 Cipher modes
+================
+
+Cipher modes of operation specifies the procedure to use when encrypting
+a message that is larger than the cipher’s block size. As explained in
+*Note Cipher functions::, splitting the message into blocks and
+processing them independently with the block cipher (Electronic Code
+Book mode, ECB), leaks information.
+
+ Besides ECB, Nettle provides several other modes of operation: Cipher
+Block Chaining (CBC), Counter mode (CTR), Cipher Feedback (CFB and
+CFB8), XEX-based tweaked-codebook mode with ciphertext stealing (XTS)
+and a couple of AEAD modes (*note Authenticated encryption::). CBC is
+widely used, but there are a few subtle issues of information leakage,
+see, e.g., SSH CBC vulnerability
+(https://www.kb.cert.org/vuls/id/958563). Today, CTR is usually
+preferred over CBC.
+
+ Modes like CBC, CTR, CFB and CFB8 provide _no_ message
+authentication, and should always be used together with a MAC (*note
+Keyed hash functions::) or signature to authenticate the message.
+
+* Menu:
+
+* CBC::
+* CTR::
+* CFB and CFB8::
+* XTS::
+
+
+File: nettle.info, Node: CBC, Next: CTR, Up: Cipher modes
+
+7.3.1 Cipher Block Chaining
+---------------------------
+
+When using CBC mode, plaintext blocks are not encrypted independently of
+each other, like in Electronic Cook Book mode. Instead, when encrypting
+a block in CBC mode, the previous ciphertext block is XORed with the
+plaintext before it is fed to the block cipher. When encrypting the
+first block, a random block called an “IV”, or Initialization Vector, is
+used as the “previous ciphertext block”. The IV should be chosen
+randomly, but it need not be kept secret, and can even be transmitted in
+the clear together with the encrypted data.
+
+ In symbols, if ‘E_k’ is the encryption function of a block cipher,
+and ‘IV’ is the initialization vector, then ‘n’ plaintext blocks
+‘M_1’,... ‘M_n’ are transformed into ‘n’ ciphertext blocks ‘C_1’,...
+‘C_n’ as follows:
+
+ C_1 = E_k(IV XOR M_1)
+ C_2 = E_k(C_1 XOR M_2)
+
+ ...
+
+ C_n = E_k(C_(n-1) XOR M_n)
+
+ Nettle provides two main functions for applying a block cipher in
+Cipher Block Chaining (CBC) mode, one for encryption and one for
+decryption. These functions uses ‘const void *’ to pass cipher contexts
+around. The CBC interface is defined in ‘<nettle/cbc.h>’.
+
+ -- Function: void cbc_encrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ -- Function: void cbc_decrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+
+ Applies the encryption or decryption function F in CBC mode. The
+ final ciphertext block processed is copied into IV before
+ returning, so that a large message can be processed by a sequence
+ of calls to ‘cbc_encrypt’. The function F is of type
+
+ ‘void F (const void *CTX, size_t LENGTH, uint8_t DST, const uint8_t
+ *SRC)’,
+
+ and the ‘cbc_encrypt’ and ‘cbc_decrypt’ functions pass their
+ argument CTX on to F.
+
+7.3.1.1 Utility macros
+......................
+
+There are also some macros to help use these functions correctly.
+
+ -- Macro: CBC_CTX (CONTEXT_TYPE, BLOCK_SIZE)
+ Expands to
+ {
+ context_type ctx;
+ uint8_t iv[block_size];
+ }
+
+ It can be used to define a CBC context struct, either directly,
+
+ struct CBC_CTX(struct aes_ctx, AES_BLOCK_SIZE) ctx;
+
+ or to give it a struct tag,
+
+ struct aes_cbc_ctx CBC_CTX (struct aes_ctx, AES_BLOCK_SIZE);
+
+ -- Macro: CBC_SET_IV (CTX, IV)
+ First argument is a pointer to a context struct as defined by
+ ‘CBC_CTX’, and the second is a pointer to an Initialization Vector
+ (IV) that is copied into that context.
+
+ -- Macro: CBC_ENCRYPT (CTX, F, LENGTH, DST, SRC)
+ -- Macro: CBC_DECRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘cbc_encrypt’ and ‘cbc_decrypt’. The first
+ argument is a pointer to a context struct as defined by ‘CBC_CTX’,
+ and the second argument is an encryption or decryption function
+ following Nettle’s conventions. The last three arguments define
+ the source and destination area for the operation.
+
+ These macros use some tricks to make the compiler display a warning
+if the types of F and CTX don’t match, e.g. if you try to use an
+‘struct aes_ctx’ context with the ‘des_encrypt’ function.
+
+7.3.1.2 Cipher-specific functions
+.................................
+
+Encryption in CBC mode (but not decryption!) is inherently serial. It
+can pass only one block at a time to the block cipher’s encrypt
+function. Optimizations to process several blocks in parallel can’t be
+applied, and on platforms where the underlying cipher is fast,
+per-function-call overhead, e.g., loading subkeys from memory into
+registers, can be significant. Depending on platform and cipher used,
+‘cbc_encrypt’ can be considerably slower than both ‘cbc_decrypt’ and CTR
+mode. The second reason for poor performance can be addressed by having
+a combined CBC and encrypt function, for ciphers where the overhead is
+significant.
+
+ Nettle currently includes such special functions only for AES.
+
+ -- Function: void cbc_aes128_encrypt (const struct aes128_ctx *CTX,
+ uint8_t *IV, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void cbc_aes192_encrypt (const struct aes192_ctx *CTX,
+ uint8_t *IV, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void cbc_aes256_encrypt (const struct aes256_ctx *CTX,
+ uint8_t *IV, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Calling ‘cbc_aes128_encrypt(ctx, iv, length, dst, src)’ does the
+ same thing as calling ‘cbc_encrypt(ctx, aes128_encrypt,
+ AES_BLOCK_SIZE, iv, length, dst, src)’, but is more efficient on
+ certain platforms.
+
+
+File: nettle.info, Node: CTR, Next: CFB and CFB8, Prev: CBC, Up: Cipher modes
+
+7.3.2 Counter mode
+------------------
+
+Counter mode (CTR) uses the block cipher as a keyed pseudo-random
+generator. The output of the generator is XORed with the data to be
+encrypted. It can be understood as a way to transform a block cipher to
+a stream cipher.
+
+ The message is divided into ‘n’ blocks ‘M_1’,... ‘M_n’, where ‘M_n’
+is of size ‘m’ which may be smaller than the block size. Except for the
+last block, all the message blocks must be of size equal to the cipher’s
+block size.
+
+ If ‘E_k’ is the encryption function of a block cipher, ‘IC’ is the
+initial counter, then the ‘n’ plaintext blocks are transformed into ‘n’
+ciphertext blocks ‘C_1’,... ‘C_n’ as follows:
+
+ C_1 = E_k(IC) XOR M_1
+ C_2 = E_k(IC + 1) XOR M_2
+
+ ...
+
+ C_(n-1) = E_k(IC + n - 2) XOR M_(n-1)
+ C_n = E_k(IC + n - 1) [1..m] XOR M_n
+
+ The IC is the initial value for the counter, it plays a similar rôle
+as the IV for CBC. When adding, ‘IC + x’, IC is interpreted as an
+integer, in network byte order. For the last block, ‘E_k(IC + n - 1)
+[1..m]’ means that the cipher output is truncated to ‘m’ bytes.
+
+ -- Function: void ctr_crypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *CTR, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+
+ Applies the encryption function F in CTR mode. Note that for CTR
+ mode, encryption and decryption is the same operation, and hence F
+ should always be the encryption function for the underlying block
+ cipher.
+
+ When a message is encrypted using a sequence of calls to
+ ‘ctr_crypt’, all but the last call _must_ use a length that is a
+ multiple of the block size.
+
+ Like for CBC, there are also a couple of helper macros.
+
+ -- Macro: CTR_CTX (CONTEXT_TYPE, BLOCK_SIZE)
+ Expands to
+ {
+ context_type ctx;
+ uint8_t ctr[block_size];
+ }
+
+ -- Macro: CTR_SET_COUNTER (CTX, IV)
+ First argument is a pointer to a context struct as defined by
+ ‘CTR_CTX’, and the second is a pointer to an initial counter that
+ is copied into that context.
+
+ -- Macro: CTR_CRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘ctr_crypt’. The first argument is a
+ pointer to a context struct as defined by ‘CTR_CTX’, and the second
+ argument is an encryption function following Nettle’s conventions.
+ The last three arguments define the source and destination area for
+ the operation.
+
+
+File: nettle.info, Node: CFB and CFB8, Next: XTS, Prev: CTR, Up: Cipher modes
+
+7.3.3 Cipher Feedback mode
+--------------------------
+
+Cipher Feedback mode (CFB) and Cipher Feedback 8-bit mode (CFB8) being
+close relatives to both CBC mode and CTR mode borrow some
+characteristics from stream ciphers.
+
+ For CFB the message is divided into ‘n’ blocks ‘M_1’,... ‘M_n’, where
+‘M_n’ is of size ‘m’ which may be smaller than the block size. Except
+for the last block, all the message blocks must be of size equal to the
+cipher’s block size.
+
+ If ‘E_k’ is the encryption function of a block cipher, ‘IV’ is the
+initialization vector, then the ‘n’ plaintext blocks are transformed
+into ‘n’ ciphertext blocks ‘C_1’,... ‘C_n’ as follows:
+
+ C_1 = E_k(IV) XOR M_1
+ C_2 = E_k(C_1) XOR M_2
+
+ ...
+
+ C_(n-1) = E_k(C_(n - 2)) XOR M_(n-1)
+ C_n = E_k(C_(n - 1)) [1..m] XOR M_n
+
+ Cipher Feedback 8-bit mode (CFB8) transforms block cipher into a
+stream cipher. The message is encrypted byte after byte, not requiring
+any padding.
+
+ If ‘E_k’ is the encryption function of a block cipher, ‘b’ is ‘E_k’
+block size, ‘IV’ is the initialization vector, then the ‘n’ plaintext
+bytes are transformed into ‘n’ ciphertext bytes ‘C_1’,... ‘C_n’ as
+follows:
+
+ I_1 = IV
+ C_1 = E_k(I_1) [1..8] XOR M_1
+ I_2 = I_1 [9..b] << 8 | C_1
+ C_2 = E_k(I_2) [1..8] XOR M_2
+
+ ...
+
+ I_(n-1) = I_(n-2) [9..b] << 8 | C_(n-2)
+ C_(n-1) = E_k(I_(n-1)) [1..8] XOR M_(n-1)
+ I_n = I_(n-1) [9..b] << 8 | C_(n-1)
+ C_n = E_k(I_n) [1..8] XOR M_n
+
+ Nettle’s includes functions for applying a block cipher in Cipher
+Feedback (CFB) and Cipher Feedback 8-bit (CFB8) modes. These functions
+uses ‘void *’ to pass cipher contexts around.
+
+ -- Function: void cfb_encrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ -- Function: void cfb_decrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+
+ Applies the encryption or decryption function F in CFB mode. The
+ final ciphertext block processed is copied into IV before
+ returning, so that a large message can be processed by a sequence
+ of calls to ‘cfb_encrypt’. Note that for CFB mode internally uses
+ encryption only function and hence F should always be the
+ encryption function for the underlying block cipher.
+
+ When a message is encrypted using a sequence of calls to
+ ‘cfb_encrypt’, all but the last call _must_ use a length that is a
+ multiple of the block size.
+
+ -- Function: void cfb8_encrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ -- Function: void cfb8_decrypt (const void *CTX, nettle_cipher_func *F,
+ size_t BLOCK_SIZE, uint8_t *IV, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+
+ Applies the encryption or decryption function F in CFB8 mode. The
+ final IV block processed is copied into IV before returning, so
+ that a large message can be processed by a sequence of calls to
+ ‘cfb8_encrypt’. Note that for CFB8 mode internally uses encryption
+ only function and hence F should always be the encryption function
+ for the underlying block cipher.
+
+ Like for CBC, there are also a couple of helper macros.
+
+ -- Macro: CFB_CTX (CONTEXT_TYPE, BLOCK_SIZE)
+ Expands to
+ {
+ context_type ctx;
+ uint8_t iv[block_size];
+ }
+
+ -- Macro: CFB_SET_IV(CTX, IV)
+ First argument is a pointer to a context struct as defined by
+ ‘CFB_CTX’, and the second is a pointer to an initialization vector
+ that is copied into that context.
+
+ -- Macro: CFB_ENCRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘cfb_encrypt’. The first argument is a
+ pointer to a context struct as defined by ‘CFB_CTX’, and the second
+ argument is an encryption function following Nettle’s conventions.
+ The last three arguments define the source and destination area for
+ the operation.
+
+ -- Macro: CFB_DECRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘cfb_decrypt’. The first argument is a
+ pointer to a context struct as defined by ‘CFB_CTX’, and the second
+ argument is an encryption function following Nettle’s conventions.
+ The last three arguments define the source and destination area for
+ the operation.
+
+ -- Macro: CFB8_CTX (CONTEXT_TYPE, BLOCK_SIZE)
+ Expands to
+ {
+ context_type ctx;
+ uint8_t iv[block_size];
+ }
+
+ -- Macro: CFB8_SET_IV (CTX, IV)
+ First argument is a pointer to a context struct as defined by
+ ‘CFB8_CTX’, and the second is a pointer to an initialization vector
+ that is copied into that context.
+
+ -- Macro: CFB8_ENCRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘cfb8_encrypt’. The first argument is a
+ pointer to a context struct as defined by ‘CFB8_CTX’, and the
+ second argument is an encryption function following Nettle’s
+ conventions. The last three arguments define the source and
+ destination area for the operation.
+
+ -- Macro: CFB8_DECRYPT (CTX, F, LENGTH, DST, SRC)
+ A simpler way to invoke ‘cfb8_decrypt’. The first argument is a
+ pointer to a context struct as defined by ‘CFB8_CTX’, and the
+ second argument is an encryption function following Nettle’s
+ conventions. The last three arguments define the source and
+ destination area for the operation.
+
+
+File: nettle.info, Node: XTS, Prev: CFB and CFB8, Up: Cipher modes
+
+7.3.4 XEX-based tweaked-codebook mode with ciphertext stealing
+--------------------------------------------------------------
+
+XEX-based tweaked-codebook mode with ciphertext stealing (XTS) is a
+block mode like (CBC) but tweaked to be able to encrypt partial blocks
+via a technique called ciphertext stealing, where the last complete
+block of ciphertext is split and part returned as the last block and
+part used as plaintext for the second to last block. This mode is
+principally used to encrypt data at rest where it is not possible to
+store additional metadata or blocks larger than the plain text. The
+most common usage is for disk encryption. Due to the fact that
+ciphertext expansion is not possible, data is not authenticated. This
+mode should not be used where authentication is critical.
+
+ The message is divided into ‘n’ blocks ‘M_1’,... ‘M_n’, where ‘M_n’
+is of size ‘m’ which may be smaller than the block size. XTS always
+uses a fixed blocksize of 128 bit (16 bytes) length.
+
+ Unlike other modes, the key is double the size of that for the used
+cipher mode (for example 256bit for AES-128 and 512bit for AES-256).
+
+ XTS encryption mode operates given:
+ • A multiplication by a primitive element alpha. ‘MUL a^j’ here
+ represents the multiplication, where ‘j’ is the power of alpha, and
+ the input value is converted into a 16 bytes array ‘a_0[k], k =
+ 0,1,..,15’. The multiplication is calculated as ‘a_(j+1)[0] =
+ (2(a_j[0] mod 128)) XOR (135 * floor(a_j[15]/128)’ ‘a_(j+1)[k] =
+ (2(a_j[k] mod 128)) XOR (floor(a_j[k-1]/128), k = 1,2,..15’ Note
+ that this operation is practically a 1 bit left shift operation
+ with carry propagating from one byte to the next, and if the last
+ bit shift results in a carry the decimal value 135 is XORed into
+ the first byte.
+
+ • The encryption key is provided as the ‘Key = K1 | K2’, where ‘|’
+ denotes string concatenation. ‘E_k1’ is the encryption function of
+ the block cipher using ‘K1’ as the key, and ‘E_k2’ is the same
+ encryption function using ‘K2’
+
+ • A 128 bit tweak value is provided as input and is denoted as ‘IV’
+
+ The ‘n’ plaintext blocks are transformed into ‘n’ ciphertext blocks
+‘C_1’,... ‘C_n’ as follows.
+
+ For a plaintext length that is a perfect multiple of the XTS block
+size:
+ T_1 = E_k2(IV)
+ C_1 = E_k1(P_1 XOR T_1) XOR T_1
+
+ ...
+
+ T_n = T_(n-1) MUL a
+ C_n = E_k1(P_n XOR T_n) XOR T_n
+
+ For any other plaintext lengths:
+ T_1 = E_k2(IV)
+ C_1 = E_k1(P_1 XOR T_1) XOR T_1
+
+ ...
+
+ T_(n-2) = T_(n-3) MUL a
+ C_(n-2) = E_k1(P_(n-2) XOR T_(n-2)) XOR T_(n-2)
+
+ T_(n-1) = T_(n-2) MUL a
+ CC_(n-1) = E_k1(P_(n-1) XOR T_(n-1)) XOR T_(n-1)
+
+ T_n = T_(n-1) MUL a
+ PP = [1..m]Pn | [m+1..128]CC_(n-1)
+ C_(n-1) = E_k1(PP XOR T_n) XOR T_n
+
+ C_n = [1..m]CC_(n-1)
+
+7.3.4.1 General (XTS) interface.
+................................
+
+The two general functions to encrypt and decrypt using the XTS block
+cipher mode are the following:
+
+ -- Function: void xts_encrypt_message (const void *ENC_CTX, const void
+ *TWK_CTX, nettle_cipher_func *ENCF, const uint8_t *TWEAK,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void xts_decrypt_message (const void *DEC_CTX, const void
+ *TWK_CTX, nettle_cipher_func *DECF, nettle_cipher_func *ENCF,
+ const uint8_t *TWEAK, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+
+ Applies the encryption function ENCF or the decryption function
+ DECF in XTS mode. At least one block (16 bytes) worth of data must
+ be available therefore specifying a length less than 16 bytes is
+ illegal.
+
+ The functions ENCF DECF are of type
+
+ ‘void f (const void *CTX, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)’,
+
+ and the ‘xts_encrypt_message’ and ‘xts_decrypt_message’ functions
+ pass their arguments ENC_CTX, TWK_CTX and DEC_CTX to the functions
+ ENCF, DECF as CTX.
+
+7.3.4.2 XTS-AES interface
+.........................
+
+The AES XTS functions provide an API for using the XTS mode with the AES
+block ciphers. The parameters all have the same meaning as the general
+interface, except that the ENC_CTX, DEC_CTX, TWK_CTX, ENCF and DECF are
+replaced with an AES context structure called CTX, and a appropriate
+set-key function must be called before using any of the encryption or
+decryption functions in this interface.
+
+ -- Context struct: struct xts_aes128_key
+ Holds state corresponding to the AES-128 block cipher.
+
+ -- Context struct: struct xts_aes256_key
+ Holds state corresponding to the AES-256 block cipher.
+
+ -- Function: void xts_aes128_set_encrypt_key (struct xts_aes128_key
+ *CTX, const uint8_t *KEY)
+ -- Function: void xts_aes256_set_encrypt_key (struct xts_aes256_key
+ *CTX, const uint8_t *KEY)
+ -- Function: void xts_aes128_set_decrypt_key (struct xts_aes128_key
+ *CTX, const uint8_t *KEY)
+ -- Function: void xts_aes256_set_decrypt_key (struct xts_aes256_key
+ *CTX, const uint8_t *KEY)
+ Initializes the encryption or decryption key for the AES block
+ cipher. The length of the key must be double the size of the key
+ for the corresponding cipher (256 bits for AES-128 and 512 bits for
+ AES-256). One of these functions must be called before any of the
+ other functions.
+
+ -- Function: void xts_aes128_encrypt_message (struct xts_aes128_key
+ *CTX, uint8_t *TWEAK, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ -- Function: void xts_aes256_encrypt_message (struct xts_aes256_key
+ *CTX, uint8_t *TWEAK, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ -- Function: void xts_aes128_decrypt_message (struct xts_aes128_key
+ *CTX, uint8_t *TWEAK, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ -- Function: void xts_aes256_decrypt_message (struct xts_aes256_key
+ *CTX, uint8_t *TWEAK, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ These are identical to ‘xts_encrypt_message’ and
+ ‘xts_decrypt_message’, except that ENC_CTX, DEC_CTX, TWK_CTX, ENCF
+ and DECF are replaced by the CTX context structure.
+
+
+File: nettle.info, Node: Authenticated encryption, Next: Keyed hash functions, Prev: Cipher modes, Up: Reference
+
+7.4 Authenticated encryption with associated data
+=================================================
+
+Since there are some subtle design choices to be made when combining a
+block cipher mode with out authentication with a MAC. In recent years,
+several constructions that combine encryption and authentication have
+been defined. These constructions typically also have an additional
+input, the “associated data”, which is authenticated but not included
+with the message. A simple example is an implicit message number which
+is available at both sender and receiver, and which needs authentication
+in order to detect deletions or replay of messages. This family of
+building blocks are therefore called AEAD, Authenticated encryption with
+associated data.
+
+ The aim is to provide building blocks that it is easier for designers
+of protocols and applications to use correctly. There is also some
+potential for improved performance, if encryption and authentication can
+be done in a single step, although that potential is not realized for
+the constructions currently supported by Nettle.
+
+ For encryption, the inputs are:
+
+ • The key, which can be used for many messages.
+ • A nonce, which must be unique for each message using the same key.
+ • Additional associated data to be authenticated, but not included in
+ the message.
+ • The cleartext message to be encrypted.
+
+ The outputs are:
+
+ • The ciphertext, of the same size as the cleartext.
+ • A digest or “authentication tag”.
+
+ Decryption works the same, but with cleartext and ciphertext
+interchanged. All currently supported AEAD algorithms always use the
+encryption function of the underlying block cipher, for both encryption
+and decryption.
+
+ Usually, the authentication tag should be appended at the end of the
+ciphertext, producing an encrypted message which is slightly longer than
+the cleartext. However, Nettle’s low level AEAD functions produce the
+authentication tag as a separate output for both encryption and
+decryption.
+
+ Both associated data and the message data (cleartext or ciphertext)
+can be processed incrementally. In general, all associated data must be
+processed before the message data, and all calls but the last one must
+use a length that is a multiple of the block size, although some AEAD
+may implement more liberal conventions. The CCM mode is a bit special
+in that it requires the message lengths up front, other AEAD
+constructions don’t have this restriction.
+
+ The supported AEAD constructions are Galois/Counter mode (GCM), EAX,
+ChaCha-Poly1305, and Counter with CBC-MAC (CCM). There are some
+weaknesses in GCM authentication, see
+<https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf>.
+CCM and EAX use the same building blocks, but the EAX design is cleaner
+and avoids a couple of inconveniences of CCM. Therefore, EAX seems like
+a good conservative choice. The more recent ChaCha-Poly1305 may also be
+an attractive but more adventurous alternative, in particular if
+performance is important.
+
+* Menu:
+
+* EAX::
+* GCM::
+* CCM::
+* ChaCha-Poly1305::
+* OCB::
+* SIV-CMAC::
+* SIV-GCM::
+* nettle_aead abstraction::
+
+
+File: nettle.info, Node: EAX, Next: GCM, Up: Authenticated encryption
+
+7.4.1 EAX
+---------
+
+The EAX mode is an AEAD mode which combines CTR mode encryption, *Note
+CTR::, with a message authentication based on CBC, *Note CBC::. The
+implementation in Nettle is restricted to ciphers with a block size of
+128 bits (16 octets). EAX was defined as a reaction to the CCM mode,
+*Note CCM::, which uses the same primitives but has some undesirable and
+inelegant properties.
+
+ EAX supports arbitrary nonce size; it’s even possible to use an empty
+nonce in case only a single message is encrypted for each key.
+
+ Nettle’s support for EAX consists of a low-level general interface,
+some convenience macros, and specific functions for EAX using AES-128 as
+the underlying cipher. These interfaces are defined in ‘<nettle/eax.h>’
+
+7.4.1.1 General EAX interface
+.............................
+
+ -- Context struct: struct eax_key
+ EAX state which depends only on the key, but not on the nonce or
+ the message.
+
+ -- Context struct: struct eax_ctx
+ Holds state corresponding to a particular message.
+
+ -- Constant: EAX_BLOCK_SIZE
+ EAX’s block size, 16.
+
+ -- Constant: EAX_DIGEST_SIZE
+ Size of the EAX digest, also 16.
+
+ -- Function: void eax_set_key (struct eax_key *KEY, const void *CIPHER,
+ nettle_cipher_func *F)
+ Initializes KEY. CIPHER gives a context struct for the underlying
+ cipher, which must have been previously initialized for encryption,
+ and F is the encryption function.
+
+ -- Function: void eax_set_nonce (struct eax_ctx *EAX, const struct
+ eax_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t NONCE_LENGTH, const uint8_t *NONCE)
+ Initializes CTX for processing a new message, using the given
+ nonce.
+
+ -- Function: void eax_update (struct eax_ctx *EAX, const struct eax_key
+ *KEY, const void *CIPHER, nettle_cipher_func *F, size_t
+ DATA_LENGTH, const uint8_t *DATA)
+ Process associated data for authentication. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size. Unlike many other AEAD constructions, for EAX it’s not
+ necessary to complete the processing of all associated data before
+ encrypting or decrypting the message data.
+
+ -- Function: void eax_encrypt (struct eax_ctx *EAX, const struct
+ eax_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void eax_decrypt (struct eax_ctx *EAX, const struct
+ eax_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. CIPHER is the context
+ struct for the underlying cipher and F is the encryption function.
+ All but the last call for each message _must_ use a length that is
+ a multiple of the block size.
+
+ -- Function: void eax_digest (struct eax_ctx *EAX, const struct eax_key
+ *KEY, const void *CIPHER, nettle_cipher_func *F, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. If LENGTH
+ is smaller than ‘EAX_DIGEST_SIZE’, only the first LENGTH octets of
+ the digest are written.
+
+7.4.1.2 EAX helper macros
+.........................
+
+The following macros are defined.
+
+ -- Macro: EAX_CTX (CONTEXT_TYPE)
+ This defines an all-in-one context struct, including the context of
+ the underlying cipher and all EAX state. It expands to
+ {
+ struct eax_key key;
+ struct eax_ctx eax;
+ context_type cipher;
+ }
+
+ For all these macros, CTX, is a context struct as defined by
+‘EAX_CTX’, and ENCRYPT is the encryption function of the underlying
+cipher.
+
+ -- Macro: EAX_SET_KEY (CTX, SET_KEY, ENCRYPT, KEY)
+ SET_KEY is the function for setting the encryption key for the
+ underlying cipher, and KEY is the key.
+
+ -- Macro: EAX_SET_NONCE (CTX, ENCRYPT, LENGTH, NONCE)
+ Sets the nonce to be used for the message.
+
+ -- Macro: EAX_UPDATE (CTX, ENCRYPT, LENGTH, DATA)
+ Process associated data for authentication.
+
+ -- Macro: EAX_ENCRYPT (CTX, ENCRYPT, LENGTH, DST, SRC)
+ -- Macro: EAX_DECRYPT (CTX, ENCRYPT, LENGTH, DST, SRC)
+ Process message data for encryption or decryption.
+
+ -- Macro: EAX_DIGEST (CTX, ENCRYPT, LENGTH, DIGEST)
+ Extract the authentication tag for the message.
+
+7.4.1.3 EAX-AES128 interface
+............................
+
+The following functions implement EAX using AES-128 as the underlying
+cipher.
+
+ -- Context struct: struct eax_aes128_ctx
+ The context struct, defined using ‘EAX_CTX’.
+
+ -- Function: void eax_aes128_set_key (struct eax_aes128_ctx *CTX, const
+ uint8_t *KEY)
+ Initializes CTX using the given key.
+
+ -- Function: void eax_aes128_set_nonce (struct eax_aes128_ctx *CTX,
+ size_t LENGTH, const uint8_t *IV)
+ Initializes the per-message state, using the given nonce.
+
+ -- Function: void eax_aes128_update (struct eax_aes128_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Process associated data for authentication. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void eax_aes128_encrypt (struct eax_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void eax_aes128_decrypt (struct eax_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void eax_aes128_digest (struct eax_aes128_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. If LENGTH
+ is smaller than ‘EAX_DIGEST_SIZE’, only the first LENGTH octets of
+ the digest are written.
+
+
+File: nettle.info, Node: GCM, Next: CCM, Prev: EAX, Up: Authenticated encryption
+
+7.4.2 Galois counter mode
+-------------------------
+
+Galois counter mode is an AEAD constructions combining counter mode with
+message authentication based on universal hashing. The main objective
+of the design is to provide high performance for hardware
+implementations, where other popular MAC algorithms (*note Keyed hash
+functions::) become a bottleneck for high-speed hardware
+implementations. It was proposed by David A. McGrew and John Viega in
+2005, and recommended by NIST in 2007, NIST Special Publication 800-38D
+(https://csrc.nist.gov/publications/nistpubs/800-38D/SP-800-38D.pdf).
+It is constructed on top of a block cipher which must have a block size
+of 128 bits.
+
+ The authentication in GCM has some known weaknesses, see
+<https://csrc.nist.gov/groups/ST/toolkit/BCM/documents/comments/CWC-GCM/Ferguson2.pdf>.
+In particular, don’t use GCM with short authentication tags.
+
+ Nettle’s support for GCM consists of a low-level general interface,
+some convenience macros, and specific functions for GCM using AES or
+Camellia as the underlying cipher. These interfaces are defined in
+‘<nettle/gcm.h>’
+
+7.4.2.1 General GCM interface
+.............................
+
+ -- Context struct: struct gcm_key
+ Message independent hash sub-key, and related tables.
+
+ -- Context struct: struct gcm_ctx
+ Holds state corresponding to a particular message.
+
+ -- Constant: GCM_BLOCK_SIZE
+ GCM’s block size, 16.
+
+ -- Constant: GCM_DIGEST_SIZE
+ Size of the GCM digest, also 16.
+
+ -- Constant: GCM_IV_SIZE
+ Recommended size of the IV, 12. Arbitrary sizes are allowed.
+
+ -- Function: void gcm_set_key (struct gcm_key *KEY, const void *CIPHER,
+ nettle_cipher_func *F)
+ Initializes KEY. CIPHER gives a context struct for the underlying
+ cipher, which must have been previously initialized for encryption,
+ and F is the encryption function.
+
+ -- Function: void gcm_set_iv (struct gcm_ctx *CTX, const struct gcm_key
+ *KEY, size_t LENGTH, const uint8_t *IV)
+ Initializes CTX using the given IV. The KEY argument is actually
+ needed only if LENGTH differs from ‘GCM_IV_SIZE’.
+
+ -- Function: void gcm_update (struct gcm_ctx *CTX, const struct gcm_key
+ *KEY, size_t LENGTH, const uint8_t *DATA)
+ Provides associated data to be authenticated. If used, must be
+ called before ‘gcm_encrypt’ or ‘gcm_decrypt’. All but the last
+ call for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void gcm_encrypt (struct gcm_ctx *CTX, const struct
+ gcm_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_decrypt (struct gcm_ctx *CTX, const struct
+ gcm_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. CIPHER is the context
+ struct for the underlying cipher and F is the encryption function.
+ All but the last call for each message _must_ use a length that is
+ a multiple of the block size.
+
+ -- Function: void gcm_digest (struct gcm_ctx *CTX, const struct gcm_key
+ *KEY, const void *CIPHER, nettle_cipher_func *F, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. It’s
+ strongly recommended that LENGTH is ‘GCM_DIGEST_SIZE’, but if you
+ provide a smaller value, only the first LENGTH octets of the digest
+ are written.
+
+ To encrypt a message using GCM, first initialize a context for the
+underlying block cipher with a key to use for encryption. Then call the
+above functions in the following order: ‘gcm_set_key’, ‘gcm_set_iv’,
+‘gcm_update’, ‘gcm_encrypt’, ‘gcm_digest’. The decryption procedure is
+analogous, just calling ‘gcm_decrypt’ instead of ‘gcm_encrypt’ (note
+that GCM decryption still uses the encryption function of the underlying
+block cipher). To process a new message, using the same key, call
+‘gcm_set_iv’ with a new iv.
+
+7.4.2.2 GCM helper macros
+.........................
+
+The following macros are defined.
+
+ -- Macro: GCM_CTX (CONTEXT_TYPE)
+ This defines an all-in-one context struct, including the context of
+ the underlying cipher, the hash sub-key, and the per-message state.
+ It expands to
+ {
+ struct gcm_key key;
+ struct gcm_ctx gcm;
+ context_type cipher;
+ }
+
+ Example use:
+ struct gcm_aes128_ctx GCM_CTX(struct aes128_ctx);
+
+ The following macros operate on context structs of this form.
+
+ -- Macro: GCM_SET_KEY (CTX, SET_KEY, ENCRYPT, KEY)
+ First argument, CTX, is a context struct as defined by ‘GCM_CTX’.
+ SET_KEY and ENCRYPT are functions for setting the encryption key
+ and for encrypting data using the underlying cipher.
+
+ -- Macro: GCM_SET_IV (CTX, LENGTH, DATA)
+ First argument is a context struct as defined by ‘GCM_CTX’. LENGTH
+ and DATA give the initialization vector (IV).
+
+ -- Macro: GCM_UPDATE (CTX, LENGTH, DATA)
+ Simpler way to call ‘gcm_update’. First argument is a context
+ struct as defined by ‘GCM_CTX’
+
+ -- Macro: GCM_ENCRYPT (CTX, ENCRYPT, LENGTH, DST, SRC)
+ -- Macro: GCM_DECRYPT (CTX, ENCRYPT, LENGTH, DST, SRC)
+ -- Macro: GCM_DIGEST (CTX, ENCRYPT, LENGTH, DIGEST)
+ Simpler way to call ‘gcm_encrypt’, ‘gcm_decrypt’ or ‘gcm_digest’.
+ First argument is a context struct as defined by ‘GCM_CTX’. Second
+ argument, ENCRYPT, is the encryption function of the underlying
+ cipher.
+
+7.4.2.3 GCM-AES interface
+.........................
+
+The following functions implement the common case of GCM using AES as
+the underlying cipher. The variants with a specific AES flavor are
+recommended, while the fucntinos using ‘struct gcm_aes_ctx’ are kept for
+compatibility with older versiosn of Nettle.
+
+ -- Context struct: struct gcm_aes128_ctx
+ -- Context struct: struct gcm_aes192_ctx
+ -- Context struct: struct gcm_aes256_ctx
+ Context structs, defined using ‘GCM_CTX’.
+
+ -- Context struct: struct gcm_aes_ctx
+ Alternative context struct, using the old AES interface.
+
+ -- Function: void gcm_aes128_set_key (struct gcm_aes128_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void gcm_aes192_set_key (struct gcm_aes192_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void gcm_aes256_set_key (struct gcm_aes256_ctx *CTX, const
+ uint8_t *KEY)
+ Initializes CTX using the given key.
+
+ -- Function: void gcm_aes_set_key (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, const uint8_t *KEY)
+ Corresponding function, using the old AES interface. All valid AES
+ key sizes can be used.
+
+ -- Function: void gcm_aes128_set_iv (struct gcm_aes128_ctx *CTX, size_t
+ LENGTH, const uint8_t *IV)
+ -- Function: void gcm_aes192_set_iv (struct gcm_aes192_ctx *CTX, size_t
+ LENGTH, const uint8_t *IV)
+ -- Function: void gcm_aes256_set_iv (struct gcm_aes256_ctx *CTX, size_t
+ LENGTH, const uint8_t *IV)
+ -- Function: void gcm_aes_set_iv (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, const uint8_t *IV)
+ Initializes the per-message state, using the given IV.
+
+ -- Function: void gcm_aes128_update (struct gcm_aes128_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void gcm_aes192_update (struct gcm_aes192_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void gcm_aes256_update (struct gcm_aes256_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void gcm_aes_update (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Provides associated data to be authenticated. If used, must be
+ called before ‘gcm_aes_encrypt’ or ‘gcm_aes_decrypt’. All but the
+ last call for each message _must_ use a length that is a multiple
+ of the block size.
+
+ -- Function: void gcm_aes128_encrypt (struct gcm_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes192_encrypt (struct gcm_aes192_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes256_encrypt (struct gcm_aes256_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes_encrypt (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes128_decrypt (struct gcm_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes192_decrypt (struct gcm_aes192_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes256_decrypt (struct gcm_aes256_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_aes_decrypt (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void gcm_aes128_digest (struct gcm_aes128_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_aes192_digest (struct gcm_aes192_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_aes256_digest (struct gcm_aes256_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_aes_digest (struct gcm_aes_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. It’s
+ strongly recommended that LENGTH is ‘GCM_DIGEST_SIZE’, but if you
+ provide a smaller value, only the first LENGTH octets of the digest
+ are written.
+
+7.4.2.4 GCM-Camellia interface
+..............................
+
+The following functions implement the case of GCM using Camellia as the
+underlying cipher.
+
+ -- Context struct: struct gcm_camellia128_ctx
+ -- Context struct: struct gcm_camellia256_ctx
+ Context structs, defined using ‘GCM_CTX’.
+
+ -- Function: void gcm_camellia128_set_key (struct gcm_camellia128_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void gcm_camellia256_set_key (struct gcm_camellia256_ctx
+ *CTX, const uint8_t *KEY)
+ Initializes CTX using the given key.
+
+ -- Function: void gcm_camellia128_set_iv (struct gcm_camellia128_ctx
+ *CTX, size_t LENGTH, const uint8_t *IV)
+ -- Function: void gcm_camellia256_set_iv (struct gcm_camellia256_ctx
+ *CTX, size_t LENGTH, const uint8_t *IV)
+ Initializes the per-message state, using the given IV.
+
+ -- Function: void gcm_camellia128_update (struct gcm_camellia128_ctx
+ *CTX, size_t LENGTH, const uint8_t *DATA)
+ -- Function: void gcm_camellia256_update (struct gcm_camellia256_ctx
+ *CTX, size_t LENGTH, const uint8_t *DATA)
+ Provides associated data to be authenticated. If used, must be
+ called before ‘gcm_camellia_encrypt’ or ‘gcm_camellia_decrypt’.
+ All but the last call for each message _must_ use a length that is
+ a multiple of the block size.
+
+ -- Function: void gcm_camellia128_encrypt (struct gcm_camellia128_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_camellia256_encrypt (struct gcm_camellia256_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_camellia128_decrypt (struct gcm_camellia128_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_camellia256_decrypt (struct gcm_camellia256_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void gcm_camellia128_digest (struct gcm_camellia128_ctx
+ *CTX, size_t LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_camellia192_digest (struct gcm_camellia192_ctx
+ *CTX, size_t LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_camellia256_digest (struct gcm_camellia256_ctx
+ *CTX, size_t LENGTH, uint8_t *DIGEST)
+ -- Function: void gcm_camellia_digest (struct gcm_camellia_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. It’s
+ strongly recommended that LENGTH is ‘GCM_DIGEST_SIZE’, but if you
+ provide a smaller value, only the first LENGTH octets of the digest
+ are written.
+
+7.4.2.5 GCM-SM4 interface
+.........................
+
+The following functions implement the case of GCM using SM4 as the
+underlying cipher.
+
+ -- Context struct: struct gcm_sm4_ctx
+ Context structs, defined using ‘GCM_CTX’.
+
+ -- Function: void gcm_sm4_set_key (struct gcm_sm4_ctx *CTX, const
+ uint8_t *KEY)
+ Initializes CTX using the given key.
+
+ -- Function: void gcm_sm4_set_iv (struct gcm_sm4_ctx *CTX, size_t
+ LENGTH, const uint8_t *IV)
+ Initializes the per-message state, using the given IV.
+
+ -- Function: void gcm_sm4_update (struct gcm_sm4_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Provides associated data to be authenticated. If used, must be
+ called before ‘gcm_sm4_encrypt’ or ‘gcm_sm4_decrypt’. All but the
+ last call for each message _must_ use a length that is a multiple
+ of the block size.
+
+ -- Function: void gcm_sm4_encrypt (struct gcm_sm4_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void gcm_sm4_decrypt (struct gcm_sm4_ctx *CTX, size_t
+ LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void gcm_sm4_digest (struct gcm_sm4_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. It’s
+ strongly recommended that LENGTH is ‘GCM_DIGEST_SIZE’, but if you
+ provide a smaller value, only the first LENGTH octets of the digest
+ are written.
+
+
+File: nettle.info, Node: CCM, Next: ChaCha-Poly1305, Prev: GCM, Up: Authenticated encryption
+
+7.4.3 Counter with CBC-MAC mode
+-------------------------------
+
+CCM mode is a combination of counter mode with message authentication
+based on cipher block chaining, the same building blocks as EAX, *note
+EAX::. It is constructed on top of a block cipher which must have a
+block size of 128 bits. CCM mode is recommended by NIST in NIST Special
+Publication 800-38C
+(https://csrc.nist.gov/publications/nistpubs/800-38C/SP800-38C_updated-July20_2007.pdf).
+Nettle’s support for CCM consists of a low-level general interface, a
+message encryption and authentication interface, and specific functions
+for CCM using AES as the underlying block cipher. These interfaces are
+defined in ‘<nettle/ccm.h>’.
+
+ In CCM, the length of the message must be known before processing.
+The maximum message size depends on the size of the nonce, since the
+message size is encoded in a field which must fit in a single block,
+together with the nonce and a flag byte. E.g., with a nonce size of 12
+octets, there are three octets left for encoding the message length, the
+maximum message length is 2^24 - 1 octets.
+
+ CCM mode encryption operates as follows:
+ • The nonce and message length are concatenated to create ‘B_0 =
+ flags | nonce | mlength’
+
+ • The authenticated data and plaintext is formatted into the string
+ ‘B = L(adata) | adata | padding | plaintext | padding’ with
+ ‘padding’ being the shortest string of zero bytes such that the
+ length of the string is a multiple of the block size, and
+ ‘L(adata)’ is an encoding of the length of ‘adata’.
+
+ • The string ‘B’ is separated into blocks ‘B_1’ ... ‘B_n’
+ • The authentication tag ‘T’ is calculated as ‘T=0, for i=0 to n, do
+ T = E_k(B_i XOR T)’
+
+ • An initial counter is then initialized from the nonce to create ‘IC
+ = flags | nonce | padding’, where ‘padding’ is the shortest string
+ of zero bytes such that ‘IC’ is exactly one block in length.
+
+ • The authentication tag is encrypted using using CTR mode: ‘MAC =
+ E_k(IC) XOR T’
+
+ • The plaintext is then encrypted using CTR mode with an initial
+ counter of ‘IC+1’.
+
+ CCM mode decryption operates similarly, except that the ciphertext
+and MAC are first decrypted using CTR mode to retrieve the plaintext and
+authentication tag. The authentication tag can then be recalculated
+from the authenticated data and plaintext, and compared to the value in
+the message to check for authenticity.
+
+7.4.3.1 General CCM interface
+.............................
+
+For all of the functions in the CCM interface, CIPHER is the context
+struct for the underlying cipher and F is the encryption function. The
+cipher’s encryption key must be set before calling any of the CCM
+functions. The cipher’s decryption function and key are never used.
+
+ -- Context struct: struct ccm_ctx
+ Holds state corresponding to a particular message.
+
+ -- Constant: CCM_BLOCK_SIZE
+ CCM’s block size, 16.
+
+ -- Constant: CCM_DIGEST_SIZE
+ Size of the CCM digest, 16.
+
+ -- Constant: CCM_MIN_NONCE_SIZE
+ -- Constant: CCM_MAX_NONCE_SIZE
+ The the minimum and maximum sizes for an CCM nonce, 7 and 14,
+ respectively.
+
+ -- Macro: CCM_MAX_MSG_SIZE (NONCE_SIZE)
+ The largest allowed plaintext length, when using CCM with a nonce
+ of the given size.
+
+ -- Function: void ccm_set_nonce (struct ccm_ctx *CTX, const void
+ *CIPHER, nettle_cipher_func *F, size_t NONCELEN, const uint8_t
+ *NONCE, size_t AUTHLEN, size_t MSGLEN, size_t TAGLEN)
+ Initializes CTX using the given nonce and the sizes of the
+ authenticated data, message, and MAC to be processed.
+
+ -- Function: void ccm_update (struct ccm_ctx *CTX, const void *CIPHER,
+ nettle_cipher_func *F, size_t LENGTH, const uint8_t *DATA)
+ Provides associated data to be authenticated. Must be called after
+ ‘ccm_set_nonce’, and before ‘ccm_encrypt’, ‘ccm_decrypt’, or
+ ‘ccm_digest’.
+
+ -- Function: void ccm_encrypt (struct ccm_ctx *CTX, const void *CIPHER,
+ nettle_cipher_func *F, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ -- Function: void ccm_decrypt (struct ccm_ctx *CTX, const void *CIPHER,
+ nettle_cipher_func *F, size_t LENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ Encrypts or decrypts the message data. Must be called after
+ ‘ccm_set_nonce’ and before ‘ccm_digest’. All but the last call for
+ each message _must_ use a length that is a multiple of the block
+ size.
+
+ -- Function: void ccm_digest (struct ccm_ctx *CTX, const void *CIPHER,
+ nettle_cipher_func *F, size_t LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. LENGTH is
+ usually equal to the TAGLEN parameter supplied to ‘ccm_set_nonce’,
+ but if you provide a smaller value, only the first LENGTH octets of
+ the digest are written.
+
+ To encrypt a message using the general CCM interface, set the message
+nonce and length using ‘ccm_set_nonce’ and then call ‘ccm_update’ to
+generate the digest of any authenticated data. After all of the
+authenticated data has been digested use ‘ccm_encrypt’ to encrypt the
+plaintext. Finally, use ‘ccm_digest’ to return the encrypted MAC.
+
+ To decrypt a message, use ‘ccm_set_nonce’ and ‘ccm_update’ the same
+as you would for encryption, and then call ‘ccm_decrypt’ to decrypt the
+ciphertext. After decrypting the ciphertext ‘ccm_digest’ will return
+the encrypted MAC which should be identical to the MAC in the received
+message.
+
+7.4.3.2 CCM message interface
+.............................
+
+The CCM message fuctions provides a simple interface that will perform
+authentication and message encryption in a single function call. The
+length of the cleartext is given by MLENGTH and the length of the
+ciphertext is given by CLENGTH, always exactly TLENGTH bytes longer than
+the corresponding plaintext. The length argument passed to a function
+is always the size for the result, CLENGTH for the encryption functions,
+and MLENGTH for the decryption functions.
+
+ -- Function: void ccm_encrypt_message (void *CIPHER, nettle_cipher_func
+ *F, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t CLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, appends the encrypted MAC to
+ ciphertext and outputs it to DST.
+
+ -- Function: int ccm_decrypt_message (void *CIPHER, nettle_cipher_func
+ *F, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST,
+ recalculates the MAC from ADATA and the plaintext, and compares it
+ to the final TLENGTH bytes of SRC. If the values of the received
+ and calculated MACs are equal, this will return 1 indicating a
+ valid and authenticated message. Otherwise, this function will
+ return zero.
+
+7.4.3.3 CCM-AES interface
+.........................
+
+The AES CCM functions provide an API for using CCM mode with the AES
+block ciphers. The parameters all have the same meaning as the general
+and message interfaces, except that the CIPHER, F, and CTX parameters
+are replaced with an AES context structure, and a set-key function must
+be called before using any of the other functions in this interface.
+
+ -- Context struct: struct ccm_aes128_ctx
+ Holds state corresponding to a particular message encrypted using
+ the AES-128 block cipher.
+
+ -- Context struct: struct ccm_aes192_ctx
+ Holds state corresponding to a particular message encrypted using
+ the AES-192 block cipher.
+
+ -- Context struct: struct ccm_aes256_ctx
+ Holds state corresponding to a particular message encrypted using
+ the AES-256 block cipher.
+
+ -- Function: void ccm_aes128_set_key (struct ccm_aes128_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void ccm_aes192_set_key (struct ccm_aes192_ctx *CTX, const
+ uint8_t *KEY)
+ -- Function: void ccm_aes256_set_key (struct ccm_aes256_ctx *CTX, const
+ uint8_t *KEY)
+ Initializes the encryption key for the AES block cipher. One of
+ these functions must be called before any of the other functions in
+ the AES CCM interface.
+
+ -- Function: void ccm_aes128_set_nonce (struct ccm_aes128_ctx *CTX,
+ size_t NONCELEN, const uint8_t *NONCE, size_t AUTHLEN, size_t
+ MSGLEN, size_t TAGLEN)
+ -- Function: void ccm_aes192_set_nonce (struct ccm_aes192_ctx *CTX,
+ size_t NONCELEN, const uint8_t *NONCE, size_t AUTHLEN, size_t
+ MSGLEN, size_t TAGLEN)
+ -- Function: void ccm_aes256_set_nonce (struct ccm_aes256_ctx *CTX,
+ size_t NONCELEN, const uint8_t *NONCE, size_t AUTHLEN, size_t
+ MSGLEN, size_t TAGLEN)
+ These are identical to ‘ccm_set_nonce’, except that CIPHER, F, and
+ CTX are replaced with a context structure.
+
+ -- Function: void ccm_aes128_update (struct ccm_aes128_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void ccm_aes192_update (struct ccm_aes192_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ -- Function: void ccm_aes256_update (struct ccm_aes256_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ These are identical to ‘ccm_set_update’, except that CIPHER, F, and
+ CTX are replaced with a context structure.
+
+ -- Function: void ccm_aes128_encrypt (struct ccm_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes192_encrypt (struct ccm_aes192_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes256_encrypt (struct ccm_aes256_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes128_decrypt (struct ccm_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes192_decrypt (struct ccm_aes192_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes256_decrypt (struct ccm_aes256_ctx *CTX,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ These are identical to ‘ccm_set_encrypt’ and ‘ccm_set_decrypt’,
+ except that CIPHER, F, and CTX are replaced with a context
+ structure.
+
+ -- Function: void ccm_aes128_digest (struct ccm_aes128_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void ccm_aes192_digest (struct ccm_aes192_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ -- Function: void ccm_aes256_digest (struct ccm_aes256_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ These are identical to ‘ccm_set_digest’, except that CIPHER, F, and
+ CTX are replaced with a context structure.
+
+ -- Function: void ccm_aes128_encrypt_message (struct ccm_aes128_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t CLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes192_encrypt_message (struct ccm_aes192_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t CLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ -- Function: void ccm_aes256_encrypt_message (struct ccm_aes256_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t CLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ -- Function: int ccm_aes128_decrypt_message (struct ccm_aes128_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ -- Function: int ccm_aes192_decrypt_message (struct ccm_aes192_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ -- Function: int ccm_aes192_decrypt_message (struct ccm_aes256_ctx
+ *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH,
+ const uint8_t *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t
+ *DST, const uint8_t *SRC)
+ These are identical to ‘ccm_encrypt_message’ and
+ ‘ccm_decrypt_message’ except that CIPHER and F are replaced with a
+ context structure.
+
+
+File: nettle.info, Node: ChaCha-Poly1305, Next: OCB, Prev: CCM, Up: Authenticated encryption
+
+7.4.4 ChaCha-Poly1305
+---------------------
+
+ChaCha-Poly1305 is a combination of the ChaCha stream cipher and the
+poly1305 message authentication code (*note Poly1305::). It originates
+from the NaCl cryptographic library by D. J. Bernstein et al, which
+defines a similar construction but with Salsa20 instead of ChaCha.
+
+ Nettle’s implementation of ChaCha-Poly1305 follows ‘RFC 8439’, where
+the ChaCha cipher is initialized with a 12-byte nonce and a 4-byte block
+counter. This allows up to 256 gigabytes of data to be encrypted using
+the same key and nonce.
+
+ For ChaCha-Poly1305, the ChaCha cipher is initialized with a key, of
+256 bits, and a per-message nonce. The first block of the key stream
+(counter all zero) is set aside for the authentication subkeys. Of this
+64-octet block, the first 16 octets specify the poly1305 evaluation
+point, and the next 16 bytes specify the value to add in for the final
+digest. The final 32 bytes of this block are unused. Note that unlike
+poly1305-aes, the evaluation point depends on the nonce. This is
+preferable, because it leaks less information in case the attacker for
+some reason is lucky enough to forge a valid authentication tag, and
+observe (from the receiver’s behaviour) that the forgery succeeded.
+
+ The ChaCha key stream, starting with counter value 1, is then used to
+encrypt the message. For authentication, poly1305 is applied to the
+concatenation of the associated data, the cryptotext, and the lengths of
+the associated data and the message, each a 64-bit number (eight octets,
+little-endian). Nettle defines ChaCha-Poly1305 in
+‘<nettle/chacha-poly1305.h>’.
+
+ -- Constant: CHACHA_POLY1305_BLOCK_SIZE
+ Same as the ChaCha block size, 64.
+
+ -- Constant: CHACHA_POLY1305_KEY_SIZE
+ ChaCha-Poly1305 key size, 32.
+
+ -- Constant: CHACHA_POLY1305_NONCE_SIZE
+ ChaCha-Poly1305 nonce size, 12.
+
+ -- Constant: CHACHA_POLY1305_DIGEST_SIZE
+ Digest size, 16.
+
+ -- Context struct: struct chacha_poly1305_ctx
+
+ -- Function: void chacha_poly1305_set_key (struct chacha_poly1305_ctx
+ *CTX, const uint8_t *KEY)
+ Initializes CTX using the given key. Before using the context, you
+ _must_ also call ‘chacha_poly1305_set_nonce’, see below.
+
+ -- Function: void chacha_poly1305_set_nonce (struct chacha_poly1305_ctx
+ *CTX, const uint8_t *NONCE)
+ Initializes the per-message state, using the given nonce.
+
+ -- Function: void chacha_poly1305_update (struct chacha_poly1305_ctx
+ *CTX, size_t LENGTH, const uint8_t *DATA)
+ Process associated data for authentication.
+
+ -- Function: void chacha_poly1305_encrypt (struct chacha_poly1305_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ -- Function: void chacha_poly1305_decrypt (struct chacha_poly1305_ctx
+ *CTX, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts or decrypts the data of a message. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void chacha_poly1305_digest (struct chacha_poly1305_ctx
+ *CTX, size_t LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. If LENGTH
+ is smaller than ‘CHACHA_POLY1305_DIGEST_SIZE’, only the first
+ LENGTH octets of the digest are written.
+
+
+File: nettle.info, Node: OCB, Next: SIV-CMAC, Prev: ChaCha-Poly1305, Up: Authenticated encryption
+
+7.4.5 OCB (Offset Code Book) Mode
+---------------------------------
+
+The OCB mode is an AEAD construction, featuring particularly fast and
+simple authentication; it needs one block cipher operation per data
+block, and almost free authentication. It is constructed on top of a
+block cipher which must have a block size of 128 bits.
+
+ There have been several versions of the OCB scheme, the
+implementation in Nettle follows ‘RFC 7253’, which is almost the same as
+the scheme OCB3.
+
+7.4.5.1 General interface
+.........................
+
+ -- Context struct: struct ocb_key
+ OCB state which depends only on the key, but not on the nonce or
+ the message.
+
+ -- Context struct: struct ocb_ctx
+ Holds state corresponding to a particular message.
+
+ -- Constant: OCB_BLOCK_SIZE
+ The block size for OCB’s block size, 16.
+
+ -- Constant: OCB_MAX_NONCE_SIZE
+ The maximum nonce size for OCB, 15.
+
+ -- Constant: OCB_DIGEST_SIZE
+ Size of the OCB authentication tag.
+
+ -- Function: void ocb_set_key (struct ocb_key *KEY, const void *CIPHER,
+ nettle_cipher_func *F)
+ Initializes the KEY struct. The CIPHER context must be initialized
+ for encryption, and F should be the corresponding encryption
+ function.
+
+ -- Function: void ocb_set_nonce (struct ocb_ctx *CTX, const void
+ *CIPHER, nettle_cipher_func *F, size_t TAG_LENGTH, size_t
+ NONCE_LENGTH, const uint8_t *NONCE)
+ Initializes CTX for processing a new message, using the given
+ nonce. The CIPHER must be initialized for encryption, and F should
+ be the corresponding encryption function. The TAG_LENGTH
+ (non-zero, and at most 16) is included when initializing the state,
+ and should be the same value later passed to ‘ocb_digest’. Nonce
+ is optional, and length at most 15 bytes.
+
+ -- Function: void ocb_update (struct ocb_ctx *CTX, const struct ocb_key
+ *KEY, const void *CIPHER, nettle_cipher_func *F, size_t
+ LENGTH, const uint8_t *DATA)
+ Process associated data for authentication. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void ocb_encrypt (struct ocb_ctx *CTX, const struct
+ ocb_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Encrypts the data of a message. CIPHER is the context struct for
+ the underlying cipher and F is the encryption function. All but
+ the last call for each message _must_ use a length that is a
+ multiple of the block size.
+
+ -- Function: void ocb_decrypt (struct ocb_ctx *CTX, const struct
+ ocb_key *KEY, const void *ENCRYPT_CTX, nettle_cipher_func
+ *ENCRYPT, const void *DECRYPT_CTX, nettle_cipher_func
+ *DECRYPT, size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Decrypts the data of a message. ENCRYPT_CTX and ENCRYPT define the
+ encryption operation of the underlying cipher, while DECRYPT_CTX
+ and DECRYPT represent the decryption operation (for some ciphers,
+ one of context pointer and function pointer may be the same). All
+ but the last call for each message _must_ use a length that is a
+ multiple of the block size.
+
+ -- Function: void ocb_digest (const struct ocb_ctx *CTX, const struct
+ ocb_key *KEY, const void *CIPHER, nettle_cipher_func *F,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. The LENGTH
+ value _should_ be the same as the tag length passed to the
+ preceding ‘ocb_set_nonce’ call (using a different length is
+ possible, but incompatible with ‘RFC 7253’).
+
+ -- Function: void ocb_encrypt_message (const struct ocb_key *OCB_KEY,
+ const void *CIPHER, nettle_cipher_func *F, size_t NLENGTH,
+ const uint8_t *NONCE, size_t ALENGTH, const uint8_t *ADATA,
+ size_t TLENGTH, size_t CLENGTH, uint8_t *DST, const uint8_t
+ *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, appends the tag to the ciphertext
+ and writes it to DST. The CLENGTH variable must be equal to the
+ length of SRC plus TLENGTH.
+
+ -- Function: int ocb_decrypt_message (const struct ocb_key *OCB_KEY,
+ const void *ENCRYPT_CTX, nettle_cipher_func *ENCRYPT, const
+ void *DECRYPT_CTX, nettle_cipher_func *DECRYPT, size_t
+ NLENGTH, const uint8_t *NONCE, size_t ALENGTH, const uint8_t
+ *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t *DST, const
+ uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST.
+ Like ‘ocb_decrypt’, it needs both the encrypt and the decrypt
+ function of the underlying cipher. It also recalculates the
+ authentication tag from ADATA and the plaintext, and compares it to
+ the final TLENGTH bytes of SRC. If the values of the received and
+ calculated tags are equal, this will return 1 indicating a valid
+ and authenticated message. Otherwise, this function will return
+ zero.
+
+7.4.5.2 OCB-AES interface
+.........................
+
+ -- Context struct: struct ocb_aes128_encrypt_key
+ Key-dependent state for encryption using OCB-AES128. For
+ decryption, a separate ‘struct aes128_ctx’, initialized for
+ decryption, is needed as well.
+
+ -- Function: void ocb_aes128_set_encrypt_key (struct
+ ocb_aes128_encrypt_key *OCB, const uint8_t *KEY)
+ Initializes OCB and the underlying AES cipher with the given key.
+
+ -- Function: void ocb_aes128_set_decrypt_key (struct
+ ocb_aes128_encrypt_key *OCB, struct aes128_ctx *DECRYPT, const
+ uint8_t *KEY)
+ Initializes OCB and the underlying AES cipher with the given key.
+ In addition, initialize DECRYPT for decryption using the same key;
+ this is needed for ‘ocb_aes128_decrypt’ and
+ ‘ocb_aes128_decrypt_message’.
+
+ -- Function: void ocb_aes128_set_nonce (struct ocb_ctx *CTX, const
+ struct ocb_aes128_encrypt_key *KEY, size_t TAG_LENGTH, size_t
+ NONCE_LENGTH, const uint8_t *NONCE)
+ Initializes CTX for processing a new message, using the given nonce
+ and key. The TAG_LENGTH (non-zero, and at most 16) is included
+ when initializing the state, and should be the same value later
+ passed to ‘ocb_digest’. Nonce is optional, and length at most 15
+ bytes.
+
+ -- Function: void ocb_aes128_update (struct ocb_ctx *CTX, const struct
+ ocb_aes128_encrypt_key *KEY, size_t LENGTH, const uint8_t
+ *DATA)
+ Process associated data for authentication. All but the last call
+ for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void ocb_aes128_encrypt (struct ocb_ctx *CTX, const struct
+ ocb_aes128_encrypt_key *KEY, size_t LENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ Encrypts the data of a message. All but the last call for each
+ message _must_ use a length that is a multiple of the block size.
+
+ -- Function: void ocb_aes128_decrypt (struct ocb_ctx *CTX, const struct
+ ocb_aes128_encrypt_key *KEY, const struct aes128_ctx *DECRYPT,
+ size_t LENGTH, uint8_t *DST, const uint8_t *SRC)
+ Decrypts the data of a message. DECRYPT is an AES context
+ initialized for decryption using the same key. All but the last
+ call for each message _must_ use a length that is a multiple of the
+ block size.
+
+ -- Function: void ocb_aes128_digest (struct ocb_ctx *CTX, const struct
+ ocb_aes128_encrypt_key *KEY, size_t LENGTH, uint8_t *DIGEST)
+ Extracts the message digest (also known “authentication tag”).
+ This is the final operation when processing a message. The LENGTH
+ value _should_ be the same as the tag length passed to the
+ preceding ‘ocb_aes128_set_nonce’ call (using a different length is
+ possible, but incompatible with ‘RFC 7253’).
+
+ -- Function: void ocb_aes128_encrypt_message (const struct
+ ocb_aes128_encrypt_key *KEY, size_t NLENGTH, const uint8_t
+ *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t TLENGTH,
+ size_t CLENGTH, uint8_t *DST, const uint8_t *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, appends the tag to the ciphertext
+ and writes it to DST. The CLENGTH variable must be equal to the
+ length of SRC plus TLENGTH.
+
+ -- Function: int ocb_aes128_decrypt_message (const struct
+ ocb_aes128_encrypt_key *KEY, const struct aes128_ctx *DECRYPT,
+ size_t NLENGTH, const uint8_t *NONCE, size_t ALENGTH, const
+ uint8_t *ADATA, size_t TLENGTH, size_t MLENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST.
+ Like ‘ocb_aes128_decrypt’, it needs an AES context initialized for
+ decryption using the same key. It also recalculates the
+ authentication tag from ADATA and the plaintext, and compares it to
+ the final TLENGTH bytes of SRC. If the values of the received and
+ calculated tags are equal, this will return 1 indicating a valid
+ and authenticated message. Otherwise, this function will return
+ zero.
+
+
+File: nettle.info, Node: SIV-CMAC, Next: SIV-GCM, Prev: OCB, Up: Authenticated encryption
+
+7.4.6 Synthetic Initialization Vector AEAD
+------------------------------------------
+
+SIV-CMAC mode is a combination of counter mode with message
+authentication based on CMAC. Unlike other counter AEAD modes, it
+provides protection against accidental nonce misuse, making it a good
+choice for stateless-servers that cannot ensure nonce uniqueness. It is
+constructed on top of a block cipher which must have a block size of 128
+bits. Nettle’s support for SIV-CMAC consists of a message encryption
+and authentication interface, for SIV-CMAC using AES as the underlying
+block cipher. When a nonce is re-used with this mode, message
+authenticity is retained however an attacker can determine whether the
+same plaintext was protected with the two messages sharing the nonce.
+These interfaces are defined in ‘<nettle/siv-cmac.h>’.
+
+ Unlike other AEAD mode in SIV-CMAC the initialization vector serves
+as the tag. That means that in the generated ciphertext the tag
+precedes the ciphertext.
+
+ Note also, that the SIV-CMAC algorithm, as specified in ‘RFC 5297’,
+introduces the notion of authenticated data which consist of multiple
+components. For example with SIV-CMAC the authentication tag of data
+‘X’ followed by ‘Y’, is different than the concatenated data ‘X || Y’.
+The interfaces described below follow the AEAD paradigm and do not allow
+access to this feature and also require the use of a non-empty nonce.
+In the terminology of the RFC, the input to the S2V function is always a
+vector of three elements, where S1 is the authenticated data, S2 is the
+nonce, and S3 is the plaintext.
+
+7.4.6.1 General interface
+.........................
+
+ -- Constant: SIV_BLOCK_SIZE
+ SIV-CMAC’s block size, 16.
+
+ -- Constant: SIV_DIGEST_SIZE
+ Size of the SIV-CMAC digest or initialization vector, 16.
+
+ -- Constant: SIV_MIN_NONCE_SIZE
+ The the minimum size for an SIV-CMAC nonce, 1.
+
+7.4.6.2 SIV-CMAC-AES interface
+..............................
+
+The AES SIV-CMAC functions provide an API for using SIV-CMAC mode with
+the AES block ciphers. The parameters all have the same meaning as the
+general and message interfaces, except that the CIPHER, F, and CTX
+parameters are replaced with an AES context structure, and a set-key
+function must be called before using any of the other functions in this
+interface.
+
+ -- Context struct: struct siv_cmac_aes128_ctx
+ Holds state corresponding to a particular message encrypted using
+ the AES-128 block cipher.
+
+ -- Context struct: struct siv_cmac_aes256_ctx
+ Holds state corresponding to a particular message encrypted using
+ the AES-256 block cipher.
+
+ -- Function: void siv_cmac_aes128_set_key (struct siv_cmac_aes128_ctx
+ *CTX, const uint8_t *KEY)
+ -- Function: void siv_cmac_aes256_set_key (struct siv_cmac_aes256_ctx
+ *CTX, const uint8_t *KEY)
+ Initializes the encryption key for the AES block cipher. One of
+ these functions must be called before any of the other functions in
+ the AES SIV-CMAC interface.
+
+ -- Function: void siv_cmac_aes128_encrypt_message (struct
+ siv_cmac_aes128_ctx *CTX, size_t NLENGTH, const uint8_t
+ *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t CLENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ -- Function: void siv_cmac_aes256_encrypt_message (struct
+ siv_cmac_aes256_ctx *CTX, size_t NLENGTH, const uint8_t
+ *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t CLENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, prepends the initialization vector
+ to the ciphertext and outputs it to DST. The CLENGTH variable must
+ be equal to the length of SRC plus ‘SIV_DIGEST_SIZE’.
+
+ -- Function: int siv_cmac_aes128_decrypt_message (struct
+ siv_cmac_aes128_ctx *CTX, size_t NLENGTH, const uint8_t
+ *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t MLENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ -- Function: int siv_cmac_aes256_decrypt_message (struct
+ siv_cmac_aes128_ctx *CTX, size_t NLENGTH, const uint8_t
+ *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t MLENGTH,
+ uint8_t *DST, const uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST,
+ recalculates the initialization vector from ADATA and the
+ plaintext. If the values of the received and calculated
+ initialization vector are equal, this will return 1 indicating a
+ valid and authenticated message. Otherwise, this function will
+ return zero.
+
+
+File: nettle.info, Node: SIV-GCM, Next: nettle_aead abstraction, Prev: SIV-CMAC, Up: Authenticated encryption
+
+7.4.7 SIV-GCM
+-------------
+
+SIV-GCM, described in ‘RFC 8452’, is an AEAD construction similar to
+AES-GCM, but provides protection against accidental nonce misuse like
+SIV-CMAC mode.
+
+ It is constructed on top of a block cipher which must have a block
+size of 128 bits and a nonce size of 12 bytes. Nettle’s support for
+SIV-GCM consists of a message encryption and authentication interface,
+for SIV-GCM using AES as the underlying block cipher. These interfaces
+are defined in ‘<nettle/siv-gcm.h>’.
+
+ Unlike other AEAD mode in SIV-GCM the tag is calculated over the
+encoded additional authentication data and plaintext instead of the
+ciphertext.
+
+7.4.7.1 General interface
+.........................
+
+ -- Constant: SIV_GCM_BLOCK_SIZE
+ SIV-GCM’s block size, 16.
+
+ -- Constant: SIV_GCM_DIGEST_SIZE
+ Size of the SIV-GCM digest for tags, 16.
+
+ -- Constant: SIV_GCM_NONCE_SIZE
+ Size of the SIV-GCM nonce, 12.
+
+ -- Function: void siv_gcm_encrypt_message (const struct nettle_cipher
+ *NC, const void *CTX, void *CTR_CTX, size_t NLENGTH, const
+ uint8_t *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t
+ CLENGTH, uint8_t *DST, const uint8_t *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, appends the authentication tag to
+ the ciphertext and outputs it to DST. The CLENGTH variable must be
+ equal to the length of SRC plus ‘SIV_GCM_DIGEST_SIZE’.
+
+ -- Function: int siv_gcm_decrypt_message (const struct nettle_cipher
+ *NC, const void *CTX, void *CTR_CTX, size_t NLENGTH, const
+ uint8_t *NONCE, size_t ALENGTH, const uint8_t *ADATA, size_t
+ MLENGTH, uint8_t *DST, const uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST,
+ recalculates the initialization vector from ADATA and the
+ plaintext. If the values of the received and calculated
+ initialization vector are equal, this will return 1 indicating a
+ valid and authenticated message. Otherwise, this function will
+ return zero.
+
+ In the above interface, NC must point to a cipher that works with
+16-byte block size and the key sizes that are multiple of 8-bytes. The
+CTX context structure must be initialized for encryption mode using a
+set-key function, before using any of the functions in this interface.
+While the CTR_CTX context structure must have the same size as CTX, it
+does not need to be initialized before calling those functions as it is
+used as working storage. These structures can point to the same area;
+in that case the contents of *CTX is destroyed by the call.
+
+ For convenience, Nettle provides wrapper functions that works with
+AES described in the following section.
+
+7.4.7.2 SIV-GCM-AES interface
+.............................
+
+The SIV-GCM functions provide an API for using SIV-GCM mode with the AES
+block ciphers. The parameters all have the same meaning as the general
+and message interfaces, except that the CIPHER, F, and CTX parameters
+are replaced with an AES context structure. The AES context structure
+must be initialized for encryption mode using a set-key function, before
+using any of the functions in this interface.
+
+ -- Function: void siv_gcm_aes128_encrypt_message (const struct
+ aes128_ctx *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t
+ ALENGTH, const uint8_t *ADATA, size_t CLENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ -- Function: void siv_gcm_aes256_encrypt_message (const struct
+ aes256_ctx *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t
+ ALENGTH, const uint8_t *ADATA, size_t CLENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ Computes the message digest from the ADATA and SRC parameters,
+ encrypts the plaintext from SRC, appends the authentication tag to
+ the ciphertext and outputs it to DST. The CLENGTH variable must be
+ equal to the length of SRC plus ‘SIV_GCM_DIGEST_SIZE’.
+
+ -- Function: int siv_gcm_aes128_decrypt_message (const struct
+ aes128_ctx *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t
+ ALENGTH, const uint8_t *ADATA, size_t MLENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ -- Function: int siv_gcm_aes256_decrypt_message (const struct
+ aes256_ctx *CTX, size_t NLENGTH, const uint8_t *NONCE, size_t
+ ALENGTH, const uint8_t *ADATA, size_t MLENGTH, uint8_t *DST,
+ const uint8_t *SRC)
+ Decrypts the ciphertext from SRC, outputs the plaintext to DST,
+ recalculates the initialization vector from ADATA and the
+ plaintext. If the values of the received and calculated
+ initialization vector are equal, this will return 1 indicating a
+ valid and authenticated message. Otherwise, this function will
+ return zero.
+
+
+File: nettle.info, Node: nettle_aead abstraction, Prev: SIV-GCM, Up: Authenticated encryption
+
+7.4.8 The ‘struct nettle_aead’ abstraction
+------------------------------------------
+
+Nettle includes a struct including information about the supported hash
+functions. It is defined in ‘<nettle/nettle-meta.h>’.
+
+ -- Meta struct: struct nettle_aead name context_size block_size
+ key_size nonce_size digest_size set_encrypt_key
+ set_decrypt_key set_nonce update encrypt decrypt digest
+ The last seven attributes are function pointers.
+
+ -- Constant Struct: struct nettle_aead nettle_gcm_aes128
+ -- Constant Struct: struct nettle_aead nettle_gcm_aes192
+ -- Constant Struct: struct nettle_aead nettle_gcm_aes256
+ -- Constant Struct: struct nettle_aead nettle_gcm_camellia128
+ -- Constant Struct: struct nettle_aead nettle_gcm_camellia256
+ -- Constant Struct: struct nettle_aead nettle_eax_aes128
+ -- Constant Struct: struct nettle_aead nettle_chacha_poly1305
+ These are most of the AEAD constructions that Nettle implements.
+ Note that CCM is missing; it requirement that the message size is
+ specified in advance makes it incompatible with the ‘nettle_aead’
+ abstraction.
+
+ Nettle also exports a list of all these constructions.
+
+ -- Function: const struct nettle_aead ** nettle_get_aeads (void)
+ Returns a NULL-terminated list of pointers to supported
+ algorithms.This list can be used to dynamically enumerate or search
+ the supported algorithms.
+
+ -- Macro: nettle_aeads
+ A macro expanding to a call to nettle_get_aeads. In earlier
+ versions, this was not a macro but the actual array of pointers.
+
+
+File: nettle.info, Node: Keyed hash functions, Next: Key derivation functions, Prev: Authenticated encryption, Up: Reference
+
+7.5 Keyed Hash Functions
+========================
+
+A “keyed hash function”, or “Message Authentication Code” (MAC) is a
+function that takes a key and a message, and produces fixed size MAC.
+It should be hard to compute a message and a matching MAC without
+knowledge of the key. It should also be hard to compute the key given
+only messages and corresponding MACs.
+
+ Keyed hash functions are useful primarily for message authentication,
+when Alice and Bob shares a secret: The sender, Alice, computes the MAC
+and attaches it to the message. The receiver, Bob, also computes the
+MAC of the message, using the same key, and compares that to Alice’s
+value. If they match, Bob can be assured that the message has not been
+modified on its way from Alice.
+
+ However, unlike digital signatures, this assurance is not
+transferable. Bob can’t show the message and the MAC to a third party
+and prove that Alice sent that message. Not even if he gives away the
+key to the third party. The reason is that the _same_ key is used on
+both sides, and anyone knowing the key can create a correct MAC for any
+message. If Bob believes that only he and Alice knows the key, and he
+knows that he didn’t attach a MAC to a particular message, he knows it
+must be Alice who did it. However, the third party can’t distinguish
+between a MAC created by Alice and one created by Bob.
+
+ Keyed hash functions are typically a lot faster than digital
+signatures as well.
+
+* Menu:
+
+* HMAC::
+* UMAC::
+* CMAC::
+* Poly1305::
+
+
+File: nettle.info, Node: HMAC, Next: UMAC, Up: Keyed hash functions
+
+7.5.1 HMAC
+----------
+
+One can build keyed hash functions from ordinary hash functions. Older
+constructions simply concatenate secret key and message and hashes that,
+but such constructions have weaknesses. A better construction is HMAC,
+described in ‘RFC 2104’.
+
+ For an underlying hash function ‘H’, with digest size ‘l’ and
+internal block size ‘b’, HMAC-H is constructed as follows: From a given
+key ‘k’, two distinct subkeys ‘k_i’ and ‘k_o’ are constructed, both of
+length ‘b’. The HMAC-H of a message ‘m’ is then computed as ‘H(k_o |
+H(k_i | m))’, where ‘|’ denotes string concatenation.
+
+ HMAC keys can be of any length, but it is recommended to use keys of
+length ‘l’, the digest size of the underlying hash function ‘H’. Keys
+that are longer than ‘b’ are shortened to length ‘l’ by hashing with
+‘H’, so arbitrarily long keys aren’t very useful.
+
+ Nettle’s HMAC functions are defined in ‘<nettle/hmac.h>’. There are
+abstract functions that use a pointer to a ‘struct nettle_hash’ to
+represent the underlying hash function and ‘void *’ pointers that point
+to three different context structs for that hash function. There are
+also concrete functions for HMAC-MD5, HMAC-RIPEMD160 HMAC-SHA1,
+HMAC-SHA256, HMAC-SHA512, and HMAC-SM3. First, the abstract functions:
+
+ -- Function: void hmac_set_key (void *OUTER, void *INNER, void *STATE,
+ const struct nettle_hash *H, size_t LENGTH, const uint8_t
+ *KEY)
+ Initializes the three context structs from the key. The OUTER and
+ INNER contexts corresponds to the subkeys ‘k_o’ and ‘k_i’. STATE
+ is used for hashing the message, and is initialized as a copy of
+ the INNER context.
+
+ -- Function: void hmac_update (void *STATE, const struct nettle_hash
+ *H, size_t LENGTH, const uint8_t *DATA)
+ This function is called zero or more times to process the message.
+ Actually, ‘hmac_update(state, H, length, data)’ is equivalent to
+ ‘H->update(state, length, data)’, so if you wish you can use the
+ ordinary update function of the underlying hash function instead.
+
+ -- Function: void hmac_digest (const void *OUTER, const void *INNER,
+ void *STATE, const struct nettle_hash *H, size_t LENGTH,
+ uint8_t *DIGEST)
+ Extracts the MAC of the message, writing it to DIGEST. OUTER and
+ INNER are not modified. LENGTH is usually equal to
+ ‘H->digest_size’, but if you provide a smaller value, only the
+ first LENGTH octets of the MAC are written.
+
+ This function also resets the STATE context so that you can start
+ over processing a new message (with the same key).
+
+ Like for CBC, there are some macros to help use these functions
+correctly.
+
+ -- Macro: HMAC_CTX (TYPE)
+ Expands to
+ {
+ type outer;
+ type inner;
+ type state;
+ }
+
+ It can be used to define a HMAC context struct, either directly,
+
+ struct HMAC_CTX(struct md5_ctx) ctx;
+
+ or to give it a struct tag,
+
+ struct hmac_md5_ctx HMAC_CTX (struct md5_ctx);
+
+ -- Macro: HMAC_SET_KEY (CTX, H, LENGTH, KEY)
+ CTX is a pointer to a context struct as defined by ‘HMAC_CTX’, H is
+ a pointer to a ‘const struct nettle_hash’ describing the underlying
+ hash function (so it must match the type of the components of CTX).
+ The last two arguments specify the secret key.
+
+ -- Macro: HMAC_DIGEST (CTX, H, LENGTH, DIGEST)
+ CTX is a pointer to a context struct as defined by ‘HMAC_CTX’, H is
+ a pointer to a ‘const struct nettle_hash’ describing the underlying
+ hash function. The last two arguments specify where the digest is
+ written.
+
+ Note that there is no ‘HMAC_UPDATE’ macro; simply call ‘hmac_update’
+function directly, or the update function of the underlying hash
+function.
+
+ Now we come to the specialized HMAC functions, which are easier to
+use than the general HMAC functions.
+
+7.5.1.1 HMAC-MD5
+................
+
+ -- Context struct: struct hmac_md5_ctx
+
+ -- Function: void hmac_md5_set_key (struct hmac_md5_ctx *CTX, size_t
+ KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_md5_update (struct hmac_md5_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_md5_digest (struct hmac_md5_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘MD5_DIGEST_SIZE’, in which case only the first LENGTH octets of
+ the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+7.5.1.2 HMAC-RIPEMD160
+......................
+
+ -- Context struct: struct hmac_ripemd160_ctx
+
+ -- Function: void hmac_ripemd160_set_key (struct hmac_ripemd160_ctx
+ *CTX, size_t KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_ripemd160_update (struct hmac_ripemd160_ctx
+ *CTX, size_t LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_ripemd160_digest (struct hmac_ripemd160_ctx
+ *CTX, size_t LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘RIPEMD160_DIGEST_SIZE’, in which case only the first LENGTH octets
+ of the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+7.5.1.3 HMAC-SHA1
+.................
+
+ -- Context struct: struct hmac_sha1_ctx
+
+ -- Function: void hmac_sha1_set_key (struct hmac_sha1_ctx *CTX, size_t
+ KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_sha1_update (struct hmac_sha1_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_sha1_digest (struct hmac_sha1_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘SHA1_DIGEST_SIZE’, in which case only the first LENGTH octets of
+ the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+7.5.1.4 HMAC-SHA256
+...................
+
+ -- Context struct: struct hmac_sha256_ctx
+
+ -- Function: void hmac_sha256_set_key (struct hmac_sha256_ctx *CTX,
+ size_t KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_sha256_update (struct hmac_sha256_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_sha256_digest (struct hmac_sha256_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘SHA256_DIGEST_SIZE’, in which case only the first LENGTH octets of
+ the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+7.5.1.5 HMAC-SHA512
+...................
+
+ -- Context struct: struct hmac_sha512_ctx
+
+ -- Function: void hmac_sha512_set_key (struct hmac_sha512_ctx *CTX,
+ size_t KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_sha512_update (struct hmac_sha512_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_sha512_digest (struct hmac_sha512_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘SHA512_DIGEST_SIZE’, in which case only the first LENGTH octets of
+ the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+7.5.1.6 HMAC-SM3
+................
+
+ -- Context struct: struct hmac_sm3_ctx
+
+ -- Function: void hmac_sm3_set_key (struct hmac_sm3_ctx *CTX, size_t
+ KEY_LENGTH, const uint8_t *KEY)
+ Initializes the context with the key.
+
+ -- Function: void hmac_sm3_update (struct hmac_sm3_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ Process some more data.
+
+ -- Function: void hmac_sm3_digest (struct hmac_sm3_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the MAC, writing it to DIGEST. LENGTH may be smaller than
+ ‘SM3_DIGEST_SIZE’, in which case only the first LENGTH octets of
+ the MAC are written.
+
+ This function also resets the context for processing new messages,
+ with the same key.
+
+
+File: nettle.info, Node: UMAC, Next: CMAC, Prev: HMAC, Up: Keyed hash functions
+
+7.5.2 UMAC
+----------
+
+UMAC is a message authentication code based on universal hashing, and
+designed for high performance on modern processors (in contrast to GCM,
+*Note GCM::, which is designed primarily for hardware performance). On
+processors with good integer multiplication performance, it can be 10
+times faster than SHA256 and SHA512. UMAC is specified in ‘RFC 4418’.
+
+ The secret key is always 128 bits (16 octets). The key is used as an
+encryption key for the AES block cipher. This cipher is used in counter
+mode to generate various internal subkeys needed in UMAC. Messages are
+of arbitrary size, and for each message, UMAC also needs a unique nonce.
+Nonce values must not be reused for two messages with the same key, but
+they need not be kept secret.
+
+ The nonce must be at least one octet, and at most 16; nonces shorter
+than 16 octets are zero-padded. Nettle’s implementation of UMAC
+increments the nonce automatically for each message, so explicitly
+setting the nonce for each message is optional. This auto-increment
+uses network byte order and it takes the length of the nonce into
+account. E.g., if the initial nonce is “abc” (3 octets), this value is
+zero-padded to 16 octets for the first message. For the next message,
+the nonce is incremented to “abd”, and this incremented value is
+zero-padded to 16 octets.
+
+ UMAC is defined in four variants, for different output sizes: 32 bits
+(4 octets), 64 bits (8 octets), 96 bits (12 octets) and 128 bits (16
+octets), corresponding to different trade-offs between speed and
+security. Using a shorter output size sometimes (but not always!)
+gives the same result as using a longer output size and truncating the
+result. So it is important to use the right variant. For consistency
+with other hash and MAC functions, Nettle’s ‘_digest’ functions for UMAC
+accept a length parameter so that the output can be truncated to any
+desired size, but it is recommended to stick to the specified output
+size and select the umac variant corresponding to the desired size.
+
+ The internal block size of UMAC is 1024 octets, and it also generates
+more than 1024 bytes of subkeys. This makes the size of the context
+struct quite a bit larger than other hash functions and MAC algorithms
+in Nettle.
+
+ Nettle defines UMAC in ‘<nettle/umac.h>’.
+
+ -- Context struct: struct umac32_ctx
+ -- Context struct: struct umac64_ctx
+ -- Context struct: struct umac96_ctx
+ -- Context struct: struct umac128_ctx
+ Each UMAC variant uses its own context struct.
+
+ -- Constant: UMAC_KEY_SIZE
+ The UMAC key size, 16.
+ -- Constant: UMAC_MIN_NONCE_SIZE
+ -- Constant: UMAC_MAX_NONCE_SIZE
+ The the minimum and maximum sizes for an UMAC nonce, 1 and 16,
+ respectively.
+ -- Constant: UMAC32_DIGEST_SIZE
+ The size of an UMAC32 digest, 4.
+ -- Constant: UMAC64_DIGEST_SIZE
+ The size of an UMAC64 digest, 8.
+ -- Constant: UMAC96_DIGEST_SIZE
+ The size of an UMAC96 digest, 12.
+ -- Constant: UMAC128_DIGEST_SIZE
+ The size of an UMAC128 digest, 16.
+ -- Constant: UMAC_BLOCK_SIZE
+ The internal block size of UMAC.
+
+ -- Function: void umac32_set_key (struct umac32_ctx *CTX, const uint8_t
+ *KEY)
+ -- Function: void umac64_set_key (struct umac64_ctx *CTX, const uint8_t
+ *KEY)
+ -- Function: void umac96_set_key (struct umac96_ctx *CTX, const uint8_t
+ *KEY)
+ -- Function: void umac128_set_key (struct umac128_ctx *CTX, const
+ uint8_t *KEY)
+ These functions initialize the UMAC context struct. They also
+ initialize the nonce to zero (with length 16, for auto-increment).
+
+ -- Function: void umac32_set_nonce (struct umac32_ctx *CTX, size_t
+ LENGTH, const uint8_t *NONCE)
+ -- Function: void umac64_set_nonce (struct umac64_ctx *CTX, size_t
+ LENGTH, const uint8_t *NONCE)
+ -- Function: void umac96_set_nonce (struct umac96_ctx *CTX, size_t
+ LENGTH, const uint8_t *NONCE)
+ -- Function: void umac128_set_nonce (struct umac128_ctx *CTX, size_t
+ LENGTH, const uint8_t *NONCE)
+ Sets the nonce to be used for the next message. In general, nonces
+ should be set before processing of the message. This is not
+ strictly required for UMAC (the nonce only affects the final
+ processing generating the digest), but it is nevertheless
+ recommended that this function is called _before_ the first
+ ‘_update’ call for the message.
+
+ -- Function: void umac32_update (struct umac32_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ -- Function: void umac64_update (struct umac64_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ -- Function: void umac96_update (struct umac96_ctx *CTX, size_t LENGTH,
+ const uint8_t *DATA)
+ -- Function: void umac128_update (struct umac128_ctx *CTX, size_t
+ LENGTH, const uint8_t *DATA)
+ These functions are called zero or more times to process the
+ message.
+
+ -- Function: void umac32_digest (struct umac32_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ -- Function: void umac64_digest (struct umac64_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ -- Function: void umac96_digest (struct umac96_ctx *CTX, size_t LENGTH,
+ uint8_t *DIGEST)
+ -- Function: void umac128_digest (struct umac128_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the MAC of the message, writing it to DIGEST. LENGTH is
+ usually equal to the specified output size, but if you provide a
+ smaller value, only the first LENGTH octets of the MAC are written.
+ These functions reset the context for processing of a new message
+ with the same key. The nonce is incremented as described above,
+ the new value is used unless you call the ‘_set_nonce’ function
+ explicitly for each message.
+
+
+File: nettle.info, Node: CMAC, Next: Poly1305, Prev: UMAC, Up: Keyed hash functions
+
+7.5.3 CMAC
+----------
+
+CMAC is a message authentication code based on CBC encryption mode. It
+is suitable for systems where block ciphers are preferrable and perform
+better than hash functions. CMAC-128 is specified in ‘RFC4493’. The
+block size is always 128 bits (16 octets). CMAC-64 is specified by NIST
+Special Publication 800-38B
+(https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38B.pdf).
+The block size is always 64 bits (8 octets).
+
+ Nettle provides helper functions for CMAC-128 with the AES block
+cipher and for CMAC-64 with the Tripple-DES block cipher.
+
+ Nettle defines CMAC in ‘<nettle/cmac.h>’.
+
+ -- Context struct: struct cmac_aes128_ctx
+ -- Context struct: struct cmac_aes256_ctx
+
+ -- Constant: CMAC128_DIGEST_SIZE
+ The size of an CMAC-128 digest, 16.
+
+ -- Function: void cmac_aes128_set_key (struct cmac_aes128_ctx *CTX,
+ const uint8_t *KEY)
+ This function initializes the CMAC context struct for AES-128.
+
+ -- Function: void cmac_aes128_update (struct cmac_aes128_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ This function is called zero or more times to process the message.
+
+ -- Function: void cmac_aes128_digest (struct cmac_aes128_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the MAC of the message, writing it to DIGEST. LENGTH is
+ usually equal to the specified output size, but if you provide a
+ smaller value, only the first LENGTH octets of the MAC are written.
+ This function resets the context for processing of a new message
+ with the same key.
+
+ -- Function: void cmac_aes256_set_key (struct cmac_aes256_ctx *CTX,
+ const uint8_t *KEY)
+ This function initializes the CMAC context struct for AES-256.
+
+ -- Function: void cmac_aes256_update (struct cmac_aes256_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ This function is called zero or more times to process the message.
+
+ -- Function: void cmac_aes256_digest (struct cmac_aes256_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the MAC of the message, writing it to DIGEST. LENGTH is
+ usually equal to the specified output size, but if you provide a
+ smaller value, only the first LENGTH octets of the MAC are written.
+ This function resets the context for processing of a new message
+ with the same key.
+
+ -- Context struct: struct cmac_des3_ctx
+
+ -- Constant: CMAC64_DIGEST_SIZE
+ The size of an CMAC-64 digest, 8.
+
+ -- Function: void cmac_des3_set_key (struct cmac_des3_ctx *CTX, const
+ uint8_t *KEY)
+ This function initializes the CMAC context struct for Tripple-DES.
+
+ -- Function: void cmac_des3_update (struct cmac_des3_ctx *CTX,size_t
+ LENGTH, const uint8_t *DATA)
+ This function is called zero or more times to process the message.
+
+ -- Function: void cmac_des3_digest (struct cmac_des3_ctx *CTX, size_t
+ LENGTH, uint8_t *DIGEST)
+ Extracts the MAC of the message, writing it to DIGEST. LENGTH is
+ usually equal to the specified output size, but if you provide a
+ smaller value, only the first LENGTH octets of the MAC are written.
+ This function resets the context for processing of a new message
+ with the same key.
+
+
+File: nettle.info, Node: Poly1305, Prev: CMAC, Up: Keyed hash functions
+
+7.5.4 Poly1305
+--------------
+
+Poly1305-AES is a message authentication code designed by D. J.
+Bernstein. It treats the message as a polynomial modulo the prime
+number 2^130 - 5.
+
+ The key, 256 bits, consists of two parts, where the first half is an
+AES-128 key, and the second half specifies the point where the
+polynomial is evaluated. Of the latter half, 22 bits are set to zero,
+to enable high-performance implementation, leaving 106 bits for
+specifying an evaluation point ‘r’. For each message, one must also
+provide a 128-bit nonce. The nonce is encrypted using the AES key, and
+that’s the only thing AES is used for.
+
+ The message is split into 128-bit chunks (with final chunk possibly
+being shorter), each read as a little-endian integer. Each chunk has a
+one-bit appended at the high end. The resulting integers are treated as
+polynomial coefficients modulo 2^130 - 5, and the polynomial is
+evaluated at the point ‘r’. Finally, this value is reduced modulo
+2^128, and added (also modulo 2^128) to the encrypted nonce, to produce
+an 128-bit authenticator for the message. See
+<https://cr.yp.to/mac/poly1305-20050329.pdf> for further details.
+
+ Clearly, variants using a different cipher than AES could be defined.
+Another variant is the ChaCha-Poly1305 AEAD construction (*note
+ChaCha-Poly1305::). Nettle defines Poly1305-AES in ‘nettle/poly1305.h’.
+
+ -- Constant: POLY1305_AES_KEY_SIZE
+ Key size, 32 octets.
+
+ -- Constant: POLY1305_AES_DIGEST_SIZE
+ Size of the digest or “authenticator”, 16 octets.
+
+ -- Constant: POLY1305_AES_NONCE_SIZE
+ Nonce size, 16 octets.
+
+ -- Context struct: struct poly1305_aes_ctx
+ The poly1305-aes context struct.
+
+ -- Function: void poly1305_aes_set_key (struct poly1305_aes_ctx *CTX,
+ const uint8_t *KEY)
+ Initialize the context struct. Also sets the nonce to zero.
+
+ -- Function: void poly1305_aes_set_nonce (struct poly1305_aes_ctx *CTX,
+ const uint8_t *NONCE)
+ Sets the nonce. Calling this function is optional, since the nonce
+ is incremented automatically for each message.
+
+ -- Function: void poly1305_aes_update (struct poly1305_aes_ctx *CTX,
+ size_t LENGTH, const uint8_t *DATA)
+ Process more data.
+
+ -- Function: void poly1305_aes_digest (struct poly1305_aes_ctx *CTX,
+ size_t LENGTH, uint8_t *DIGEST)
+ Extracts the digest. If LENGTH is smaller than
+ ‘POLY1305_AES_DIGEST_SIZE’, only the first LENGTH octets are
+ written. Also increments the nonce, and prepares the context for
+ processing a new message.
+
+
+File: nettle.info, Node: Key derivation functions, Next: Public-key algorithms, Prev: Keyed hash functions, Up: Reference
+
+7.6 Key derivation Functions
+============================
+
+A “key derivation function” (KDF) is a function that from a given
+symmetric key derives other symmetric keys. A sub-class of KDFs is the
+“password-based key derivation functions” (PBKDFs), which take as input
+a password or passphrase, and its purpose is typically to strengthen it
+and protect against certain pre-computation attacks by using salting and
+expensive computation.
+
+7.6.1 HKDF: HMAC-based Extract-and-Expand
+-----------------------------------------
+
+HKDF is a key derivation function used as a building block of
+higher-level protocols like TLS 1.3. It is a derivation function based
+on HMAC described in ‘RFC 5869’, and is split into two logical modules,
+called ’extract’ and ’expand’. The extract module takes an initial
+secret and a random salt to "extract" a fixed-length pseudorandom key
+(PRK). The second stage takes as input the previous PRK and some
+informational data (e.g., text) and expands them into multiple keys.
+
+ Nettle’s HKDF functions are defined in ‘<nettle/hkdf.h>’. There are
+two abstract functions for the extract and expand operations that
+operate on any HMAC implemented via the ‘nettle_hash_update_func’, and
+‘nettle_hash_digest_func’ interfaces.
+
+ -- Function: void hkdf_extract (void *mac_ctx, nettle_hash_update_func
+ *update, nettle_hash_digest_func *digest, size_t
+ digest_size,size_t secret_size, const uint8_t *secret, uint8_t
+ *dst)
+ Extract a Pseudorandom Key (PRK) from a secret and a salt according
+ to HKDF. The HMAC must have been initialized, with its key being
+ the salt for the Extract operation. This function will call the
+ UPDATE and DIGEST functions passing the MAC_CTX context parameter
+ as an argument in order to compute digest of size DIGEST_SIZE.
+ Inputs are the secret SECRET of length SECRET_LENGTH. The output
+ length is fixed to DIGEST_SIZE octets, thus the output buffer DST
+ must have room for at least DIGEST_SIZE octets.
+
+ -- Function: void hkdf_expand (void *mac_ctx, nettle_hash_update_func
+ *update, nettle_hash_digest_func *digest, size_t digest_size,
+ size_t info_size, const uint8_t *info, size_t length, uint8_t
+ *dst)
+ Expand a Pseudorandom Key (PRK) to an arbitrary size according to
+ HKDF. The HMAC must have been initialized, with its key being the
+ PRK from the Extract operation. This function will call the UPDATE
+ and DIGEST functions passing the MAC_CTX context parameter as an
+ argument in order to compute digest of size DIGEST_SIZE. Inputs
+ are the info INFO of length INFO_LENGTH, and the desired derived
+ output length LENGTH. The output buffer is DST which must have
+ room for at least LENGTH octets.
+
+7.6.2 PBKDF2
+------------
+
+The most well known PBKDF is the ‘PKCS #5 PBKDF2’ described in ‘RFC
+2898’ which uses a pseudo-random function such as HMAC-SHA1.
+
+ Nettle’s PBKDF2 functions are defined in ‘<nettle/pbkdf2.h>’. There
+is an abstract function that operate on any PRF implemented via the
+‘nettle_hash_update_func’, ‘nettle_hash_digest_func’ interfaces. There
+is also helper macros and concrete functions PBKDF2-HMAC-SHA1,
+PBKDF2-HMAC-SHA256, PBKDF2-HMAC-SHA384 and PBKDF2-HMAC-SHA512. First,
+the abstract function:
+
+ -- Function: void pbkdf2 (void *mac_ctx, nettle_hash_update_func
+ *update, nettle_hash_digest_func *digest, size_t digest_size,
+ unsigned iterations, size_t salt_length, const uint8_t *salt,
+ size_t length, uint8_t *dst)
+ Derive symmetric key from a password according to PKCS #5 PBKDF2.
+ The PRF is assumed to have been initialized and this function will
+ call the UPDATE and DIGEST functions passing the MAC_CTX context
+ parameter as an argument in order to compute digest of size
+ DIGEST_SIZE. Inputs are the salt SALT of length SALT_LENGTH, the
+ iteration counter ITERATIONS (> 0), and the desired derived output
+ length LENGTH. The output buffer is DST which must have room for
+ at least LENGTH octets.
+
+ Like for CBC and HMAC, there is a macro to help use the function
+correctly.
+
+ -- Macro: PBKDF2 (CTX, UPDATE, DIGEST, DIGEST_SIZE, ITERATIONS,
+ SALT_LENGTH, SALT, LENGTH, DST)
+ CTX is a pointer to a context struct passed to the UPDATE and
+ DIGEST functions (of the types ‘nettle_hash_update_func’ and
+ ‘nettle_hash_digest_func’ respectively) to implement the underlying
+ PRF with digest size of DIGEST_SIZE. Inputs are the salt SALT of
+ length SALT_LENGTH, the iteration counter ITERATIONS (> 0), and the
+ desired derived output length LENGTH. The output buffer is DST
+ which must have room for at least LENGTH octets.
+
+7.6.3 Concrete PBKDF2 functions
+-------------------------------
+
+Now we come to the specialized PBKDF2 functions, which are easier to use
+than the general PBKDF2 function.
+
+7.6.3.1 PBKDF2-HMAC-SHA1
+........................
+
+ -- Function: void pbkdf2_hmac_sha1 (size_t KEY_LENGTH, const uint8_t
+ *KEY, unsigned ITERATIONS, size_t SALT_LENGTH, const uint8_t
+ *SALT, size_t LENGTH, uint8_t *DST)
+ PBKDF2 with HMAC-SHA1. Derive LENGTH bytes of key into buffer DST
+ using the password KEY of length KEY_LENGTH and salt SALT of length
+ SALT_LENGTH, with iteration counter ITERATIONS (> 0). The output
+ buffer is DST which must have room for at least LENGTH octets.
+
+7.6.3.2 PBKDF2-HMAC-SHA256
+..........................
+
+ -- Function: void pbkdf2_hmac_sha256 (size_t KEY_LENGTH, const uint8_t
+ *KEY, unsigned ITERATIONS, size_t SALT_LENGTH, const uint8_t
+ *SALT, size_t LENGTH, uint8_t *DST)
+ PBKDF2 with HMAC-SHA256. Derive LENGTH bytes of key into buffer
+ DST using the password KEY of length KEY_LENGTH and salt SALT of
+ length SALT_LENGTH, with iteration counter ITERATIONS (> 0). The
+ output buffer is DST which must have room for at least LENGTH
+ octets.
+
+7.6.3.3 PBKDF2-HMAC-SHA384
+..........................
+
+ -- Function: void pbkdf2_hmac_sha384 (size_t KEY_LENGTH, const uint8_t
+ *KEY, unsigned ITERATIONS, size_t SALT_LENGTH, const uint8_t
+ *SALT, size_t LENGTH, uint8_t *DST)
+ PBKDF2 with HMAC-SHA384. Derive LENGTH bytes of key into buffer
+ DST using the password KEY of length KEY_LENGTH and salt SALT of
+ length SALT_LENGTH, with iteration counter ITERATIONS (> 0). The
+ output buffer is DST which must have room for at least LENGTH
+ octets.
+
+7.6.3.4 PBKDF2-HMAC-SHA512
+..........................
+
+ -- Function: void pbkdf2_hmac_sha512 (size_t KEY_LENGTH, const uint8_t
+ *KEY, unsigned ITERATIONS, size_t SALT_LENGTH, const uint8_t
+ *SALT, size_t LENGTH, uint8_t *DST)
+ PBKDF2 with HMAC-SHA512. Derive LENGTH bytes of key into buffer
+ DST using the password KEY of length KEY_LENGTH and salt SALT of
+ length SALT_LENGTH, with iteration counter ITERATIONS (> 0). The
+ output buffer is DST which must have room for at least LENGTH
+ octets.
+
+7.6.4 BALLOON
+-------------
+
+Balloon is a memory-hard password-hashing algorithm. An in-depth
+description of the algorithm and its properties can be found in an
+online research paper: Boneh, D., Corrigan-Gibbs, H., Schechter, S.
+(2017, May 12). Balloon Hashing: A Memory-Hard Function Providing
+Provable Protection Against Sequential Attacks. Retrieved Sep 1, 2022,
+from <https://eprint.iacr.org/2016/027.pdf>
+
+ Nettle’s definition of the BALLOON algorithm can be found in
+‘<nettle/balloon.h>’. There is a general BALLOON function where the
+user can specify desired hash algorithm that will be used by the
+function. There are also concrete, more user-friendly functions that
+use common hash algorithms like SHA1, SHA256, SHA384 and SHA512. There
+is also a utility function which helps to determine the size of the
+working buffer that must be provided as one of the inputs.
+
+ Each BALLOON function takes as an input a password and a salt of
+arbitrary lengths, a time and a space parameters, and a scratch buffer.
+The space parameter S_COST determines how many blocks of working space
+the algorithm will require during its computation. It is common to set
+S_COST to a high value in order to increase the cost of hardware
+accelerators built by the adversary. The time parameter T_COST
+determines the number of rounds of computation that the algorithm will
+perform. This can be used to further increase the cost of computation
+without raising the memory requirement. Scratch buffer SCRATCH is a
+user allocated working space required by the algorithm. To determine
+the required size of the scratch buffer use the utility function
+‘balloon_itch’. Output of BALLOON algorithm will be written into the
+output buffer DST that has to be at least DIGEST_SIZE bytes long. Note
+that it is safe to use the same buffer for both SCRATCH and DST. Next
+follows the description of the general BALLOON function.
+
+ -- Function: void balloon (void *HASH_CTX, nettle_hash_update_func
+ *UPDATE, nettle_hash_digest_func *DIGEST, size_t DIGEST_SIZE,
+ size_t S_COST, size_t T_COST, size_t PASSWD_LENGTH, const
+ uint8_t *PASSWD, size_t SALT_LENGTH, const uint8_t *SALT,
+ uint8_t *SCRATCH, uint8_t *DST)
+ Compute hash of given password PASSWD of length PASSWD_LENGTH
+ salted with SALT of length SALT_LENGTH and write DIGEST_SIZE bytes
+ into the output buffer DST. Parameter HASH_CTX is a context for
+ the underlying hash function, which much be initialized by the
+ caller. UPDATE and DIGEST are the update and digest functions of
+ the chosen hash algorithm. DIGEST_SIZE is the digest size of the
+ chosen hash algorithm and determines the size of the output.
+
+ -- Function: size_t balloon_itch (size_t DIGEST_SIZE, size_t S_COST)
+ Compute the size of the scratch buffer SCRATCH. DIGEST_SIZE is the
+ digest size of the chosen hash algorithm. S_COST is the space
+ parameter used by the ‘balloon’ function.
+
+7.6.5 Concrete BALLOON functions
+--------------------------------
+
+Here follows a list of the specialized BALLOON functions, which are more
+user-friendly variants of the general function.
+
+7.6.5.1 BALLOON-SHA1
+....................
+
+ -- Function: void balloon_sha1 (size_t S_COST, size_t T_COST, size_t
+ PASSWD_LENGTH, const uint8_t *PASSWD, size_t SALT_LENGTH,
+ const uint8_t *SALT, uint8_t *SCRATCH, uint8_t *DST)
+ BALLOON algorithm using SHA1 as the underlying hash function.
+
+7.6.5.2 BALLOON-SHA256
+......................
+
+ -- Function: void balloon_sha256 (size_t S_COST, size_t T_COST, size_t
+ PASSWD_LENGTH, const uint8_t *PASSWD, size_t SALT_LENGTH,
+ const uint8_t *SALT, uint8_t *SCRATCH, uint8_t *DST)
+ BALLOON algorithm using SHA256 as the underlying hash function.
+
+7.6.5.3 BALLOON-SHA384
+......................
+
+ -- Function: void balloon_sha384 (size_t S_COST, size_t T_COST, size_t
+ PASSWD_LENGTH, const uint8_t *PASSWD, size_t SALT_LENGTH,
+ const uint8_t *SALT, uint8_t *SCRATCH, uint8_t *DST)
+ BALLOON algorithm using SHA384 as the underlying hash function.
+
+7.6.5.4 BALLOON-SHA512
+......................
+
+ -- Function: void balloon_sha512 (size_t S_COST, size_t T_COST, size_t
+ PASSWD_LENGTH, const uint8_t *PASSWD, size_t SALT_LENGTH,
+ const uint8_t *SALT, uint8_t *SCRATCH, uint8_t *DST)
+ BALLOON algorithm using SHA512 as the underlying hash function.
+
+
+File: nettle.info, Node: Public-key algorithms, Next: Randomness, Prev: Key derivation functions, Up: Reference
+
+7.7 Public-key algorithms
+=========================
+
+Nettle uses GMP, the GNU bignum library, for all calculations with large
+numbers. In order to use the public-key features of Nettle, you must
+install GMP, at least version 3.0, before compiling Nettle, and you need
+to link your programs with ‘-lhogweed -lnettle -lgmp’.
+
+ The concept of “Public-key” encryption and digital signatures was
+discovered by Whitfield Diffie and Martin E. Hellman and described in a
+paper 1976. In traditional, “symmetric”, cryptography, sender and
+receiver share the same keys, and these keys must be distributed in a
+secure way. And if there are many users or entities that need to
+communicate, each _pair_ needs a shared secret key known by nobody else.
+
+ Public-key cryptography uses trapdoor one-way functions. A “one-way
+function” is a function ‘F’ such that it is easy to compute the value
+‘F(x)’ for any ‘x’, but given a value ‘y’, it is hard to compute a
+corresponding ‘x’ such that ‘y = F(x)’. Two examples are cryptographic
+hash functions, and exponentiation in certain groups.
+
+ A “trapdoor one-way function” is a function ‘F’ that is one-way,
+unless one knows some secret information about ‘F’. If one knows the
+secret, it is easy to compute both ‘F’ and it’s inverse. If this sounds
+strange, look at the RSA example below.
+
+ Two important uses for one-way functions with trapdoors are
+public-key encryption, and digital signatures. The public-key
+encryption functions in Nettle are not yet documented; the rest of this
+chapter is about digital signatures.
+
+ To use a digital signature algorithm, one must first create a
+“key-pair”: A public key and a corresponding private key. The private
+key is used to sign messages, while the public key is used for verifying
+that that signatures and messages match. Some care must be taken when
+distributing the public key; it need not be kept secret, but if a bad
+guy is able to replace it (in transit, or in some user’s list of known
+public keys), bad things may happen.
+
+ There are two operations one can do with the keys. The signature
+operation takes a message and a private key, and creates a signature for
+the message. A signature is some string of bits, usually at most a few
+thousand bits or a few hundred octets. Unlike paper-and-ink signatures,
+the digital signature depends on the message, so one can’t cut it out of
+context and glue it to a different message.
+
+ The verification operation takes a public key, a message, and a
+string that is claimed to be a signature on the message, and returns
+true or false. If it returns true, that means that the three input
+values matched, and the verifier can be sure that someone went through
+with the signature operation on that very message, and that the
+“someone” also knows the private key corresponding to the public key.
+
+ The desired properties of a digital signature algorithm are as
+follows: Given the public key and pairs of messages and valid signatures
+on them, it should be hard to compute the private key, and it should
+also be hard to create a new message and signature that is accepted by
+the verification operation.
+
+ Besides signing meaningful messages, digital signatures can be used
+for authorization. A server can be configured with a public key, such
+that any client that connects to the service is given a random nonce
+message. If the server gets a reply with a correct signature matching
+the nonce message and the configured public key, the client is granted
+access. So the configuration of the server can be understood as “grant
+access to whoever knows the private key corresponding to this particular
+public key, and to no others”.
+
+* Menu:
+
+* RSA:: The RSA public key algorithm.
+* DSA:: The DSA digital signature algorithm.
+* Elliptic curves:: Elliptic curves and ECDSA
+
+
+File: nettle.info, Node: RSA, Next: DSA, Up: Public-key algorithms
+
+7.7.1 RSA
+---------
+
+The RSA algorithm was the first practical digital signature algorithm
+that was constructed. It was described 1978 in a paper by Ronald
+Rivest, Adi Shamir and L.M. Adleman, and the technique was also patented
+in the USA in 1983. The patent expired on September 20, 2000, and since
+that day, RSA can be used freely, even in the USA.
+
+ It’s remarkably simple to describe the trapdoor function behind RSA.
+The “one-way”-function used is
+
+ F(x) = x^e mod n
+
+ I.e. raise x to the ‘e’’th power, while discarding all multiples of
+‘n’. The pair of numbers ‘n’ and ‘e’ is the public key. ‘e’ can be
+quite small, even ‘e = 3’ has been used, although slightly larger
+numbers are recommended. ‘n’ should be about 2000 bits or larger.
+
+ If ‘n’ is large enough, and properly chosen, the inverse of F, the
+computation of ‘e’’th roots modulo ‘n’, is very difficult. But, where’s
+the trapdoor?
+
+ Let’s first look at how RSA key-pairs are generated. First ‘n’ is
+chosen as the product of two large prime numbers ‘p’ and ‘q’ of roughly
+the same size (so if ‘n’ is 2000 bits, ‘p’ and ‘q’ are about 1000 bits
+each). One also computes the number ‘phi = (p-1)(q-1)’, in mathematical
+speak, ‘phi’ is the order of the multiplicative group of integers modulo
+n.
+
+ Next, ‘e’ is chosen. It must have no factors in common with ‘phi’
+(in particular, it must be odd), but can otherwise be chosen more or
+less randomly. ‘e = 65537’ is a popular choice, because it makes
+raising to the ‘e’’th power particularly efficient, and being prime, it
+usually has no factors common with ‘phi’.
+
+ Finally, a number ‘d’, ‘d < n’ is computed such that ‘e d mod phi =
+1’. It can be shown that such a number exists (this is why ‘e’ and
+‘phi’ must have no common factors), and that for all x,
+
+ (x^e)^d mod n = x^(ed) mod n = (x^d)^e mod n = x
+
+ Using Euclid’s algorithm, ‘d’ can be computed quite easily from ‘phi’
+and ‘e’. But it is still hard to get ‘d’ without knowing ‘phi’, which
+depends on the factorization of ‘n’.
+
+ So ‘d’ is the trapdoor, if we know ‘d’ and ‘y = F(x)’, we can recover
+x as ‘y^d mod n’. ‘d’ is also the private half of the RSA key-pair.
+
+ The most common signature operation for RSA is defined in ‘PKCS#1’, a
+specification by RSA Laboratories. The message to be signed is first
+hashed using a cryptographic hash function, e.g. MD5 or SHA1. Next,
+some padding, the ASN.1 “Algorithm Identifier” for the hash function,
+and the message digest itself, are concatenated and converted to a
+number ‘x’. The signature is computed from ‘x’ and the private key as
+‘s = x^d mod n’(1) (*note RSA-Footnote-1::). The signature, ‘s’ is a
+number of about the same size of ‘n’, and it usually encoded as a
+sequence of octets, most significant octet first.
+
+ The verification operation is straight-forward, ‘x’ is computed from
+the message in the same way as above. Then ‘s^e mod n’ is computed, the
+operation returns true if and only if the result equals ‘x’.
+
+ The RSA algorithm can also be used for encryption. RSA encryption
+uses the public key ‘(n,e)’ to compute the ciphertext ‘m^e mod n’. The
+‘PKCS#1’ padding scheme will use at least 8 random and non-zero octets,
+using M of the form ‘[00 02 padding 00 plaintext]’. It is required that
+‘m < n’, and therefor the plaintext must be smaller than the octet size
+of the modulo ‘n’, with some margin.
+
+ To decrypt the message, one needs the private key to compute ‘m = c^e
+mod n’ followed by checking and removing the padding.
+
+7.7.1.1 Nettle’s RSA support
+............................
+
+Nettle represents RSA keys using two structures that contain large
+numbers (of type ‘mpz_t’).
+
+ -- Context struct: rsa_public_key size n e
+ ‘size’ is the size, in octets, of the modulo, and is used
+ internally. ‘n’ and ‘e’ is the public key.
+
+ -- Context struct: rsa_private_key size d p q a b c
+ ‘size’ is the size, in octets, of the modulo, and is used
+ internally. ‘d’ is the secret exponent, but it is not actually
+ used when signing. Instead, the factors ‘p’ and ‘q’, and the
+ parameters ‘a’, ‘b’ and ‘c’ are used. They are computed from ‘p’,
+ ‘q’ and ‘e’ such that ‘a e mod (p - 1) = 1, b e mod (q - 1) = 1, c
+ q mod p = 1’.
+
+ Before use, these structs must be initialized by calling one of
+
+ -- Function: void rsa_public_key_init (struct rsa_public_key *PUB)
+ -- Function: void rsa_private_key_init (struct rsa_private_key *KEY)
+ Calls ‘mpz_init’ on all numbers in the key struct.
+
+ and when finished with them, the space for the numbers must be
+deallocated by calling one of
+
+ -- Function: void rsa_public_key_clear (struct rsa_public_key *PUB)
+ -- Function: void rsa_private_key_clear (struct rsa_private_key *KEY)
+ Calls ‘mpz_clear’ on all numbers in the key struct.
+
+ In general, Nettle’s RSA functions deviates from Nettle’s “no memory
+allocation”-policy. Space for all the numbers, both in the key structs
+above, and temporaries, are allocated dynamically. For information on
+how to customize allocation, see *Note GMP Allocation: (gmp)Custom
+Allocation.
+
+ When you have assigned values to the attributes of a key, you must
+call
+
+ -- Function: int rsa_public_key_prepare (struct rsa_public_key *PUB)
+ -- Function: int rsa_private_key_prepare (struct rsa_private_key *KEY)
+ Computes the octet size of the key (stored in the ‘size’ attribute,
+ and may also do other basic sanity checks. Returns one if
+ successful, or zero if the key can’t be used, for instance if the
+ modulo is smaller than the minimum size needed for RSA operations
+ specified by PKCS#1.
+
+ For each operation using the private key, there are two variants,
+e.g., ‘rsa_sha256_sign’ and ‘rsa_sha256_sign_tr’. The former function
+is older, and it should be avoided, because it provides no defenses
+against side-channel attacks. The latter function use randomized RSA
+blinding, which defends against timing attacks using chosen-ciphertext,
+and it also checks the correctness of the private key computation using
+the public key, which defends against software or hardware errors which
+could leak the private key.
+
+ Before signing or verifying a message, you first hash it with the
+appropriate hash function. You pass the hash function’s context struct
+to the RSA signature function, and it will extract the message digest
+and do the rest of the work. There are also alternative functions that
+take the hash digest as argument.
+
+ There is currently no support for using SHA224 or SHA384 with RSA
+signatures, since there’s no gain in either computation time nor message
+size compared to using SHA256 and SHA512, respectively.
+
+ Creating an RSA signature is done with one of the following
+functions:
+
+ -- Function: int rsa_md5_sign_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, struct md5_ctx *HASH, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha1_sign_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, struct sha1_ctx *HASH, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha256_sign_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, struct sha256_ctx *HASH, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha512_sign_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, struct sha512_ctx *HASH, mpz_t
+ SIGNATURE)
+ The signature is stored in SIGNATURE (which must have been
+ ‘mpz_init’’ed earlier). The hash context is reset so that it can
+ be used for new messages. The RANDOM_CTX and RANDOM pointers are
+ used to generate the RSA blinding. Returns one on success, or zero
+ on failure. Signing fails if an error in the computation was
+ detected, or if the key is too small for the given hash size, e.g.,
+ it’s not possible to create a signature using SHA512 and a 512-bit
+ RSA key.
+
+ -- Function: int rsa_md5_sign_digest_tr (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, const uint8_t *DIGEST, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha1_sign_digest_tr (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, const uint8_t *DIGEST, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha256_sign_digest_tr (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, const uint8_t *DIGEST, mpz_t
+ SIGNATURE)
+ -- Function: int rsa_sha512_sign_digest_tr (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, const uint8_t *DIGEST, mpz_t
+ SIGNATURE)
+ Creates a signature from the given hash digest. DIGEST should
+ point to a digest of size ‘MD5_DIGEST_SIZE’, ‘SHA1_DIGEST_SIZE’,
+ ‘SHA256_DIGEST_SIZE’, or ‘SHA512_DIGEST_SIZE’respectively. The
+ signature is stored in SIGNATURE (which must have been
+ ‘mpz_init’:ed earlier). Returns one on success, or zero on
+ failure.
+
+ -- Function: int rsa_pkcs1_sign_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, size_t LENGTH, const uint8_t
+ *DIGEST_INFO, mpz_t SIGNATURE)
+ Similar to the above ‘_sign_digest_tr’ functions, but the input is
+ not the plain hash digest, but a PKCS#1 “DigestInfo”, an ASN.1
+ DER-encoding of the digest together with an object identifier for
+ the used hash algorithm.
+
+ -- Function: int rsa_md5_sign (const struct rsa_private_key *KEY,
+ struct md5_ctx *HASH, mpz_t SIGNATURE)
+ -- Function: int rsa_sha1_sign (const struct rsa_private_key *KEY,
+ struct sha1_ctx *HASH, mpz_t SIGNATURE)
+ -- Function: int rsa_sha256_sign (const struct rsa_private_key *KEY,
+ struct sha256_ctx *HASH, mpz_t SIGNATURE)
+ -- Function: int rsa_sha512_sign (const struct rsa_private_key *KEY,
+ struct sha512_ctx *HASH, mpz_t SIGNATURE)
+ The signature is stored in SIGNATURE (which must have been
+ ‘mpz_init’’ed earlier). The hash context is reset so that it can
+ be used for new messages. Returns one on success, or zero on
+ failure. Signing fails if the key is too small for the given hash
+ size, e.g., it’s not possible to create a signature using SHA512
+ and a 512-bit RSA key.
+
+ -- Function: int rsa_md5_sign_digest (const struct rsa_private_key
+ *KEY, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ -- Function: int rsa_sha1_sign_digest (const struct rsa_private_key
+ *KEY, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ -- Function: int rsa_sha256_sign_digest (const struct rsa_private_key
+ *KEY, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ -- Function: int rsa_sha512_sign_digest (const struct rsa_private_key
+ *KEY, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ Creates a signature from the given hash digest; otherwise
+ analoguous to the above signing functions. DIGEST should point to
+ a digest of size ‘MD5_DIGEST_SIZE’, ‘SHA1_DIGEST_SIZE’,
+ ‘SHA256_DIGEST_SIZE’, or ‘SHA512_DIGEST_SIZE’, respectively. The
+ signature is stored in SIGNATURE (which must have been
+ ‘mpz_init’:ed earlier). Returns one on success, or zero on
+ failure.
+
+ -- Function: int rsa_pkcs1_sign (const struct rsa_private_key *KEY,
+ size_t LENGTH, const uint8_t *DIGEST_INFO, mpz_t S)
+ Similar to the above _sign_digest functions, but the input is not
+ the plain hash digest, but a PKCS#1 “DigestInfo”, an ASN.1
+ DER-encoding of the digest together with an object identifier for
+ the used hash algorithm.
+
+ Verifying an RSA signature is done with one of the following
+functions:
+
+ -- Function: int rsa_md5_verify (const struct rsa_public_key *KEY,
+ struct md5_ctx *HASH, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha1_verify (const struct rsa_public_key *KEY,
+ struct sha1_ctx *HASH, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha256_verify (const struct rsa_public_key *KEY,
+ struct sha256_ctx *HASH, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha512_verify (const struct rsa_public_key *KEY,
+ struct sha512_ctx *HASH, const mpz_t SIGNATURE)
+ Returns 1 if the signature is valid, or 0 if it isn’t. In either
+ case, the hash context is reset so that it can be used for new
+ messages.
+
+ -- Function: int rsa_md5_verify_digest (const struct rsa_public_key
+ *KEY, const uint8_t *DIGEST, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha1_verify_digest (const struct rsa_public_key
+ *KEY, const uint8_t *DIGEST, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha256_verify_digest (const struct rsa_public_key
+ *KEY, const uint8_t *DIGEST, const mpz_t SIGNATURE)
+ -- Function: int rsa_sha512_verify_digest (const struct rsa_public_key
+ *KEY, const uint8_t *DIGEST, const mpz_t SIGNATURE)
+ Returns 1 if the signature is valid, or 0 if it isn’t. DIGEST
+ should point to a digest of size ‘MD5_DIGEST_SIZE’,
+ ‘SHA1_DIGEST_SIZE’, ‘SHA256_DIGEST_SIZE’, or ‘SHA512_DIGEST_SIZE’
+ respectively.
+
+ -- Function: int rsa_pkcs1_verify (const struct rsa_public_key *KEY,
+ size_t LENGTH, const uint8_t *DIGEST_INFO, const mpz_t
+ SIGNATURE)
+ Similar to the above _verify_digest functions, but the input is not
+ the plain hash digest, but a PKCS#1 “DigestInfo”, and ASN.1
+ DER-encoding of the digest together with an object identifier for
+ the used hash algorithm.
+
+ While the above functions for the RSA signature operations use the
+‘PKCS#1’ padding scheme, Nettle also provides the variants based on the
+PSS padding scheme, specified in ‘RFC 8017’. These variants take
+advantage of a randomly choosen salt value, which could enhance the
+security by causing output to be different for equivalent inputs.
+However, assuming the same security level as inverting the RSA
+algorithm, a longer salt value does not always mean a better security
+<https://www.iacr.org/archive/eurocrypt2002/23320268/coron.pdf>. The
+typical choices of the length are between 0 and the digest size of the
+underlying hash function.
+
+ Creating an RSA signature with the PSS padding scheme is done with
+one of the following functions:
+
+ -- Function: int rsa_pss_sha256_sign_digest_tr (const struct
+ rsa_public_key *PUB, const struct rsa_private_key *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t SALT_LENGTH,
+ const uint8_t *SALT, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ -- Function: int rsa_pss_sha384_sign_digest_tr (const struct
+ rsa_public_key *PUB, const struct rsa_private_key *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t SALT_LENGTH,
+ const uint8_t *SALT, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ -- Function: int rsa_pss_sha512_sign_digest_tr (const struct
+ rsa_public_key *PUB, const struct rsa_private_key *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t SALT_LENGTH,
+ const uint8_t *SALT, const uint8_t *DIGEST, mpz_t SIGNATURE)
+ Creates a signature using the PSS padding scheme. SALT should
+ point to a salt string of size SALT_LENGTH. DIGEST should point to
+ a digest of size ‘SHA256_DIGEST_SIZE’, ‘SHA384_DIGEST_SIZE’, or
+ ‘SHA512_DIGEST_SIZE’respectively. The signature is stored in
+ SIGNATURE (which must have been ‘mpz_init’:ed earlier). Returns
+ one on success, or zero on failure.
+
+ Verifying an RSA signature with the PSS padding scheme is done with
+one of the following functions:
+
+ -- Function: int rsa_pss_sha256_verify_digest (const struct
+ rsa_public_key *KEY, size_t SALT_LENGTH, const uint8_t
+ *DIGEST, const mpz_t SIGNATURE)
+ -- Function: int rsa_pss_sha384_verify_digest (const struct
+ rsa_public_key *KEY, size_t SALT_LENGTH, const uint8_t
+ *DIGEST, const mpz_t SIGNATURE)
+ -- Function: int rsa_pss_sha512_verify_digest (const struct
+ rsa_public_key *KEY, size_t SALT_LENGTH, const uint8_t
+ *DIGEST, const mpz_t SIGNATURE)
+ Returns 1 if the signature is valid, or 0 if it isn’t. DIGEST
+ should point to a digest of size ‘SHA256_DIGEST_SIZE’,
+ ‘SHA384_DIGEST_SIZE’, or ‘SHA512_DIGEST_SIZE’ respectively.
+
+ The following function is used to encrypt a clear text message using
+RSA.
+ -- Function: int rsa_encrypt (const struct rsa_public_key *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t LENGTH, const
+ uint8_t *CLEARTEXT, mpz_t CIPHERTEXT)
+ Returns 1 on success, 0 on failure. If the message is too long
+ then this will lead to a failure.
+ The following function is used to decrypt a cipher text message using
+RSA.
+ -- Function: int rsa_decrypt (const struct rsa_private_key *KEY, size_t
+ *LENGTH, uint8_t *CLEARTEXT, const mpz_t CIPHERTEXT)
+ Returns 1 on success, 0 on failure. Causes of failure include
+ decryption failing or the resulting message being to large. The
+ message buffer pointed to by CLEARTEXT must be of size *LENGTH.
+ After decryption, *LENGTH will be updated with the size of the
+ message.
+ There is also a timing resistant version of decryption that utilizes
+randomized RSA blinding.
+ -- Function: int rsa_decrypt_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, size_t *LENGTH, uint8_t *MESSAGE,
+ const mpz_t CIPHERTEXT)
+ Returns 1 on success, 0 on failure.
+
+ While the above functions for the RSA encryption operations use the
+‘PKCS#1’ padding scheme, Nettle also provides the variants based on the
+OAEP padding scheme, specified in ‘RFC 8017’. These variants take
+advantage of a randomly choosen seed value, which could enhance the
+security by causing output to be different for equivalent inputs.
+
+ Encrypting a clear text message using RSA with the OAEP padding
+scheme is done with one of the following functions:
+
+ -- Function: int rsa_oaep_sha256_encrypt (const struct rsa_public_key
+ *KEY, void *RANDOM_CTX, nettle_random_func *RANDOM, size_t
+ LABEL_LENGTH, const uint8_t *LABEL, size_t LENGTH, const
+ uint8_t *MESSAGE, uint8_t *CIPHERTEXT)
+ -- Function: int rsa_oaep_sha384_encrypt (const struct rsa_public_key
+ *KEY, void *RANDOM_CTX, nettle_random_func *RANDOM, size_t
+ LABEL_LENGTH, const uint8_t *LABEL, size_t LENGTH, const
+ uint8_t *MESSAGE, uint8_t *CIPHERTEXT)
+ -- Function: int rsa_oaep_sha512_encrypt (const struct rsa_public_key
+ *KEY, void *RANDOM_CTX, nettle_random_func *RANDOM, size_t
+ LABEL_LENGTH, const uint8_t *LABEL, size_t LENGTH, const
+ uint8_t *MESSAGE, uint8_t *CIPHERTEXT)
+ Returns 1 on success, 0 on failure. The label is optional and if
+ omitted, LABEL_LENGTH and LABEL is set to 0 and ‘NULL’
+ respectively. The maximum size of MESSAGE can be calculated with
+ ‘k - 2 * hLen - 2’, where ‘k’ is the key size in octets obtained
+ with KEY->size, and ‘hLen’ is the output size of the underlying
+ hash function (e.g., ‘SHA256_DIGEST_SIZE’ for
+ ‘rsa_oaep_sha256_encrypt’).
+
+ Decrypting a cipher text message using RSA with the OAEP padding
+scheme is done with one of the following functions:
+
+ -- Function: int rsa_oaep_sha256_decrypt (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, size_t LABEL_LENGTH, const uint8_t
+ *LABEL, size_t *LENGTH, uint8_t *MESSAGE, const uint8_t
+ *CIPHERTEXT)
+ -- Function: int rsa_oaep_sha384_decrypt (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, size_t LABEL_LENGTH, const uint8_t
+ *LABEL, size_t *LENGTH, uint8_t *MESSAGE, const uint8_t
+ *CIPHERTEXT)
+ -- Function: int rsa_oaep_sha512_decrypt (const struct rsa_public_key
+ *PUB, const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, size_t LABEL_LENGTH, const uint8_t
+ *LABEL, size_t *LENGTH, uint8_t *MESSAGE, const uint8_t
+ *CIPHERTEXT)
+ Returns 1 on success, 0 on failure. These function utilize
+ randomized RSA blinding similarly to ‘rsa_decrypt_tr’. The message
+ buffer pointed to by CLEARTEXT must be of size *LENGTH. After
+ decryption, *LENGTH will be updated with the size of the message.
+
+ If you need to use the RSA trapdoor, the private key, in a way that
+isn’t supported by the above functions Nettle also includes a function
+that computes ‘x^d mod n’ and nothing more, using the CRT optimization.
+
+ -- Function: int rsa_compute_root_tr (const struct rsa_public_key *PUB,
+ const struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM, mpz_t X, const mpz_t M)
+ Computes ‘x = m^d’. Returns one on success, or zero if a failure
+ in the computation was detected.
+
+ -- Function: void rsa_compute_root (struct rsa_private_key *KEY, mpz_t
+ X, const mpz_t M)
+ Computes ‘x = m^d’.
+
+ At last, how do you create new keys?
+
+ -- Function: int rsa_generate_keypair (struct rsa_public_key *PUB,
+ struct rsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, void *PROGRESS_CTX,
+ nettle_progress_func PROGRESS, unsigned N_SIZE, unsigned
+ E_SIZE)
+ There are lots of parameters. PUB and KEY is where the resulting
+ key pair is stored. The structs should be initialized, but you
+ don’t need to call ‘rsa_public_key_prepare’ or
+ ‘rsa_private_key_prepare’ after key generation.
+
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::.
+
+ PROGRESS and PROGRESS_CTX can be used to get callbacks during the
+ key generation process, in order to uphold an illusion of progress.
+ PROGRESS can be NULL, in that case there are no callbacks.
+
+ SIZE_N is the desired size of the modulo, in bits. If SIZE_E is
+ non-zero, it is the desired size of the public exponent and a
+ random exponent of that size is selected. But if E_SIZE is zero,
+ it is assumed that the caller has already chosen a value for ‘e’,
+ and stored it in PUB. Returns one on success, and zero on failure.
+ The function can fail for example if if N_SIZE is too small, or if
+ E_SIZE is zero and ‘pub->e’ is an even number.
+
+
+File: nettle.info, Node: RSA-Footnotes, Up: RSA
+
+ (1) Actually, the computation is not done like this, it is done more
+efficiently using ‘p’, ‘q’ and the Chinese remainder theorem (CRT). But
+the result is the same.
+
+
+File: nettle.info, Node: DSA, Next: Elliptic curves, Prev: RSA, Up: Public-key algorithms
+
+7.7.2 DSA
+---------
+
+The DSA digital signature algorithm is more complex than RSA. It was
+specified during the early 1990s, and in 1994 NIST published FIPS 186
+which is the authoritative specification. Sometimes DSA is referred to
+using the acronym DSS, for Digital Signature Standard. The most recent
+revision of the specification, FIPS186-3, was issued in 2009, and it
+adds support for larger hash functions than sha1.
+
+ For DSA, the underlying mathematical problem is the computation of
+discrete logarithms. The public key consists of a large prime ‘p’, a
+small prime ‘q’ which is a factor of ‘p-1’, a number ‘g’ which generates
+a subgroup of order ‘q’ modulo ‘p’, and an element ‘y’ in that subgroup.
+
+ In the original DSA, the size of ‘q’ is fixed to 160 bits, to match
+with the SHA1 hash algorithm. The size of ‘p’ is in principle
+unlimited, but the standard specifies only nine specific sizes: ‘512 +
+l*64’, where ‘l’ is between 0 and 8. Thus, the maximum size of ‘p’ is
+1024 bits, and sizes less than 1024 bits are considered obsolete and not
+secure.
+
+ The subgroup requirement means that if you compute
+
+ g^t mod p
+
+ for all possible integers ‘t’, you will get precisely ‘q’ distinct
+values.
+
+ The private key is a secret exponent ‘x’, such that
+
+ g^x = y mod p
+
+ In mathematical speak, ‘x’ is the “discrete logarithm” of ‘y’ mod
+‘p’, with respect to the generator ‘g’. The size of ‘x’ will also be
+about the same size as ‘q’. The security of the DSA algorithm relies on
+the difficulty of the discrete logarithm problem. Current algorithms to
+compute discrete logarithms in this setting, and hence crack DSA, are of
+two types. The first type works directly in the (multiplicative) group
+of integers mod ‘p’. The best known algorithm of this type is the
+Number Field Sieve, and it’s complexity is similar to the complexity of
+factoring numbers of the same size as ‘p’. The other type works in the
+smaller ‘q’-sized subgroup generated by ‘g’, which has a more difficult
+group structure. One good algorithm is Pollard-rho, which has
+complexity ‘sqrt(q)’.
+
+ The important point is that security depends on the size of _both_
+‘p’ and ‘q’, and they should be chosen so that the difficulty of both
+discrete logarithm methods are comparable. Today, the security margin
+of the original DSA may be uncomfortably small. Using a ‘p’ of 1024
+bits implies that cracking using the number field sieve is expected to
+take about the same time as factoring a 1024-bit RSA modulo, and using a
+‘q’ of size 160 bits implies that cracking using Pollard-rho will take
+roughly ‘2^80’ group operations. With the size of ‘q’ fixed, tied to
+the SHA1 digest size, it may be tempting to increase the size of ‘p’ to,
+say, 4096 bits. This will provide excellent resistance against attacks
+like the number field sieve which works in the large group. But it will
+do very little to defend against Pollard-rho attacking the small
+subgroup; the attacker is slowed down at most by a single factor of 10
+due to the more expensive group operation. And the attacker will surely
+choose the latter attack.
+
+ The signature generation algorithm is randomized; in order to create
+a DSA signature, you need a good source for random numbers (*note
+Randomness::). Let us describe the common case of a 160-bit ‘q’.
+
+ To create a signature, one starts with the hash digest of the
+message, ‘h’, which is a 160 bit number, and a random number ‘k, 0<k<q’,
+also 160 bits. Next, one computes
+
+ r = (g^k mod p) mod q
+ s = k^-1 (h + x r) mod q
+
+ The signature is the pair ‘(r, s)’, two 160 bit numbers. Note the
+two different mod operations when computing ‘r’, and the use of the
+secret exponent ‘x’.
+
+ To verify a signature, one first checks that ‘0 < r,s < q’, and then
+one computes backwards,
+
+ w = s^-1 mod q
+ v = (g^(w h) y^(w r) mod p) mod q
+
+ The signature is valid if ‘v = r’. This works out because ‘w = s^-1
+mod q = k (h + x r)^-1 mod q’, so that
+
+ g^(w h) y^(w r) = g^(w h) (g^x)^(w r) = g^(w (h + x r)) = g^k
+
+ When reducing mod ‘q’ this yields ‘r’. Note that when verifying a
+signature, we don’t know either ‘k’ or ‘x’: those numbers are secret.
+
+ If you can choose between RSA and DSA, which one is best? Both are
+believed to be secure. DSA gained popularity in the late 1990s, as a
+patent free alternative to RSA. Now that the RSA patents have expired,
+there’s no compelling reason to want to use DSA. Today, the original
+DSA key size does not provide a large security margin, and it should
+probably be phased out together with RSA keys of 1024 bits. Using the
+revised DSA algorithm with a larger hash function, in particular,
+SHA256, a 256-bit ‘q’, and ‘p’ of size 2048 bits or more, should provide
+for a more comfortable security margin, but these variants are not yet
+in wide use.
+
+ DSA signatures are smaller than RSA signatures, which is important
+for some specialized applications.
+
+ From a practical point of view, DSA’s need for a good randomness
+source is a serious disadvantage. If you ever use the same ‘k’ (and
+‘r’) for two different message, you leak your private key.
+
+7.7.2.1 Nettle’s DSA support
+............................
+
+Like for RSA, Nettle represents DSA keys using two structures,
+containing values of type ‘mpz_t’. For information on how to customize
+allocation, see *Note GMP Allocation: (gmp)Custom Allocation. Nettle’s
+DSA interface is defined in ‘<nettle/dsa.h>’.
+
+ A DSA group is represented using the following struct.
+
+ -- Context struct: dsa_params p q g
+ Parameters of the DSA group.
+
+ -- Function: void dsa_params_init (struct dsa_params *PARAMS)
+ Calls ‘mpz_init’ on all numbers in the struct.
+
+ -- Function: void dsa_params_clear (struct dsa_params *PARAMSparams)
+ Calls ‘mpz_clear’ on all numbers in the struct.
+
+ -- Function: int dsa_generate_params (struct dsa_params *PARAMS, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, void *PROGRESS_CTX,
+ nettle_progress_func *PROGRESS, unsigned P_BITS, unsigned
+ Q_BITS)
+ Generates parameters of a new group. The PARAMS struct should be
+ initialized before you call this function.
+
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::.
+
+ PROGRESS and PROGRESS_CTX can be used to get callbacks during the
+ key generation process, in order to uphold an illusion of progress.
+ PROGRESS can be NULL, in that case there are no callbacks.
+
+ P_BITS and Q_BITS are the desired sizes of ‘p’ and ‘q’. To
+ generate keys that conform to the original DSA standard, you must
+ use ‘q_bits = 160’ and select P_BITS of the form ‘p_bits = 512 +
+ l*64’, for ‘0 <= l <= 8’, where the smaller sizes are no longer
+ recommended, so you should most likely stick to ‘p_bits = 1024’.
+ Non-standard sizes are possible, in particular ‘p_bits’ larger than
+ 1024, although DSA implementations can not in general be expected
+ to support such keys. Also note that using very large P_BITS, with
+ Q_BITS fixed at 160, doesn’t make much sense, because the security
+ is also limited by the size of the smaller prime. To generate DSA
+ keys for use with SHA256, use ‘q_bits = 256’ and, e.g., ‘p_bits =
+ 2048’.
+
+ Returns one on success, and zero on failure. The function will
+ fail if Q_BITS is too small, or too close to P_BITS.
+
+ Signatures are represented using the structure below.
+
+ -- Context struct: dsa_signature r s
+ The R and S fields are both of type ‘mpz_t’.
+
+ -- Function: void dsa_signature_init (struct dsa_signature *SIGNATURE)
+ -- Function: void dsa_signature_clear (struct dsa_signature *SIGNATURE)
+ You must call ‘dsa_signature_init’ before creating or using a
+ signature, and call ‘dsa_signature_clear’ when you are finished
+ with it.
+
+ Keys are represented as bignums, of type ‘mpz_t’. A public key
+represents a group element, and is of the same size as ‘p’, while a
+private key is an exponent, of the same size as ‘q’.
+
+ -- Function: int dsa_sign (const struct dsa_params *PARAMS, const mpz_t
+ X, void *RANDOM_CTX, nettle_random_func *RANDOM, size_t
+ DIGEST_SIZE, const uint8_t *DIGEST, struct dsa_signature
+ *SIGNATURE)
+ Creates a signature from the given hash digest, using the private
+ key X. RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::. Returns one on success, or zero on failure. Signing
+ can fail only if the key is invalid, so that inversion modulo ‘q’
+ fails.
+
+ -- Function: int dsa_verify (const struct dsa_params *PARAMS, const
+ mpz_t Y, size_t DIGEST_SIZE, const uint8_t *DIGEST, const
+ struct dsa_signature *SIGNATURE)
+ Verifies a signature, using the public key y. Returns 1 if the
+ signature is valid, otherwise 0.
+
+ To generate a keypair, first generate a DSA group using
+‘dsa_generate_params’. A keypair in this group is then created using
+
+ -- Function: void dsa_generate_keypair (const struct dsa_params
+ *PARAMS, mpz_t PUB, mpz_t KEY, void *RANDOM_CTX,
+ nettle_random_func *RANDOM)
+ Generates a new keypair, using the group PARAMS. The public key is
+ stored in PUB, and the private key in KEY. Both variables must be
+ initialized using ‘mpz_init’ before this call.
+
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::.
+
+7.7.2.2 Old, deprecated, DSA interface
+......................................
+
+Versions before nettle-3.0 used a different interface for DSA
+signatures, where the group parameters and the public key was packed
+together as ‘struct dsa_public_key’. Most of this interface is kept for
+backwards compatibility, and declared in ‘nettle/dsa-compat.h’. Below
+is the old documentation. The old and new interface use distinct names
+and don’t confict, with one exception: The key generation function. The
+‘nettle/dsa-compat.h’ redefines ‘dsa_generate_keypair’ as an alias for
+‘dsa_compat_generate_keypair’, compatible with the old interface and
+documented below.
+
+ The old DSA functions are very similar to the corresponding RSA
+functions, but there are a few differences pointed out below. For a
+start, there are no functions corresponding to ‘rsa_public_key_prepare’
+and ‘rsa_private_key_prepare’.
+
+ -- Context struct: dsa_public_key p q g y
+ The public parameters described above.
+
+ -- Context struct: dsa_private_key x
+ The private key ‘x’.
+
+ Before use, these structs must be initialized by calling one of
+
+ -- Function: void dsa_public_key_init (struct dsa_public_key *PUB)
+ -- Function: void dsa_private_key_init (struct dsa_private_key *KEY)
+ Calls ‘mpz_init’ on all numbers in the key struct.
+
+ When finished with them, the space for the numbers must be
+deallocated by calling one of
+
+ -- Function: void dsa_public_key_clear (struct dsa_public_key *PUB)
+ -- Function: void dsa_private_key_clear (struct dsa_private_key *KEY)
+ Calls ‘mpz_clear’ on all numbers in the key struct.
+
+ Signatures are represented using ‘struct dsa_signature’, described
+earlier.
+
+ For signing, you need to provide both the public and the private key
+(unlike RSA, where the private key struct includes all information
+needed for signing), and a source for random numbers. Signatures can
+use the SHA1 or the SHA256 hash function, although the implementation of
+DSA with SHA256 should be considered somewhat experimental due to lack
+of official test vectors and interoperability testing.
+
+ -- Function: int dsa_sha1_sign (const struct dsa_public_key *PUB, const
+ struct dsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, struct sha1_ctx *HASH, struct
+ dsa_signature *SIGNATURE)
+ -- Function: int dsa_sha1_sign_digest (const struct dsa_public_key
+ *PUB, const struct dsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, const uint8_t *DIGEST, struct
+ dsa_signature *SIGNATURE)
+ -- Function: int dsa_sha256_sign (const struct dsa_public_key *PUB,
+ const struct dsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, struct sha256_ctx *HASH, struct
+ dsa_signature *SIGNATURE)
+ -- Function: int dsa_sha256_sign_digest (const struct dsa_public_key
+ *PUB, const struct dsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, const uint8_t *DIGEST, struct
+ dsa_signature *SIGNATURE)
+ Creates a signature from the given hash context or digest.
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::. Returns one on success, or zero on failure. Signing
+ fails if the key size and the hash size don’t match.
+
+ Verifying signatures is a little easier, since no randomness
+generator is needed. The functions are
+
+ -- Function: int dsa_sha1_verify (const struct dsa_public_key *KEY,
+ struct sha1_ctx *HASH, const struct dsa_signature *SIGNATURE)
+ -- Function: int dsa_sha1_verify_digest (const struct dsa_public_key
+ *KEY, const uint8_t *DIGEST, const struct dsa_signature
+ *SIGNATURE)
+ -- Function: int dsa_sha256_verify (const struct dsa_public_key *KEY,
+ struct sha256_ctx *HASH, const struct dsa_signature
+ *SIGNATURE)
+ -- Function: int dsa_sha256_verify_digest (const struct dsa_public_key
+ *KEY, const uint8_t *DIGEST, const struct dsa_signature
+ *SIGNATURE)
+ Verifies a signature. Returns 1 if the signature is valid,
+ otherwise 0.
+
+ Key generation uses mostly the same parameters as the corresponding
+RSA function.
+
+ -- Function: int dsa_compat_generate_keypair (struct dsa_public_key
+ *PUB, struct dsa_private_key *KEY, void *RANDOM_CTX,
+ nettle_random_func RANDOM, void *PROGRESS_CTX,
+ nettle_progress_func PROGRESS, unsigned P_BITS, unsigned
+ Q_BITS)
+ PUB and KEY is where the resulting key pair is stored. The structs
+ should be initialized before you call this function.
+
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::.
+
+ PROGRESS and PROGRESS_CTX can be used to get callbacks during the
+ key generation process, in order to uphold an illusion of progress.
+ PROGRESS can be NULL, in that case there are no callbacks.
+
+ P_BITS and Q_BITS are the desired sizes of ‘p’ and ‘q’. See
+ ‘dsa_generate_keypair’ for details.
+
+
+File: nettle.info, Node: Elliptic curves, Prev: DSA, Up: Public-key algorithms
+
+7.7.3 Elliptic curves
+---------------------
+
+For cryptographic purposes, an elliptic curve is a mathematical group of
+points, and computing logarithms in this group is computationally
+difficult problem. Nettle uses additive notation for elliptic curve
+groups. If P and Q are two points, and k is an integer, the point sum,
+P + Q, and the multiple k P can be computed efficiently, but given only
+two points P and Q, finding an integer k such that Q = k P is the
+elliptic curve discrete logarithm problem.
+
+ Nettle supports standard curves which are all of the form y^2 = x^3 -
+3 x + b (mod p), i.e., the points have coordinates (x,y), both
+considered as integers modulo a specified prime p. Curves are
+represented as a ‘struct ecc_curve’. It also supports curve25519, which
+uses a different form of curve. Supported curves are declared in
+‘<nettle/ecc-curve.h>’, e.g., call ‘nettle_get_secp_256r1’ for a
+standardized curve using the 256-bit prime p = 2^{256} - 2^{224} +
+2^{192} + 2^{96} - 1. The contents of these structs is not visible to
+nettle users. The “bitsize of the curve” is used as a shorthand for the
+bitsize of the curve’s prime p, e.g., 256 bits for the SECP 256R1 curve.
+
+* Menu:
+
+* Side-channel silence::
+* ECDSA::
+* GOSTDSA::
+* Curve 25519 and Curve 448::
+
+
+File: nettle.info, Node: Side-channel silence, Next: ECDSA, Up: Elliptic curves
+
+7.7.3.1 Side-channel silence
+............................
+
+Nettle’s implementation of the elliptic curve operations is intended to
+be side-channel silent. The side-channel attacks considered are:
+
+ • Timing attacks If the timing of operations depends on secret
+ values, an attacker interacting with your system can measure the
+ response time, and infer information about your secrets, e.g., a
+ private signature key.
+
+ • Attacks using memory caches Assume you have some secret data on a
+ multi-user system, and that this data is properly protected so that
+ other users get no direct access to it. If you have a process
+ operating on the secret data, and this process does memory accesses
+ depending on the data, e.g, an internal lookup table in some
+ cryptographic algorithm, an attacker running a separate process on
+ the same system may use behavior of internal CPU caches to get
+ information about your secrets. This type of attack can even cross
+ virtual machine boundaries.
+
+ Nettle’s ECC implementation is designed to be “side-channel silent”,
+and not leak any information to these attacks. Timing and memory
+accesses depend only on the size of the input data and its location in
+memory, not on the actual data bits. This implies a performance penalty
+in several of the building blocks.
+
+
+File: nettle.info, Node: ECDSA, Next: GOSTDSA, Prev: Side-channel silence, Up: Elliptic curves
+
+7.7.3.2 ECDSA
+.............
+
+ECDSA is a variant of the DSA digital signature scheme (*note DSA::),
+which works over an elliptic curve group rather than over a (subgroup
+of) integers modulo p. Like DSA, creating a signature requires a unique
+random nonce (repeating the nonce with two different messages reveals
+the private key, and any leak or bias in the generation of the nonce
+also leaks information about the key).
+
+ Unlike DSA, signatures are in general not tied to any particular hash
+function or even hash size. Any hash function can be used, and the hash
+value is truncated or padded as needed to get a size matching the curve
+being used. It is recommended to use a strong cryptographic hash
+function with digest size close to the bit size of the curve, e.g.,
+SHA256 is a reasonable choice when using ECDSA signature over the curve
+secp256r1. A protocol or application using ECDSA has to specify which
+curve and which hash function to use, or provide some mechanism for
+negotiating.
+
+ Nettle defines ECDSA in ‘<nettle/ecdsa.h>’. We first need to define
+the data types used to represent public and private keys.
+
+ -- struct: struct ecc_point
+ Represents a point on an elliptic curve. In particular, it is used
+ to represent an ECDSA public key.
+
+ -- Function: void ecc_point_init (struct ecc_point *P, const struct
+ ecc_curve *ECC)
+ Initializes P to represent points on the given curve ECC.
+ Allocates storage for the coordinates, using the same allocation
+ functions as GMP.
+
+ -- Function: void ecc_point_clear (struct ecc_point *P)
+ Deallocate storage allocated by previous ecc_point_init.
+
+ -- Function: int ecc_point_set (struct ecc_point *P, const mpz_t X,
+ const mpz_t Y)
+ Check that the given coordinates represent a point on the curve.
+ If so, the coordinates are copied and converted to internal
+ representation, and the function returns 1. Otherwise, it returns
+ 0. Currently, the infinity point (or zero point, with additive
+ notation) is not allowed.
+
+ -- Function: void ecc_point_get (const struct ecc_point *P, mpz_t X,
+ mpz_t Y)
+ Extracts the coordinate of the point P. The output parameters X or
+ Y may be NULL if the caller doesn’t want that coordinate.
+
+ -- struct: struct ecc_scalar
+ Represents an integer in the range 0 < x < group order, where the
+ “group order” refers to the order of an ECC group. In particular,
+ it is used to represent an ECDSA private key.
+
+ -- Function: void ecc_scalar_init (struct ecc_scalar *S, const struct
+ ecc_curve *ECC)
+ Initializes S to represent a scalar suitable for the given curve
+ ECC. Allocates storage using the same allocation functions as GMP.
+
+ -- Function: void ecc_scalar_clear (struct ecc_scalar *S)
+ Deallocate the storage allocated by previous ecc_scalar_init.
+
+ -- Function: int ecc_scalar_set (struct ecc_scalar *S, const mpz_t Z)
+ Check that Z is in the correct range. If so, copies the value to S
+ and returns 1, otherwise returns 0.
+
+ -- Function: void ecc_scalar_get (const struct ecc_scalar *S, mpz_t Z)
+ Extracts the scalar, in GMP ‘mpz_t’ representation.
+
+ To create and verify ECDSA signatures, the following functions are
+used.
+
+ -- Function: void ecdsa_sign (const struct ecc_scalar *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t DIGEST_LENGTH,
+ const uint8_t *DIGEST, struct dsa_signature *SIGNATURE)
+ Uses the private key KEY to create a signature of DIGEST.
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. The signature is stored in
+ SIGNATURE, in the same way as for plain DSA.
+
+ -- Function: int ecdsa_verify (const struct ecc_point *PUB, size_t
+ LENGTH, const uint8_t *DIGEST, const struct dsa_signature
+ *SIGNATURE)
+ Uses the public key PUB to verify that SIGNATURE is a valid
+ signature for the message digest DIGEST (of LENGTH octets).
+ Returns 1 if the signature is valid, otherwise 0.
+
+ Finally, generating a new ECDSA key pair:
+
+ -- Function: void ecdsa_generate_keypair (struct ecc_point *PUB, struct
+ ecc_scalar *KEY, void *RANDOM_CTX, nettle_random_func *RANDOM)
+ PUB and KEY is where the resulting key pair is stored. The structs
+ should be initialized, for the desired ECC curve, before you call
+ this function.
+
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. For advice, see *Note
+ Randomness::.
+
+
+File: nettle.info, Node: GOSTDSA, Next: Curve 25519 and Curve 448, Prev: ECDSA, Up: Elliptic curves
+
+7.7.3.3 GOSTDSA
+...............
+
+GOSTDSA (GOST R 34.10-2001, GOST R 34.10-2012) is a variant of the DSA
+(*note DSA::) and ECDSA (*note ECDSA::) digital signature schemes, which
+works over an elliptic curve group. Original documents are written in
+Russian. English translations are provided in ‘RFC 5832’ and ‘RFC
+7091’. While technically nothing stops one from using GOSTDSA over any
+curve, it is defined only over several 256 and 512-bit curves. Like DSA
+and ECDSA, creating a signature requires a unique random nonce
+(repeating the nonce with two different messages reveals the private
+key, and any leak or bias in the generation of the nonce also leaks
+information about the key).
+
+ GOST R 34.10-2001 was defined to use GOST R 34.11-94 hash function
+(GOSTHASH94 and GOSTHASH94CP, ‘RFC 5831’). GOST R 34.10-2012 is defined
+to use GOST R 34.11-2012 hash function (Streebog, ‘RFC 6986’) of
+corresponding size (256 or 512) depending on curve size.
+
+ Nettle defines GOSTDSA in ‘<nettle/gostdsa.h>’. GOSTDSA reuses ECDSA
+data types (‘struct ecc_point’, ‘struct ecc_scalar’) to represent public
+and private keys. Also to generate a new GOSTDSA key pair one has to
+use ‘ecdsa_generate_keypair()’ function.
+
+ To create and verify GOSTDSA signatures, the following functions are
+used.
+
+ -- Function: void gostdsa_sign (const struct ecc_scalar *KEY, void
+ *RANDOM_CTX, nettle_random_func *RANDOM, size_t DIGEST_LENGTH,
+ const uint8_t *DIGEST, struct dsa_signature *SIGNATURE)
+ Uses the private key KEY to create a signature of DIGEST.
+ RANDOM_CTX and RANDOM is a randomness generator.
+ ‘random(random_ctx, length, dst)’ should generate ‘length’ random
+ octets and store them at ‘dst’. The signature is stored in
+ SIGNATURE, in the same was as for plain DSA.
+
+ -- Function: int gostdsa_verify (const struct ecc_point *PUB, size_t
+ LENGTH, const uint8_t *DIGEST, const struct dsa_signature
+ *SIGNATURE)
+ Uses the public key PUB to verify that SIGNATURE is a valid
+ signature for the message digest DIGEST (of LENGTH octets).
+ Returns 1 if the signature is valid, otherwise 0.
+
+ For historical reason several curve IDs (OIDs) may correspond to a
+single curve/generator combination. Following list defines
+correspondence between nettle’s view on curves and actual identifiers
+defined in ‘RFC 4357’ and ‘RFC 7836’.
+
+ -- Function: const struct ecc_curve nettle_get_gost_gc256b (void)
+ Returns curve corresponding to following identifiers:
+ • id-GostR3410-2001-CryptoPro-A-ParamSet (‘RFC 4357’)
+ • id-GostR3410-2001-CryptoPro-XchA-ParamSet (‘RFC 4357’)
+ • id-tc26-gost-3410-12-256-paramSetB
+
+ -- Function: const struct ecc_curve nettle_get_gost_gc512a (void)
+ Returns curve corresponding to following identifiers:
+ • id-tc26-gost-3410-12-512-paramSetA (‘RFC 7836’)
+
+ For GOST key pairs key derivation/key agreement function (VKO) is
+defined in ‘RFC 4357’ and ‘RFC 7836’. Basically shared key is equal to
+hash(cofactor * ukm * priv * pub). Nettle library provides a function
+that does multiplication. Caller should do hashing on his own (it will
+be either GOST R 34.11-94 (*note GOSTHASH94CP::) or GOST R 34.11-2012,
+Streebog, which nor part of the library yet).
+
+ -- Function: void gostdsa_vko (const struct ecc_scalar *PRIV, const
+ struct ecc_point *PUB, size_t UKM_LENGTH, const uint8_t *UKM,
+ uint8_t *OUT)
+ Uses private key PRIV, public ket PUB and shared key material UKM
+ to generate shared secret, written to buffer OUT. The buffer
+ should be of the size equal to 2 private key lengths: 64 bytes for
+ 256 bit curves and 128 bytes for 512 bit ones. UKM is a shared key
+ material, usually transferred in cleartext. It does not have to be
+ secret.
+
+
+File: nettle.info, Node: Curve 25519 and Curve 448, Prev: GOSTDSA, Up: Elliptic curves
+
+7.7.3.4 Curve25519 and Curve448
+...............................
+
+Curve25519 is an elliptic curve of Montgomery type, y^2 = x^3 + 486662
+x^2 + x (mod p), with p = 2^255 - 19. Montgomery curves have the
+advantage of simple and efficient point addition based on the
+x-coordinate only. This particular curve was proposed by D. J.
+Bernstein in 2006, for fast Diffie-Hellman key exchange, and is also
+described in ‘RFC 7748’. The group generator is defined by x = 9 (there
+are actually two points with x = 9, differing by the sign of the
+y-coordinate, but that doesn’t matter for the curve25519 operations
+which work with the x-coordinate only).
+
+ The curve25519 functions are defined as operations on octet strings,
+representing 255-bit scalars or x-coordinates, in little-endian byte
+order. The most significant input bit, i.e, the most significant bit of
+the last octet, is always ignored.
+
+ For scalars, in addition, the least significant three bits are
+ignored, and treated as zero, and the second most significant bit is
+ignored too, and treated as one. Then the scalar input string always
+represents 8 times a number in the range 2^251 <= s < 2^252.
+
+ Of all the possible input strings, only about half correspond to
+x-coordinates of points on curve25519, i.e., a value x for which the the
+curve equation can be solved for y. The other half correspond to points
+on a related “twist curve”. The function ‘curve25519_mul’ uses a
+Montgomery ladder for the scalar multiplication, as suggested in the
+curve25519 literature, and required by ‘RFC 7748’. The output is
+therefore well defined for _all_ possible inputs, no matter if the input
+string represents a valid point on the curve or not.
+
+ Note that the curve25519 implementation in earlier versions of Nettle
+deviates slightly from ‘RFC 7748’, in that bit 255 of the x coordinate
+of the point input to curve25519_mul was not ignored. The
+‘nette/curve25519.h’ defines a preprocessor symbol
+‘NETTLE_CURVE25519_RFC7748’ to indicate conformance with the standard.
+
+ Nettle defines Curve 25519 in ‘<nettle/curve25519.h>’.
+
+ -- Constant: NETTLE_CURVE25519_RFC7748
+ Defined to 1 in Nettle versions conforming to RFC 7748. Undefined
+ in earlier versions.
+
+ -- Constant: CURVE25519_SIZE
+ The size of the strings representing curve25519 points and scalars,
+ 32.
+
+ -- Function: void curve25519_mul_g (uint8_t *Q, const uint8_t *N)
+ Computes Q = N G, where G is the group generator and N is an
+ integer. The input argument N and the output argument Q use a
+ little-endian representation of the scalar and the x-coordinate,
+ respectively. They are both of size ‘CURVE25519_SIZE’.
+
+ This function is intended to be compatible with the function
+ ‘crypto_scalar_mult_base’ in the NaCl library.
+
+ -- Function: void curve25519_mul (uint8_t *Q, const uint8_t *N, const
+ uint8_t *P)
+ Computes Q = N P, where P is an input point and N is an integer.
+ The input arguments N and P and the output argument Q use a
+ little-endian representation of the scalar and the x-coordinates,
+ respectively. They are all of size ‘CURVE25519_SIZE’.
+
+ This function is intended to be compatible with the function
+ ‘crypto_scalar_mult’ in the NaCl library.
+
+ Similarly, Nettle also implements Curve448, an elliptic curve of
+Montgomery type, y^2 = x^3 + 156326 x^2 + x (mod p), with p = 2^448 -
+2^224 - 1. This particular curve was proposed by Mike Hamburg in 2015,
+for fast Diffie-Hellman key exchange, and is also described in ‘RFC
+7748’.
+
+ Nettle defines Curve 448 in ‘<nettle/curve448.h>’.
+
+ -- Constant: CURVE448_SIZE
+ The octet length of the strings representing curve448 points and
+ scalars, 56.
+
+ -- Function: void curve448_mul_g (uint8_t *Q, const uint8_t *N)
+ Computes Q = N G, where G is the group generator and N is an
+ integer. The input argument N and the output argument Q use a
+ little-endian representation of the scalar and the x-coordinate,
+ respectively. They are both of size ‘CURVE448_SIZE’.
+
+ This function is intended to be compatible with the function
+ ‘crypto_scalar_mult_base’ in the NaCl library.
+
+ -- Function: void curve448_mul (uint8_t *Q, const uint8_t *N, const
+ uint8_t *P)
+ Computes Q = N P, where P is an input point and N is an integer.
+ The input arguments N and P and the output argument Q use a
+ little-endian representation of the scalar and the x-coordinates,
+ respectively. They are all of size ‘CURVE448_SIZE’.
+
+ This function is intended to be compatible with the function
+ ‘crypto_scalar_mult’ in the NaCl library.
+
+7.7.3.5 EdDSA
+.............
+
+EdDSA is a signature scheme proposed by D. J. Bernstein et al. in 2011.
+It is defined using a “Twisted Edwards curve”, of the form -x^2 + y^2 =
+1 + d x^2 y^2. The specific signature scheme Ed25519 uses a curve which
+is equivalent to curve25519: The two groups used differ only by a simple
+change of coordinates, so that the discrete logarithm problem is of
+equal difficulty in both groups.
+
+ Unlike other signature schemes in Nettle, the input to the EdDSA sign
+and verify functions is the possibly large message itself, not a hash
+digest. EdDSA is a variant of Schnorr signatures, where the message is
+hashed together with other data during the signature process, providing
+resilience to hash-collisions: A successful attack finding collisions in
+the hash function does not automatically translate into an attack to
+forge signatures. EdDSA also avoids the use of a randomness source by
+generating the needed signature nonce from a hash of the private key and
+the message, which means that the message is actually hashed twice when
+creating a signature. If signing huge messages, it is possible to hash
+the message first and pass the short message digest as input to the sign
+and verify functions, however, the resilience to hash collision is then
+lost.
+
+ -- Constant: ED25519_KEY_SIZE
+ The size of a private or public Ed25519 key, 32 octets.
+
+ -- Constant: ED25519_SIGNATURE_SIZE
+ The size of an Ed25519 signature, 64 octets.
+
+ -- Function: void ed25519_sha512_public_key (uint8_t *PUB, const
+ uint8_t *PRIV)
+ Computes the public key corresponding to the given private key.
+ Both input and output are of size ‘ED25519_KEY_SIZE’.
+
+ -- Function: void ed25519_sha512_sign (const uint8_t *PUB, const
+ uint8_t *PRIV, size_t LENGTH, const uint8_t *MSG, uint8_t
+ *SIGNATURE)
+ Signs a message using the provided key pair.
+
+ -- Function: int ed25519_sha512_verify (const uint8_t *PUB, size_t
+ LENGTH, const uint8_t *MSG, const uint8_t *SIGNATURE)
+ Verifies a message using the provided public key. Returns 1 if the
+ signature is valid, otherwise 0.
+
+ Nettle also provides Ed448, an EdDSA signature scheme based on an
+Edwards curve equivalent to curve448.
+
+ -- Constant: ED448_KEY_SIZE
+ The size of a private or public Ed448 key, 57 octets.
+
+ -- Constant: ED448_SIGNATURE_SIZE
+ The size of an Ed448 signature, 114 octets.
+
+ -- Function: void ed448_shake256_public_key (uint8_t *PUB, const
+ uint8_t *PRIV)
+ Computes the public key corresponding to the given private key.
+ Both input and output are of size ‘ED448_KEY_SIZE’.
+
+ -- Function: void ed448_shake256_sign (const uint8_t *PUB, const
+ uint8_t *PRIV, size_t LENGTH, const uint8_t *MSG, uint8_t
+ *SIGNATURE)
+ Signs a message using the provided key pair.
+
+ -- Function: int ed448_shake256_verify (const uint8_t *PUB, size_t
+ LENGTH, const uint8_t *MSG, const uint8_t *SIGNATURE)
+ Verifies a message using the provided public key. Returns 1 if the
+ signature is valid, otherwise 0.
+
+
+File: nettle.info, Node: Randomness, Next: ASCII encoding, Prev: Public-key algorithms, Up: Reference
+
+7.8 Randomness
+==============
+
+A crucial ingredient in many cryptographic contexts is randomness: Let
+‘p’ be a random prime, choose a random initialization vector ‘iv’, a
+random key ‘k’ and a random exponent ‘e’, etc. In the theories, it is
+assumed that you have plenty of randomness around. If this assumption
+is not true in practice, systems that are otherwise perfectly secure,
+can be broken. Randomness has often turned out to be the weakest link
+in the chain.
+
+ In non-cryptographic applications, such as games as well as
+scientific simulation, a good randomness generator usually means a
+generator that has good statistical properties, and is seeded by some
+simple function of things like the current time, process id, and host
+name.
+
+ However, such a generator is inadequate for cryptography, for at
+least two reasons:
+
+ • It’s too easy for an attacker to guess the initial seed. Even if
+ it will take some 2^32 tries before he guesses right, that’s far
+ too easy. For example, if the process id is 16 bits, the
+ resolution of “current time” is one second, and the attacker knows
+ what day the generator was seeded, there are only about 2^32
+ possibilities to try if all possible values for the process id and
+ time-of-day are tried.
+
+ • The generator output reveals too much. By observing only a small
+ segment of the generator’s output, its internal state can be
+ recovered, and from there, all previous output and all future
+ output can be computed by the attacker.
+
+ A randomness generator that is used for cryptographic purposes must
+have better properties. Let’s first look at the seeding, as the issues
+here are mostly independent of the rest of the generator. The initial
+state of the generator (its seed) must be unguessable by the attacker.
+So what’s unguessable? It depends on what the attacker already knows.
+The concept used in information theory to reason about such things is
+called “entropy”, or “conditional entropy” (not to be confused with the
+thermodynamic concept with the same name). A reasonable requirement is
+that the seed contains a conditional entropy of at least some 80-100
+bits. This property can be explained as follows: Allow the attacker to
+ask ‘n’ yes-no-questions, of his own choice, about the seed. If the
+attacker, using this question-and-answer session, as well as any other
+information he knows about the seeding process, still can’t guess the
+seed correctly, then the conditional entropy is more than ‘n’ bits.
+
+ Let’s look at an example. Say information about timing of received
+network packets is used in the seeding process. If there is some random
+network traffic going on, this will contribute some bits of entropy or
+“unguessability” to the seed. However, if the attacker can listen in to
+the local network, or if all but a small number of the packets were
+transmitted by machines that the attacker can monitor, this additional
+information makes the seed easier for the attacker to figure out. Even
+if the information is exactly the same, the conditional entropy, or
+unguessability, is smaller for an attacker that knows some of it already
+before the hypothetical question-and-answer session.
+
+ Seeding of good generators is usually based on several sources. The
+key point here is that the amount of unguessability that each source
+contributes, depends on who the attacker is. Some sources that have
+been used are:
+
+High resolution timing of i/o activities
+ Such as completed blocks from spinning hard disks, network packets,
+ etc. Getting access to such information is quite system dependent,
+ and not all systems include suitable hardware. If available, it’s
+ one of the better randomness source one can find in a digital,
+ mostly predictable, computer.
+
+User activity
+ Timing and contents of user interaction events is another popular
+ source that is available for interactive programs (even if I
+ suspect that it is sometimes used in order to make the user feel
+ good, not because the quality of the input is needed or used
+ properly). Obviously, not available when a machine is unattended.
+ Also beware of networks: User interaction that happens across a
+ long serial cable, TELNET session, or even SSH session may be
+ visible to an attacker, in full or partially.
+
+Audio input
+ Any room, or even a microphone input that’s left unconnected, is a
+ source of some random background noise, which can be fed into the
+ seeding process.
+
+Specialized hardware
+ Hardware devices with the sole purpose of generating random data
+ have been designed. They range from radioactive samples with an
+ attached Geiger counter, to amplification of the inherent noise in
+ electronic components such as diodes and resistors, to
+ low-frequency sampling of chaotic systems. Hashing successive
+ images of a Lava lamp is a spectacular example of the latter type.
+
+Secret information
+ Secret information, such as user passwords or keys, or private
+ files stored on disk, can provide some unguessability. A problem
+ is that if the information is revealed at a later time, the
+ unguessability vanishes. Another problem is that this kind of
+ information tends to be fairly constant, so if you rely on it and
+ seed your generator regularly, you risk constructing almost similar
+ seeds or even constructing the same seed more than once.
+
+ For all practical sources, it’s difficult but important to provide a
+reliable lower bound on the amount of unguessability that it provides.
+Two important points are to make sure that the attacker can’t observe
+your sources (so if you like the Lava lamp idea, remember that you have
+to get your own lamp, and not put it by a window or anywhere else where
+strangers can see it), and that hardware failures are detected. What if
+the bulb in the Lava lamp, which you keep locked into a cupboard
+following the above advice, breaks after a few months?
+
+ So let’s assume that we have been able to find an unguessable seed,
+which contains at least 80 bits of conditional entropy, relative to all
+attackers that we care about (typically, we must at the very least
+assume that no attacker has root privileges on our machine).
+
+ How do we generate output from this seed, and how much can we get?
+Some generators (notably the Linux ‘/dev/random’ generator) tries to
+estimate available entropy and restrict the amount of output. The goal
+is that if you read 128 bits from ‘/dev/random’, you should get 128
+“truly random” bits. This is a property that is useful in some
+specialized circumstances, for instance when generating key material for
+a one time pad, or when working with unconditional blinding, but in most
+cases, it doesn’t matter much. For most application, there’s no limit
+on the amount of useful “random” data that we can generate from a small
+seed; what matters is that the seed is unguessable and that the
+generator has good cryptographic properties.
+
+ At the heart of all generators lies its internal state. Future
+output is determined by the internal state alone. Let’s call it the
+generator’s key. The key is initialized from the unguessable seed.
+Important properties of a generator are:
+
+“Key-hiding”
+ An attacker observing the output should not be able to recover the
+ generator’s key.
+
+“Independence of outputs”
+ Observing some of the output should not help the attacker to guess
+ previous or future output.
+
+“Forward secrecy”
+ Even if an attacker compromises the generator’s key, he should not
+ be able to guess the generator output _before_ the key compromise.
+
+“Recovery from key compromise”
+ If an attacker compromises the generator’s key, he can compute
+ _all_ future output. This is inevitable if the generator is seeded
+ only once, at startup. However, the generator can provide a
+ reseeding mechanism, to achieve recovery from key compromise. More
+ precisely: If the attacker compromises the key at a particular time
+ ‘t_1’, there is another later time ‘t_2’, such that if the attacker
+ observes all output generated between ‘t_1’ and ‘t_2’, he still
+ can’t guess what output is generated after ‘t_2’.
+
+ Nettle includes one randomness generator that is believed to have all
+the above properties, and two simpler ones.
+
+ ChaCha (*note ChaCha::), like any stream cipher, can be used as a
+randomness generator. Its output should be of reasonable quality.
+There’s no single natural way to reseed it, but if you need reseeding,
+you should be using Yarrow instead. Historically ARCFOUR (*note
+Arcfour::) has been used as a randomness generator, however it is known
+to be distinguishable from random data and the output leaks information
+about the key.
+
+ The “lagged Fibonacci” generator in ‘<nettle/knuth-lfib.h>’ is a fast
+generator with good statistical properties, but is *not* for
+cryptographic use, and therefore not documented here. It is included
+mostly because the Nettle test suite needs to generate some test data
+from a small seed.
+
+ The recommended generator to use is Yarrow, described below.
+
+7.8.1 Yarrow
+------------
+
+Yarrow is a family of pseudo-randomness generators, designed for
+cryptographic use, by John Kelsey, Bruce Schneier and Niels Ferguson.
+Yarrow-160 is described in a paper at
+<https://www.schneier.com/academic/yarrow/>, and it uses SHA1 and
+triple-DES, and has a 160-bit internal state. Nettle implements
+Yarrow-256, which is similar, but uses SHA256 and AES to get an internal
+state of 256 bits.
+
+ Yarrow was an almost finished project, the paper mentioned above is
+the closest thing to a specification for it, but some smaller details
+are left out. There is no official reference implementation or test
+cases. This section includes an overview of Yarrow, but for the details
+of Yarrow-256, as implemented by Nettle, you have to consult the source
+code. Maybe a complete specification can be written later.
+
+ Yarrow can use many sources (at least two are needed for proper
+reseeding), and two randomness “pools”, referred to as the “slow pool”
+and the “fast pool”. Input from the sources is fed alternatingly into
+the two pools. When one of the sources has contributed 100 bits of
+entropy to the fast pool, a “fast reseed” happens and the fast pool is
+mixed into the internal state. When at least two of the sources have
+contributed at least 160 bits each to the slow pool, a “slow reseed”
+takes place. The contents of both pools are mixed into the internal
+state. These procedures should ensure that the generator will
+eventually recover after a key compromise.
+
+ The output is generated by using AES to encrypt a counter, using the
+generator’s current key. After each request for output, another 256
+bits are generated which replace the key. This ensures forward secrecy.
+
+ Yarrow can also use a “seed file” to save state across restarts.
+Yarrow is seeded by either feeding it the contents of the previous seed
+file, or feeding it input from its sources until a slow reseed happens.
+
+ Nettle defines Yarrow-256 in ‘<nettle/yarrow.h>’.
+
+ -- Context struct: struct yarrow256_ctx
+
+ -- Context struct: struct yarrow_source
+ Information about a single source.
+
+ -- Constant: YARROW256_SEED_FILE_SIZE
+ Recommended size of the Yarrow-256 seed file.
+
+ -- Function: void yarrow256_init (struct yarrow256_ctx *CTX, unsigned
+ NSOURCES, struct yarrow_source *SOURCES)
+ Initializes the yarrow context, and its NSOURCES sources. It’s
+ possible to call it with NSOURCES=0 and SOURCES=NULL, if you don’t
+ need the update features.
+
+ -- Function: void yarrow256_seed (struct yarrow256_ctx *CTX, size_t
+ LENGTH, uint8_t *SEED_FILE)
+ Seeds Yarrow-256 from a previous seed file. LENGTH should be at
+ least ‘YARROW256_SEED_FILE_SIZE’, but it can be larger.
+
+ The generator will trust you that the SEED_FILE data really is
+ unguessable. After calling this function, you _must_ overwrite the
+ old seed file with newly generated data from ‘yarrow256_random’.
+ If it’s possible for several processes to read the seed file at
+ about the same time, access must be coordinated using some locking
+ mechanism.
+
+ -- Function: int yarrow256_update (struct yarrow256_ctx *CTX, unsigned
+ SOURCE, unsigned ENTROPY, size_t LENGTH, const uint8_t *DATA)
+ Updates the generator with data from source SOURCE (an index that
+ must be smaller than the number of sources). ENTROPY is your
+ estimated lower bound for the entropy in the data, measured in
+ bits. Calling update with zero ENTROPY is always safe, no matter
+ if the data is random or not.
+
+ Returns 1 if a reseed happened, in which case an application using
+ a seed file may want to generate new seed data with
+ ‘yarrow256_random’ and overwrite the seed file. Otherwise, the
+ function returns 0.
+
+ -- Function: void yarrow256_random (struct yarrow256_ctx *CTX, size_t
+ LENGTH, uint8_t *DST)
+ Generates LENGTH octets of output. The generator must be seeded
+ before you call this function.
+
+ If you don’t need forward secrecy, e.g. if you need non-secret
+ randomness for initialization vectors or padding, you can gain some
+ efficiency by buffering, calling this function for reasonably large
+ blocks of data, say 100-1000 octets at a time.
+
+ -- Function: int yarrow256_is_seeded (struct yarrow256_ctx *CTX)
+ Returns 1 if the generator is seeded and ready to generate output,
+ otherwise 0.
+
+ -- Function: unsigned yarrow256_needed_sources (struct yarrow256_ctx
+ *CTX)
+ Returns the number of sources that must reach the threshold before
+ a slow reseed will happen. Useful primarily when the generator is
+ unseeded.
+
+ -- Function: void yarrow256_fast_reseed (struct yarrow256_ctx *CTX)
+ -- Function: void yarrow256_slow_reseed (struct yarrow256_ctx *CTX)
+ Causes a fast or slow reseed to take place immediately, regardless
+ of the current entropy estimates of the two pools. Use with care.
+
+ Nettle includes an entropy estimator for one kind of input source:
+User keyboard input.
+
+ -- Context struct: struct yarrow_key_event_ctx
+ Information about recent key events.
+
+ -- Function: void yarrow_key_event_init (struct yarrow_key_event_ctx
+ *CTX)
+ Initializes the context.
+
+ -- Function: unsigned yarrow_key_event_estimate (struct
+ yarrow_key_event_ctx *CTX, unsigned KEY, unsigned TIME)
+ KEY is the id of the key (ASCII value, hardware key code, X keysym,
+ ..., it doesn’t matter), and TIME is the timestamp of the event.
+ The time must be given in units matching the resolution by which
+ you read the clock. If you read the clock with microsecond
+ precision, TIME should be provided in units of microseconds. But
+ if you use ‘gettimeofday’ on a typical Unix system where the clock
+ ticks 10 or so microseconds at a time, TIME should be given in
+ units of 10 microseconds.
+
+ Returns an entropy estimate, in bits, suitable for calling
+ ‘yarrow256_update’. Usually, 0, 1 or 2 bits.
+
+7.8.2 DRBG-CTR
+--------------
+
+The Deterministic Random Bit Generator (DRBG) family is a complex family
+of deterministic randomness generators published by NIST in SP 800-90A.
+
+ We support what we believe is the reasonable parts of the CTR_DRBG
+algorithm for AES256. Re-seeding, personalization strings, derivation
+functions and support for non-AES256 is not implemented.
+Personalization strings can be implemented by the caller, if desired,
+with xor. If you need re-seeding or entropy derivation, we suggest that
+you use Yarrow instead.
+
+ The security bounds of DRBG-CTR are not intuitive, see “Security
+Bounds for the NIST Codebook-based Deterministic Random Bit Generator”
+by Matthew J. Campagna, from <https://eprint.iacr.org/2006/379.pdf>.
+
+ Our suggested use-case for DRBG-CTR is to deterministically generate
+known values from a seed when comparing against expected values for some
+other algorithm.
+
+ Nettle defines DRBG-CTR in ‘<nettle/drbg-ctr.h>’.
+
+ -- Context struct: struct drbg_ctr_aes256_ctx
+
+ -- Constant: DRBG_CTR_AES256_SEED_SIZE
+ The size of the seeding material.
+
+ -- Function: void drbg_ctr_aes256_init (struct drbg_ctr_aes256_ctx
+ *CTX, uint8_t *SEED_MATERIAL)
+ Initialize the DRBG-CTR-AES256 context using
+ ‘DRBG_CTR_AES256_SEED_SIZE’ bytes of SEED_MATERIAL.
+
+ -- Function: void drbg_ctr_aes256_random (struct drbg_ctr_aes256_ctx
+ *CTX, size_t n, uint8_t *DST)
+ Generates N octets of output into DST. The generator must be
+ initialized before you call this function.
+
+
+File: nettle.info, Node: ASCII encoding, Next: Miscellaneous functions, Prev: Randomness, Up: Reference
+
+7.9 ASCII encoding
+==================
+
+Encryption will transform your data from text into binary format, and
+that may be a problem if, for example, you want to send the data as if
+it was plain text in an email, or store it along with descriptive text
+in a file. You may then use an encoding from binary to text: each
+binary byte is translated into a number of bytes of plain text.
+
+ A base-N encoding of data is one representation of data that only
+uses N different symbols (instead of the 256 possible values of a byte).
+
+ The base64 encoding will always use alphanumeric (upper and lower
+case) characters and the ’+’, ’/’ and ’=’ symbols to represent the data.
+Four output characters are generated for each three bytes of input. In
+case the length of the input is not a multiple of three, padding
+characters are added at the end. There’s also a “URL safe” variant,
+which is useful for encoding binary data into URLs and filenames. See
+‘RFC 4648’.
+
+ The base16 encoding, also known as “hexadecimal”, uses the decimal
+digits and the letters from A to F. Two hexadecimal digits are generated
+for each input byte.
+
+ Nettle supports both base64 and base16 encoding and decoding.
+
+ Encoding and decoding uses a context struct to maintain its state
+(with the exception of base16 encoding, which doesn’t need any). To
+encode or decode the data, first initialize the context, then call the
+update function as many times as necessary, and complete the operation
+by calling the final function.
+
+ The following functions can be used to perform base64 encoding and
+decoding. They are defined in ‘<nettle/base64.h>’.
+
+ -- Context struct: struct base64_encode_ctx
+
+ -- Function: void base64_encode_init (struct base64_encode_ctx *CTX)
+ -- Function: void base64url_encode_init (struct base64_encode_ctx *CTX)
+ Initializes a base64 context. This is necessary before starting an
+ encoding session. ‘base64_encode_init’ selects the standard base64
+ alphabet, while ‘base64url_encode_init’ selects the URL safe
+ alphabet.
+
+ -- Function: size_t base64_encode_single (struct base64_encode_ctx
+ *CTX, uint8_t *DST, uint8_t SRC)
+ Encodes a single byte. Returns amount of output (always 1 or 2).
+
+ -- Macro: BASE64_ENCODE_LENGTH (LENGTH)
+ The maximum number of output bytes when passing LENGTH input bytes
+ to ‘base64_encode_update’.
+
+ -- Function: size_t base64_encode_update (struct base64_encode_ctx
+ *CTX, uint8_t *DST, size_t LENGTH, const uint8_t *SRC)
+ After CTX is initialized, this function may be called to encode
+ LENGTH bytes from SRC. The result will be placed in DST, and the
+ return value will be the number of bytes generated. Note that DST
+ must be at least of size BASE64_ENCODE_LENGTH(LENGTH).
+
+ -- Constant: BASE64_ENCODE_FINAL_LENGTH
+ The maximum amount of output from ‘base64_encode_final’.
+
+ -- Function: size_t base64_encode_final (struct base64_encode_ctx *CTX,
+ uint8_t *DST)
+ After calling base64_encode_update one or more times, this function
+ should be called to generate the final output bytes, including any
+ needed paddding. The return value is the number of output bytes
+ generated.
+
+ -- Context struct: struct base64_decode_ctx
+
+ -- Function: void base64_decode_init (struct base64_decode_ctx *CTX)
+ -- Function: void base64url_decode_init (struct base64_decode_ctx *CTX)
+ Initializes a base64 decoding context. This is necessary before
+ starting a decoding session. ‘base64_decode_init’ selects the
+ standard base64 alphabet, while ‘base64url_decode_init’ selects the
+ URL safe alphabet.
+
+ -- Function: int base64_decode_single (struct base64_decode_ctx *CTX,
+ uint8_t *DST, uint8_t SRC)
+ Decodes a single byte (SRC) and stores the result in DST. Returns
+ amount of output (0 or 1), or -1 on errors.
+
+ -- Macro: BASE64_DECODE_LENGTH (LENGTH)
+ The maximum number of output bytes when passing LENGTH input bytes
+ to ‘base64_decode_update’.
+
+ -- Function: void base64_decode_update (struct base64_decode_ctx *CTX,
+ size_t *DST_LENGTH, uint8_t *DST, size_t SRC_LENGTH, const
+ uint8_t *SRC)
+ After CTX is initialized, this function may be called to decode
+ SRC_LENGTH bytes from SRC. DST should point to an area of size at
+ least BASE64_DECODE_LENGTH(SRC_LENGTH). The amount of data
+ generated is returned in *DST_LENGTH. Returns 1 on success and 0
+ on error.
+
+ -- Function: int base64_decode_final (struct base64_decode_ctx *CTX)
+ Check that final padding is correct. Returns 1 on success, and 0
+ on error.
+
+ Similarly to the base64 functions, the following functions perform
+base16 encoding, and are defined in ‘<nettle/base16.h>’. Note that
+there is no encoding context necessary for doing base16 encoding.
+
+ -- Function: void base16_encode_single (uint8_t *DST, uint8_t SRC)
+ Encodes a single byte. Always stores two digits in DST[0] and
+ DST[1].
+
+ -- Macro: BASE16_ENCODE_LENGTH (LENGTH)
+ The number of output bytes when passing LENGTH input bytes to
+ ‘base16_encode_update’.
+
+ -- Function: void base16_encode_update (uint8_t *DST, size_t LENGTH,
+ const uint8_t *SRC)
+ Always stores BASE16_ENCODE_LENGTH(LENGTH) digits in DST.
+
+ -- Context struct: struct base16_decode_ctx
+
+ -- Function: void base16_decode_init (struct base16_decode_ctx *CTX)
+ Initializes a base16 decoding context. This is necessary before
+ starting a decoding session.
+
+ -- Function: int base16_decode_single (struct base16_decode_ctx *CTX,
+ uint8_t *DST, uint8_t SRC)
+ Decodes a single byte from SRC into DST. Returns amount of output
+ (0 or 1), or -1 on errors.
+
+ -- Macro: BASE16_DECODE_LENGTH (LENGTH)
+ The maximum number of output bytes when passing LENGTH input bytes
+ to ‘base16_decode_update’.
+
+ -- Function: int base16_decode_update (struct base16_decode_ctx *CTX,
+ size_t *DST_LENGTH, uint8_t *DST, size_t SRC_LENGTH, const
+ uint8_t *SRC)
+ After CTX is initialized, this function may be called to decode
+ SRC_LENGTH bytes from SRC. DST should point to an area of size at
+ least BASE16_DECODE_LENGTH(SRC_LENGTH). The amount of data
+ generated is returned in *DST_LENGTH. Returns 1 on success and 0
+ on error.
+
+ -- Function: int base16_decode_final (struct base16_decode_ctx *CTX)
+ Checks that the end of data is correct (i.e., an even number of
+ hexadecimal digits have been seen). Returns 1 on success, and 0 on
+ error.
+
+
+File: nettle.info, Node: Miscellaneous functions, Next: Compatibility functions, Prev: ASCII encoding, Up: Reference
+
+7.10 Miscellaneous functions
+============================
+
+ -- Function: void * memxor (void *DST, const void *SRC, size_t N)
+ XORs the source area on top of the destination area. The interface
+ doesn’t follow the Nettle conventions, because it is intended to be
+ similar to the ANSI-C ‘memcpy’ function.
+
+ -- Function: void * memxor3 (void *DST, const void *A, const void *B,
+ size_t N)
+ Like ‘memxor’, but takes two source areas and separate destination
+ area.
+
+ -- Function: int memeql_sec (const void *A, const void *B, size_t N)
+ Side-channel silent comparison of the N bytes at A and B. I.e.,
+ instructions executed and memory accesses are identical no matter
+ where the areas differ, *note Side-channel silence::. Return
+ non-zero if the areas are equal, and zero if they differ.
+
+ These functions are declared in ‘<nettle/memops.h>’. For
+compatibility with earlier versions of Nettle, ‘memxor’ and ‘memxor3’
+are also declared in ‘<nettle/memxor.h>’.
+
+
+File: nettle.info, Node: Compatibility functions, Prev: Miscellaneous functions, Up: Reference
+
+7.11 Compatibility functions
+============================
+
+For convenience, Nettle includes alternative interfaces to some
+algorithms, for compatibility with some other popular crypto toolkits.
+These are not fully documented here; refer to the source or to the
+documentation for the original implementation.
+
+ MD5 is defined in [RFC 1321], which includes a reference
+implementation. Nettle defines a compatible interface to MD5 in
+‘<nettle/md5-compat.h>’. This file defines the typedef ‘MD5_CTX’, and
+declares the functions ‘MD5Init’, ‘MD5Update’ and ‘MD5Final’.
+
+
+File: nettle.info, Node: Nettle soup, Next: Installation, Prev: Reference, Up: Top
+
+8 Traditional Nettle Soup
+*************************
+
+For the serious nettle hacker, here is a recipe for nettle soup. 4
+servings.
+
+ 1 liter fresh nettles (urtica dioica)
+ 2 tablespoons butter
+ 3 tablespoons flour
+ 1 liter stock (meat or vegetable)
+ 1/2 teaspoon salt
+ a tad white pepper
+ some cream or milk
+
+ Gather 1 liter fresh nettles. Use gloves! Small, tender shoots are
+preferable but the tops of larger nettles can also be used.
+
+ Rinse the nettles very well. Boil them for 10 minutes in lightly
+salted water. Strain the nettles and save the water. Hack the nettles.
+Melt the butter and mix in the flour. Dilute with stock and the
+nettle-water you saved earlier. Add the hacked nettles. If you wish
+you can add some milk or cream at this stage. Bring to a boil and let
+boil for a few minutes. Season with salt and pepper.
+
+ Serve with boiled egg-halves.
+
+
+File: nettle.info, Node: Installation, Next: Index, Prev: Nettle soup, Up: Top
+
+9 Installation
+**************
+
+Nettle uses ‘autoconf’. To build it, unpack the source and run
+
+ ./configure
+ make
+ make check
+ make install
+
+to install it under the default prefix, ‘/usr/local’. Using GNU make is
+strongly recommended. By default, both static and shared libraries are
+built and installed.
+
+ To get a list of configure options, use ‘./configure --help’. Some
+of the more interesting are:
+
+‘--enable-fat’
+ Include multiple versions of certain functions in the library, and
+ select the ones to use at run-time, depending on available
+ processor features. Supported for ARM and x86_64.
+
+‘--enable-mini-gmp’
+ Use the smaller and slower “mini-gmp” implementation of the bignum
+ functions needed for public-key cryptography, instead of the real
+ GNU GMP library. This option is intended primarily for smaller
+ embedded systems. Note that builds using mini-gmp are *not* binary
+ compatible with regular builds of Nettle, and more likely to leak
+ side-channel information.
+
+‘--disable-shared’
+ Omit building the shared libraries.
+
+‘--disable-dependency-tracking’
+ Disable the automatic dependency tracking. You will likely need
+ this option to be able to build with BSD make.
+
+
+File: nettle.info, Node: Index, Prev: Installation, Up: Top
+
+Function and Concept Index
+**************************
+
+
+* Menu:
+
+* 3DES: DES3. (line 6)
+* ABI compatibility: Compatibility. (line 6)
+* AEAD: Authenticated encryption.
+ (line 6)
+* AES: AES. (line 6)
+* aes128_decrypt: AES. (line 86)
+* aes128_encrypt: AES. (line 73)
+* aes128_invert_key: AES. (line 56)
+* aes128_set_decrypt_key: AES. (line 40)
+* aes128_set_encrypt_key: AES. (line 38)
+* aes192_decrypt: AES. (line 88)
+* aes192_encrypt: AES. (line 75)
+* aes192_invert_key: AES. (line 58)
+* aes192_set_decrypt_key: AES. (line 44)
+* aes192_set_encrypt_key: AES. (line 42)
+* aes256_decrypt: AES. (line 90)
+* aes256_encrypt: AES. (line 77)
+* aes256_invert_key: AES. (line 60)
+* aes256_set_decrypt_key: AES. (line 48)
+* aes256_set_encrypt_key: AES. (line 46)
+* aes_decrypt: AES. (line 92)
+* aes_encrypt: AES. (line 79)
+* aes_invert_key: AES. (line 62)
+* aes_set_decrypt_key: AES. (line 52)
+* aes_set_encrypt_key: AES. (line 50)
+* API compatibility: Compatibility. (line 6)
+* Arcfour: Arcfour. (line 6)
+* arcfour_crypt: Arcfour. (line 59)
+* arcfour_set_key: Arcfour. (line 54)
+* Arctwo: Arctwo. (line 6)
+* arctwo_decrypt: Arctwo. (line 60)
+* arctwo_encrypt: Arctwo. (line 53)
+* arctwo_set_key: Arctwo. (line 37)
+* arctwo_set_key_ekb: Arctwo. (line 35)
+* arctwo_set_key_gutmann: Arctwo. (line 39)
+* Authenticated encryption: Authenticated encryption.
+ (line 6)
+* balloon: Key derivation functions.
+ (line 181)
+* Balloon password-hashing algorithm: Key derivation functions.
+ (line 150)
+* balloon_itch: Key derivation functions.
+ (line 194)
+* balloon_sha1: Key derivation functions.
+ (line 208)
+* balloon_sha256: Key derivation functions.
+ (line 216)
+* balloon_sha384: Key derivation functions.
+ (line 224)
+* balloon_sha512: Key derivation functions.
+ (line 232)
+* base16_decode_final: ASCII encoding. (line 143)
+* base16_decode_init: ASCII encoding. (line 121)
+* BASE16_DECODE_LENGTH: ASCII encoding. (line 130)
+* base16_decode_single: ASCII encoding. (line 125)
+* base16_decode_update: ASCII encoding. (line 134)
+* BASE16_ENCODE_LENGTH: ASCII encoding. (line 111)
+* base16_encode_single: ASCII encoding. (line 107)
+* base16_encode_update: ASCII encoding. (line 115)
+* base64url_decode_init: ASCII encoding. (line 75)
+* base64url_encode_init: ASCII encoding. (line 41)
+* base64_decode_final: ASCII encoding. (line 99)
+* base64_decode_init: ASCII encoding. (line 74)
+* BASE64_DECODE_LENGTH: ASCII encoding. (line 86)
+* base64_decode_single: ASCII encoding. (line 81)
+* base64_decode_update: ASCII encoding. (line 90)
+* base64_encode_final: ASCII encoding. (line 65)
+* base64_encode_init: ASCII encoding. (line 40)
+* BASE64_ENCODE_LENGTH: ASCII encoding. (line 51)
+* base64_encode_single: ASCII encoding. (line 47)
+* base64_encode_update: ASCII encoding. (line 55)
+* Binary compatibility: Compatibility. (line 6)
+* Block Cipher: Cipher functions. (line 12)
+* Blowfish: Blowfish. (line 6)
+* blowfish_bcrypt_hash: Blowfish. (line 45)
+* blowfish_bcrypt_verify: Blowfish. (line 85)
+* blowfish_decrypt: Blowfish. (line 41)
+* blowfish_encrypt: Blowfish. (line 34)
+* blowfish_set_key: Blowfish. (line 24)
+* Camellia: Camellia. (line 6)
+* camellia128_crypt: Camellia. (line 80)
+* camellia128_invert_key: Camellia. (line 66)
+* camellia128_set_decrypt_key: Camellia. (line 50)
+* camellia128_set_encrypt_key: Camellia. (line 48)
+* camellia192_crypt: Camellia. (line 82)
+* camellia192_invert_key: Camellia. (line 68)
+* camellia192_set_decrypt_key: Camellia. (line 54)
+* camellia192_set_encrypt_key: Camellia. (line 52)
+* camellia256_crypt: Camellia. (line 84)
+* camellia256_invert_key: Camellia. (line 70)
+* camellia256_set_decrypt_key: Camellia. (line 58)
+* camellia256_set_encrypt_key: Camellia. (line 56)
+* camellia_crypt: Camellia. (line 86)
+* camellia_invert_key: Camellia. (line 72)
+* camellia_set_decrypt_key: Camellia. (line 62)
+* camellia_set_encrypt_key: Camellia. (line 60)
+* CAST: CAST128. (line 6)
+* cast128_decrypt: CAST128. (line 41)
+* cast128_encrypt: CAST128. (line 34)
+* cast128_set_key: CAST128. (line 29)
+* cast5_set_key: CAST128. (line 45)
+* CBC Mode: CBC. (line 6)
+* cbc_aes128_encrypt: CBC. (line 103)
+* cbc_aes192_encrypt: CBC. (line 105)
+* cbc_aes256_encrypt: CBC. (line 107)
+* CBC_CTX: CBC. (line 55)
+* cbc_decrypt: CBC. (line 35)
+* CBC_DECRYPT: CBC. (line 76)
+* cbc_encrypt: CBC. (line 32)
+* CBC_ENCRYPT: CBC. (line 75)
+* CBC_SET_IV: CBC. (line 70)
+* CCM Mode: CCM. (line 6)
+* ccm_aes128_decrypt: CCM. (line 211)
+* ccm_aes128_decrypt_message: CCM. (line 242)
+* ccm_aes128_digest: CCM. (line 221)
+* ccm_aes128_encrypt: CCM. (line 205)
+* ccm_aes128_encrypt_message: CCM. (line 230)
+* ccm_aes128_set_key: CCM. (line 174)
+* ccm_aes128_set_nonce: CCM. (line 184)
+* ccm_aes128_update: CCM. (line 196)
+* ccm_aes192_decrypt: CCM. (line 213)
+* ccm_aes192_decrypt_message: CCM. (line 246)
+* ccm_aes192_decrypt_message <1>: CCM. (line 250)
+* ccm_aes192_digest: CCM. (line 223)
+* ccm_aes192_encrypt: CCM. (line 207)
+* ccm_aes192_encrypt_message: CCM. (line 234)
+* ccm_aes192_set_key: CCM. (line 176)
+* ccm_aes192_set_nonce: CCM. (line 187)
+* ccm_aes192_update: CCM. (line 198)
+* ccm_aes256_decrypt: CCM. (line 215)
+* ccm_aes256_digest: CCM. (line 225)
+* ccm_aes256_encrypt: CCM. (line 209)
+* ccm_aes256_encrypt_message: CCM. (line 238)
+* ccm_aes256_set_key: CCM. (line 178)
+* ccm_aes256_set_nonce: CCM. (line 190)
+* ccm_aes256_update: CCM. (line 200)
+* ccm_decrypt: CCM. (line 95)
+* ccm_decrypt_message: CCM. (line 142)
+* ccm_digest: CCM. (line 103)
+* ccm_encrypt: CCM. (line 92)
+* ccm_encrypt_message: CCM. (line 134)
+* CCM_MAX_MSG_SIZE: CCM. (line 76)
+* ccm_set_nonce: CCM. (line 80)
+* ccm_update: CCM. (line 86)
+* CFB Modes: CFB and CFB8. (line 6)
+* CFB8 Mode: CFB and CFB8. (line 6)
+* CFB8_CTX: CFB and CFB8. (line 112)
+* cfb8_decrypt: CFB and CFB8. (line 73)
+* CFB8_DECRYPT: CFB and CFB8. (line 131)
+* cfb8_encrypt: CFB and CFB8. (line 70)
+* CFB8_ENCRYPT: CFB and CFB8. (line 124)
+* CFB8_SET_IV: CFB and CFB8. (line 119)
+* CFB_CTX: CFB and CFB8. (line 86)
+* cfb_decrypt: CFB and CFB8. (line 55)
+* CFB_DECRYPT: CFB and CFB8. (line 105)
+* cfb_encrypt: CFB and CFB8. (line 52)
+* CFB_ENCRYPT: CFB and CFB8. (line 98)
+* CFB_SET_IV(CTX,: CFB and CFB8. (line 93)
+* ChaCha: ChaCha. (line 6)
+* chacha_crypt: ChaCha. (line 44)
+* chacha_crypt32: ChaCha. (line 76)
+* chacha_poly1305_decrypt: ChaCha-Poly1305. (line 63)
+* chacha_poly1305_digest: ChaCha-Poly1305. (line 69)
+* chacha_poly1305_encrypt: ChaCha-Poly1305. (line 61)
+* chacha_poly1305_set_key: ChaCha-Poly1305. (line 48)
+* chacha_poly1305_set_nonce: ChaCha-Poly1305. (line 53)
+* chacha_poly1305_update: ChaCha-Poly1305. (line 57)
+* chacha_set_counter: ChaCha. (line 36)
+* chacha_set_counter32: ChaCha. (line 70)
+* chacha_set_key: ChaCha. (line 24)
+* chacha_set_nonce: ChaCha. (line 30)
+* chacha_set_nonce96: ChaCha. (line 65)
+* Cipher: Cipher functions. (line 6)
+* Cipher Block Chaining: CBC. (line 6)
+* Cipher Feedback 8-bit Mode: CFB and CFB8. (line 6)
+* Cipher Feedback Mode: CFB and CFB8. (line 6)
+* CMAC: CMAC. (line 6)
+* CMAC-128: CMAC. (line 6)
+* CMAC-64: CMAC. (line 6)
+* cmac_aes128_digest: CMAC. (line 33)
+* cmac_aes128_set_key: CMAC. (line 25)
+* cmac_aes128_update: CMAC. (line 29)
+* cmac_aes256_digest: CMAC. (line 49)
+* cmac_aes256_set_key: CMAC. (line 41)
+* cmac_aes256_update: CMAC. (line 45)
+* cmac_des3_digest: CMAC. (line 70)
+* cmac_des3_set_key: CMAC. (line 62)
+* cmac_des3_update: CMAC. (line 66)
+* Collision-resistant: Hash functions. (line 18)
+* Conditional entropy: Randomness. (line 51)
+* Counter Mode: CTR. (line 6)
+* Counter with CBC-MAC Mode: CCM. (line 6)
+* CTR Mode: CTR. (line 6)
+* ctr_crypt: CTR. (line 33)
+* CTR_CRYPT: CTR. (line 60)
+* CTR_CTX: CTR. (line 48)
+* CTR_SET_COUNTER: CTR. (line 55)
+* Curve 25519: Curve 25519 and Curve 448.
+ (line 6)
+* Curve 448: Curve 25519 and Curve 448.
+ (line 6)
+* curve25519_mul: Curve 25519 and Curve 448.
+ (line 60)
+* curve25519_mul_g: Curve 25519 and Curve 448.
+ (line 51)
+* curve448_mul: Curve 25519 and Curve 448.
+ (line 91)
+* curve448_mul_g: Curve 25519 and Curve 448.
+ (line 82)
+* DES: DES. (line 6)
+* DES3: DES3. (line 6)
+* des3_decrypt: DES3. (line 65)
+* des3_encrypt: DES3. (line 58)
+* des3_set_key: DES3. (line 47)
+* des_check_parity: DES. (line 47)
+* des_decrypt: DES. (line 43)
+* des_encrypt: DES. (line 36)
+* des_fix_parity: DES. (line 51)
+* des_set_key: DES. (line 29)
+* drbg_ctr_aes256_init: Randomness. (line 333)
+* drbg_ctr_aes256_random: Randomness. (line 338)
+* dsa_compat_generate_keypair: DSA. (line 301)
+* dsa_generate_keypair: DSA. (line 199)
+* dsa_generate_params: DSA. (line 131)
+* dsa_params: DSA. (line 122)
+* dsa_params_clear: DSA. (line 128)
+* dsa_params_init: DSA. (line 125)
+* dsa_private_key: DSA. (line 232)
+* dsa_private_key_clear: DSA. (line 245)
+* dsa_private_key_init: DSA. (line 238)
+* dsa_public_key: DSA. (line 229)
+* dsa_public_key_clear: DSA. (line 244)
+* dsa_public_key_init: DSA. (line 237)
+* dsa_sha1_sign: DSA. (line 258)
+* dsa_sha1_sign_digest: DSA. (line 262)
+* dsa_sha1_verify: DSA. (line 284)
+* dsa_sha1_verify_digest: DSA. (line 286)
+* dsa_sha256_sign: DSA. (line 266)
+* dsa_sha256_sign_digest: DSA. (line 270)
+* dsa_sha256_verify: DSA. (line 289)
+* dsa_sha256_verify_digest: DSA. (line 292)
+* dsa_sign: DSA. (line 178)
+* dsa_signature: DSA. (line 165)
+* dsa_signature_clear: DSA. (line 169)
+* dsa_signature_init: DSA. (line 168)
+* dsa_verify: DSA. (line 190)
+* eax_aes128_decrypt: EAX. (line 136)
+* eax_aes128_digest: EAX. (line 142)
+* eax_aes128_encrypt: EAX. (line 134)
+* eax_aes128_set_key: EAX. (line 120)
+* eax_aes128_set_nonce: EAX. (line 124)
+* eax_aes128_update: EAX. (line 128)
+* EAX_CTX: EAX. (line 81)
+* eax_decrypt: EAX. (line 60)
+* EAX_DECRYPT: EAX. (line 105)
+* eax_digest: EAX. (line 68)
+* EAX_DIGEST: EAX. (line 108)
+* eax_encrypt: EAX. (line 57)
+* EAX_ENCRYPT: EAX. (line 104)
+* eax_set_key: EAX. (line 36)
+* EAX_SET_KEY: EAX. (line 94)
+* eax_set_nonce: EAX. (line 42)
+* EAX_SET_NONCE: EAX. (line 98)
+* eax_update: EAX. (line 48)
+* EAX_UPDATE: EAX. (line 101)
+* ecc_point_clear: ECDSA. (line 36)
+* ecc_point_get: ECDSA. (line 47)
+* ecc_point_init: ECDSA. (line 30)
+* ecc_point_set: ECDSA. (line 39)
+* ecc_scalar_clear: ECDSA. (line 62)
+* ecc_scalar_get: ECDSA. (line 69)
+* ecc_scalar_init: ECDSA. (line 57)
+* ecc_scalar_set: ECDSA. (line 65)
+* ecdsa_generate_keypair: ECDSA. (line 93)
+* ecdsa_sign: ECDSA. (line 75)
+* ecdsa_verify: ECDSA. (line 84)
+* ed25519_sha512_public_key: Curve 25519 and Curve 448.
+ (line 131)
+* ed25519_sha512_sign: Curve 25519 and Curve 448.
+ (line 136)
+* ed25519_sha512_verify: Curve 25519 and Curve 448.
+ (line 141)
+* ed448_shake256_public_key: Curve 25519 and Curve 448.
+ (line 155)
+* ed448_shake256_sign: Curve 25519 and Curve 448.
+ (line 160)
+* ed448_shake256_verify: Curve 25519 and Curve 448.
+ (line 165)
+* eddsa: Curve 25519 and Curve 448.
+ (line 104)
+* Entropy: Randomness. (line 51)
+* Galois Counter Mode: GCM. (line 6)
+* GCM: GCM. (line 6)
+* gcm_aes128_decrypt: GCM. (line 192)
+* gcm_aes128_digest: GCM. (line 204)
+* gcm_aes128_encrypt: GCM. (line 184)
+* gcm_aes128_set_iv: GCM. (line 161)
+* gcm_aes128_set_key: GCM. (line 148)
+* gcm_aes128_update: GCM. (line 171)
+* gcm_aes192_decrypt: GCM. (line 194)
+* gcm_aes192_digest: GCM. (line 206)
+* gcm_aes192_encrypt: GCM. (line 186)
+* gcm_aes192_set_iv: GCM. (line 163)
+* gcm_aes192_set_key: GCM. (line 150)
+* gcm_aes192_update: GCM. (line 173)
+* gcm_aes256_decrypt: GCM. (line 196)
+* gcm_aes256_digest: GCM. (line 208)
+* gcm_aes256_encrypt: GCM. (line 188)
+* gcm_aes256_set_iv: GCM. (line 165)
+* gcm_aes256_set_key: GCM. (line 152)
+* gcm_aes256_update: GCM. (line 175)
+* gcm_aes_decrypt: GCM. (line 198)
+* gcm_aes_digest: GCM. (line 210)
+* gcm_aes_encrypt: GCM. (line 190)
+* gcm_aes_set_iv: GCM. (line 167)
+* gcm_aes_set_key: GCM. (line 156)
+* gcm_aes_update: GCM. (line 177)
+* gcm_camellia128_decrypt: GCM. (line 253)
+* gcm_camellia128_digest: GCM. (line 261)
+* gcm_camellia128_encrypt: GCM. (line 249)
+* gcm_camellia128_set_iv: GCM. (line 234)
+* gcm_camellia128_set_key: GCM. (line 228)
+* gcm_camellia128_update: GCM. (line 240)
+* gcm_camellia192_digest: GCM. (line 263)
+* gcm_camellia256_decrypt: GCM. (line 255)
+* gcm_camellia256_digest: GCM. (line 265)
+* gcm_camellia256_encrypt: GCM. (line 251)
+* gcm_camellia256_set_iv: GCM. (line 236)
+* gcm_camellia256_set_key: GCM. (line 230)
+* gcm_camellia256_update: GCM. (line 242)
+* gcm_camellia_digest: GCM. (line 267)
+* GCM_CTX: GCM. (line 96)
+* gcm_decrypt: GCM. (line 65)
+* GCM_DECRYPT: GCM. (line 125)
+* gcm_digest: GCM. (line 73)
+* GCM_DIGEST: GCM. (line 126)
+* gcm_encrypt: GCM. (line 62)
+* GCM_ENCRYPT: GCM. (line 124)
+* gcm_set_iv: GCM. (line 50)
+* GCM_SET_IV: GCM. (line 116)
+* gcm_set_key: GCM. (line 44)
+* GCM_SET_KEY: GCM. (line 111)
+* gcm_sm4_decrypt: GCM. (line 301)
+* gcm_sm4_digest: GCM. (line 307)
+* gcm_sm4_encrypt: GCM. (line 299)
+* gcm_sm4_set_iv: GCM. (line 288)
+* gcm_sm4_set_key: GCM. (line 284)
+* gcm_sm4_update: GCM. (line 292)
+* gcm_update: GCM. (line 55)
+* GCM_UPDATE: GCM. (line 120)
+* GOST DSA: GOSTDSA. (line 6)
+* GOST hash: Legacy hash functions.
+ (line 203)
+* gostdsa_sign: GOSTDSA. (line 30)
+* gostdsa_verify: GOSTDSA. (line 39)
+* gostdsa_vko: GOSTDSA. (line 68)
+* gosthash94cp_digest: Legacy hash functions.
+ (line 253)
+* gosthash94cp_init: Legacy hash functions.
+ (line 246)
+* gosthash94cp_update: Legacy hash functions.
+ (line 249)
+* gosthash94_digest: Legacy hash functions.
+ (line 228)
+* gosthash94_init: Legacy hash functions.
+ (line 221)
+* gosthash94_update: Legacy hash functions.
+ (line 224)
+* Hash function: Hash functions. (line 6)
+* HKDF: Key derivation functions.
+ (line 16)
+* hkdf_expand: Key derivation functions.
+ (line 42)
+* hkdf_extract: Key derivation functions.
+ (line 29)
+* HMAC: HMAC. (line 6)
+* HMAC_CTX: HMAC. (line 58)
+* hmac_digest: HMAC. (line 44)
+* HMAC_DIGEST: HMAC. (line 80)
+* hmac_md5_digest: HMAC. (line 106)
+* hmac_md5_set_key: HMAC. (line 98)
+* hmac_md5_update: HMAC. (line 102)
+* hmac_ripemd160_digest: HMAC. (line 128)
+* hmac_ripemd160_set_key: HMAC. (line 120)
+* hmac_ripemd160_update: HMAC. (line 124)
+* hmac_set_key: HMAC. (line 29)
+* HMAC_SET_KEY: HMAC. (line 74)
+* hmac_sha1_digest: HMAC. (line 150)
+* hmac_sha1_set_key: HMAC. (line 142)
+* hmac_sha1_update: HMAC. (line 146)
+* hmac_sha256_digest: HMAC. (line 172)
+* hmac_sha256_set_key: HMAC. (line 164)
+* hmac_sha256_update: HMAC. (line 168)
+* hmac_sha512_digest: HMAC. (line 194)
+* hmac_sha512_set_key: HMAC. (line 186)
+* hmac_sha512_update: HMAC. (line 190)
+* hmac_sm3_digest: HMAC. (line 216)
+* hmac_sm3_set_key: HMAC. (line 208)
+* hmac_sm3_update: HMAC. (line 212)
+* hmac_update: HMAC. (line 37)
+* KDF: Key derivation functions.
+ (line 58)
+* Key Derivation Function: Key derivation functions.
+ (line 6)
+* Keyed Hash Function: Keyed hash functions.
+ (line 6)
+* MAC: Keyed hash functions.
+ (line 6)
+* md2_digest: Legacy hash functions.
+ (line 84)
+* md2_init: Legacy hash functions.
+ (line 77)
+* md2_update: Legacy hash functions.
+ (line 80)
+* md4_digest: Legacy hash functions.
+ (line 117)
+* md4_init: Legacy hash functions.
+ (line 110)
+* md4_update: Legacy hash functions.
+ (line 113)
+* md5_compress: Legacy hash functions.
+ (line 48)
+* md5_digest: Legacy hash functions.
+ (line 39)
+* md5_init: Legacy hash functions.
+ (line 32)
+* md5_update: Legacy hash functions.
+ (line 35)
+* memeql_sec: Miscellaneous functions.
+ (line 16)
+* memxor: Miscellaneous functions.
+ (line 6)
+* memxor3: Miscellaneous functions.
+ (line 11)
+* Message Authentication Code: Keyed hash functions.
+ (line 6)
+* nettle_aead: nettle_aead abstraction.
+ (line 6)
+* nettle_aeads: nettle_aead abstraction.
+ (line 33)
+* nettle_cipher: nettle_cipher abstraction.
+ (line 6)
+* nettle_ciphers: nettle_cipher abstraction.
+ (line 53)
+* nettle_get_aeads: nettle_aead abstraction.
+ (line 28)
+* nettle_get_ciphers: nettle_cipher abstraction.
+ (line 48)
+* nettle_get_gost_gc256b: GOSTDSA. (line 51)
+* nettle_get_gost_gc512a: GOSTDSA. (line 57)
+* nettle_get_hashes: nettle_hash abstraction.
+ (line 35)
+* nettle_hash: nettle_hash abstraction.
+ (line 6)
+* nettle_hashes: nettle_hash abstraction.
+ (line 40)
+* OCB: OCB. (line 6)
+* OCB mode: OCB. (line 6)
+* ocb_aes128_decrypt: OCB. (line 152)
+* ocb_aes128_decrypt_message: OCB. (line 177)
+* ocb_aes128_digest: OCB. (line 160)
+* ocb_aes128_encrypt: OCB. (line 146)
+* ocb_aes128_encrypt_message: OCB. (line 168)
+* ocb_aes128_set_decrypt_key: OCB. (line 122)
+* ocb_aes128_set_encrypt_key: OCB. (line 118)
+* ocb_aes128_set_nonce: OCB. (line 130)
+* ocb_aes128_update: OCB. (line 139)
+* ocb_decrypt: OCB. (line 65)
+* ocb_decrypt_message: OCB. (line 95)
+* ocb_digest: OCB. (line 76)
+* ocb_encrypt: OCB. (line 57)
+* ocb_encrypt_message: OCB. (line 85)
+* ocb_set_key: OCB. (line 34)
+* ocb_set_nonce: OCB. (line 40)
+* ocb_update: OCB. (line 50)
+* Offset Code Book: OCB. (line 6)
+* One-way: Hash functions. (line 14)
+* One-way function: Public-key algorithms.
+ (line 18)
+* Password Based Key Derivation Function: Key derivation functions.
+ (line 58)
+* PBKDF: Key derivation functions.
+ (line 58)
+* pbkdf2: Key derivation functions.
+ (line 68)
+* PBKDF2: Key derivation functions.
+ (line 84)
+* pbkdf2_hmac_sha1: Key derivation functions.
+ (line 103)
+* pbkdf2_hmac_sha256: Key derivation functions.
+ (line 114)
+* pbkdf2_hmac_sha384: Key derivation functions.
+ (line 126)
+* pbkdf2_hmac_sha512: Key derivation functions.
+ (line 138)
+* PKCS #5: Key derivation functions.
+ (line 58)
+* poly1305_aes_digest: Poly1305. (line 56)
+* poly1305_aes_set_key: Poly1305. (line 43)
+* poly1305_aes_set_nonce: Poly1305. (line 47)
+* poly1305_aes_update: Poly1305. (line 52)
+* Public Key Cryptography: Public-key algorithms.
+ (line 18)
+* Randomness: Randomness. (line 6)
+* RC2: Arctwo. (line 6)
+* RC4: Arcfour. (line 6)
+* ripemd160_digest: Legacy hash functions.
+ (line 150)
+* ripemd160_init: Legacy hash functions.
+ (line 143)
+* ripemd160_update: Legacy hash functions.
+ (line 146)
+* rsa_compute_root: RSA. (line 412)
+* rsa_compute_root_tr: RSA. (line 406)
+* rsa_decrypt: RSA. (line 335)
+* rsa_decrypt_tr: RSA. (line 344)
+* rsa_encrypt: RSA. (line 328)
+* rsa_generate_keypair: RSA. (line 418)
+* rsa_md5_sign: RSA. (line 203)
+* rsa_md5_sign_digest: RSA. (line 218)
+* rsa_md5_sign_digest_tr: RSA. (line 171)
+* rsa_md5_sign_tr: RSA. (line 146)
+* rsa_md5_verify: RSA. (line 244)
+* rsa_md5_verify_digest: RSA. (line 256)
+* rsa_oaep_sha256_decrypt: RSA. (line 382)
+* rsa_oaep_sha256_encrypt: RSA. (line 359)
+* rsa_oaep_sha384_decrypt: RSA. (line 387)
+* rsa_oaep_sha384_encrypt: RSA. (line 363)
+* rsa_oaep_sha512_decrypt: RSA. (line 392)
+* rsa_oaep_sha512_encrypt: RSA. (line 367)
+* rsa_pkcs1_sign: RSA. (line 234)
+* rsa_pkcs1_sign_tr: RSA. (line 194)
+* rsa_pkcs1_verify: RSA. (line 269)
+* rsa_private_key: RSA. (line 86)
+* rsa_private_key_clear: RSA. (line 104)
+* rsa_private_key_init: RSA. (line 97)
+* rsa_private_key_prepare: RSA. (line 117)
+* rsa_pss_sha256_sign_digest_tr: RSA. (line 291)
+* rsa_pss_sha256_verify_digest: RSA. (line 313)
+* rsa_pss_sha384_sign_digest_tr: RSA. (line 295)
+* rsa_pss_sha384_verify_digest: RSA. (line 316)
+* rsa_pss_sha512_sign_digest_tr: RSA. (line 299)
+* rsa_pss_sha512_verify_digest: RSA. (line 319)
+* rsa_public_key: RSA. (line 82)
+* rsa_public_key_clear: RSA. (line 103)
+* rsa_public_key_init: RSA. (line 96)
+* rsa_public_key_prepare: RSA. (line 116)
+* rsa_sha1_sign: RSA. (line 205)
+* rsa_sha1_sign_digest: RSA. (line 220)
+* rsa_sha1_sign_digest_tr: RSA. (line 175)
+* rsa_sha1_sign_tr: RSA. (line 150)
+* rsa_sha1_verify: RSA. (line 246)
+* rsa_sha1_verify_digest: RSA. (line 258)
+* rsa_sha256_sign: RSA. (line 207)
+* rsa_sha256_sign_digest: RSA. (line 222)
+* rsa_sha256_sign_digest_tr: RSA. (line 179)
+* rsa_sha256_sign_tr: RSA. (line 154)
+* rsa_sha256_verify: RSA. (line 248)
+* rsa_sha256_verify_digest: RSA. (line 260)
+* rsa_sha512_sign: RSA. (line 209)
+* rsa_sha512_sign_digest: RSA. (line 224)
+* rsa_sha512_sign_digest_tr: RSA. (line 183)
+* rsa_sha512_sign_tr: RSA. (line 158)
+* rsa_sha512_verify: RSA. (line 250)
+* rsa_sha512_verify_digest: RSA. (line 262)
+* Salsa20: Salsa20. (line 6)
+* salsa20r12_crypt: Salsa20. (line 84)
+* salsa20_128_set_key: Salsa20. (line 49)
+* salsa20_256_set_key: Salsa20. (line 51)
+* salsa20_crypt: Salsa20. (line 69)
+* salsa20_set_key: Salsa20. (line 53)
+* salsa20_set_nonce: Salsa20. (line 63)
+* Serpent: Serpent. (line 6)
+* serpent_decrypt: Serpent. (line 38)
+* serpent_encrypt: Serpent. (line 31)
+* serpent_set_key: Serpent. (line 26)
+* sha1_compress: Legacy hash functions.
+ (line 193)
+* sha1_digest: Legacy hash functions.
+ (line 184)
+* sha1_init: Legacy hash functions.
+ (line 177)
+* sha1_update: Legacy hash functions.
+ (line 180)
+* sha224_digest: Recommended hash functions.
+ (line 76)
+* sha224_init: Recommended hash functions.
+ (line 69)
+* sha224_update: Recommended hash functions.
+ (line 72)
+* sha256_compress: Recommended hash functions.
+ (line 41)
+* sha256_digest: Recommended hash functions.
+ (line 32)
+* sha256_init: Recommended hash functions.
+ (line 25)
+* sha256_update: Recommended hash functions.
+ (line 28)
+* SHA3: Recommended hash functions.
+ (line 189)
+* sha384_digest: Recommended hash functions.
+ (line 176)
+* sha384_init: Recommended hash functions.
+ (line 160)
+* sha384_update: Recommended hash functions.
+ (line 167)
+* sha3_128_init: Recommended hash functions.
+ (line 353)
+* sha3_128_shake: Recommended hash functions.
+ (line 360)
+* sha3_128_shake_output: Recommended hash functions.
+ (line 367)
+* sha3_128_update: Recommended hash functions.
+ (line 356)
+* sha3_224_digest: Recommended hash functions.
+ (line 228)
+* sha3_224_init: Recommended hash functions.
+ (line 221)
+* sha3_224_update: Recommended hash functions.
+ (line 224)
+* sha3_256_digest: Recommended hash functions.
+ (line 260)
+* sha3_256_init: Recommended hash functions.
+ (line 253)
+* sha3_256_shake: Recommended hash functions.
+ (line 378)
+* sha3_256_shake_output: Recommended hash functions.
+ (line 385)
+* sha3_256_update: Recommended hash functions.
+ (line 256)
+* sha3_384_digest: Recommended hash functions.
+ (line 291)
+* sha3_384_init: Recommended hash functions.
+ (line 284)
+* sha3_384_update: Recommended hash functions.
+ (line 287)
+* sha3_512_digest: Recommended hash functions.
+ (line 322)
+* sha3_512_init: Recommended hash functions.
+ (line 315)
+* sha3_512_update: Recommended hash functions.
+ (line 318)
+* sha512_224_digest: Recommended hash functions.
+ (line 172)
+* sha512_224_init: Recommended hash functions.
+ (line 158)
+* sha512_224_update: Recommended hash functions.
+ (line 163)
+* sha512_256_digest: Recommended hash functions.
+ (line 174)
+* sha512_256_init: Recommended hash functions.
+ (line 159)
+* sha512_256_update: Recommended hash functions.
+ (line 165)
+* sha512_compress: Recommended hash functions.
+ (line 120)
+* sha512_digest: Recommended hash functions.
+ (line 111)
+* sha512_init: Recommended hash functions.
+ (line 104)
+* sha512_update: Recommended hash functions.
+ (line 107)
+* SHAKE: Recommended hash functions.
+ (line 334)
+* Side-channel attack: Side-channel silence.
+ (line 6)
+* SIV mode: SIV-CMAC. (line 6)
+* SIV-CMAC mode: SIV-CMAC. (line 6)
+* siv_cmac_aes128_decrypt_message: SIV-CMAC. (line 83)
+* siv_cmac_aes128_encrypt_message: SIV-CMAC. (line 70)
+* siv_cmac_aes128_set_key: SIV-CMAC. (line 62)
+* siv_cmac_aes256_decrypt_message: SIV-CMAC. (line 87)
+* siv_cmac_aes256_encrypt_message: SIV-CMAC. (line 74)
+* siv_cmac_aes256_set_key: SIV-CMAC. (line 64)
+* siv_gcm_aes128_decrypt_message: SIV-GCM. (line 87)
+* siv_gcm_aes128_encrypt_message: SIV-GCM. (line 74)
+* siv_gcm_aes256_decrypt_message: SIV-GCM. (line 91)
+* siv_gcm_aes256_encrypt_message: SIV-GCM. (line 78)
+* siv_gcm_decrypt_message: SIV-GCM. (line 41)
+* siv_gcm_encrypt_message: SIV-GCM. (line 32)
+* sm3_digest: Miscellaneous hash functions.
+ (line 107)
+* sm3_init: Miscellaneous hash functions.
+ (line 100)
+* sm3_update: Miscellaneous hash functions.
+ (line 103)
+* SM4: SM4. (line 6)
+* sm4_crypt: SM4. (line 27)
+* sm4_set_decrypt_key: SM4. (line 23)
+* sm4_set_encrypt_key: SM4. (line 19)
+* Stream Cipher: Cipher functions. (line 12)
+* streebog256_digest: Miscellaneous hash functions.
+ (line 62)
+* streebog256_init: Miscellaneous hash functions.
+ (line 55)
+* streebog256_update: Miscellaneous hash functions.
+ (line 58)
+* streebog512_digest: Miscellaneous hash functions.
+ (line 29)
+* streebog512_init: Miscellaneous hash functions.
+ (line 22)
+* streebog512_update: Miscellaneous hash functions.
+ (line 25)
+* struct aes128_ctx: AES. (line 19)
+* struct aes192_ctx: AES. (line 20)
+* struct aes256_ctx: AES. (line 21)
+* struct aes_ctx: AES. (line 23)
+* struct arcfour_ctx: Arcfour. (line 43)
+* struct arctwo_ctx: Arctwo. (line 23)
+* struct base16_decode_ctx: ASCII encoding. (line 119)
+* struct base64_decode_ctx: ASCII encoding. (line 72)
+* struct base64_encode_ctx: ASCII encoding. (line 38)
+* struct blowfish_ctx: Blowfish. (line 10)
+* struct camellia128_ctx: Camellia. (line 27)
+* struct camellia192_ctx: Camellia. (line 28)
+* struct camellia256_ctx: Camellia. (line 29)
+* struct camellia_ctx: Camellia. (line 33)
+* struct cast128_ctx: CAST128. (line 14)
+* struct ccm_aes128_ctx: CCM. (line 162)
+* struct ccm_aes192_ctx: CCM. (line 166)
+* struct ccm_aes256_ctx: CCM. (line 170)
+* struct ccm_ctx: CCM. (line 62)
+* struct chacha_ctx: ChaCha. (line 10)
+* struct chacha_poly1305_ctx: ChaCha-Poly1305. (line 46)
+* struct cmac_aes128_ctx: CMAC. (line 19)
+* struct cmac_aes256_ctx: CMAC. (line 20)
+* struct cmac_des3_ctx: CMAC. (line 57)
+* struct des3_ctx: DES3. (line 39)
+* struct des_ctx: DES. (line 21)
+* struct drbg_ctr_aes256_ctx: Randomness. (line 328)
+* struct eax_aes128_ctx: EAX. (line 117)
+* struct eax_ctx: EAX. (line 27)
+* struct eax_key: EAX. (line 23)
+* struct ecc_point: ECDSA. (line 26)
+* struct ecc_scalar: ECDSA. (line 52)
+* struct gcm_aes128_ctx: GCM. (line 140)
+* struct gcm_aes192_ctx: GCM. (line 141)
+* struct gcm_aes256_ctx: GCM. (line 142)
+* struct gcm_aes_ctx: GCM. (line 145)
+* struct gcm_camellia128_ctx: GCM. (line 224)
+* struct gcm_camellia256_ctx: GCM. (line 225)
+* struct gcm_ctx: GCM. (line 32)
+* struct gcm_key: GCM. (line 29)
+* struct gcm_sm4_ctx: GCM. (line 281)
+* struct gosthash94cp_ctx: Legacy hash functions.
+ (line 238)
+* struct gosthash94_ctx: Legacy hash functions.
+ (line 213)
+* struct hmac_md5_ctx: HMAC. (line 96)
+* struct hmac_ripemd160_ctx: HMAC. (line 118)
+* struct hmac_sha1_ctx: HMAC. (line 140)
+* struct hmac_sha256_ctx: HMAC. (line 162)
+* struct hmac_sha512_ctx: HMAC. (line 184)
+* struct hmac_sm3_ctx: HMAC. (line 206)
+* struct md2_ctx: Legacy hash functions.
+ (line 69)
+* struct md4_ctx: Legacy hash functions.
+ (line 102)
+* struct md5_ctx: Legacy hash functions.
+ (line 23)
+* struct nettle_aead: nettle_aead abstraction.
+ (line 9)
+* struct nettle_cipher: nettle_cipher abstraction.
+ (line 11)
+* struct nettle_hash: nettle_hash abstraction.
+ (line 10)
+* struct ocb_aes128_encrypt_key: OCB. (line 113)
+* struct ocb_ctx: OCB. (line 22)
+* struct ocb_key: OCB. (line 18)
+* struct poly1305_aes_ctx: Poly1305. (line 40)
+* struct ripemd160_ctx: Legacy hash functions.
+ (line 135)
+* struct salsa20_ctx: Salsa20. (line 34)
+* struct serpent_ctx: Serpent. (line 12)
+* struct sha1_ctx: Legacy hash functions.
+ (line 168)
+* struct sha224_ctx: Recommended hash functions.
+ (line 60)
+* struct sha256_ctx: Recommended hash functions.
+ (line 16)
+* struct sha384_ctx: Recommended hash functions.
+ (line 140)
+* struct sha3_128_ctx: Recommended hash functions.
+ (line 351)
+* struct sha3_224_ctx: Recommended hash functions.
+ (line 213)
+* struct sha3_256_ctx: Recommended hash functions.
+ (line 245)
+* struct sha3_384_ctx: Recommended hash functions.
+ (line 276)
+* struct sha3_512_ctx: Recommended hash functions.
+ (line 307)
+* struct sha512_224_ctx: Recommended hash functions.
+ (line 138)
+* struct sha512_256_ctx: Recommended hash functions.
+ (line 139)
+* struct sha512_ctx: Recommended hash functions.
+ (line 95)
+* struct siv_cmac_aes128_ctx: SIV-CMAC. (line 54)
+* struct siv_cmac_aes256_ctx: SIV-CMAC. (line 58)
+* struct sm3_ctx: Miscellaneous hash functions.
+ (line 91)
+* struct sm4_ctx: SM4. (line 11)
+* struct streebog256_ctx: Miscellaneous hash functions.
+ (line 46)
+* struct streebog512_ctx: Miscellaneous hash functions.
+ (line 13)
+* struct twofish_ctx: Twofish. (line 9)
+* struct umac128_ctx: UMAC. (line 50)
+* struct umac32_ctx: UMAC. (line 47)
+* struct umac64_ctx: UMAC. (line 48)
+* struct umac96_ctx: UMAC. (line 49)
+* struct xts_aes128_key: XTS. (line 112)
+* struct xts_aes256_key: XTS. (line 115)
+* struct yarrow256_ctx: Randomness. (line 217)
+* struct yarrow_key_event_ctx: Randomness. (line 284)
+* struct yarrow_source: Randomness. (line 219)
+* Triple-DES: DES3. (line 6)
+* Twofish: Twofish. (line 6)
+* twofish_decrypt: Twofish. (line 35)
+* twofish_encrypt: Twofish. (line 28)
+* twofish_set_key: Twofish. (line 23)
+* UMAC: UMAC. (line 6)
+* umac128_digest: UMAC. (line 113)
+* umac128_set_key: UMAC. (line 76)
+* umac128_set_nonce: UMAC. (line 87)
+* umac128_update: UMAC. (line 102)
+* umac32_digest: UMAC. (line 107)
+* umac32_set_key: UMAC. (line 70)
+* umac32_set_nonce: UMAC. (line 81)
+* umac32_update: UMAC. (line 96)
+* umac64_digest: UMAC. (line 109)
+* umac64_set_key: UMAC. (line 72)
+* umac64_set_nonce: UMAC. (line 83)
+* umac64_update: UMAC. (line 98)
+* umac96_digest: UMAC. (line 111)
+* umac96_set_key: UMAC. (line 74)
+* umac96_set_nonce: UMAC. (line 85)
+* umac96_update: UMAC. (line 100)
+* XEX-based tweaked-codebook mode with ciphertext stealing: XTS.
+ (line 6)
+* XTS Mode: XTS. (line 6)
+* xts_aes128_decrypt_message: XTS. (line 138)
+* xts_aes128_encrypt_message: XTS. (line 132)
+* xts_aes128_set_decrypt_key: XTS. (line 122)
+* xts_aes128_set_encrypt_key: XTS. (line 118)
+* xts_aes256_decrypt_message: XTS. (line 141)
+* xts_aes256_encrypt_message: XTS. (line 135)
+* xts_aes256_set_decrypt_key: XTS. (line 124)
+* xts_aes256_set_encrypt_key: XTS. (line 120)
+* xts_decrypt_message: XTS. (line 83)
+* xts_encrypt_message: XTS. (line 80)
+* yarrow256_fast_reseed: Randomness. (line 276)
+* yarrow256_init: Randomness. (line 225)
+* yarrow256_is_seeded: Randomness. (line 266)
+* yarrow256_needed_sources: Randomness. (line 270)
+* yarrow256_random: Randomness. (line 256)
+* yarrow256_seed: Randomness. (line 231)
+* yarrow256_slow_reseed: Randomness. (line 277)
+* yarrow256_update: Randomness. (line 243)
+* yarrow_key_event_estimate: Randomness. (line 291)
+* yarrow_key_event_init: Randomness. (line 287)
+
+
+
+Tag Table:
+Node: Top543
+Node: Introduction2993
+Node: Copyright4572
+Node: Conventions5399
+Node: Example7553
+Node: Linking8852
+Node: Compatibility9717
+Node: Reference13343
+Node: Hash functions13794
+Node: Recommended hash functions15343
+Node: Miscellaneous hash functions30264
+Node: Legacy hash functions34505
+Ref: GOSTHASH94CP42051
+Node: nettle_hash abstraction44481
+Node: Cipher functions46750
+Node: AES50843
+Node: Arcfour55188
+Node: Arctwo57702
+Node: Blowfish60393
+Node: Camellia65028
+Node: CAST12869594
+Node: ChaCha71533
+Node: DES74629
+Node: DES377046
+Node: Salsa2080159
+Node: Serpent84204
+Node: SM485717
+Node: Twofish87006
+Node: nettle_cipher abstraction88308
+Node: Cipher modes90837
+Node: CBC92021
+Node: CTR96950
+Node: CFB and CFB899572
+Node: XTS105354
+Node: Authenticated encryption111729
+Node: EAX115041
+Node: GCM121181
+Node: CCM135707
+Node: ChaCha-Poly1305148496
+Node: OCB151995
+Node: SIV-CMAC161453
+Node: SIV-GCM166174
+Node: nettle_aead abstraction171093
+Node: Keyed hash functions172768
+Node: HMAC174419
+Node: UMAC183107
+Node: CMAC188978
+Node: Poly1305192302
+Node: Key derivation functions194960
+Node: Public-key algorithms206647
+Node: RSA210718
+Node: RSA-Footnotes234297
+Ref: RSA-Footnote-1234350
+Node: DSA234528
+Node: Elliptic curves250062
+Node: Side-channel silence251447
+Node: ECDSA252894
+Node: GOSTDSA257706
+Node: Curve 25519 and Curve 448261704
+Node: Randomness269619
+Node: ASCII encoding286654
+Node: Miscellaneous functions293381
+Node: Compatibility functions294541
+Node: Nettle soup295230
+Node: Installation296227
+Node: Index297603
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
diff --git a/nettle.pdf b/nettle.pdf
new file mode 100644
index 00000000..6b4f7598
--- /dev/null
+++ b/nettle.pdf
Binary files differ
diff --git a/rotors.h b/rotors.h
new file mode 100644
index 00000000..290f5d91
--- /dev/null
+++ b/rotors.h
@@ -0,0 +1,82 @@
+/* automagically made - do not fuss with this */
+
+ 34, 13, 5, 46, 47, 18, 32, 41, 11, 53, 33, 20,
+ 14, 36, 30, 24, 49, 2, 15, 37, 42, 50, 0, 21,
+ 38, 48, 6, 26, 39, 4, 52, 25, 12, 27, 31, 40,
+ 1, 17, 28, 29, 23, 51, 35, 7, 3, 22, 9, 43,
+
+ 41, 20, 12, 53, 54, 25, 39, 48, 18, 31, 40, 27,
+ 21, 43, 37, 0, 1, 9, 22, 44, 49, 2, 7, 28,
+ 45, 55, 13, 33, 46, 11, 6, 32, 19, 34, 38, 47,
+ 8, 24, 35, 36, 30, 3, 42, 14, 10, 29, 16, 50,
+
+ 55, 34, 26, 38, 11, 39, 53, 5, 32, 45, 54, 41,
+ 35, 2, 51, 14, 15, 23, 36, 3, 8, 16, 21, 42,
+ 6, 12, 27, 47, 31, 25, 20, 46, 33, 48, 52, 4,
+ 22, 7, 49, 50, 44, 17, 1, 28, 24, 43, 30, 9,
+
+ 12, 48, 40, 52, 25, 53, 38, 19, 46, 6, 11, 55,
+ 49, 16, 10, 28, 29, 37, 50, 17, 22, 30, 35, 1,
+ 20, 26, 41, 4, 45, 39, 34, 31, 47, 5, 13, 18,
+ 36, 21, 8, 9, 3, 0, 15, 42, 7, 2, 44, 23,
+
+ 26, 5, 54, 13, 39, 38, 52, 33, 31, 20, 25, 12,
+ 8, 30, 24, 42, 43, 51, 9, 0, 36, 44, 49, 15,
+ 34, 40, 55, 18, 6, 53, 48, 45, 4, 19, 27, 32,
+ 50, 35, 22, 23, 17, 14, 29, 1, 21, 16, 3, 37,
+
+ 40, 19, 11, 27, 53, 52, 13, 47, 45, 34, 39, 26,
+ 22, 44, 7, 1, 2, 10, 23, 14, 50, 3, 8, 29,
+ 48, 54, 12, 32, 20, 38, 5, 6, 18, 33, 41, 46,
+ 9, 49, 36, 37, 0, 28, 43, 15, 35, 30, 17, 51,
+
+ 54, 33, 25, 41, 38, 13, 27, 4, 6, 48, 53, 40,
+ 36, 3, 21, 15, 16, 24, 37, 28, 9, 17, 22, 43,
+ 5, 11, 26, 46, 34, 52, 19, 20, 32, 47, 55, 31,
+ 23, 8, 50, 51, 14, 42, 2, 29, 49, 44, 0, 10,
+
+ 11, 47, 39, 55, 52, 27, 41, 18, 20, 5, 38, 54,
+ 50, 17, 35, 29, 30, 7, 51, 42, 23, 0, 36, 2,
+ 19, 25, 40, 31, 48, 13, 33, 34, 46, 4, 12, 45,
+ 37, 22, 9, 10, 28, 1, 16, 43, 8, 3, 14, 24,
+
+ 18, 54, 46, 5, 6, 34, 48, 25, 27, 12, 45, 4,
+ 2, 24, 42, 36, 37, 14, 3, 49, 30, 7, 43, 9,
+ 26, 32, 47, 38, 55, 20, 40, 41, 53, 11, 19, 52,
+ 44, 29, 16, 17, 35, 8, 23, 50, 15, 10, 21, 0,
+
+ 32, 11, 31, 19, 20, 48, 5, 39, 41, 26, 6, 18,
+ 16, 7, 1, 50, 51, 28, 17, 8, 44, 21, 2, 23,
+ 40, 46, 4, 52, 12, 34, 54, 55, 38, 25, 33, 13,
+ 3, 43, 30, 0, 49, 22, 37, 9, 29, 24, 35, 14,
+
+ 46, 25, 45, 33, 34, 5, 19, 53, 55, 40, 20, 32,
+ 30, 21, 15, 9, 10, 42, 0, 22, 3, 35, 16, 37,
+ 54, 31, 18, 13, 26, 48, 11, 12, 52, 39, 47, 27,
+ 17, 2, 44, 14, 8, 36, 51, 23, 43, 7, 49, 28,
+
+ 31, 39, 6, 47, 48, 19, 33, 38, 12, 54, 34, 46,
+ 44, 35, 29, 23, 24, 1, 14, 36, 17, 49, 30, 51,
+ 11, 45, 32, 27, 40, 5, 25, 26, 13, 53, 4, 41,
+ 0, 16, 3, 28, 22, 50, 10, 37, 2, 21, 8, 42,
+
+ 45, 53, 20, 4, 5, 33, 47, 52, 26, 11, 48, 31,
+ 3, 49, 43, 37, 7, 15, 28, 50, 0, 8, 44, 10,
+ 25, 6, 46, 41, 54, 19, 39, 40, 27, 38, 18, 55,
+ 14, 30, 17, 42, 36, 9, 24, 51, 16, 35, 22, 1,
+
+ 6, 38, 34, 18, 19, 47, 4, 13, 40, 25, 5, 45,
+ 17, 8, 2, 51, 21, 29, 42, 9, 14, 22, 3, 24,
+ 39, 20, 31, 55, 11, 33, 53, 54, 41, 52, 32, 12,
+ 28, 44, 0, 1, 50, 23, 7, 10, 30, 49, 36, 15,
+
+ 20, 52, 48, 32, 33, 4, 18, 27, 54, 39, 19, 6,
+ 0, 22, 16, 10, 35, 43, 1, 23, 28, 36, 17, 7,
+ 53, 34, 45, 12, 25, 47, 38, 11, 55, 13, 46, 26,
+ 42, 3, 14, 15, 9, 37, 21, 24, 44, 8, 50, 29,
+
+ 27, 6, 55, 39, 40, 11, 25, 34, 4, 46, 26, 13,
+ 7, 29, 23, 17, 42, 50, 8, 30, 35, 43, 24, 14,
+ 31, 41, 52, 19, 32, 54, 45, 18, 5, 20, 53, 33,
+ 49, 10, 21, 22, 16, 44, 28, 0, 51, 15, 2, 36,
+
diff --git a/stamp-h.in b/stamp-h.in
new file mode 100644
index 00000000..9788f702
--- /dev/null
+++ b/stamp-h.in
@@ -0,0 +1 @@
+timestamp
diff --git a/testsuite/.c-style b/testsuite/.c-style
deleted file mode 100644
index 1112b4b1..00000000
--- a/testsuite/.c-style
+++ /dev/null
@@ -1 +0,0 @@
-"gnu"
diff --git a/testsuite/.gitignore b/testsuite/.gitignore
deleted file mode 100644
index b7929caa..00000000
--- a/testsuite/.gitignore
+++ /dev/null
@@ -1,122 +0,0 @@
-/*.d
-/Makefile
-/aes-test
-/aes-keywrap-test
-/arcfour-test
-/arctwo-test
-/balloon-test
-/base16-test
-/base64-test
-/bignum-test
-/blowfish-test
-/buffer-test
-/camellia-test
-/cast128-test
-/cbc-test
-/ccm-test
-/cfb-test
-/chacha-poly1305-test
-/chacha-test
-/cnd-memcpy-test
-/ctr-test
-/curve25519-dh-test
-/curve448-dh-test
-/cxx-test
-/des-test
-/des3-test
-/dlopen-test
-/dsa-keygen-test
-/dsa-test
-/eax-test
-/ecc-add-test
-/ecc-dup-test
-/ecc-mod-test
-/ecc-modinv-test
-/ecc-mul-a-test
-/ecc-mul-g-test
-/ecc-redc-test
-/ecc-sqrt-test
-/ecdh-test
-/ecdsa-keygen-test
-/ecdsa-sign-test
-/ecdsa-verify-test
-/ed25519-test
-/eddsa-compress-test
-/eddsa-sign-test
-/eddsa-verify-test
-/gcm-test
-/gostdsa-keygen-test
-/gostdsa-sign-test
-/gostdsa-verify-test
-/gostdsa-vko-test
-/gosthash94-test
-/hkdf-test
-/hmac-test
-/knuth-lfib-test
-/md2-test
-/md4-test
-/md5-compat-test
-/md5-test
-/memeql-test
-/memxor-test
-/meta-aead-test
-/meta-armor-test
-/meta-cipher-test
-/meta-hash-test
-/meta-mac-test
-/pbkdf2-test
-/pkcs1-test
-/pkcs1-sec-decrypt-test
-/poly1305-test
-/pss-mgf1-test
-/pss-test
-/random-prime-test
-/ripemd160-test
-/rsa-sec-decrypt-test
-/rsa-compute-root-test
-/rsa-encrypt-test
-/rsa-keygen-test
-/rsa-oaep-encrypt-test
-/rsa-pss-sign-tr-test
-/rsa-sign-tr-test
-/rsa-test
-/rsa2sexp-test
-/salsa20-test
-/serpent-test
-/sexp-format-test
-/sexp-test
-/sexp2rsa-test
-/sha1-huge-test
-/sha1-test
-/sha224-test
-/sha256-test
-/sha3-224-test
-/sha3-256-test
-/sha3-384-test
-/sha3-512-test
-/sha3-permute-test
-/sha384-test
-/sha512-224-test
-/sha512-256-test
-/sha512-test
-/sm3-test
-/sm4-test
-/streebog-test
-/twofish-test
-/umac-test
-/version-test
-/yarrow-test
-/xts-test
-/cmac-test
-/siv-test
-/siv-gcm-test
-/bcrypt-test
-/ed448-test
-/shake128-test
-/shake256-test
-/x86-ibt-test
-/drbg-ctr-aes256-test
-
-/test.in
-/test1.out
-/test2.out
diff --git a/testsuite/aes-test.out b/testsuite/aes-test.out
deleted file mode 100644
index a4fee680..00000000
--- a/testsuite/aes-test.out
+++ /dev/null
@@ -1,1382 +0,0 @@
-aes, 1, wtxt: a7106950, 81cf0e5a, 8d5574b3, 4b929b0c,
-aes, 1, key: 75cb83cb, 7dcc85ce, 70c08ec4, 62d19ecb,
-aes, 1, t: dfd5b20f, bc560cd9, 71e20c20, d0efcf20,
-aes, 2, wtxt: aa1e31c4, c19a8917, 012282e4, b23e51eb,
-aes, 2, key: 6a61bdc2, 17ad380c, 676db6c8, 05bc2803,
-aes, 2, t: 7edfd06e, e973b7d0, e8d43eb0, a7c1d35f,
-aes, 3, wtxt: 14be6dac, fede8fdc, 8fb98878, a27dfb5c,
-aes, 3, key: 110ad8f2, 06a7e0fe, 61ca5636, 64767e35,
-aes, 3, t: f900b7c0, 45b2f545, 1322f067, 19d966be,
-aes, 4, wtxt: e80a6f32, 431515bb, 72e8a651, 7daf188b,
-aes, 4, key: 8749e009, 81ee00f7, e02456c1, 845228f4,
-aes, 4, t: 424dd8c9, 558ab241, 969c2328, 36e7dd80,
-aes, 5, wtxt: c50438c0, d464b2b6, 76b875e9, b2b5f574,
-aes, 5, key: 3816e02d, b9f8e0da, 59dcb61b, dd8e9eef,
-aes, 5, t: e00c576d, cd93ad53, a6df8cb7, 995b614d,
-aes, 6, wtxt: d81ab740, 746b4d89, ff033aac, 44d5ffa2,
-aes, 6, key: e7d7f906, 5e2f19dc, 07f3afc7, da7d3128,
-aes, 6, t: b531424c, b382d8ac, 2375d233, b457e4fd,
-aes, 7, wtxt: 52e6bb4a, edadc170, 24867df4, 6e2ad5d5,
-aes, 7, key: d3800681, 8daf1f5d, 8a5cb09a, 502181b2,
-aes, 7, t: 789c75e4, e97f805d, fd4465bb, 16825e80,
-aes, 8, wtxt: ab1c7365, 64d09f00, 7718d521, 46a3df32,
-aes, 8, key: e4d3fb0d, 697ce450, e32054ca, b301d578,
-aes, 8, t: 1539561b, 68d219ab, 98852687, 6b484349,
-aes, 9, wtxt: f1eaad16, 01aefdfb, 7ba5724d, d8499631,
-aes, 9, key: 58be8715, 31c26345, d2e2378f, 61e3e2f7,
-aes, 9, t: 59bc8415, 33c16344, d1e2368d, 61e2e0f4,
-aes, t: 63636363, key, 305196bb
-aes, t: 7c7c7c7c, key, 0193f5fe
-aes, t: 77777777, key, d371c271
-aes, t: 7b7b7b7b, key, b2922086
-aes, 1, wtxt: 63636363, 7c7c7c7c, 77777777, 7b7b7b7b,
-aes, 1, key: 6a0a5d49, ad324e04, 75899bef, 2fef99ce,
-aes, 1, t: 0b0c090e, 0c090e0b, 090e0b0c, 0e0b0c09,
-aes, 2, wtxt: 61065447, a13b400f, 7c8790e3, 21e495c7,
-aes, 2, key: c27b443c, c738134d, d8bbd5eb, 5a660221,
-aes, 2, t: 98d69f71, a532102e, 9b274b16, af168d02,
-aes, 3, wtxt: 5aaddb4d, 620a0363, 439c9efd, f5708f23,
-aes, 3, key: 200c46be, 05435771, 1f83c6a6, 82ddd7ca,
-aes, 3, t: bf483e68, 05a6a820, 4a0dc519, b4483dc9,
-aes, 4, wtxt: 9f4478d6, 00e5ff51, 558e03bf, 3695ea03,
-aes, 4, key: ab333067, 254f11cf, 1ac091d7, 9d5e116c,
-aes, 4, t: b048d36e, 444c9168, 88628746, 8b21b856,
-aes, 5, wtxt: 1b7be309, 610380a7, 92a21691, 167fa93a,
-aes, 5, key: e51ce0fa, 8e7c21a8, 3f8f8018, 879e80bb,
-aes, 5, t: d270d740, 28a9bce6, 777d6606, bfdd8729,
-aes, 6, wtxt: 376c37ba, a6d59d4e, 48f2e61e, 38430792,
-aes, 6, key: 03d12adf, 6b60c152, b1f3a1b0, b81100a3,
-aes, 6, t: fc4a73fc, f019e5b8, ab940c61, f848a89e,
-aes, 7, wtxt: ff9b5923, 9b7924ea, 1a67add1, 4059a83d,
-aes, 7, key: 6753ccc9, 68b1eb8d, da9360e2, 09e2a113,
-aes, 7, t: 5d05bf58, 924e2f0b, 613d6f5e, 7aff9d59,
-aes, 8, wtxt: 3a567391, faffc486, bbae0fbc, 731d3c4a,
-aes, 8, key: a934967f, 0fe22744, b2228b6f, d371c1f1,
-aes, 8, t: 9ea73163, a35034b4, ca505a06, afc90618,
-aes, 9, wtxt: 3793a71c, acb213f0, 7872d169, 7cb8c7e9,
-aes, 9, key: e0abe15c, a6d6b13b, bdc0ac2b, 61534a9e,
-aes, 9, t: 53574a0f, fa992385, b10ab846, 3cd9b360,
-aes, t: a7106950, key, 03020100
-aes, t: 81cf0e5a, key, 08070605
-aes, t: 8d5574b3, key, 0d0c0b0a
-aes, t: 4b929b0c, key, 1211100f
-aes, 1, wtxt: dd677848, 9790c429, a5b94b1e, 6d58c8f1,
-aes, 1, key: 31e12a23, 2dfa303a, 0cda2f24, 2aff0b07,
-aes, 1, t: c4a6acea, b49aa734, f008a5ca, 28d764e0,
-aes, 2, wtxt: f54786c9, 9960970e, fcd28aee, 02286fe7,
-aes, 2, key: f4043c0a, d9fe0c30, d5242314, ffdb2813,
-aes, 2, t: afbd65e0, 7b8ced1d, b7f276fd, 48a0c79f,
-aes, 3, wtxt: 5bb959ea, a272e12d, 62d655e9, b77bef8c,
-aes, 3, key: 8912853a, 50ec890a, 85c8aa1e, 7a13820d,
-aes, 3, t: d568c459, dc2d61ac, df237b2a, 68ca8364,
-aes, 4, wtxt: 5c7a4163, 8cc1e8a6, 5aebd134, 12d90169,
-aes, 4, key: 5ec8f821, 0e24712b, 8becdb35, f1ff5938,
-aes, 4, t: ede93f7b, f3ae4d75, 4667f10a, 8c53d2b1,
-aes, 5, wtxt: b321c75a, fd8a3c5e, cd8b2a3f, 7dac8b89,
-aes, 5, key: 5969eefa, 574d9fd1, dca144e4, 2d5e1ddc,
-aes, 5, t: ea35cb83, 46334c78, f7554704, 2b410fc7,
-aes, 6, wtxt: b35c2579, 117ed3a9, 2bf403e0, 061f121b,
-aes, 6, key: dfb1b67e, 88fc29af, 545d6d4b, 79037097,
-aes, 6, t: c604cf0d, 0f84139d, a4213451, df652e06,
-aes, 7, wtxt: 19b57973, 87783a32, f07c591a, a6665e91,
-aes, 7, key: 5707cd6f, dffbe4c0, 8ba6898b, f2a5f91c,
-aes, 7, t: 524380aa, 2ee92fe7, 5e726175, 91dba5e8,
-aes, 8, wtxt: 05444dc5, f112cb27, d5d4e8fe, 637e5cf4,
-aes, 8, key: cb8ecb76, 14752fb6, 9fd3a63d, 6d765f21,
-aes, 8, t: 4b3fbbc5, f11784ad, de3fa309, f6d02191,
-aes, 9, wtxt: 80b170b3, e562ab1b, 41ec0534, 9ba67eb0,
-aes, 9, key: 36b2f3a2, 22c7dc14, bd147a29, d0622508,
-aes, 9, t: 33b4f4a6, 24c0d811, ba107f2f, d467230f,
-aes, t: f2f2f2f2, key, 06c259ab
-aes, t: 6b6b6b6b, key, 240585bf
-aes, t: 6f6f6f6f, key, 9911ff96
-aes, t: c5c5c5c5, key, 4973da9e
-aes, 1, wtxt: f2f2f2f2, 6b6b6b6b, 6f6f6f6f, c5c5c5c5,
-aes, 1, key: 1bc66f67, c52961a0, d4c2fc10, 89a559ea,
-aes, 1, t: 0f080d0a, 080d0a0f, 0d0a0f08, 0a0f080d,
-aes, 2, wtxt: 14ce626d, cd246baf, d9c8f318, 83aa51e7,
-aes, 2, key: d3b038a3, deef0ec7, 11eb9db0, 5d67a5fa,
-aes, 2, t: 28f82705, b51c950b, b0f0d70b, 5eae4645,
-aes, 3, wtxt: fb481fa6, 6bf39bcc, a11b4abb, 03c9e3bf,
-aes, 3, key: 5a3f3fa8, 0d5f3664, cf049377, 4c8c384a,
-aes, 3, t: 7e2fbf27, d96cfd47, d8d1cbd5, c0308ecb,
-aes, 4, wtxt: 2410808f, d433cb23, 17d558a2, 8cbcb681,
-aes, 4, key: d89de605, 576009cc, c25ba513, 8388ab3d,
-aes, 4, t: b72280b3, 3aa0721f, 40116cf2, 727b9492,
-aes, 5, wtxt: 6fbf66b6, 6dc07bd3, 824ac9e1, f1f33faf,
-aes, 5, key: f16c0eb7, 8ffdefc9, 953bacdf, 41d30e2e,
-aes, 5, t: 0e51e509, e26c0a91, c1c691aa, fcadc889,
-aes, 6, wtxt: ff3debbe, 6d91e558, 54fd3d75, bd7ec6a7,
-aes, 6, key: 0f773700, 7e91e17e, 1ac64316, d4e8a2f1,
-aes, 6, t: c69eacfb, 34a4df5a, 7e1c3f0e, 6a902108,
-aes, 7, wtxt: c9e99bfb, 4a353e24, 64da7c18, be7883f9,
-aes, 7, key: db809fe0, 71e6d67e, 6457a268, ce2ee1e7,
-aes, 7, t: 72766767, 48c72aa6, 5e017d76, 646e2a83,
-aes, 8, wtxt: a9f6f887, 3921fcd8, 3a56df1e, aa40cb64,
-aes, 8, key: b26bedf2, aa66499e, 15b17416, aa79438f,
-aes, 8, t: c5de652f, 4c523735, fb11dc3e, 1aa9071b,
-aes, 9, wtxt: 77b588dd, e6347eab, eea0a828, b0d04494,
-aes, 9, key: 3234805f, 180da46c, bfd73d88, bfc83799,
-aes, 9, t: 0e629c0d, d96717c9, 3752d5fa, b9a88b38,
-aes, t: dd677848, key, 17161514
-aes, t: 9790c429, key, 1c1b1a19
-aes, t: a5b94b1e, key, 21201f1e
-aes, t: 6d58c8f1, key, 26252423
-aes, 1, wtxt: eddeda7b, d439a862, ac55f6d5, cc18b7c3,
-aes, 1, key: b1aa3b2e, 81851503, b4b12631, 8e881e06,
-aes, 1, t: cbddeaa8, a0569771, 214825b3, 0ef52726,
-aes, 2, wtxt: 7a77d186, 21d38272, 95f90382, 807d3920,
-aes, 2, key: deb3ff5e, 5f36ea5d, eb87cc6c, 650fd26a,
-aes, 2, t: c7321fe9, ebab7628, 33ecce18, ce3b4b7b,
-aes, 3, wtxt: 1981e0b7, b49d9c75, d86b0274, ab349911,
-aes, 3, key: dcfe89ef, 83c863b2, 684fafde, 0d407db4,
-aes, 3, t: 852fed2d, 60bd8f74, 4ee8cc97, e07cd818,
-aes, 4, wtxt: 59d164c2, e375ecc6, 26a76349, ed3ca5ac,
-aes, 4, key: 51298018, d2e1e3aa, baae4c74, b7ee31c0,
-aes, 4, t: 57ac130a, 5ac4b445, 57726453, 83f15c96,
-aes, 5, wtxt: 06859312, 882557ef, eddc2827, 341f6d56,
-aes, 5, key: eb80a8cf, 39614b65, 83cf0711, 342136d1,
-aes, 5, t: adadf6fa, 50c18356, 7792d294, 81ec066c,
-aes, 6, wtxt: 462d5e35, 69a0c833, f45dd585, b5cd30bd,
-aes, 6, key: d59855ea, ecf91e8f, 6f36199e, 5b172f4f,
-aes, 6, t: b4825c8d, 544f437f, 97281518, 53234e43,
-aes, 7, wtxt: 611a0967, b8b65df0, f81e0c86, 0834610c,
-aes, 7, key: 51a1a5bf, bd58bb30, d26ea2ae, 89798de1,
-aes, 7, t: ca7dbb87, ac68aced, 5940106c, d4a06feb,
-aes, 8, wtxt: 9bdc1e38, 113017dd, 8b2eb2c2, 5dd9e20a,
-aes, 8, key: a9061362, 145ea852, c6300afc, 4f49871d,
-aes, 8, t: 5041e378, 72a0e4e1, 6e371dfd, a55ab261,
-aes, 9, wtxt: f947f01a, 66fe4cb3, a8071701, ea13357c,
-aes, 9, key: 0d82286e, 19dc803c, dfec8ac0, 90a50ddd,
-aes, 9, t: 04882366, 13d78835, d4e483ca, 98ac07d6,
-aes, t: 30303030, key, cce22e8f
-aes, t: 01010101, key, d53eaeb3
-aes, t: 67676767, key, 0ad22473
-aes, t: 2b2b2b2b, key, 9a7729ae
-aes, 1, wtxt: 30303030, 01010101, 67676767, 2b2b2b2b,
-aes, 1, key: 84c128a4, 9d7cf66e, 32a69578, c4b88811,
-aes, 1, t: 03040106, 04010603, 01060304, 06030401,
-aes, 2, wtxt: 87c529a2, 997df06d, 33a0967c, c2bb8c10,
-aes, 2, key: 8ebc937f, 19bddeca, afda6316, f61e1d69,
-aes, 2, t: c28d6378, 0d88e90b, 2d5cfb33, cb1a6f0e,
-aes, 3, wtxt: 4c31f007, 143537c1, 82869825, 3d047267,
-aes, 3, key: 90d9ab08, 97014db5, b667bddc, 59c47e7f,
-aes, 3, t: a0abe78d, 7819b339, dac55298, 188a7f81,
-aes, 4, wtxt: 30724c85, ef18fe8c, 6ca2ef44, 414e01fe,
-aes, 4, key: bef2c17f, 07d8e6bd, 2166f069, efa3c3a3,
-aes, 4, t: 6bbe29e9, 5d65e57e, d8bef4fe, 50439bd9,
-aes, 5, wtxt: d54ce896, 5abd03c3, f9d80497, bfe0587a,
-aes, 5, key: d81d834a, b92a27c2, 26be16d4, cec533ca,
-aes, 5, t: c09bd883, d6ea131d, e2292a18, 9bfaef7b,
-aes, 6, wtxt: 18865bc9, 6fc034df, c4973ccc, 553fdcb1,
-aes, 6, key: 0bbc0156, 6137a488, 9f943116, e87b251e,
-aes, 6, t: 5ee0cf73, aadc5f3c, 8eaa372d, 1fe6668f,
-aes, 7, wtxt: 555cce25, cbebfbb4, 113e063b, f79d4391,
-aes, 7, key: a7ac7a35, 6a8ba5de, fea3959e, 77ef1408,
-aes, 7, t: c5d3a49c, be93d243, 73af7b0c, 16b1f58a,
-aes, 8, wtxt: 627fdea9, d418779d, 8d0cee92, 615ee182,
-aes, 8, key: b7061568, cd27dfeb, 94283040, 894c8196,
-aes, 8, t: 7a9f062c, 17d8a4ab, 69dd2253, a32abf21,
-aes, 9, wtxt: cd991344, daff7b40, fdf51213, 2a663eb7,
-aes, 9, key: f4c4625c, 7a21ca83, 590fefab, 1d64b1d6,
-aes, 9, t: bf38a07d, 2f8c8829, 111246a8, 8c76e6f8,
-aes, t: eddeda7b, key, 2b2a2928
-aes, t: d439a862, key, 302f2e2d
-aes, t: ac55f6d5, key, 35343332
-aes, t: cc18b7c3, key, 3a393837
-aes, 1, wtxt: 55555555, 21212121, 0c0c0c0c, 7d7d7d7d,
-aes, 1, key: da956946, 7232cfe3, df9e6449, 6d2fd4e6,
-aes, 1, t: f9fcfbfe, fef9fcfb, fbfef9fc, fcfbfef9,
-aes, 2, wtxt: 236992b8, 8ccb3318, 24609db5, 91d42a1f,
-aes, 2, key: 54a97c0c, 269bb3ef, f905d7a6, 942a0340,
-aes, 2, t: be8c1bd7, b609efcd, b0757018, 67eb4963,
-aes, 3, wtxt: ea2567db, 90925c22, 4970a7be, f3c14a23,
-aes, 3, key: 5d8b9973, 7b102a9c, 8215fd3a, 163ffe7a,
-aes, 3, t: d146d3eb, 9fad2426, c0a63879, d670ddac,
-aes, 4, wtxt: 8ccd4a98, e4bd0eba, 42b3c543, c04f23d6,
-aes, 4, key: 87ccecc0, fcdcc65c, 7ec93b66, 68f6c51c,
-aes, 4, t: 63e206bd, eded50e2, 67e6e38a, f5a0e3c0,
-aes, 5, wtxt: e42eea7d, 113196be, 192fd8ec, 9d5626dc,
-aes, 5, key: 1b89ae76, e755682a, 999c534c, f16a9650,
-aes, 5, t: 23a7a505, eb0dcd3c, 90c6ea36, 62f31596,
-aes, 6, wtxt: 382e0b73, 0c58a516, 095ab97a, 939983c6,
-aes, 6, key: 4828acc6, af7dc4ec, 36e197a0, c78b01f0,
-aes, 6, t: 9191866d, 7fdfc59d, 4f4db44f, 84485d65,
-aes, 7, wtxt: d9b92aab, d0a20171, 79ac23ef, 43c35c95,
-aes, 7, key: c4ee91fa, 6b935516, 5d72c2b6, 9af9c346,
-aes, 7, t: 7f0928cb, 9c86a82c, 86a9c15d, d67a03ec,
-aes, 8, wtxt: bbe7b931, f715fd3a, dbdb03eb, 4c83c0aa,
-aes, 8, key: 9e560854, f5c55d42, a8b79ff4, 324e5cb2,
-aes, 8, t: ed8196f9, c31db390, ded849e0, 89985259,
-aes, 9, wtxt: 73d79ead, 36d8eed2, 766fd614, bbd60eeb,
-aes, 9, key: a9752705, 5cb07a47, f407e5b3, c649b901,
-aes, 9, t: ebd3cc0b, c13ecc09, ba42a002, 3a68648d,
-aes, t: b06e4eab, key, d5c11c65
-aes, t: 2cfd6e2f, key, 89716622
-aes, t: 5e24c1c8, key, 7d768391
-aes, t: 2f19e964, key, bb3f3a90
-aes, 1, wtxt: b06e4eab, 2cfd6e2f, 5e24c1c8, 2f19e964,
-aes, 1, key: ab42c2d5, f1816ecf, c4e68403, 20e331c5,
-aes, 1, t: 41eaea40, 7e77987a, c1e82ff9, 18823a2c,
-aes, 2, wtxt: eaa82895, 8ff6f6b5, 050eabfa, 38610be9,
-aes, 2, key: 278d82bc, 5ac3ac1a, 3567eacc, e405b5c6,
-aes, 2, t: 0e34d67b, b02fd79a, 5df35025, 5d5ce36a,
-aes, 3, wtxt: 29b954c7, eaec7b80, 6894bae9, b95956ac,
-aes, 3, key: 88955f03, 7d4e2ea6, 6fa446d6, d1625f0a,
-aes, 3, t: 92042361, 48600805, 1ff20c09, 6758ba20,
-aes, 4, wtxt: 1a917c62, 352e26a3, 70564adf, b63ae52a,
-aes, 4, key: a82758dd, f5db71a5, 12ea6870, bec619dc,
-aes, 4, t: 74995e52, f23527e2, ecdb84aa, bfac3268,
-aes, 5, wtxt: dcbe068f, 07ee5647, fe31ecda, 016a2bb4,
-aes, 5, key: 0f4b2e20, 5dfc2978, e73119d5, ac2c71ac,
-aes, 5, t: 515ebedf, 344d48d6, 6500ee1b, 78ebf62a,
-aes, 6, wtxt: 5e1590ff, 69b161ae, 8231f7ce, d4c78786,
-aes, 6, key: cc1869da, 52b70758, bacd30ad, 4b1d6879,
-aes, 6, t: 7675c29c, 3633a1ac, d37016b7, 6767be8f,
-aes, 7, wtxt: ba6dab46, 6484a6f4, 69bd261a, 2c7ad6f6,
-aes, 7, key: fb3647b6, 9eaf6e82, e87a37f5, f1d058d4,
-aes, 7, t: f6670d0f, 19d73211, 8845e15b, ca9fddf2,
-aes, 8, wtxt: 0d514ab9, 87785c93, 603fd6ae, 3b4f8526,
-aes, 8, key: cd63e4c7, 65992934, 76d55977, 19aa6f21,
-aes, 8, t: 4cb327ab, 43d17799, 122cbca2, 2fb520e1,
-aes, 9, wtxt: 81d0c36c, 26485ead, 64f9e5d5, 361f4fc0,
-aes, 9, key: 4e273d34, a8facdf3, 134c7043, 6f7f3656,
-aes, 9, t: b1d9c0c8, 5405330e, eeb08fbd, 9182caa9,
-aes, t: 55555555, key, a3a2a1a0
-aes, t: 21212121, key, a8a7a6a5
-aes, t: 0c0c0c0c, key, adacabaa
-aes, t: 7d7d7d7d, key, b2b1b0af
-aes, 1, wtxt: f1ec322d, 820d45c5, e549b494, a41ad406,
-aes, 1, key: 17161514, 1c1b1a19, d79eaea3, df99a8a6,
-aes, 1, t: b41b006b, 878cfbd8, c6d8e841, ec8992b5,
-aes, 2, wtxt: a30d157f, 9b97e1c1, 114646e2, 33103a13,
-aes, 2, key: d295a3ac, c084b3a3, d792a6b7, cb89bcae,
-aes, 2, t: 52c01435, 0cb383de, cc91f573, 49b2ce1b,
-aes, 3, wtxt: 8055b799, cc37307d, 1b0353c4, 823b72b5,
-aes, 3, key: 338109c4, ec18a162, 3e8d02ce, fe09b16d,
-aes, 3, t: 702978a3, 9481cee6, 0e62c84f, 12b98664,
-aes, 4, wtxt: 43a87167, 78996f84, 30efca81, ecb03709,
-aes, 4, key: 299b17da, e212ab74, a119c0a2, 4d0161c0,
-aes, 4, t: 64c17ae3, 46d09fdf, 2fd6c2d3, 46697116,
-aes, 5, wtxt: 4d5a6d39, a4c234ab, 8ecf0271, 0b6810d6,
-aes, 5, key: 738c630e, 8d85d263, a41ec5b9, 460c6ecd,
-aes, 5, t: f2788cad, 49a1a0fb, 18d5bcef, 2aabf88f,
-aes, 6, wtxt: 81f4efa3, c4247298, bccb7956, 6ca79642,
-aes, 6, key: 1c433e35, 51425ff5, 22ce3cfb, af4bee98,
-aes, 6, t: e184fb9b, 385cd91d, df604c71, 5730b671,
-aes, 7, wtxt: fdc7c5ae, 691e86e8, fdae708a, f87b58e9,
-aes, 7, key: 0b552b21, 4d5945ec, d2a0f54b, 83e2aabe,
-aes, 7, t: 15b01aba, 6e740eab, c793027d, 5ea08beb,
-aes, 8, wtxt: 1ee5319b, 232d4b47, 1533f736, dd422155,
-aes, 8, key: a12c9645, 0e6778dd, 053253fc, 486b1610,
-aes, 8, t: d562f6e4, 5b0676bd, 673bb2e9, b27b4330,
-aes, 9, wtxt: 744e60a1, 55610e60, 6209e115, fa105520,
-aes, 9, key: 18f28a2c, 9b102092, 3a3cb6d7, 345bce0a,
-aes, 9, t: a6ec51ae, 660aecf0, dbe4377e, b2478c5b,
-aes, 10, wtxt: be1edb82, fd1acc62, e1d881a9, 861c4251,
-aes, 10, key: 31699df6, 79028be6, 9644fd51, 0d54ddc3,
-aes, 10, t: 975662de, 326ca369, 98e749ef, 9824bd33,
-aes, 11, wtxt: a63fff28, 4b6e288f, 0ea3b4be, 957060f0,
-aes, 11, key: 37686b14, 0333a51e, 325a38e8, 4b58b30e,
-aes, 11, t: 366a6814, 0130a51f, 315a39ea, 4b59b10d,
-aes, t: 63636363, key, 3df797bc
-aes, t: 7c7c7c7c, key, 30a34a7f
-aes, t: 77777777, key, 07cb216b
-aes, t: 7b7b7b7b, key, 04f88475
-aes, 1, wtxt: 63636363, 7c7c7c7c, 77777777, 7b7b7b7b,
-aes, 1, key: 21063d3a, 28588378, ba7bdba2, a5941a85,
-aes, 1, t: 0b0c090e, 0c090e0b, 090e0b0c, 0e0b0c09,
-aes, 2, wtxt: 2a0a3434, 24518d73, b375d0ae, ab9f168c,
-aes, 2, key: 922358da, 1fefc127, 170c80e5, aec5f0dc,
-aes, 2, t: d64213c9, b173cd8d, 437eac36, 5667490d,
-aes, 3, wtxt: 44614b13, ae9c0caa, 54722cd3, f8a2b9d1,
-aes, 3, key: 14721e34, b9c97039, 8fc3cde6, 095ebe42,
-aes, 3, t: 3973b506, 2b0388e9, 73ec31bf, a3b16ef5,
-aes, 4, wtxt: 2d01ab32, 92caf8d0, fc2ffc59, aaefd0b7,
-aes, 4, key: 360abddf, 869d73a4, 9b7de698, 8dcc99fd,
-aes, 4, t: f7c90ecb, f4b11b04, bda41b9d, d4145e01,
-aes, 5, wtxt: c1c3b314, 722c68a0, 26d9fd05, 59d8c7fc,
-aes, 5, key: 1de0953c, 16b17f65, 9133355b, adbb6e0d,
-aes, 5, t: 5c04d1d8, 42902efe, 68f55f25, f9c9c813,
-aes, 6, wtxt: 41e444e4, 5421519b, f9c66a7e, 5472a61e,
-aes, 6, key: 04fc8e22, 3c885b56, 9bb1d3d2, b097ce7b,
-aes, 6, t: 54e3ce28, 30d4ed10, 870e4363, d5a11157,
-aes, 7, wtxt: 501f400a, 0c5cb646, 1cbf90b1, 6536df2c,
-aes, 7, key: a7398884, 2b261da9, ad775b47, 0b51ea59,
-aes, 7, t: 8cb39096, c8636acb, e4c991e4, 1274d6af,
-aes, 8, wtxt: 2b8a1812, e3457762, 49becaa3, 19253cf6,
-aes, 8, key: 865146ee, a626b11e, 68f8a6ec, 3874d574,
-aes, 8, t: 488eee6b, bcc1c541, d43a3ce0, 3c9a7675,
-aes, 9, wtxt: cedfa885, 1ae7745f, bcc29a0c, 04eea301,
-aes, 9, key: 845b40e0, 508c7398, 9f4d5df0, 8c1f952d,
-aes, 9, t: 9720440e, 9d6e9e67, d4b11dec, 23853cf8,
-aes, 10, wtxt: 137b04ee, cde2edff, 4bfc401c, af9aa9d5,
-aes, 10, key: cfc12e68, 1352c8dd, 0a4ed3c3, 2077f7f0,
-aes, 10, t: 0c9bd6ba, 199892a5, 1e99535b, a2ffae8d,
-aes, 11, wtxt: c35af8d2, 0aca5a78, 14d78098, 8288597d,
-aes, 11, key: 191c1b1e, 2a392433, 92aa631f, d4d73378,
-aes, 11, t: 502775c6, 8b9ba995, 81642b3d, 0d001017,
-aes, t: f1ec322d, key, 03020100
-aes, t: 820d45c5, key, 08070605
-aes, t: e549b494, key, 0d0c0b0a
-aes, t: a41ad406, key, 1211100f
-aes, 1, wtxt: ffaf4f83, bbe6c1cf, a6bd6f0c, b90458ab,
-aes, 1, key: 17161514, 1c1b1a19, 21201f1e, 26252423,
-aes, 1, t: 819ac467, f3e7da08, c5434bca, e48ddcf9,
-aes, 2, wtxt: 968cd173, effcc011, e46354d4, c2a8f8da,
-aes, 2, key: 25f53e37, 2df23832, 20fe3338, 32ef2337,
-aes, 2, t: 81b7d30e, 44960f2d, 58bbb9e8, a5a98935,
-aes, 3, wtxt: a442ed39, 6964371f, 78458ad0, 9746aa02,
-aes, 3, key: 34c9338e, 28d22997, 09f23689, 2fd712aa,
-aes, 3, t: c9d70777, edd19b0a, f994beda, ec7ba4ee,
-aes, 4, wtxt: fd1e34f9, c503b29d, f0668853, c3acb644,
-aes, 4, key: 89e030fc, a41208ce, 84ec3bf6, b60318c1,
-aes, 4, t: e8ba8c6d, 1f5f312e, 47b641c7, 4d7a2ae9,
-aes, 5, wtxt: 615abc91, bb4d39e0, c35a7a31, fb793228,
-aes, 5, key: 7ab29ef6, 5260b761, 5b9281e8, 74459342,
-aes, 5, t: 2ae5739e, 916660f5, 00a6b2a4, 86feee0a,
-aes, 6, wtxt: 5057ed68, c306d794, 5b34334c, f2bb7d48,
-aes, 6, key: a5725e24, 016056ea, 858c6d1c, 338f75dd,
-aes, 6, t: d0fbf809, e9dbc9a3, 83120f3d, be92700d,
-aes, 7, wtxt: 7589a62d, e8bb9f49, 069e6221, 8d1d05d0,
-aes, 7, key: b9c10337, eba1b456, b03335be, c476a6fc,
-aes, 7, t: 19f2358b, 627e1eaa, fd754260, 802a7209,
-aes, 8, wtxt: a03336bc, 89dfaafc, 4d4677de, 445cd4f5,
-aes, 8, key: 156e6608, 140e30e2, 91825dfe, a20d2823,
-aes, 8, t: 6f50d364, afea7fd5, f93a7486, 77fab6a5,
-aes, 9, wtxt: 7a3eb56c, bbe44f37, 68b82978, d5f79e86,
-aes, 9, key: 83163711, 68b78347, d884b6f9, 1cf21005,
-aes, 9, t: 1e09f458, d79aa969, a9ed8d26, fa8c0bc0,
-aes, 10, wtxt: 9d1fc349, bf2d2a2e, 71693bdf, e67e1bc5,
-aes, 10, key: 7ef2efd2, 6afcdf30, fb7e82ce, 5973aaed,
-aes, 10, t: 56be7435, feccbef2, c6b28805, 5add2a5e,
-aes, 11, wtxt: 284c9be7, 943061c2, 3dcc0acb, 03ae80b3,
-aes, 11, key: 48999b44, 202e1803, f8aaaefa, e458beff,
-aes, 11, t: f560f729, 84cde833, 81e6c779, e9186ec5,
-aes, 12, wtxt: bdf96c6d, a4e3f030, 794c6983, 0d40d03a,
-aes, 12, key: 689b855c, 02675a6c, f919d8a2, a06a724f,
-aes, 12, t: 54809309, 08618c6b, 546ef583, ad33a54c,
-aes, 13, wtxt: 3c1b1655, 0a06d607, ad772d21, 0d59d703,
-aes, 13, key: a89bdbc0, 88b5c3c3, 701f6d39, 9447d3c6,
-aes, 13, t: a999d8c0, 8ab6c3c2, 731f6c3b, 9446d1c5,
-aes, t: 63636363, key, dcb9257a
-aes, t: 7c7c7c7c, key, dede7f16
-aes, t: 77777777, key, 27c7a7b4
-aes, t: 7b7b7b7b, key, 87add5fb
-aes, 1, wtxt: 63636363, 7c7c7c7c, 77777777, 7b7b7b7b,
-aes, 1, key: dcf9fff2, e7c2d6ce, 6ea105f1, 9b644b72,
-aes, 1, t: 0b0c090e, 0c090e0b, 090e0b0c, 0e0b0c09,
-aes, 2, wtxt: d7f5f6fc, ebcbd8c5, 67af0efd, 956f477b,
-aes, 2, key: f83641a5, 587ca6d1, ed3ee3aa, 0e7f29af,
-aes, 2, t: 2f1fcd99, 22755fd5, a4a79346, b86e792f,
-aes, 3, wtxt: d7298c3c, 7a09f904, 499970ec, b6115080,
-aes, 3, key: 4f0780c6, 3b3b293c, 8963d33f, f5c54e83,
-aes, 3, t: 344c6f52, 0fdf4e19, ab4a1e20, d2c15aee,
-aes, 4, wtxt: 7b4bef94, 34e46725, 2229cd1f, 2704146d,
-aes, 4, key: 013fe966, a04ae774, b542457b, e341ca05,
-aes, 4, t: 8fc60c5d, feb90545, bd82eae5, 4099e4a3,
-aes, 5, wtxt: 8ef9e53b, 5ef3e231, 08c0af9e, a3d82ea6,
-aes, 5, key: 0667cf1d, 743ca9fa, b258fa03, 7ca69dbc,
-aes, 5, t: 050b4b4d, ae540c60, 58eaf1bf, 39cf48f8,
-aes, 6, wtxt: 036c8450, da68a59a, eab20bbc, 4569d544,
-aes, 6, key: 45a61cea, a1750e12, 1508a20f, 56038f7e,
-aes, 6, t: 5efcb08f, 413ffba2, b2cbea12, b59d8a98,
-aes, 7, wtxt: 1b5aac65, e04af5b0, a7c3481d, e39e05e6,
-aes, 7, key: 7ade58b0, 725b66e7, c66453f9, cefe67bf,
-aes, 7, t: 27d58368, efffccdc, 5dc33804, a11443cf,
-aes, 8, wtxt: 5d0bdbd8, 9da4aa3b, 9ba76bfd, 6fea2470,
-aes, 8, key: cf367521, e4d312f8, b47dac1d, 430b2d71,
-aes, 8, t: 462e7b64, b739d1da, 9a265334, 7a647823,
-aes, 9, wtxt: 89180e45, 53eac322, 2e5bff29, 396f5552,
-aes, 9, key: 13e5acfa, 08853e57, b43f351e, 089a3446,
-aes, 9, t: 1c5bbe7b, e733e4b6, 5e8116d9, 26795172,
-aes, 10, wtxt: 0fbe1281, efb6dae1, eabe23c7, 2ee36534,
-aes, 10, key: 4bb8a3f5, 2be567d9, 50aebee5, f776816c,
-aes, 10, t: 658b946c, 7f74a387, f6dcf008, 7b0d9977,
-aes, 11, wtxt: 2e333799, 5491c45e, a6724eed, 8c7b181b,
-aes, 11, key: 3159b69e, 1b6092ad, bcba0b49, bca50158,
-aes, 11, t: b9372c8c, 523aec6d, 4596a739, 00e6542f,
-aes, 12, wtxt: 886e9a12, 495a7ec0, f92cac70, bc435577,
-aes, 12, key: 2620944b, 605dc42c, 7b4bd93c, a7d83f89,
-aes, 12, t: 03db2ec4, f09fe4ae, a42f9874, ce6801de,
-aes, 13, wtxt: 25fbba8f, 90c22082, df644148, 69b03e57,
-aes, 13, key: 191c1b1e, 2a392433, a7da99e4, 001f0a11,
-aes, 13, t: 4f6663f2, 3ccb8cb9, 4da3f31a, 24918e73,
-aes, t: ffaf4f83, key, 03020100
-aes, t: bbe6c1cf, key, 08070605
-aes, t: a6bd6f0c, key, 0d0c0b0a
-aes, t: b90458ab, key, 1211100f
-aes, 1, wtxt: 2bc66028, 82686ddd, ac001960, f0771aa2,
-aes, 1, key: e384c705, 8b11a95a, 54aa16d3, 9e08449b,
-aes, 1, t: 004165c3, 80ec87fa, 5b345be1, e2c8dfcb,
-aes, 2, wtxt: e3c5a2c6, 0bfd2ea0, 0f9e4d32, 7cc09b50,
-aes, 2, key: eb989e97, af51e66b, b15d5b41, 76fbe729,
-aes, 2, t: dda3db3b, 405ff94e, 811dd1f7, 775badca,
-aes, 3, wtxt: 363b45ac, ef0e1f25, 30408ab6, 01a04ae3,
-aes, 3, key: db8b53a0, 509afafa, 0430ec29, 9a38a8b2,
-aes, 3, t: 99c76d17, d595fd19, 433d1bc0, fe3e2f3f,
-aes, 4, wtxt: 424c3eb7, 850f07e3, 470df7e9, 6406878d,
-aes, 4, key: dc209957, 73717f3c, c22c247d, b4d7c354,
-aes, 4, t: 741c1989, 6cd35cd9, 29f9dcbb, 78f818a1,
-aes, 5, wtxt: a83c80de, 1fa223e5, ebd5f8c6, cc2fdbf5,
-aes, 5, key: 56857d80, 061f877a, 022f6b53, 9817c3e1,
-aes, 5, t: 94e01f18, bbefa6bd, 0e9b3b88, 0f7fc048,
-aes, 6, wtxt: c2656298, bdf021c7, 0cb450db, 976803a9,
-aes, 6, key: 2466697d, 57171641, 953b323c, 21ecf168,
-aes, 6, t: b139a395, 0d708a02, 12d6e2d3, af63ed2a,
-aes, 7, wtxt: 955fcae8, 5a679c43, 87edd0ef, 8e8f1c42,
-aes, 7, key: ab4bdcc5, ad545bbf, af7b30ec, 376cf30d,
-aes, 7, t: 0fc4da18, 79f245fd, 4e1f086b, ab704756,
-aes, 8, wtxt: a48f06dd, d4a61e42, e1643887, 9c1cb45b,
-aes, 8, key: f3fc3978, a4eb2f39, 31d01d05, 103cec6d,
-aes, 8, t: ce4c3e92, 7dd3d484, 57a4cb99, eb0d731f,
-aes, 9, wtxt: 3db007ea, d938fbbd, 6674d69c, fb319f72,
-aes, 9, key: 61a012f9, ccf44946, 638f79aa, 54e38aa7,
-aes, 9, t: 11a63b99, f170f815, 2f8f7403, 64deebe0,
-aes, 10, wtxt: 70062960, 3d84b153, 4c000da9, 303d6147,
-aes, 10, key: afdc2816, 0b37072f, 3ae71a2a, 2adbf647,
-aes, 10, t: c8d2fa9f, 7e8760d5, a08b80df, 53c039d9,
-aes, 11, wtxt: 670ed289, 75b067fa, 9a6c9af5, 791bcf9e,
-aes, 11, key: 84195059, 48ed191f, 2b6260b5, 7f81ea12,
-aes, 11, t: 5043f027, 714429a3, 319d9264, 24b8f08d,
-aes, 12, wtxt: d45aa07e, 39a930bc, 1afff2d1, 5b391a9f,
-aes, 12, key: 660e24b1, 6d39239e, 57de39b4, 7d05cff3,
-aes, 12, t: 6e90f8de, a4101210, 7acdaa2d, 1a7bcce7,
-aes, 13, wtxt: 089edc6f, c929318e, 2d139399, 677e0314,
-aes, 13, key: 7b72da54, 339fc34b, 18fda3fe, 677c49ec,
-aes, 13, t: 48013fe1, 6468848e, f8ffd89c, 9d5ec103,
-aes, t: 2d77a0d5, key, a88b34ca
-aes, t: c39321a6, key, c5b21754
-aes, t: 5b8fc4aa, key, 926c2ee0
-aes, t: e168d9df, key, ef69e113
-aes, 1, wtxt: 2d77a0d5, c39321a6, 5b8fc4aa, e168d9df,
-aes, 1, key: 442bf018, 31be8922, 1a2fca47, eb05a2f2,
-aes, 1, t: c15637b0, 014d553b, c724b1a9, 33a02408,
-aes, 2, wtxt: 857dc7a8, 30f3dc19, dd0b7bee, d8a586fa,
-aes, 2, key: 9440371e, 53dbd4b5, 0d406b22, d652ec2c,
-aes, 2, t: ad5633ed, 1bc95dd0, 1ffec91c, 74810cf7,
-aes, 3, wtxt: 391604f3, 48128965, 12bea23e, a2d3e0db,
-aes, 3, key: 007be708, 7595793a, 2b914365, f12a68b5,
-aes, 3, t: b62b62af, f03ac117, b63ac983, 49cdddbe,
-aes, 4, wtxt: b65085a7, 85afb82d, 9dab8ae6, b8e7b50b,
-aes, 4, key: ff2ce27c, c79be3ab, 5e9bbf97, db12870e,
-aes, 4, t: fb4f2aac, 96bc3446, 79f45044, f24d22ae,
-aes, 5, wtxt: 0463c8d0, 5127d7ed, 276fefd3, 295fa5a0,
-aes, 5, key: fc27db2a, 75ee9e32, 5e043a5f, dabb2bd0,
-aes, 5, t: f3b5d4ad, 52296848, 6be3e181, e9bcee90,
-aes, 6, wtxt: 0f920f87, 27c7f67a, 35e7dbde, 3307c540,
-aes, 6, key: f3cca5d4, 38b701d7, 99005c3c, 85893899,
-aes, 6, t: 2d8fd715, 712b06fb, d173d12b, 7dad57a0,
-aes, 7, wtxt: de4372c1, 499c072c, 48738d17, f8246f39,
-aes, 7, key: c0ee5e89, 89c94518, 2beaa46d, 84bf118f,
-aes, 7, t: d9bb8012, a3ba3502, 952538b2, 933a65a3,
-aes, 8, wtxt: 1955de9b, 2a73701a, becf9cdf, 1785742c,
-aes, 8, key: 695e88e9, cb7ba403, a1b75deb, 1c8964a5,
-aes, 8, t: e1d375af, ee3ef7c5, dbfa2652, e205ce76,
-aes, 9, wtxt: 888dfd46, 254553c6, 7a4d7bb9, fe8caad3,
-aes, 9, key: 08697f30, 49271b91, a223e175, af55b5e2,
-aes, 9, t: 436a592d, 8b325a48, 62c858c1, 466f7804,
-aes, 10, wtxt: 4b03261d, c21541d9, c0ebb9b4, e93acde6,
-aes, 10, key: 67bd46ae, a2252cea, 6accf9e8, bd3e394e,
-aes, 10, t: 246a8307, 8e4a44fb, fde5eef6, 1d488b13,
-aes, 11, wtxt: 43d7c5a9, 2c6f6811, 9729171e, a076b25d,
-aes, 11, key: f74b223d, 414e64a1, eb04fae4, 0d765497,
-aes, 11, t: 8b42e2ac, 44ae1a9e, 34e62caa, 09dd3a86,
-aes, 12, wtxt: 7c09c091, 05e07e3f, dfe2d64e, 04ab6e11,
-aes, 12, key: 5bc5da3e, c5986a44, c8e9d502, d7f2c0a6,
-aes, 12, t: 4bceeb8a, d42289a4, e34fc121, a1a6faf5,
-aes, 13, wtxt: 100b31b4, 11bae3e0, 2ba61423, 76543a53,
-aes, 13, key: 5e822b52, b605469c, aa4a9e45, e672ae73,
-aes, 13, t: d2e11766, 47f0925d, b9fe3c95, 77377e49,
-aes, t: 2bc66028, key, ff93ae8d
-aes, t: 82686ddd, key, 44c978fc
-aes, t: ac001960, key, 1e0cbd2a
-aes, t: f0771aa2, key, c7a6bc68
-aes, 1, wtxt: f4abbf40, 304dee06, 996bca42, 16585c7a,
-aes, 1, key: 17fefaa0, b12c5488, 3939a323, 05766c2a,
-aes, 1, t: c2169f52, ca158697, 54ae1ae0, 59261aba,
-aes, 2, wtxt: d5e865f2, 7b39d21f, 6d97b9c3, 5c507690,
-aes, 2, key: f295c2f2, 43b9967a, 7a803559, 7ff65973,
-aes, 2, t: 29e9310f, 58359a31, 9358c9ae, 874df039,
-aes, 3, wtxt: db7cf3fd, 1b8c0c4b, e9d8fcf7, f8bba94a,
-aes, 3, key: 7d47803d, 3efe1647, 447e231e, 3b887a6d,
-aes, 3, t: e1ab5191, fd1c54e5, 3e714a01, 34317eda,
-aes, 4, wtxt: 9cecd1ac, c3e242a2, 7a0f691f, 0fb904b7,
-aes, 4, key: 41a544ef, 7f5b52a8, 3b2571b6, 00ad0bdb,
-aes, 4, t: 1ecb254d, 4616f7ec, 3bc75876, e9c9bc49,
-aes, 5, wtxt: 5f6e61a2, 394da544, 00e229c0, e964b792,
-aes, 5, key: f8c6d1d4, 879d837c, bcb8f2ca, bc15f911,
-aes, 5, t: ec359bf8, 4e72404e, c7005b02, 1bd8d734,
-aes, 6, wtxt: 14f34a2c, c9efc332, 7bb8a9c8, a7cd2e25,
-aes, 6, key: 7aa3886d, fd3e0b11, 4186f9db, fd9300ca,
-aes, 6, t: 6963c5a0, e484b86f, bebf4048, 0a2fd3e1,
-aes, 7, wtxt: 13c04dcd, 19bab37e, ff39b993, f7bcd32b,
-aes, 7, key: 0ef7544e, f3c95f5f, b24fa684, 4fdca64e,
-aes, 7, t: 734c39ac, c7e88d1f, 10b21167, 33db3d25,
-aes, 8, wtxt: 7dbb6de2, 3421d240, a2fdb7e3, 7c079b6b,
-aes, 8, key: 2173d2ea, d2ba8db5, 60f52b31, 2f298d7f,
-aes, 8, t: 72b505ab, 922bebc8, fde204ec, 34ec217d,
-aes, 9, wtxt: 53c6d741, 4091667d, 9d172fdd, 1bc5ac02,
-aes, 9, key: f36677ac, 21dcfa19, 4129d128, 6e005c57,
-aes, 9, t: 18a14117, 6891c991, 6f38368c, aa82ad23,
-aes, t: 1c82c3ea, key, a8f914d0
-aes, t: e91394c4, key, 8925eec9
-aes, t: 3bc6a149, key, c80c3fe1
-aes, t: 31e30592, key, a60c63b6
-aes, 1, wtxt: 419f5385, 3a7ead36, 247a4035, 6dc1604c,
-aes, 1, key: 17fefaa0, b12c5488, 3939a323, 05766c2a,
-aes, 1, t: 95e9ef77, 63621cea, b170db07, 0963d0bb,
-aes, 2, wtxt: 821715d7, d24e4862, 88497824, 0c15bc91,
-aes, 2, key: f295c2f2, 43b9967a, 7a803559, 7ff65973,
-aes, 2, t: 9c33192f, 269131da, be6c4286, 7dd18619,
-aes, 3, wtxt: 6ea6dbdd, 6528a7a0, c4ec77df, 0227df6a,
-aes, 3, key: 7d47803d, 3efe1647, 447e231e, 3b887a6d,
-aes, 3, t: 248347c4, 272cc18c, 999f98f7, b3f72bfc,
-aes, 4, wtxt: 59c4c7f9, 19d2d7cb, dde1bbe9, 887f5191,
-aes, 4, key: 41a544ef, 7f5b52a8, 3b2571b6, 00ad0bdb,
-aes, 4, t: d52b5207, 940c7602, 5c90579c, 726e133c,
-aes, 5, wtxt: 948e16e8, eb5724aa, 67b5262a, 72c318e7,
-aes, 5, key: f8c6d1d4, 879d837c, bcb8f2ca, bc15f911,
-aes, 5, t: d5dcd3e2, 7261094d, 495a66cd, aaf17224,
-aes, 6, wtxt: 2d1a0236, f5fc8a31, f5e29407, 16e48b35,
-aes, 6, key: 7aa3886d, fd3e0b11, 4186f9db, fd9300ca,
-aes, 6, t: 67990d57, b244e042, 1c96a492, b1ab55f8,
-aes, 7, wtxt: 1d3a853a, 4f7aeb53, 5d105d49, 4c385532,
-aes, 7, key: 0ef7544e, f3c95f5f, b24fa684, 4fdca64e,
-aes, 7, t: ea9d25d8, 3458d8b6, 224bc76d, b0cf2f72,
-aes, 8, wtxt: e46a7196, c79187e9, 900461e9, ff13893c,
-aes, 8, key: 2173d2ea, d2ba8db5, 60f52b31, 2f298d7f,
-aes, 8, t: 6242a5e6, 62b03502, 10ec8b0a, c4f14ed2,
-aes, 9, wtxt: 4331770c, b00ab8b7, 7019a03b, ebd8c3ad,
-aes, 9, key: f36677ac, 21dcfa19, 4129d128, 6e005c57,
-aes, 9, t: 6801a86e, 55a5cb09, 016b0b8d, 945d9c03,
-aes, t: 2d2cc725, key, a8f914d0
-aes, t: 144c57ca, key, 8925eec9
-aes, t: 9285ba06, key, c80c3fe1
-aes, t: 09b69e20, key, a60c63b6
-aes, 1, wtxt: 5009b61b, b736f28b, 91d40c4e, d31dc513,
-aes, 1, key: 17fefaa0, b12c5488, 3939a323, 05766c2a,
-aes, 1, t: e71c18eb, bb657e94, 9f6bd207, d5a16fac,
-aes, 2, wtxt: f0e2e24b, 0a492a1c, a6527124, d0d70386,
-aes, 2, key: f295c2f2, 43b9967a, 7a803559, 7ff65973,
-aes, 2, t: cbc61239, 11ac5f5f, 77cf141e, 27c60624,
-aes, 3, wtxt: 3953d0cb, 5215c925, 0d4f2147, 58305f57,
-aes, 3, key: 7d47803d, 3efe1647, 447e231e, 3b887a6d,
-aes, 3, t: ac6f43ac, 9cfcc074, d9ae09fc, 71fb87a8,
-aes, 4, wtxt: d128c391, a202d633, 9dd02ae2, 4a73fdc5,
-aes, 4, key: 41a544ef, 7f5b52a8, 3b2571b6, 00ad0bdb,
-aes, 4, t: a9f630be, 4861a618, a7ea56d9, 14843d0c,
-aes, 5, wtxt: e8537451, 373af4b0, 9ccf276f, 142936d7,
-aes, 5, key: f8c6d1d4, 879d837c, bcb8f2ca, bc15f911,
-aes, 5, t: b274cb13, 76cc0ba4, 24d91433, a7fe74ef,
-aes, 6, wtxt: 4ab21ac7, f15188d8, 9861e6f9, 1beb8dfe,
-aes, 6, key: 7aa3886d, fd3e0b11, 4186f9db, fd9300ca,
-aes, 6, t: 3f2dd080, 73479074, 8352db58, 296aca07,
-aes, 7, wtxt: 458e58ed, 8e799b65, c2d42283, d4f9cacd,
-aes, 7, key: 0ef7544e, f3c95f5f, b24fa684, 4fdca64e,
-aes, 7, t: 3309ed96, 0145aec3, 7081365f, 4acf8d4c,
-aes, 8, wtxt: 3dfeb9d8, f28cf19c, c2ce90db, 05132b02,
-aes, 8, key: 2173d2ea, d2ba8db5, 60f52b31, 2f298d7f,
-aes, 8, t: 5f70d5da, 2a2dbe5d, 93a51f53, e1865255,
-aes, 9, wtxt: 7e030730, f89733e8, f3503462, ceafdf2a,
-aes, 9, key: f36677ac, 21dcfa19, 4129d128, 6e005c57,
-aes, 9, t: 91e7e78e, 2a7fd38f, 820141cc, 633cfa00,
-aes, t: d734a593, key, a8f914d0
-aes, t: aaeb6090, key, 8925eec9
-aes, t: 2b0c2469, key, c80c3fe1
-aes, t: 2e0a605b, key, a60c63b6
-aes, 1, wtxt: 5331e1dd, b149e1f7, f354dc06, 2c78a3ef,
-aes, 1, key: 17fefaa0, b12c5488, 3939a323, 05766c2a,
-aes, 1, t: 62ea3bdb, 43a14d10, f7b3e1cf, a3467480,
-aes, 2, wtxt: 7514c17b, f28d1998, ce8a42ec, a63018aa,
-aes, 2, key: f295c2f2, 43b9967a, 7a803559, 7ff65973,
-aes, 2, t: 8165347f, c3de8f61, 170c1318, c7e8301d,
-aes, 3, wtxt: 73f0f68d, 8067191b, 6d8c2641, b81e696e,
-aes, 3, key: 7d47803d, 3efe1647, 447e231e, 3b887a6d,
-aes, 3, t: 8ff52ed5, 6a3643ba, 6a35284c, 0588b35a,
-aes, 4, wtxt: f2b2aee8, 54c855fd, 2e4b0b52, 3e00c937,
-aes, 4, key: 41a544ef, 7f5b52a8, 3b2571b6, 00ad0bdb,
-aes, 4, t: 86d70433, bd392e3f, aad3d86b, dbe65bc1,
-aes, 5, wtxt: c77240dc, c2627c97, 91f6a9dd, db4b501a,
-aes, 5, key: f8c6d1d4, 879d837c, bcb8f2ca, bc15f911,
-aes, 5, t: aac2d9dc, 74773d10, 017d8209, 477cd46f,
-aes, 6, wtxt: 52040808, f3eabe6c, bdc570c3, fb692d7e,
-aes, 6, key: 7aa3886d, fd3e0b11, 4186f9db, fd9300ca,
-aes, 6, t: 46d88920, 58e8e2aa, 421e85d0, 4d587b50,
-aes, 7, wtxt: 3c7b014d, a5d6e9bb, 03987c0b, b0cb7b9a,
-aes, 7, key: 0ef7544e, f3c95f5f, b24fa684, 4fdca64e,
-aes, 7, t: b343f25e, e7e2000b, 71420c12, afbe3a62,
-aes, 8, wtxt: bdb4a610, 142b5f54, c30daa96, e0629c2c,
-aes, 8, key: 2173d2ea, d2ba8db5, 60f52b31, 2f298d7f,
-aes, 8, t: 8488ccf3, 924dfc7f, 175a4135, 1ade1f51,
-aes, 9, wtxt: a5fb1e19, 40f771ca, 77af6a04, 35f7922e,
-aes, 9, key: f36677ac, 21dcfa19, 4129d128, 6e005c57,
-aes, 9, t: 8a2494a2, faacce80, 5fb87428, b8979869,
-aes, t: f68118ab, key, a8f914d0
-aes, t: b68806ee, key, 8925eec9
-aes, t: b92c1c63, key, c80c3fe1
-aes, t: 725111b2, key, a60c63b6
-aes, 1, wtxt: 1c82c3ea, e91394c4, 3bc6a149, 31e30592,
-aes, 1, key: 635a7b0c, feea1913, 908839b0, b4fb4c66,
-aes, 1, t: ccaa488f, 134c0cec, 993ca871, ea7a4211,
-aes, 2, wtxt: aff03383, eda615ff, 09b491c1, 5e810e77,
-aes, 2, key: 5a927ddf, 9db0621f, 6e6220a3, 247375d6,
-aes, 2, t: 4ac6c847, 6275cb16, 768834b2, 1e8e49a9,
-aes, 3, wtxt: 1054b598, ffc5a909, 18ea1411, 3afd3c7f,
-aes, 3, key: 4776c012, c7221fc0, f3d242bc, 4a115575,
-aes, 3, t: 2f64adaf, ba474933, 27682460, 5ce5b684,
-aes, 4, wtxt: 68126dbd, 7d6556f3, d4ba66dc, 16f4e3f1,
-aes, 4, key: 76d8fc6e, 8054dfd2, 34f05d7c, b9c317c9,
-aes, 4, t: 2ab4d21f, 7ae90cf1, e9fd6c94, 981cc1f6,
-aes, 5, wtxt: 5c6c2e71, fabdd323, dd0d31e8, 21dfd63f,
-aes, 5, key: fc0aa36e, f68c23bc, b4a482ae, 8d334ab5,
-aes, 5, t: e292a554, 39cf86a7, a63b2b14, eed0a5fa,
-aes, 6, wtxt: 1e98063a, cf43a51b, 129fa9ba, 63e3ef4f,
-aes, 6, key: 13448890, 0a8680d2, 4228a112, 3997c81b,
-aes, 6, t: 6532a401, d4d079e8, 6ce653d2, e30ff6b2,
-aes, 7, wtxt: 76762c91, de56f93a, 2ecef2c0, da983ea9,
-aes, 7, key: f7131f7c, 19c20842, 48ae21c0, 7bbf6909,
-aes, 7, t: b672e128, a028b8f1, e7bef2a8, 65db64df,
-aes, 8, wtxt: 4161fe54, b9eab0b3, af10d368, 1e640dd6,
-aes, 8, key: eb0575cc, eed1173e, 516c2982, 331148c9,
-aes, 8, t: a18dc045, ed8241fe, 70f711ac, 0f0305a9,
-aes, 9, wtxt: 4a88b589, 035356c0, 219b382e, 3c124d60,
-aes, 9, key: a708372b, 05d462f2, bfbd3ebc, 627d614b,
-aes, 9, t: e0771f22, babe169d, bbdf7490, 8c9e6991,
-aes, t: f4abbf40, key, 16157e2b
-aes, t: 304dee06, key, a6d2ae28
-aes, t: 996bca42, key, 8815f7ab
-aes, t: 16585c7a, key, 3c4fcf09
-aes, 1, wtxt: 2d2cc725, 144c57ca, 9285ba06, 09b69e20,
-aes, 1, key: 635a7b0c, feea1913, 908839b0, b4fb4c66,
-aes, 1, t: 8a8e17f2, e48bf9ba, 774f1752, e59cb9f3,
-aes, 2, wtxt: e9d46cfe, 1a61e0a9, e7c72ee2, 5167f595,
-aes, 2, key: 5a927ddf, 9db0621f, 6e6220a3, 247375d6,
-aes, 2, t: 4c606a4f, f4cd8d01, a86087bd, 44f2d63d,
-aes, 3, wtxt: 16f21790, 697def1e, c602a71e, 6081a3eb,
-aes, 3, key: 4776c012, c7221fc0, f3d242bc, 4a115575,
-aes, 3, t: 6ebc2992, 6325532d, 7752be87, 06cbc256,
-aes, 4, wtxt: 29cae980, a4074ced, 8480fc3b, 4cda9723,
-aes, 4, key: 76d8fc6e, 8054dfd2, 34f05d7c, b9c317c9,
-aes, 4, t: 3140826b, 583dfd15, d25260b9, 5f73605f,
-aes, 5, wtxt: 47987e05, d86922c7, e6a23dc5, e6b07796,
-aes, 5, key: fc0aa36e, f68c23bc, b4a482ae, 8d334ab5,
-aes, 5, t: bcdf95f5, d4a2d410, 5dbd2f4b, 08680d21,
-aes, 6, wtxt: 40d5369b, 222ef7ac, e919ade5, 855b4794,
-aes, 6, key: 13448890, 0a8680d2, 4228a112, 3997c81b,
-aes, 6, t: d7bc8609, c1546acd, 9634700c, f8220e9a,
-aes, 7, wtxt: c4f80e99, cbd2ea1f, d41cd11e, c1b5c681,
-aes, 7, key: f7131f7c, 19c20842, 48ae21c0, 7bbf6909,
-aes, 7, t: 80dd43bd, 860efda2, 058abf5e, 678bd00b,
-aes, 8, wtxt: 77ce5cc1, 9fccf5e0, 4d249e9e, 1c34b902,
-aes, 8, key: eb0575cc, eed1173e, 516c2982, 331148c9,
-aes, 8, t: 153e27c2, fd88ab94, e49c4cb4, f73e1148,
-aes, 9, wtxt: fe3b520e, 1359bcaa, b5f06536, c42f5981,
-aes, 9, key: a708372b, 05d462f2, bfbd3ebc, 627d614b,
-aes, 9, t: 9bd2a2bc, 86ac6bf7, 3f66ee2a, 548e8c62,
-aes, t: 419f5385, key, 16157e2b
-aes, t: 3a7ead36, key, a6d2ae28
-aes, t: 247a4035, key, 8815f7ab
-aes, t: 6dc1604c, key, 3c4fcf09
-aes, 1, wtxt: d734a593, aaeb6090, 2b0c2469, 2e0a605b,
-aes, 1, key: 635a7b0c, feea1913, 908839b0, b4fb4c66,
-aes, 1, t: e809b808, 0d930188, d1f3a71a, b9738983,
-aes, 2, wtxt: 8b53c304, f379189b, 417b9eaa, 0d88c5e5,
-aes, 2, key: 5a927ddf, 9db0621f, 6e6220a3, 247375d6,
-aes, 2, t: 3119dcbe, bacd02c1, e7d9d11a, 011723a1,
-aes, 3, wtxt: 6b8ba161, 277d60de, 89bbf1b9, 25645677,
-aes, 3, key: 4776c012, c7221fc0, f3d242bc, 4a115575,
-aes, 3, t: 0f3ed447, a9bb8c8d, eacb3650, 6fa73fc8,
-aes, 4, wtxt: 48481455, 6e99934d, 191974ec, 25b66abd,
-aes, 4, key: 76d8fc6e, 8054dfd2, 34f05d7c, b9c317c9,
-aes, 4, t: d93738a8, 56bd51b3, 95c700e5, ff12b572,
-aes, 5, wtxt: afefc4c6, d6e98e61, a1375d99, 46d1a2bb,
-aes, 5, key: fc0aa36e, f68c23bc, b4a482ae, 8d334ab5,
-aes, 5, t: 06801cbf, 6d29ef5b, 2e498706, 53b3d8bb,
-aes, 6, wtxt: fa8abfd1, 9ba5cce7, 9aed05a8, de80920e,
-aes, 6, key: 13448890, 0a8680d2, 4228a112, 3997c81b,
-aes, 6, t: c5347e11, 34096511, 781cf58a, 67e0e6bd,
-aes, 7, wtxt: d670f681, 3e8fe5c3, 3a345498, 5e772ea6,
-aes, 7, key: f7131f7c, 19c20842, 48ae21c0, 7bbf6909,
-aes, 7, t: 9d97c263, 0bc6f57d, 4843ee60, ace61952,
-aes, 8, wtxt: 6a84dd1f, 1204fd3f, 00edcfa0, d759705b,
-aes, 8, key: eb0575cc, eed1173e, 516c2982, 331148c9,
-aes, 8, t: 9b05907f, 62dfb4a2, 36f452b4, 172ad08d,
-aes, 9, wtxt: 7000e5b3, 8c0ea39c, 67987b36, 243b9844,
-aes, 9, key: a708372b, 05d462f2, bfbd3ebc, 627d614b,
-aes, 9, t: c140be84, 56709ccf, 16bc9893, e3782f36,
-aes, t: 5009b61b, key, 16157e2b
-aes, t: b736f28b, key, a6d2ae28
-aes, t: 91d40c4e, key, 8815f7ab
-aes, t: d31dc513, key, 3c4fcf09
-aes, 1, wtxt: f68118ab, b68806ee, b92c1c63, 725111b2,
-aes, 1, key: 635a7b0c, feea1913, 908839b0, b4fb4c66,
-aes, 1, t: f523d8d8, f8821b67, 99877642, 41933e57,
-aes, 2, wtxt: 9679a3d4, 06680274, 090f4ff2, f5687231,
-aes, 2, key: 5a927ddf, 9db0621f, 6e6220a3, 247375d6,
-aes, 2, t: bb45b215, e71ace3f, 94effe33, 0a8251a7,
-aes, 3, wtxt: e1d7cfca, 7aaaac20, fa8dde90, 2ef12471,
-aes, 3, key: 4776c012, c7221fc0, f3d242bc, 4a115575,
-aes, 3, t: a030def1, 2c3d0f2a, f5f36397, 31e729cd,
-aes, 4, wtxt: e7461ee3, eb1f10ea, 0621212b, 7bf67cb8,
-aes, 4, key: 76d8fc6e, 8054dfd2, 34f05d7c, b9c317c9,
-aes, 4, t: 797e525e, 80ad8e82, 39028552, c344273a,
-aes, 5, wtxt: 0fa6ae30, 00f95150, 0df2d82e, 7a8730f3,
-aes, 5, key: fc0aa36e, f68c23bc, b4a482ae, 8d334ab5,
-aes, 5, t: 4548b3e8, 303ff034, 91e4d16f, 0c994317,
-aes, 6, wtxt: b9421086, c6b3d388, 254053c1, 81aa09a2,
-aes, 6, key: 13448890, 0a8680d2, 4228a112, 3997c81b,
-aes, 6, t: a1f7740b, 83e5ab86, 621f7c12, 087f2c81,
-aes, 7, wtxt: b2b3fc9b, 89632b54, 2037dd00, 31e8e49a,
-aes, 7, key: f7131f7c, 19c20842, 48ae21c0, 7bbf6909,
-aes, 7, t: 9b77cb21, 96b0ffed, 8522d843, 473a2b96,
-aes, 8, wtxt: 6c64d45d, 8f72f7af, cd8cf983, 3c85429f,
-aes, 8, key: eb0575cc, eed1173e, 516c2982, 331148c9,
-aes, 8, t: cf7ba1ed, 73d53b78, d896844c, b84c3065,
-aes, 9, wtxt: 247ed421, 9d042c46, 89faadce, 8b5d78ac,
-aes, 9, key: a708372b, 05d462f2, bfbd3ebc, 627d614b,
-aes, 9, t: d628cfea, e868e49a, 777a34d3, 6f469994,
-aes, t: 5331e1dd, key, 16157e2b
-aes, t: b149e1f7, key, a6d2ae28
-aes, t: f354dc06, key, 8815f7ab
-aes, t: 2c78a3ef, key, 3c4fcf09
-aes, 1, wtxt: 150eb2e5, c4fb4ef4, 3a8d2d21, cf6e03f3,
-aes, 1, key: d2eaf862, 7b6b2c52, f7910cfe, a5f50224,
-aes, 1, t: 0dc9ea0f, 2fa9f7d0, f4eff1db, 34bff2cc,
-aes, 2, wtxt: df23126d, 54c2db82, 037efd25, 914af0e8,
-aes, 2, key: 8e0612ec, 6b7f826c, b9957a0e, c2fe565c,
-aes, 2, t: 17e0dada, 90494492, ab9f76f7, ac950633,
-aes, 3, wtxt: 99e6c836, fb36c6fe, 120a0cf9, 6e6b506f,
-aes, 3, key: bdb4b74d, 1841b569, 9647a785, fd3825e9,
-aes, 3, t: f9c54035, 909233e5, 73dcb95d, 870aa5a4,
-aes, 4, wtxt: 4471f778, 88d3868c, e59b1ed8, 7a32804d,
-aes, 4, key: 44ad5fe7, 865309bb, 57f05a48, 4fb1ef21,
-aes, 4, t: 20a5d261, cb7dfe66, 5ea6dae9, 993740da,
-aes, 5, wtxt: 64088d86, 4d2ef7dd, 095680a1, d686affb,
-aes, 5, key: d9f648a4, 24ce6d4d, 606332aa, e6303b11,
-aes, 5, t: e254aa77, 5741cfd2, c215733c, 7f33e7c9,
-aes, 6, wtxt: 3ba2e2d3, 738fa29f, a2764196, 9903dcd8,
-aes, 6, key: d57e5ea2, 9acfb183, 4339f927, 67f7946a,
-aes, 6, t: 6f05b454, 5193a9aa, 12e8461f, 3c51e538,
-aes, 7, wtxt: ba7beaf6, cb5c1829, 51d1bf38, 5ba67152,
-aes, 7, key: 0794a6c0, e1a49dd1, eb8617ec, 7149a66f,
-aes, 7, t: 27d8786f, 2be22d99, b5c726ce, 747b1a09,
-aes, 8, wtxt: 204cdeaf, ca46b048, 5e413122, 0532bc66,
-aes, 8, key: 32705f48, 5587cb22, 52136de2, b3b7f033,
-aes, 8, t: 393e5928, 67111562, 0a3856cf, a272bf43,
-aes, 9, wtxt: 0b4e0660, 3296de40, 582b3b2d, 11c54f70,
-aes, 9, key: 28ebbe40, 59a2182f, 6bd24767, 3e558c45,
-aes, 9, t: 98a960ef, 09c10ca2, 9e679930, d8bb4ee9,
-aes, 10, wtxt: b042deaf, 5063148d, f5b5de57, e6eec2ac,
-aes, 10, key: 6c46e1a7, dff11194, 0a751f82, 53d707ad,
-aes, 10, t: a3bb7cbc, 0722f852, 42d336a6, 99505b03,
-aes, 11, wtxt: cffd9d1b, d8d3e9c6, 48a62924, ca875cae,
-aes, 11, key: 380540ca, 0650cc8f, 6a162d28, b5e73cbc,
-aes, 11, t: 38658b37, 7aba561a, 86773f87, ab80a005,
-aes, t: 72efb854, key, 6fa08be9
-aes, t: 6385c92a, key, 3c778c44
-aes, t: 10d0de79, key, 0472cc8e
-aes, t: ce871f56, key, 02220001
-aes, 1, wtxt: a03a5e20, cec80dc4, 879ca756, b4f73fc5,
-aes, 1, key: d2eaf862, 7b6b2c52, f7910cfe, a5f50224,
-aes, 1, t: ca4bf644, cbabfc54, 30594bed, 6f0c2240,
-aes, 2, wtxt: 18a10e26, b0c0d006, c7c84713, caf92064,
-aes, 2, key: 8e0612ec, 6b7f826c, b9957a0e, c2fe565c,
-aes, 2, t: 72d040f9, c90a2911, d79cb9ed, 43d61d1c,
-aes, 3, wtxt: fcd65215, a275ab7d, 6e09c3e3, 81284b40,
-aes, 3, key: bdb4b74d, 1841b569, 9647a785, fd3825e9,
-aes, 3, t: 902d9219, 7b724f13, 021b5720, a3922a10,
-aes, 4, wtxt: 2d992554, 6333fa7a, 945cf0a5, 5eaa0ff9,
-aes, 4, key: 44ad5fe7, 865309bb, 57f05a48, 4fb1ef21,
-aes, 4, t: b771fc25, fe66ee54, 7fa13883, 085d9b89,
-aes, 5, wtxt: f3dca3c2, 7835e7ef, 285162cb, 47ec74a8,
-aes, 5, key: d9f648a4, 24ce6d4d, 606332aa, e6303b11,
-aes, 5, t: 71f3de9c, 04e5d483, 56450da9, a9a34323,
-aes, 6, wtxt: a8059638, 202bb9ce, 36263f03, 4f937832,
-aes, 6, key: d57e5ea2, 9acfb183, 4339f927, 67f7946a,
-aes, 6, t: bb332d87, b000dc8c, 2fd312f5, 0e451519,
-aes, 7, wtxt: 6e4d7325, 2acf6d0f, 6ceaebd2, 69b28173,
-aes, 7, key: 0794a6c0, e1a49dd1, eb8617ec, 7149a66f,
-aes, 7, t: 13062c44, 614b7964, fa507663, 2fff5f55,
-aes, 8, wtxt: 14928a84, 80efe4b5, 11d6618f, 5eb6f93a,
-aes, 8, key: 32705f48, 5587cb22, 52136de2, b3b7f033,
-aes, 8, t: ce29d4ab, 2ab3382f, c23846d4, 25c684c4,
-aes, 9, wtxt: fc598be3, 7f34f30d, 902b2b36, 967174f7,
-aes, 9, key: 28ebbe40, 59a2182f, 6bd24767, 3e558c45,
-aes, 9, t: f44e9354, 4bb060ae, e977aebe, 5dc55aef,
-aes, 10, wtxt: dca52d14, 12127881, 82a5e9d9, 6390d6aa,
-aes, 10, key: 6c46e1a7, dff11194, 0a751f82, 53d707ad,
-aes, 10, t: 425c68cd, 7d4316dc, 268f01a4, d8c854ea,
-aes, 11, wtxt: 2e1a896a, a2b20748, 2cfa1e26, 8b1f5347,
-aes, 11, key: 380540ca, 0650cc8f, 6a162d28, b5e73cbc,
-aes, 11, t: 94dad940, 26e8dcc3, 390bf141, 89faddef,
-aes, t: eba4ca7e, key, 6fa08be9
-aes, t: 91a48629, key, 3c778c44
-aes, t: b79ef8f9, key, 0472cc8e
-aes, t: ed6ceeed, key, 02220001
-aes, 1, wtxt: b1acbbbe, 43805279, 3232eb2d, 0a2b9a9a,
-aes, 1, key: d2eaf862, 7b6b2c52, f7910cfe, a5f50224,
-aes, 1, t: 0441ac03, 52e5bf6e, 6e7701f3, b2b618a0,
-aes, 2, wtxt: d6ab5461, 298e933c, 99e60d0d, 17431a84,
-aes, 2, key: 8e0612ec, 6b7f826c, b9957a0e, c2fe565c,
-aes, 2, t: 833f35c4, 1c098643, f3458b8f, 1f64da29,
-aes, 3, wtxt: 0d392728, 7776042f, 4ad0f181, dd9a8c75,
-aes, 3, key: bdb4b74d, 1841b569, 9647a785, fd3825e9,
-aes, 3, t: 477e9ad4, 93bd48bd, 93480753, ff408080,
-aes, 4, wtxt: faca2d99, 8bfcfdd4, 050fa0d6, 0278a569,
-aes, 4, key: 44ad5fe7, 865309bb, 57f05a48, 4fb1ef21,
-aes, 4, t: e5cfab3a, debc613a, 095f5bb4, aee7f241,
-aes, 5, wtxt: a162f4dd, 58ef6881, 5eaf01fc, e1561d60,
-aes, 5, key: d9f648a4, 24ce6d4d, 606332aa, e6303b11,
-aes, 5, t: 8f6538d7, bd5f0e1f, 11e56c4c, bb2297e6,
-aes, 6, wtxt: 56937073, 99916352, 71865ee6, 5d12acf7,
-aes, 6, key: d57e5ea2, 9acfb183, 4339f927, 67f7946a,
-aes, 6, t: ad28e21b, e8194190, 0395269d, 35def101,
-aes, 7, wtxt: 7856bcb9, 72d6f013, 40acdfba, 5229656b,
-aes, 7, key: 0794a6c0, e1a49dd1, eb8617ec, 7149a66f,
-aes, 7, t: e7e3fdb2, df6d125a, 7b00e6d5, 00f6bdae,
-aes, 8, wtxt: e0775b72, 3ec98f8b, 9086f139, 71bf1bc1,
-aes, 8, key: 32705f48, 5587cb22, 52136de2, b3b7f033,
-aes, 8, t: aa45c9f2, 37b49d6b, 1381e189, ac401606,
-aes, 9, wtxt: 983596ba, 62335649, 41928c6b, 1ff7e635,
-aes, 9, key: 28ebbe40, 59a2182f, 6bd24767, 3e558c45,
-aes, 9, t: 62809cb4, cd450df4, d623734b, ef0570dc,
-aes, 10, wtxt: 4a6b22f4, 94e715db, bdf1342c, d150fc99,
-aes, 10, key: 6c46e1a7, dff11194, 0a751f82, 53d707ad,
-aes, 10, t: 5efdcb11, 2c66aac4, 1859a974, dac00e87,
-aes, 11, wtxt: 32bb2ab6, f397bb50, 122cb6f6, 8917092a,
-aes, 11, key: 380540ca, 0650cc8f, 6a162d28, b5e73cbc,
-aes, 11, t: 1cb4b56f, 0d83e7a7, 379b6860, d04b7ea4,
-aes, t: 4d5df106, key, 6fa08be9
-aes, t: 36916e34, key, 3c778c44
-aes, t: 2bc82c52, key, 0472cc8e
-aes, t: 4c66e6ad, key, 02220001
-aes, 1, wtxt: b294ec78, 45ff4105, 50b23b65, f54efc66,
-aes, 1, key: d2eaf862, 7b6b2c52, f7910cfe, a5f50224,
-aes, 1, t: bc601e2c, 1e8ef2f3, 990b3e1d, 2b24dd6a,
-aes, 2, wtxt: 6e8ae64e, 65e5dea1, 6e9a32e3, 8ed1df4e,
-aes, 2, key: 8e0612ec, 6b7f826c, b9957a0e, c2fe565c,
-aes, 2, t: e672dfd8, 6ed7a9a0, 49a4f9a8, 03b2c791,
-aes, 3, wtxt: 6874cd34, 05a82bcc, f03183a6, c14c91cd,
-aes, 3, key: bdb4b74d, 1841b569, 9647a785, fd3825e9,
-aes, 3, t: eef4cb87, 923ab6d5, a927fb29, a0100df3,
-aes, 4, wtxt: 53407cca, 8a7b03bc, 3f605cac, 5d28281a,
-aes, 4, key: 44ad5fe7, 865309bb, 57f05a48, 4fb1ef21,
-aes, 4, t: af60a5f9, 106b40cd, 69359c12, 266f943b,
-aes, 5, wtxt: ebcdfa1e, 96384976, 3ec5c65a, 69de7b1a,
-aes, 5, key: d9f648a4, 24ce6d4d, 606332aa, e6303b11,
-aes, 5, t: e20e0cf6, 28968543, 7e55b029, a84c439d,
-aes, 6, wtxt: 3bf84452, 0c58e80e, 1e368283, 4e7c788c,
-aes, 6, key: d57e5ea2, 9acfb183, 4339f927, 67f7946a,
-aes, 6, t: c0e00d9c, 3aa55f8a, 35cbb2a3, 393d9efd,
-aes, 7, wtxt: 159e533e, a06aee09, 76f24b84, 5eca0a97,
-aes, 7, key: 0794a6c0, e1a49dd1, eb8617ec, 7149a66f,
-aes, 7, t: dc7b3ad6, 76b1b9e1, 56156cfc, 1c29771d,
-aes, 8, wtxt: dbef9c16, 97152430, bd937b10, 6d60d172,
-aes, 8, key: 32705f48, 5587cb22, 52136de2, b3b7f033,
-aes, 8, t: 5b966834, 944e9402, afd2449a, b3a276da,
-aes, 9, wtxt: 69e6377c, c1c95f20, fdc12978, 001586e9,
-aes, 9, key: 28ebbe40, 59a2182f, 6bd24767, 3e558c45,
-aes, 9, t: 418a7e71, d7b0f421, e577c559, cdd91900,
-aes, 10, wtxt: 6961c031, 8e12ec0e, 8ea5823e, f38c9545,
-aes, 10, key: 6c46e1a7, dff11194, 0a751f82, 53d707ad,
-aes, 10, t: 801247d7, 7860d8e5, 3a76d5f7, f37658d9,
-aes, 11, wtxt: ec54a670, a791c971, 3003ca75, a0a15f74,
-aes, 11, key: 380540ca, 0650cc8f, 6a162d28, b5e73cbc,
-aes, 11, t: 8e419d45, 3ffad33d, ebf62417, 00a346d6,
-aes, t: d5e1c073, key, 6fa08be9
-aes, t: 4e1b0137, key, 3c778c44
-aes, t: 121bda75, key, 0472cc8e
-aes, t: 0cacc102, key, 02220001
-aes, 1, wtxt: 72efb854, 6385c92a, 10d0de79, ce871f56,
-aes, 1, key: 441649ac, b71057e5, 758ac046, ad2c9bc8,
-aes, 1, t: 30325703, 3d07f251, 14de8a70, ff4ac52c,
-aes, 2, wtxt: 74241eaf, 8a17a5b4, 61544a36, 52665ee4,
-aes, 2, key: c29a97a3, d8a65b8e, e6c92ce1, ba72b254,
-aes, 2, t: 4c4f6dda, 3f8e46d3, b5e509ba, 5c89afc5,
-aes, 3, wtxt: 8ed5fa79, e7281d5d, 532c255b, e6fb1d91,
-aes, 3, key: 5822b4f3, 5cbb9eb5, fe64fbf8, f3061e49,
-aes, 3, t: dad3a923, 771d7cbc, dd4b7f20, 99967118,
-aes, 4, wtxt: 82f11dd0, 2ba6e209, 232f84d8, 6a906f51,
-aes, 4, key: a2df654d, 0d62e5b1, 319c89ea, 1a3ccc2d,
-aes, 4, t: c95c8234, ba4122e3, 45b5ec79, 4266d11e,
-aes, 5, wtxt: 6b83e779, b723c752, 74296593, 585a1d33,
-aes, 5, key: 3cfe6c5b, 2ba045c7, 72a5b9f8, 04992a46,
-aes, 5, t: 05c0c119, df844d62, 6d841aff, d5d3ad46,
-aes, 6, wtxt: 393ead42, f42408a5, 1f21a307, d14a8700,
-aes, 6, key: f8b7ddc5, 763c93be, a6464f0b, afbd80fc,
-aes, 6, t: 168fe7a3, 94471065, 297cc99b, 95ce189d,
-aes, 7, wtxt: ee383a66, e27b83db, 8f3a8690, 3a739861,
-aes, 7, key: d07adcb5, 09fbcff7, 9343eca7, 175e299c,
-aes, 7, t: 26cbb4f1, 4abf0236, 70739595, 166f7493,
-aes, 8, wtxt: f6b16844, 4344cdc1, e3307932, 01315d0f,
-aes, 8, key: 9ab82350, 841dc53b, 37194bd0, 8e8b4e7b,
-aes, 8, t: 40ac67ec, 9f3eb75f, f3ba86b1, 57ed2698,
-aes, 9, wtxt: da1444bc, 1b237264, c4a3cd61, d96668e3,
-aes, 9, key: 4445b341, b99205ab, 5ef192ce, d9811342,
-aes, 9, t: db220744, 57edfb10, 517fc157, 1084fbea,
-aes, 10, wtxt: 9f67b405, ee7ffebb, 0f8e5399, c905e8a8,
-aes, 10, key: e7639765, 8770818c, 43393012, 1ea5e66b,
-aes, 10, t: 66902e59, 19a6d59f, 631fbc2d, 65802ff0,
-aes, 11, wtxt: 81f3b93c, 9ed65413, 20268c3f, 7b25c99b,
-aes, 11, key: c449b19e, 5d9cd679, 7ca2b4fe, fdd7b6ea,
-aes, 11, t: 4e149e47, 04030ec6, 6009cf03, 7dd881e7,
-aes, t: 150eb2e5, key, f7b0738e
-aes, t: c4fb4ef4, key, 52640eda
-aes, t: 3a8d2d21, key, 2bf310c8
-aes, t: cf6e03f3, key, e5799080
-aes, 1, wtxt: eba4ca7e, 91a48629, b79ef8f9, ed6ceeed,
-aes, 1, key: 441649ac, b71057e5, 758ac046, ad2c9bc8,
-aes, 1, t: 793b8cae, 86d025b7, 4f282db1, dc1b3c68,
-aes, 2, wtxt: 3d2dc502, 31c07252, 3aa2edf7, 7137a7a0,
-aes, 2, key: c29a97a3, d8a65b8e, e6c92ce1, ba72b254,
-aes, 2, t: 399c2b59, 5ec64582, 2fcfdad4, a9bb6af8,
-aes, 3, wtxt: fb06bcfa, 86601e0c, c906f635, 13c9d8ac,
-aes, 3, key: 5822b4f3, 5cbb9eb5, fe64fbf8, f3061e49,
-aes, 3, t: c8d3b9e2, ec186f62, 2caf69fd, 931e2321,
-aes, 4, wtxt: 90f10d11, b0a3f1d7, d2cb9205, 60183d68,
-aes, 4, key: a2df654d, 0d62e5b1, 319c89ea, 1a3ccc2d,
-aes, 4, t: fa290c12, f72c0a64, fcd31099, 98e3b2ad,
-aes, 5, wtxt: 58f6695f, fa4eefd5, cd4f9973, 82df7e80,
-aes, 5, key: 3cfe6c5b, 2ba045c7, 72a5b9f8, 04992a46,
-aes, 5, t: c5795064, b497acb1, 9746b54d, 5413a5c9,
-aes, 6, wtxt: f9873c3f, 9f37e976, e5e30cb5, 508a8f8f,
-aes, 6, key: f8b7ddc5, 763c93be, a6464f0b, afbd80fc,
-aes, 6, t: 7c408bc2, b4e0e635, 112df370, aa4c10df,
-aes, 7, wtxt: 84f75607, c2dc758b, b76bbc7b, 05f19023,
-aes, 7, key: d07adcb5, 09fbcff7, 9343eca7, 175e299c,
-aes, 7, t: 70ab4890, 04356528, 2fc57eb8, 23c8235e,
-aes, 8, wtxt: a0d19425, 0dceaadf, bc86921f, 34960ac2,
-aes, 8, key: 9ab82350, 841dc53b, 37194bd0, 8e8b4e7b,
-aes, 8, t: c2f20e70, 5cb149e1, ccf73dd6, ac4871e2,
-aes, 9, wtxt: 584a2d20, d8ac8cda, fbee7606, 22c33f99,
-aes, 9, key: 4445b341, b99205ab, 5ef192ce, d9811342,
-aes, 9, t: 4844d118, 09a62b54, 640721df, 461c134b,
-aes, 10, wtxt: 0c016259, b0342eff, 3af6b311, 9f9d0009,
-aes, 10, key: e7639765, 8770818c, 43393012, 1ea5e66b,
-aes, 10, t: 938be792, 2ae921e3, a40b876f, d81f4d28,
-aes, 11, wtxt: 74e870f7, ad99a06f, e732b77d, c6baab43,
-aes, 11, key: c449b19e, 5d9cd679, 7ca2b4fe, fdd7b6ea,
-aes, 11, t: 49976629, bdf48a65, f722c14f, ea3fee4c,
-aes, t: a03a5e20, key, f7b0738e
-aes, t: cec80dc4, key, 52640eda
-aes, t: 879ca756, key, 2bf310c8
-aes, t: b4f73fc5, key, e5799080
-aes, 1, wtxt: 4d5df106, 36916e34, 2bc82c52, 4c66e6ad,
-aes, 1, key: 441649ac, b71057e5, 758ac046, ad2c9bc8,
-aes, 1, t: e367a3e2, 94e019b6, 7860c104, 64a47e2d,
-aes, 2, wtxt: a771ea4e, 23f04e53, 0dea0142, c988e5e5,
-aes, 2, key: c29a97a3, d8a65b8e, e6c92ce1, ba72b254,
-aes, 2, t: fc3bce1c, 0ef54337, c4b69c90, c0e621ba,
-aes, 3, wtxt: 3ea159bf, d65318b9, 227fb071, 7a9493ee,
-aes, 3, key: 5822b4f3, 5cbb9eb5, fe64fbf8, f3061e49,
-aes, 3, t: 986d0507, 1ad3fa8e, 54f27587, 70c58edf,
-aes, 4, wtxt: c04fb1f4, 4668643b, aa968e7f, 83c39096,
-aes, 4, key: a2df654d, 0d62e5b1, 319c89ea, 1a3ccc2d,
-aes, 4, t: 019b160d, ec6a448c, 836926f8, 7ae1f555,
-aes, 5, wtxt: a3447340, e108a13d, b2f5af12, 60dd3978,
-aes, 5, key: 3cfe6c5b, 2ba045c7, 72a5b9f8, 04992a46,
-aes, 5, t: 3c6fe00d, 9705dbba, 3214f40c, 0d6f4f39,
-aes, 6, wtxt: 00918c56, bca59e7d, 40b14df4, 09f6657f,
-aes, 6, key: f8b7ddc5, 763c93be, a6464f0b, afbd80fc,
-aes, 6, t: b4f3264a, c7f5cbbe, 489ade85, 0c3cd194,
-aes, 7, wtxt: 4c44fb8f, b1c95800, eedc918e, a3815168,
-aes, 7, key: d07adcb5, 09fbcff7, 9343eca7, 175e299c,
-aes, 7, t: 28039974, 3b4ab3fb, f9e94817, 4f81964c,
-aes, 8, wtxt: f87945c1, 32b17c0c, 6aaaa4b0, 58dfbfd0,
-aes, 8, key: 9ab82350, 841dc53b, 37194bd0, 8e8b4e7b,
-aes, 8, t: edce77be, a9a12573, 0a6d4d26, e53b9682,
-aes, 9, wtxt: 777654ee, 2dbce048, 3d7406f6, 6bb0d8f9,
-aes, 9, key: 4445b341, b99205ab, 5ef192ce, d9811342,
-aes, 9, t: 85354175, 6e2aa4be, abe3f6c2, 0fb9dfdf,
-aes, 10, wtxt: c170f234, d7b8a115, f512640c, d638cc9d,
-aes, 10, key: e7639765, 8770818c, 43393012, 1ea5e66b,
-aes, 10, t: 17ed4b8a, 716a5667, e65b92c5, f0bcc634,
-aes, 11, wtxt: f08edcef, f61ad7eb, a562a2d7, ee19205f,
-aes, 11, key: c449b19e, 5d9cd679, 7ca2b4fe, fdd7b6ea,
-aes, 11, t: a36ab130, 956d3fcf, 66330c26, de1a5c52,
-aes, t: b1acbbbe, key, f7b0738e
-aes, t: 43805279, key, 52640eda
-aes, t: 3232eb2d, key, 2bf310c8
-aes, t: 0a2b9a9a, key, e5799080
-aes, 1, wtxt: d5e1c073, 4e1b0137, 121bda75, 0cacc102,
-aes, 1, key: 441649ac, b71057e5, 758ac046, ad2c9bc8,
-aes, 1, t: a46d94fd, 79222346, 29aa0fdb, a9adbf5a,
-aes, 2, wtxt: e07bdd51, ce3274a3, 5c20cf9d, 04812492,
-aes, 2, key: c29a97a3, d8a65b8e, e6c92ce1, ba72b254,
-aes, 2, t: cf9c5964, 21c24825, ff260653, a3bb083a,
-aes, 3, wtxt: 0d06cec7, f96413ab, 19ef2ab2, 19c9ba6e,
-aes, 3, key: 5822b4f3, 5cbb9eb5, fe64fbf8, f3061e49,
-aes, 3, t: 3b5a7be3, a5e23b02, 86eabf44, a7db8457,
-aes, 4, wtxt: 6378cf10, f959a5b7, 788e44bc, 54dd9a1e,
-aes, 4, key: a2df654d, 0d62e5b1, 319c89ea, 1a3ccc2d,
-aes, 4, t: 9e03530a, b4b2c4b5, b943b720, 6065126d,
-aes, 5, wtxt: 3cdc3647, b9d02104, 88df3eca, 7a59de40,
-aes, 5, key: 3cfe6c5b, 2ba045c7, 72a5b9f8, 04992a46,
-aes, 5, t: 647744e9, 72d4f6c6, 92aedea7, 3c9bc7ce,
-aes, 6, wtxt: 588928b2, 5974b301, e00b675f, 3802ed88,
-aes, 6, key: f8b7ddc5, 763c93be, a6464f0b, afbd80fc,
-aes, 6, t: d7b246c5, 942c8015, 5807f3e7, ddd79b98,
-aes, 7, wtxt: 2f059b00, e21013ab, fe41bcec, 726a1b64,
-aes, 7, key: d07adcb5, 09fbcff7, 9343eca7, 175e299c,
-aes, 7, t: 29dce7c7, e0e67bcf, 03fecd19, a559043e,
-aes, 8, wtxt: f9a63b72, e91db438, 90bd21be, b2072da2,
-aes, 8, key: 9ab82350, 841dc53b, 37194bd0, 8e8b4e7b,
-aes, 8, t: d6685824, 69298f5e, 49107f41, fbaa5ed9,
-aes, 9, wtxt: 4cd07b74, ed344a65, 7e093491, 752110a2,
-aes, 9, key: 4445b341, b99205ab, 5ef192ce, d9811342,
-aes, 9, t: 3c824259, fcbbe9e0, 356313ea, 5543aeff,
-aes, 10, wtxt: 78c7f118, 4529ec4b, 6b928124, 8cc2bdbd,
-aes, 10, key: e7639765, 8770818c, 43393012, 1ea5e66b,
-aes, 10, t: fedb8a4a, 184ea2be, 0e47ae03, 817c6844,
-aes, 11, wtxt: 19b81d2f, 9f3e2332, 4d7e9e11, 9fd98e2f,
-aes, 11, key: c449b19e, 5d9cd679, 7ca2b4fe, fdd7b6ea,
-aes, 11, t: 227e3222, 6ab33412, 128004b3, aec178d9,
-aes, t: b294ec78, key, f7b0738e
-aes, t: 45ff4105, key, 52640eda
-aes, t: 50b23b65, key, 2bf310c8
-aes, t: f54efc66, key, e5799080
-aes, 1, wtxt: f255fc0b, 28ee8a3b, e1d04ec2, ab60eef6,
-aes, 1, key: 072c351f, d708613b, a310982d, f4df1409,
-aes, 1, t: b71325c6, cbf65ef7, d3b25efa, b5b1b99f,
-aes, 2, wtxt: b03f10d9, 1cfe3fcc, 70a2c6d7, 416ead96,
-aes, 2, key: 1154a39b, af25698e, 5f8b1aa5, defc6720,
-aes, 2, t: 0daa124c, 23e86529, d1ce3c51, 78c49894,
-aes, 3, wtxt: 1cfeb1d7, 8ccd0ca7, 8e4526f4, a638ffb4,
-aes, 3, key: 1a9cb0a8, cd94d193, 6e8449be, 9a5b5db7,
-aes, 3, t: ca407f4f, 371a3c21, bf682180, cb0fc3e6,
-aes, 4, wtxt: d0dccfe7, fa8eedb2, d1ec683e, 51549e51,
-aes, 4, key: b8ec9ad5, 17c9f35b, 4842e9fe, 96be8ede,
-aes, 4, t: 852ea6d3, dca2adf1, 1ad918c9, 872bcb1b,
-aes, 5, wtxt: 3dc23c06, cb6b5eaa, 529bf137, 119545c5,
-aes, 5, key: 8a32a9b5, 47a67826, 29223198, b3796c2f,
-aes, 5, t: e28261a0, 2a30acb6, c09f36a7, 65b3ea0e,
-aes, 6, wtxt: 68b0c815, 6d96d490, e9bd073f, d6ca8621,
-aes, 6, key: ad812c81, ba48dfda, f20a3624, 64b4b8fa,
-aes, 6, t: 2ee4b1e6, 9b8228a5, 44a0f3fd, 580c834c,
-aes, 7, wtxt: 83659d67, 21caf77f, b6aac5d9, 3cb83bb6,
-aes, 7, key: c9bfc598, 8e19bdbe, a73b8c26, 1442e009,
-aes, 7, t: 9d8851ee, 6483ddce, 1151c0e7, 642a2044,
-aes, 8, wtxt: 54379476, ea9a6070, b66a4cc1, 7068c04d,
-aes, 8, key: ac7b0068, 1633dfb2, e439e996, 808d516c,
-aes, 8, t: 381fd448, df92ecbc, bd7f2538, 38783a4d,
-aes, 9, wtxt: 9464d420, c9a1330e, 5946ccae, b8f56b21,
-aes, 9, key: 04e214c8, 8afba976, 2dc02550, 3982c559,
-aes, 9, t: 8374a81d, 0f512e54, aa6102cc, eb97f0c0,
-aes, 10, wtxt: 8796bcd5, 85aa8722, 87a1279c, d2153599,
-aes, 10, key: 676913de, 715acc6c, 956325fa, 15ee7496,
-aes, 10, t: 51b4ceb8, 15d4ec3c, 4ad1d501, cef1dcd3,
-aes, 11, wtxt: 36dddd66, 648e2050, dfb2f0fb, db1fa845,
-aes, 11, key: 5dca8658, d7312f2e, faf10a7e, c373cf27,
-aes, 11, t: bc3aa62a, b34b0eec, 94918bc1, 4d244203,
-aes, 12, wtxt: e1f02072, 647a21c2, 6e6081bf, 8e578d24,
-aes, 12, key: ab479c74, da1d5018, 4f7e75e2, 5a900174,
-aes, 12, t: df2dd355, d38c28fd, 4f937e38, 1294a9eb,
-aes, 13, wtxt: 746a4f21, 099178e5, 00ed0bda, 4804a89f,
-aes, 13, key: e3aafaca, 349bd5e4, ce6adf9a, 0d1910bd,
-aes, 13, t: 511d3339, 96a010b4, 3b92cff0, b5e333d8,
-aes, t: 6c41a60d, key, d19048fe
-aes, t: 372dca53, key, 0b8d18e6
-aes, t: 3aa92602, key, 44f36d04
-aes, t: e6e2dd4d, key, 1e636c70
-aes, 1, wtxt: 476110ce, 22ddc90b, 5cc1c4b5, d0f9d2c0,
-aes, 1, key: 072c351f, d708613b, a310982d, f4df1409,
-aes, 1, t: c336d279, a3e5034b, 030b1d09, 4a3727a1,
-aes, 2, wtxt: c41ae766, 74ed6270, a01b8524, bee833a8,
-aes, 2, key: 1154a39b, af25698e, 5f8b1aa5, defc6720,
-aes, 2, t: 17353882, c7cfce87, 0407c402, 47c7ee8d,
-aes, 3, wtxt: 06619b19, 68eaa709, 5b8cdea7, 993b89ad,
-aes, 3, key: 1a9cb0a8, cd94d193, 6e8449be, 9a5b5db7,
-aes, 3, t: 98692edd, 227269a8, 26f166e0, 45df16b3,
-aes, 4, wtxt: 82f59e75, efe6b83b, 48752f5e, df844b04,
-aes, 4, key: b8ec9ad5, 17c9f35b, 4842e9fe, 96be8ede,
-aes, 4, t: 6a696796, 517c3aac, 1846cb47, 2c083f3e,
-aes, 5, wtxt: d285fd43, 46b5c9f7, 500422b9, bab6b1e0,
-aes, 5, key: 8a32a9b5, 47a67826, 29223198, b3796c2f,
-aes, 5, t: f23f424e, 14a33285, 11452522, 1ff17ea3,
-aes, 6, wtxt: 780debfb, 53054aa3, 386714ba, ac88128c,
-aes, 6, key: ad812c81, ba48dfda, f20a3624, 64b4b8fa,
-aes, 6, t: 7b60bd6b, 43bc0e79, d8a4f289, 20521784,
-aes, 7, wtxt: d6e191ea, f9f4d1a3, 2aaec4ad, 44e6af7e,
-aes, 7, key: c9bfc598, 8e19bdbe, a73b8c26, 1442e009,
-aes, 7, t: 7e47d7a8, 7b104d48, 0cb7eddb, e123d53f,
-aes, 8, wtxt: b7f81230, f509f0f6, ab8c61fd, f5613536,
-aes, 8, key: ac7b0068, 1633dfb2, e439e996, 808d516c,
-aes, 8, t: 33714d05, 8f8804e8, fc7146ae, 0368ed29,
-aes, 9, wtxt: 9f0a4d6d, 99bbdb5a, 1848af38, 83e5bc45,
-aes, 9, key: 04e214c8, 8afba976, 2dc02550, 3982c559,
-aes, 9, t: 6c0e4f16, d418e7ee, cc858a28, faae3ba5,
-aes, 10, wtxt: 68ec5bde, 5ee34e98, e145af78, c32cfefc,
-aes, 10, key: 676913de, 715acc6c, 956325fa, 15ee7496,
-aes, 10, t: 3a9cdf0b, 48126233, 1a68c023, 08b809d9,
-aes, 11, wtxt: 5df5ccd5, 3948ae5f, 8f0be5d9, 1d567d4f,
-aes, 11, key: 5dca8658, d7312f2e, faf10a7e, c373cf27,
-aes, 11, t: 994609be, babbe208, 622bf384, 68fe97ef,
-aes, 12, wtxt: c48c8fe6, 6d8acd26, 98daf9fa, ab8d58c8,
-aes, 12, key: ab479c74, da1d5018, 4f7e75e2, 5a900174,
-aes, 12, t: a73b74ee, fef02504, 01cb69bc, a2adca66,
-aes, 13, wtxt: 0c7ce89a, 24ed751c, 4eb51c5e, f83dcb12,
-aes, 13, key: e3aafaca, 349bd5e4, ce6adf9a, 0d1910bd,
-aes, 13, t: 1957bc43, e3572845, 8b3d60b7, d0893445,
-aes, t: c15b54a7, key, d19048fe
-aes, t: 2d600832, key, 0b8d18e6
-aes, t: 0e5436d8, key, 44f36d04
-aes, t: 6e4b5a41, key, 1e636c70
-aes, 1, wtxt: 56f7f550, af9596b6, e96f88ce, 6e25779f,
-aes, 1, key: 072c351f, d708613b, a310982d, f4df1409,
-aes, 1, t: e832143a, 503c2d45, e925bb18, 864b6ca8,
-aes, 2, wtxt: ef1e2125, 87344c7e, 4a352335, 729478a1,
-aes, 2, key: 1154a39b, af25698e, 5f8b1aa5, defc6720,
-aes, 2, t: 7ee18cd3, afeb066a, 41f7748d, 049e2db6,
-aes, 3, wtxt: 6fb52f48, 00ce6fe4, 1e7c6e28, da624a96,
-aes, 3, key: 1a9cb0a8, cd94d193, 6e8449be, 9a5b5db7,
-aes, 3, t: e0237e00, c55a016a, 99f684bf, d11e4efd,
-aes, 4, wtxt: fabfcea8, 08ced0f9, f772cd01, 4b45134a,
-aes, 4, key: b8ec9ad5, 17c9f35b, 4842e9fe, 96be8ede,
-aes, 4, t: 10fc51fc, 398f67b6, 9141ae47, b1e835d2,
-aes, 5, wtxt: a810cb29, 2e4694ed, d90347b9, 2756bb0c,
-aes, 5, key: 8a32a9b5, 47a67826, 29223198, b3796c2f,
-aes, 5, t: 2e3ea080, 71d10422, b860ed72, 360a1ba9,
-aes, 6, wtxt: a40c0935, 36777c04, 9142dcea, 85737786,
-aes, 6, key: ad812c81, ba48dfda, f20a3624, 64b4b8fa,
-aes, 6, t: a87c55bc, 96aa26a8, 939a6aea, 212cc3ff,
-aes, 7, wtxt: 05fd793d, 2ce2f972, 61905cce, 45987b05,
-aes, 7, key: c9bfc598, 8e19bdbe, a73b8c26, 1442e009,
-aes, 7, t: 4cccc0f0, 1a3b7573, 1191444b, 56dc4060,
-aes, 8, wtxt: 85730568, 9422c8cd, b6aac86d, 429ea069,
-aes, 8, key: ac7b0068, 1633dfb2, e439e996, 808d516c,
-aes, 8, t: d39a4d29, 0ae1fcde, 6fbf4fee, 747dcf89,
-aes, 9, wtxt: 7fe14d41, 1cd2236c, 8b86a678, f4f09ee5,
-aes, 9, key: 04e214c8, 8afba976, 2dc02550, 3982c559,
-aes, 9, t: 99f7bc8c, e71a4592, 0fe3251a, 5c0cfd1f,
-aes, 10, wtxt: 9d15a844, 6de1ece4, 2223004a, 658e3846,
-aes, 10, key: 676913de, 715acc6c, 956325fa, 15ee7496,
-aes, 10, t: 5f4ebb14, 7ddada30, 47270fdb, e9dd4582,
-aes, 11, wtxt: 3827a8ca, 0c80165c, d2442a21, fc333114,
-aes, 11, key: 5dca8658, d7312f2e, faf10a7e, c373cf27,
-aes, 11, t: bbce678a, f63bc264, f0a0d981, 6b7d9cca,
-aes, 12, wtxt: e604e1d2, 210aed4a, 0a51d3ff, a80e53ed,
-aes, 12, key: ab479c74, da1d5018, 4f7e75e2, 5a900174,
-aes, 12, t: df04b59d, ab747238, c418270f, aeca70b9,
-aes, 13, wtxt: 744329e9, 71692220, 8b6652ed, f45a71cd,
-aes, 13, key: e3aafaca, 349bd5e4, ce6adf9a, 0d1910bd,
-aes, 13, t: e731c91e, 437dfc59, 1b3c85ed, fab6c151,
-aes, t: 68b1a548, key, d19048fe
-aes, t: f279be7a, key, 0b8d18e6
-aes, t: f5143ef5, key, 44f36d04
-aes, t: 038ec3ce, key, 1e636c70
-aes, 1, wtxt: 55cfa296, a9ea85ca, 8bef5886, 91401163,
-aes, 1, key: 072c351f, d708613b, a310982d, f4df1409,
-aes, 1, t: fa3a5ec7, 1c1347a3, 79a70d4c, d1932019,
-aes, 2, wtxt: fd166bd8, cb1b2698, dab79561, 254c3410,
-aes, 2, key: 1154a39b, af25698e, 5f8b1aa5, defc6720,
-aes, 2, t: 839e4b56, 61c23d8f, 4b5809b5, 3b0989f6,
-aes, 3, wtxt: 92cae8cd, cee75401, 14d31310, e5f5eed6,
-aes, 3, key: 1a9cb0a8, cd94d193, 6e8449be, 9a5b5db7,
-aes, 3, t: 33218ebe, 8107f8d6, 148c8d08, e14b862f,
-aes, 4, wtxt: 29bd3e16, 4c932945, 7a08c4b6, 7b10db98,
-aes, 4, key: b8ec9ad5, 17c9f35b, 4842e9fe, 96be8ede,
-aes, 4, t: 1ee1676b, 3509b697, 4378801f, 0b229c47,
-aes, 5, wtxt: a60dfdbe, 22c045cc, 0b3a69e1, 9d9c1299,
-aes, 5, key: 8a32a9b5, 47a67826, 29223198, b3796c2f,
-aes, 5, t: bb39b72b, b279ff7c, 302a80ef, 91a8b8aa,
-aes, 6, wtxt: 310b1e9e, f5df875a, 1908b177, 22d1d485,
-aes, 6, key: ad812c81, ba48dfda, f20a3624, 64b4b8fa,
-aes, 6, t: 07d2e68c, ba58b0dd, b0dafee4, fda51ee9,
-aes, 7, wtxt: aa53ca0d, 00106f07, 42d0c8c0, 9911a613,
-aes, 7, key: c9bfc598, 8e19bdbe, a73b8c26, 1442e009,
-aes, 7, t: 7db6e2c8, 7ddd3f9c, dafabd8d, 61f2fc80,
-aes, 8, wtxt: b4092750, f3c48222, 7dc131ab, 75b01c89,
-aes, 8, key: ac7b0068, 1633dfb2, e439e996, 808d516c,
-aes, 8, t: bf0c6076, 8f0db905, 21eb4f77, c749fff9,
-aes, 9, wtxt: 1377601e, 993e66b7, c5d2a6e1, 47c4ae95,
-aes, 9, key: 04e214c8, 8afba976, 2dc02550, 3982c559,
-aes, 9, t: 4bcb70a4, 2232b844, c5c4c1c7, 4b74fa2b,
-aes, 10, wtxt: 4f29646c, a8c91132, e804e497, 72f63f72,
-aes, 10, key: 676913de, 715acc6c, 956325fa, 15ee7496,
-aes, 10, t: 00ed028f, 5d59b33b, ccf154f3, 73142103,
-aes, 11, wtxt: 67841151, 2c037f57, 59927109, 66fa5595,
-aes, 11, key: 5dca8658, d7312f2e, faf10a7e, c373cf27,
-aes, 11, t: 93c88ca8, 7236f4e0, 42d07233, 0a187379,
-aes, 12, wtxt: ce020af0, a507dbce, b821784d, c96bbc5e,
-aes, 12, key: ab479c74, da1d5018, 4f7e75e2, 5a900174,
-aes, 12, t: 6aa824f3, 484fe226, 2062b603, 921aaeb0,
-aes, 13, wtxt: c1efb887, 9252b23e, 6f1cc3e1, c88aafc4,
-aes, 13, key: e3aafaca, 349bd5e4, ce6adf9a, 0d1910bd,
-aes, 13, t: 59202e03, 6de8140b, 2bf53ff0, 03936c24,
-aes, t: abdb78dd, key, d19048fe
-aes, t: f47ee1df, key, 0b8d18e6
-aes, t: cb7e1002, key, 44f36d04
-aes, t: d98f48ee, key, 1e636c70
-aes, 1, wtxt: 6c41a60d, 372dca53, 3aa92602, e6e2dd4d,
-aes, 1, key: 493fa2ad, 243be263, 8a7c4255, 0491705c,
-aes, 1, t: 1b6a1e50, b6c9c9ba, 8b7e8002, 6710f487,
-aes, 2, wtxt: 5255bcfd, 92f22bd9, 0102c257, 638184db,
-aes, 2, key: f66cc957, c0074f07, 07bb6a70, 41927f13,
-aes, 2, t: efbc3417, 385c4322, 44373778, de48c825,
-aes, 3, wtxt: 19d0fd40, f85b0c25, 438c5d08, 9fdab736,
-aes, 3, key: 21b668b6, 6d0440ce, ae47a036, 8eed3209,
-aes, 3, t: 9881df85, 68c4cc9d, ed866239, 10f4f367,
-aes, 4, wtxt: b937b733, 05c08c53, 43c1c20f, 9e19c16e,
-aes, 4, key: 441ead34, 366b8650, c7bc2577, 46291563,
-aes, 4, t: f12cba37, 21324ac3, 502cb3a9, 5185708d,
-aes, 5, wtxt: b5321703, 1759cc93, 979096de, 17ac65ee,
-aes, 5, key: 366c5232, 4cb22878, c343e0f8, 20aa923f,
-aes, 5, t: 5a369185, 6e5463d3, 1e009f1c, eb98dac2,
-aes, 6, wtxt: 6c5ac3b7, 22e64bab, dd437fe4, cb3248fd,
-aes, 6, key: 89b240c4, 72752b64, f1d7a327, 81953014,
-aes, 6, t: d8b090fc, 52300235, 764d195f, cf2d12f7,
-aes, 7, wtxt: 5102d038, 20452951, 879aba78, 4eb822e3,
-aes, 7, key: 33a769d6, 7ade7a4a, 8ff1c880, e3e972c7,
-aes, 7, t: d80b0153, 96b2dc98, 72bc2ab5, ad9d2c89,
-aes, 8, wtxt: ebac6885, ec6ca6d2, fd4de235, 4e745e4e,
-aes, 8, key: 223cba25, fbc76ba0, 83a28843, 70429333,
-aes, 8, t: d446f27c, beb3aec0, bf45cc36, 6ed27bce,
-aes, 9, wtxt: f67a4859, 4574c560, 3ce74475, 1e90e8fd,
-aes, 9, key: 8b80fb54, 4979139c, f52fb2ca, 6c18ba47,
-aes, 9, t: 0994a33b, 6e53b230, ea0adc50, 6c6751e1,
-aes, 10, wtxt: 8214586f, 272aa1ac, 1f256e9a, 007feba6,
-aes, 10, key: 29633d6c, d9fbd185, 7865e3e3, f3e01b70,
-aes, 10, t: f8ad68f8, a9db94b2, 55e3e851, cdf991a1,
-aes, 11, wtxt: d1ce5594, 70204537, 2d860bb2, 3e198ad1,
-aes, 11, key: f959744a, c2f9e8c8, bc56a156, 9937088d,
-aes, 11, t: dd378a44, 5efe1f94, d8edb7e9, 808ac000,
-aes, 12, wtxt: 246efe0e, 9c07f75c, 64bb16bf, 19bdc88d,
-aes, 12, key: 58771042, f098ece9, a19e3266, 8b85f893,
-aes, 12, t: db4d6577, 170758a2, 3deba768, da3e3203,
-aes, 13, wtxt: 833a7535, e79fb44b, 9c75950e, 51bbca90,
-aes, 13, key: f6bfc68e, 3ba09c82, 7eaf499e, 2561a9db,
-aes, 13, t: 94cfb8a5, b270b360, 4a5361bb, dd491999,
-aes, t: f255fc0b, key, 10eb3d60
-aes, t: 28ee8a3b, key, be71ca15
-aes, t: e1d04ec2, key, f0ae732b
-aes, t: ab60eef6, key, 81777d85
-aes, 1, wtxt: c15b54a7, 2d600832, 0e5436d8, 6e4b5a41,
-aes, 1, key: 493fa2ad, 243be263, 8a7c4255, 0491705c,
-aes, 1, t: 08ea3f15, da1c7eff, bc6c5d0d, 2bc4eb95,
-aes, 2, wtxt: 41d59db8, fe279c9c, 36101f58, 2f559bc9,
-aes, 2, key: f66cc957, c0074f07, 07bb6a70, 41927f13,
-aes, 2, t: 943b74d9, dc5ad6f0, 3bdf005d, 07ec0cfb,
-aes, 3, wtxt: 6257bd8e, 1c5d99f7, 3c646a2d, 467e73e8,
-aes, 3, key: 21b668b6, 6d0440ce, ae47a036, 8eed3209,
-aes, 3, t: 859d8cb5, 21b59901, bca15f03, fdbf798d,
-aes, 4, wtxt: a42be403, 4cb1d9cf, 12e6ff35, 73524b84,
-aes, 4, key: 441ead34, 366b8650, c7bc2577, 46291563,
-aes, 4, t: 6a708229, 731aff16, 9f729ecb, be382cd3,
-aes, 5, wtxt: 2e6e2f1d, 45717946, 58cebbbc, f81139b0,
-aes, 5, key: 366c5232, 4cb22878, c343e0f8, 20aa923f,
-aes, 5, t: da3eeb0e, 976b51c6, 2d2485ff, 8d407151,
-aes, 6, wtxt: ec52b93c, dbd979be, ee676507, adeae36e,
-aes, 6, key: 89b240c4, 72752b64, f1d7a327, 81953014,
-aes, 6, t: 6fd6ccc0, db9ac426, 17963573, e394f911,
-aes, 7, wtxt: e6648c04, a9efef42, e6419654, 6201c905,
-aes, 7, key: 33a769d6, 7ade7a4a, 8ff1c880, e3e972c7,
-aes, 7, t: 28435751, 8c506640, 1609b115, 0656f334,
-aes, 8, wtxt: 1be43e87, f68e1c0a, 99f87995, e5bf81f3,
-aes, 8, key: 223cba25, fbc76ba0, 83a28843, 70429333,
-aes, 8, t: b3b96c2a, 470391aa, 6e7541b7, 77297a57,
-aes, 9, wtxt: 9185d60f, bcc4fa0a, edd7c9f4, 076be964,
-aes, 9, key: 8b80fb54, 4979139c, f52fb2ca, 6c18ba47,
-aes, 9, t: 7f72264e, fc3780f4, afb87a9c, 3fcdeea6,
-aes, 10, wtxt: f4f2dd1a, b54e9368, 5a97c856, 53d554e1,
-aes, 10, key: 29633d6c, d9fbd185, 7865e3e3, f3e01b70,
-aes, 10, t: b7fe51f1, caa4c467, a78350bb, a16e1082,
-aes, 11, wtxt: 9e9d6c9d, 135f15e2, dfe6b358, 528e0bf2,
-aes, 11, key: f959744a, c2f9e8c8, bc56a156, 9937088d,
-aes, 11, t: 173d289e, ad1bf5c9, f9b9060a, a0b01c18,
-aes, 12, wtxt: ee645cd4, 6fe21d01, 45efa75c, 39871495,
-aes, 12, key: 58771042, f098ece9, a19e3266, 8b85f893,
-aes, 12, t: f6d8ba71, ec037bb8, 333cf150, 6bd06c51,
-aes, 13, wtxt: aeafaa33, 1c9b9751, 92a2c336, e05594c2,
-aes, 13, key: f6bfc68e, 3ba09c82, 7eaf499e, 2561a9db,
-aes, 13, t: 86c71b05, 9b3980a9, ed40fc4b, 6fa06361,
-aes, t: 476110ce, key, 10eb3d60
-aes, t: 22ddc90b, key, be71ca15
-aes, t: 5cc1c4b5, key, f0ae732b
-aes, t: d0f9d2c0, key, 81777d85
-aes, 1, wtxt: 68b1a548, f279be7a, f5143ef5, 038ec3ce,
-aes, 1, key: 493fa2ad, 243be263, 8a7c4255, 0491705c,
-aes, 1, t: f60c31b3, b685e2d4, 2966e100, 3968d5e1,
-aes, 2, wtxt: bf33931e, 92be00b7, a31aa355, 3df9a5bd,
-aes, 2, key: f66cc957, c0074f07, 07bb6a70, 41927f13,
-aes, 2, t: 34bd9ce2, 4eac29d1, fa498766, 26f58746,
-aes, 3, wtxt: c2d155b5, 8eab66d6, fdf2ed16, 6767f855,
-aes, 3, key: 21b668b6, 6d0440ce, ae47a036, 8eed3209,
-aes, 3, t: 91ad2fc2, 6ac7a584, 508b67cb, 3b20f0f3,
-aes, 4, wtxt: b01b4774, 07c3e54a, feccc7fd, b5cdc2fa,
-aes, 4, key: 441ead34, 366b8650, c7bc2577, 46291563,
-aes, 4, t: 0938632f, 6872e539, fbe522a1, d5d1d739,
-aes, 5, wtxt: 4d26ce1b, 5e196369, 3c5907d6, 93f8c25a,
-aes, 5, key: 366c5232, 4cb22878, c343e0f8, 20aa923f,
-aes, 5, t: 892874b1, 9e3e0c28, 5fbbeb44, 1d1f71e6,
-aes, 6, wtxt: bf442683, d28c2450, 9cf80bbc, 3db5e3d9,
-aes, 6, key: 89b240c4, 72752b64, f1d7a327, 81953014,
-aes, 6, t: a51ea881, e57ec3d9, d358431b, cf065bed,
-aes, 7, wtxt: 2cace845, 970be8bd, 228fe03c, 4e936bf9,
-aes, 7, key: 33a769d6, 7ade7a4a, 8ff1c880, e3e972c7,
-aes, 7, t: 5dc7f0f1, 1198300a, fea5e90b, 0c71c4ac,
-aes, 8, wtxt: 6e609927, 6b464a40, 7154218b, ef98b66b,
-aes, 8, key: 223cba25, fbc76ba0, 83a28843, 70429333,
-aes, 8, t: b510aab3, b248ed52, 865c7dc4, f1b79277,
-aes, 9, wtxt: 972c1096, 498f86f2, 05fef587, 81f50144,
-aes, 9, key: 8b80fb54, 4979139c, f52fb2ca, 6c18ba47,
-aes, 9, t: 47fbd9f1, 8bc8b3c9, c4e5589c, 5942a5b9,
-aes, 10, wtxt: cc7b22a5, c2b1a055, 31caea56, 355a1ffe,
-aes, 10, key: 29633d6c, d9fbd185, 7865e3e3, f3e01b70,
-aes, 10, t: 9a234dae, f4956c1c, 486d9e9f, 9b6b90a6,
-aes, 11, wtxt: b34070c2, 2d6ebd99, 30087d7c, 688b8bd6,
-aes, 11, key: f959744a, c2f9e8c8, bc56a156, 9937088d,
-aes, 11, t: ae49dc18, 6a5377a1, df837762, ebbc1d1d,
-aes, 12, wtxt: 5710a852, a8aa9f69, 63d5d634, 728b1590,
-aes, 12, key: 58771042, f098ece9, a19e3266, 8b85f893,
-aes, 12, t: 18e1397d, 2fbaca1a, b6ec8ef0, 5d9d05a1,
-aes, 13, wtxt: 4096293f, df2226f3, 1772bc96, d618fd32,
-aes, 13, key: f6bfc68e, 3ba09c82, 7eaf499e, 2561a9db,
-aes, 13, t: 691756dd, 8a9f58cc, 07c7bc15, 3b4b4f00,
-aes, t: 56f7f550, key, 10eb3d60
-aes, t: af9596b6, key, be71ca15
-aes, t: e96f88ce, key, f0ae732b
-aes, t: 6e25779f, key, 81777d85
-aes, 1, wtxt: abdb78dd, f47ee1df, cb7e1002, d98f48ee,
-aes, 1, key: 493fa2ad, 243be263, 8a7c4255, 0491705c,
-aes, 1, t: a1a395ba, 5c45ccd1, c5a33bad, ac911c40,
-aes, 2, wtxt: e89c3717, 787e2eb2, 4fdf79f8, a8006c1c,
-aes, 2, key: f66cc957, c0074f07, 07bb6a70, 41927f13,
-aes, 2, t: 2b9170db, 4b78f38c, 01cc0f93, 2d57184b,
-aes, 3, wtxt: ddfdb98c, 8b7fbc8b, 067765e3, 6cc56758,
-aes, 3, key: 21b668b6, 6d0440ce, ae47a036, 8eed3209,
-aes, 3, t: 12f9ba67, e829e395, df185c37, 4596b023,
-aes, 4, wtxt: 334fd2d1, 852da35b, 715ffc01, cb7b822a,
-aes, 4, key: 441ead34, 366b8650, c7bc2577, 46291563,
-aes, 4, t: 04ec2f64, b229ef73, 051950ff, ddf45623,
-aes, 5, wtxt: 40f28250, 84426923, c2a57588, 9bdd4340,
-aes, 5, key: 366c5232, 4cb22878, c343e0f8, 20aa923f,
-aes, 5, t: 96d96140, 31ae0cd1, 2db60400, 86184215,
-aes, 6, wtxt: a0b53372, 7d1c24a9, eef5e4f8, a6b2d02a,
-aes, 6, key: 89b240c4, 72752b64, f1d7a327, 81953014,
-aes, 6, t: 14ca5397, ff92ecf7, fcd63f45, 7e89fcb3,
-aes, 7, wtxt: 9d781353, 8de7c793, 0d019c62, ff1ccca7,
-aes, 7, key: 33a769d6, 7ade7a4a, 8ff1c880, e3e972c7,
-aes, 7, t: ddd7c101, d65c928f, ec1cec3a, cf2306ba,
-aes, 8, wtxt: ee70a8d7, ac82e8c5, 63ed24ba, 2cca747d,
-aes, 8, key: 223cba25, fbc76ba0, 83a28843, 70429333,
-aes, 8, t: b10cad2e, 3cf9a31e, 6589c0b6, a4dce1a4,
-aes, 9, wtxt: 9330170b, c73ec8be, e62b48f5, d49e7297,
-aes, 9, key: 8b80fb54, 4979139c, f52fb2ca, 6c18ba47,
-aes, 9, t: d50095fa, 6da7ead7, 66f87b32, 47a2eea9,
-aes, 10, wtxt: 5e806eae, 24def94b, 93d7c9f8, 2bba54ee,
-aes, 10, key: 29633d6c, d9fbd185, 7865e3e3, f3e01b70,
-aes, 10, t: 0853982b, 7c31cdeb, 511f5aad, 293ca936,
-aes, 11, wtxt: 2130a547, a5ca1c6e, 297ab94e, dadcb246,
-aes, 11, key: f959744a, c2f9e8c8, bc56a156, 9937088d,
-aes, 11, t: 203f54f7, 8d1f95b4, 3722899c, 63a3937b,
-aes, 12, wtxt: d96620bd, 4fe67d7c, 8b7428ca, fa949bf6,
-aes, 12, key: 58771042, f098ece9, a19e3266, 8b85f893,
-aes, 12, t: 67dee723, a4b1c6af, bed92a89, dc2a8759,
-aes, 13, wtxt: 3fa9f761, 54292a46, 1f4718ef, 57af7fca,
-aes, 13, key: f6bfc68e, 3ba09c82, 7eaf499e, 2561a9db,
-aes, 13, t: 7760511e, c7a9f6f6, ad25cbda, 18e69320,
-aes, t: 55cfa296, key, 10eb3d60
-aes, t: a9ea85ca, key, be71ca15
-aes, t: 8bef5886, key, f0ae732b
-aes, t: 91401163, key, 81777d85
diff --git a/testsuite/shake.awk b/testsuite/shake.awk
deleted file mode 100644
index 3d029e35..00000000
--- a/testsuite/shake.awk
+++ /dev/null
@@ -1,14 +0,0 @@
-#! /usr/bin/awk -f
-
-# This script is used to process the Keccak testvectors, originally
-# we used http://keccak.noekeon.org/KeccakKAT-3.zip.
-# For the updated NIST version, test vectors can be found at
-# https://github.com/gvanas/KeccakCodePackage/tree/master/TestVectors
-
-/^Len/ { len = $3 }
-/^Msg/ { msg = $3 }
-/^Squeezed/ { md = $3;
- if (len % 8 == 0)
- printf("test_hash_extendable(&nettle_shakexxx, /* %d octets */\nSHEX(\"%s\"),\nSHEX(\"%s\"));\n",
- len / 8, len ? msg : "", md);
-}
diff --git a/testsuite/yarrow-test.out b/testsuite/yarrow-test.out
deleted file mode 100644
index cf1ba9c8..00000000
--- a/testsuite/yarrow-test.out
+++ /dev/null
@@ -1,4617 +0,0 @@
-source 0 entropy: 200
-Generator was seeded after 135 events
-12 df 61 35 66 9a 77 ef db a6
-f4 1c 3c fd 9f 66 dd 14 ed 8e 86 ff 48 7b d9 fd
-d0 bf 22 af 93 e0 8a b1 34 ea d0 34 ca 61 d0 74
-0d eb df 38 41 fe df 41 7e 45 bb 8e 5c 2d 12 ea
-e5 3f c8 54 f2 fc 7f 4a c5 95 f1 91 88 ff 1f ad
-69 f3 74 34 88 d5 cd 64 61 c2 da 93 eb 72 42 69
-50 68 f2 8f 55 98 f1 ef a3 a6 0e 89 fe 45 0e 31
-b2 99 5f 22 2f 8b ce 48 2b 03 e2 8b e1 d3 0d d1
-a3 68 55 e6 f3 2a a5 aa a2 06 9a c5 b4 7e 43 63
-bf 8a 7b ab 98 2e 10 5e d9 e2 f5 fb 4a 20 3f 0c
-35 49 b3 82 1f cd 64 e3 02 1c 5c 1a 10 0c b3 2c
-1f c4 43 6c 74 d2 bf cb c3 c8 d3 2a b5 6f 2d e6
-17 56 32 a6 ca be 65 ea 60 7a 66 0c 3b 48 dd 66
-8d 45 6f f9 da e6 58 4b 77 9b ea b7 51 18 18 1c
-fb 70 d0 35 30 af fc 9a 36 3f 49 bb e8 e8 e5 aa
-db 41 16 30 8c 52 9c a8 c3 2f 43 58 27 e0 94 ab
-1b 77 6f 96 74 66 b7 77 f4 70 c6 62 e6 0c 45 db
-07 cf 82 c6 8b f3 0f 1c 70 98 5f a3 d9 94 15 d5
-cb fa 65 5c f6 a8 c2 34 94 e2 38 ac 15 35 e3 7c
-d5 43 c7 cc 28 bd ea a6 4a d1 ca b8 e1 06 1b 21
-f1 12 ed 28 1d 01 be d0 47 d7 ae 56 64 f0 1e 9f
-95 85 db 82 15 2a bf 1a f8 43 4c 54 90 20 c9 7c
-10 58 50 68 f9 50 2a dc 11 98 ff 1f 31 91 c2 bf
-61 45 9f 93 91 90 7e c1 bc e4 cc a8 96 a5 a4 1e
-42 48 76 ed c4 ac 62 bb 8d 23 30 d8 ea 27 65 43
-4a f2 3f 21 eb 37 87 23 31 09 0f 4d 7b af 89 e6
-01 98 48 99 cd fd 04 33 50 eb 90 a8 db 1f fb 83
-cb cb f3 de 9e 23 f1 a9 0d ac bb 3f b9 29 29 b9
-a8 78 20 52 4b e6 53 67 e3 66 0f 9c ff 14 15 ab
-a0 6d 37 9d b9 75 d2 f2 9c 56 a9 e4 38 76 65 99
-b0 c1 3a 62 6e dc 1a f2 64 34 1f 4f 7c 11 d4 31
-56 e4 23 b4 6c 9a 73 2d 90 53 03 ca 3f ff 02 df
-85 4a 62 6e e5 07 51 f8 23 87 0d 21 1c 4f b4 43
-2e 15 7f 6e 2d fa 40 f7 8b 50 e6 48 eb ed 91 c4
-23 b8 b4 65 60 0d b9 9d d6 fb b6 01 ac c5 4b 75
-de f0 8c 39 13 c1 0b 7b dd 30 16 f4 9b dd 81 5a
-bb 91 5e ab 7e 11 ff db 28 38 e8 79 87 14 0b bf
-9f d2 6d 19 4e 5a a9 8d d1 70 b4 ae ec 23 e5 a8
-c5 fb b3 bf a2 bc b8 7c 00 00 bb 90 8c b8 39 33
-e0 34 bd 13 c6 84 56 f4 ba 85 f5 f6 a5 7d 4d 44
-d5 8b fe ba 0e c1 b5 44 31 7f 71 23 97 a7 11 08
-a4 8b 9a 84 04 b4 c3 29 0b 1f 33 e3 9b f3 f8 c0
-48 01 9c b8 45 74 3a fd ce a0 05 47 7a f3 6f 28
-5a 7b b9 76 a0 4b 64 5a 75 20 14 91 63 48 d4 07
-51 20 33 a8 08 d4 04 47 d6 0a 20 1e 86 c9 3e ce
-fb c8 28 83 1d 4e b7 77 07 87 ec 33 a6 a3 65 d8
-5c 26 d8 37 48 9b 72 71 f5 3f 30 65 70 a0 6c 60
-2d 12 10 bb db 61 55 eb 4f 1f 44 54 60 9e 3a ce
-6c 5c 0b c0 69 3f 7b 5e a6 f5 d1 55 a0 ca b1 27
-39 4d dd fe d4 c3 a1 be bd d3 8b 1d 84 da 67 4e
-0c 43 41 d1 2f d8 b5 27 1e f7 6a 22 f9 d7 03 34
-b7 9c 70 dc 4b 41 dc 5b 3b 66 c5 ef e4 7e e6 57
-6d 64 94 4f d9 bd 14 63 70 d5 2e ec be 0e 69 34
-3e d2 0c 4b 55 6c 63 5a 4f 52 53 2c bb 81 76 1c
-04 96 41 58 14 de 82 fa 6d 23 cb d8 44 d9 a2 be
-96 5d f7 62 43 26 7d fa 0f 52 ed ef 12 67 bb 78
-97 8c f2 be 88 06 fc b9 59 a7 cc 1a 28 e3 04 de
-d8 0d 35 bb e7 d7 a7 66 d2 e6 ef 2f ee 76 07 b5
-69 2e d9 13 a4 73 53 bd 30 2e 57 ef e3 79 36 26
-d6 ad 9f e9 b3 b0 62 18 e0 54 3b 5f 5d 30 54 0a
-d6 e7 cd 95 f8 de 4b 02 4f cf 56 8f 24 e0 7a 9b
-f4 e1 66 77 35 ee e7 5c 00 5f 3a ca de 97 84 09
-eb d8 db 50 24 3b 42 19 a2 56 18 e7 8b 87 ad 72
-26 9a 06 18 0c 85 4a 99 bf 41 c0 db 8e 41 aa 9f
-2b af 24 48 c4 dd 8c b1 bc 94 d3 ad 1e cb c4 23
-ef ea a9 20 81 00 d5 59 68 2b 45 4c 7f 15 16 95
-95 c9 c7 d8 6c 35 a3 ab 6f 0f ef 66 b2 25 f9 c5
-30 cc a1 bd 4c a4 1c e1 e5 57 a8 26 76 0b 75 07
-6e 71 0d 76 0a 75 df 89 1e 1a 9b f8 7b fc bb 40
-cd b2 97 4e aa 60 22 24 55 2b 0d a0 b5 1d 17 8a
-37 1d d2 e2 ac 20 34 05 6c 77 07 c1 c0 b4 fc ba
-33 08 dd 11 11 fd 0d 3e f1 51 4d c8 f3 0e 83 46
-27 24 03 6f 4b 98 c1 9f 6d 39 86 2e 03 f6 b7 7b
-7d a4 03 fe 18 0d 32 95 ba a2 03 e2 dc 67 82 c7
-0e 8e 16 52 64 81 86 08 0e 8b 0a df 74 3a 04 4a
-89 dd 92 c6 40 03 b1 96 82 0f 68 50 4d 33 db 2a
-a0 5f c5 c0 70 0d fc 86 e6 48 b8 0d dc 15 ae 5f
-d9 d5 4a 99 e8 1c 64 e6 42 32 2f 84 1d 61 38 d1
-bc 72 d8 e5 a4 6d f6 cb 00 30 0f f5 ad 2e 96 9d
-0a a7 5e 75 4c 82 ea 74 8b ca f9 f3 4a 61 d3 5a
-07 e8 11 8f 25 ef 00 5e ab 8f 83 ad 73 ea 49 20
-17 14 15 dd ee 84 bb d8 24 42 55 d9 60 17 b7 3d
-e3 02 fd c7 e5 e2 f3 b9 03 5a d6 6c a0 b2 45 1a
-06 0f 54 3b 2c 04 ab 2c f2 a5 36 83 3a c0 b0 ca
-63 7f 6a a7 c5 65 6b 7b 78 95 fe 0a 72 5e 3d 59
-05 49 eb 27 5e d6 a9 e9 42 eb b8 c0 46 71 5b ed
-d9 67 1d 6f 5f 7e 7a 7e 59 13 7b 88 08 d1 03 76
-a4 8e b7 2b 29 27 f9 a3 7a f5 ee f4 02 7c eb 40
-c5 7f e8 76 1a b9 66 b4 8f 40 45 96 ea 85 b8 cd
-8d 01 3a cb 65 5c 94 10 ea 36 f7 66 de fa cb 8d
-67 b2 5c 7b ff 08 8e 22 4d ee 1e 75 13 ff e5 d3
-03 b3 11 17 fe 14 6f ff 28 82 8c 3e c2 29 bc e0
-d7 27 bc e4 d9 59 b3 66 69 38 61 cb 60 74 af 93
-ff 67 8d ad ee 65 04 94 35 d5 b1 00 39 07 d4 05
-a7 f5 e5 2d f1 9c 3a b4 2f ec ce 5b fa 13 78 6a
-f0 24 37 fb 86 83 83 fc 67 2b a2 6f 17 45 09 bf
-d5 7d 44 7f a0 9b 23 17 72 70 7e 8b fc 69 5f fb
-7c 62 98 7d 3c bc 30 79 a3 b7 dc 8b 0c eb 3d 79
-07 7c dc 78 2a b7 84 ab bf 33 99 5f 46 74 29 4c
-32 38 e2 38 93 6e 25 5c 8c 2f cc 48 09 b2 54 34
-d3 02 11 02 e2 76 17 df 98 c8 a7 12 03 8f ef b5
-2b 1b 59 c8 ed 22 c8 f4 ed 98 4e 5a 13 7e 5c ef
-fc c2 9a d2 67 44 07 13 ea a4 c8 bb 28 22 02 28
-d4 41 00 a4 c5 d7 6e 67 e5 4d 9d a0 77 ba 0a 18
-c7 1b 93 10 27 96 dd 0c 5e a4 5d 28 1f 81 e8 c5
-ef 7e ce 6b 3b db c6 7c a4 20 e4 2c 20 f1 c1 2b
-5e 25 56 7d af 99 60 f7 1e a1 bb da 23 27 44 67
-22 c8 10 b7 00 ad 9e 18 70 96 4f 85 aa 69 78 b6
-3f e9 e7 85 88 ed 31 20 cf 2a 2c aa a6 69 01 00
-86 c9 c0 97 bf 81 44 fb fb 32 25 f4 e1 a8 ae bd
-1e f2 79 14 dd c4 55 b2 de 64 29 68 62 34 f7 8e
-45 5a 07 8a a5 22 50 d0 22 01 cb 65 c3 d4 c5 59
-6e ed db 40 36 e8 38 f8 98 c8 63 16 25 07 41 61
-8c f7 b4 5f 20 ed bc f4 ac 5e fa 8f 53 62 be 2c
-4f e0 2a d8 4a e2 2f a2 c7 dc 2f 8c 54 a4 46 63
-37 c5 81 83 21 7a 40 8e 5a 99 a9 59 3a 90 30 c2
-3c 0a f1 22 14 79 e3 91 2c 24 79 a6 d0 26 2a e9
-91 62 8d 9e 3c b3 85 c8 49 22 1f 3e e5 be 1d 2a
-0d 2e 2f ff 7a fb 85 fe 2c 9b 19 ad 28 74 02 35
-9b 36 4f 19 8a c8 10 85 00 64 70 0d 7f f7 c2 69
-fd cc c1 17 38 60 70 63 c2 c8 3a 0a 14 a2 e4 e0
-37 ee e4 35 37 ea 4b 0d 23 09 72 c3 5a 1f 08 e6
-0f 1c 0b b5 41 5f 45 8e bf 62 d8 bd ba 15 99 d5
-c0 17 1b 5a 8d ae bb ba 00 51 07 e8 ea 94 25 33
-e8 c3 d8 22 12 da c6 25 d7 ad a5 17 3b c2 79 26
-1d cc 0b 00 49 91 11 35 8f 94 e9 7d 4c 17 45 29
-01 1c b5 1f 80 fc b8 43 28 11 63 00 54 36 30 ce
-e8 f7 45 33 25 61 8c 02 73 57 29 b4 80 ee 58 25
-48 f6 8d 5a d8 8f cc e8 86 d7 c5 65 a9 c0 fa d6
-af dd 2b 86 6c 48 99 b0 ba ca c7 9e a4 23 80 63
-48 e1 e6 c0 26 8c 6b 1e 26 e4 3f 19 4a 96 fa 8e
-59 b9 54 20 32 ed 84 b8 b7 20 1d 02 5e 81 53 17
-b9 e5 01 2c 51 78 4d 2e 6e 81 7d bb d5 cb b1 a1
-ab 83 fa b6 8b 82 c7 a2 e0 62 76 31 40 a1 7b 62
-97 57 ba a8 e5 30 29 38 eb 06 a8 6f 2f f2 a2 7d
-76 2e cc 58 6b f9 7c 2e 99 a9 4d d6 95 80 08 93
-f9 cd 1e 4a 66 7e 0b 99 ed eb b1 85 9d 9e 7b 9a
-0f a1 46 80 a5 df 53 ee 71 c9 ad 37 e7 51 f6 5b
-85 49 49 1b 6c 9b 8d 3b df 70 26 97 72 ed fc e0
-7a 07 4d d7 4b c5 b5 9e 6e 26 8c 63 85 07 d6 ed
-28 e8 7b b4 47 e0 2e 88 30 c9 e2 64 05 6f c3 46
-31 f1 29 31 25 21 e7 57 63 65 b5 c7 fc 60 7b 15
-ca ff 4c 51 13 6a 63 be 8e 34 3a 92 5e 06 0d 73
-b1 3d 2b f3 50 64 11 f4 cc 5b 20 d4 e1 bb 27 78
-1a 6e de 80 cd 05 71 09 29 3c 3b 97 88 88 c5 17
-4b 75 0d 8d c5 14 f9 08 86 38 b1 42 c5 ce 1f 6a
-17 a1 59 0e 7a 53 b7 4d d0 ed 4d 2c 02 f0 cb 19
-f2 75 4e 12 6a 71 9e f6 14 f0 d5 7d df 4d 3d 67
-a7 fb 45 42 96 0a 03 2e 25 33 7d b7 9d 47 ae 78
-39 f1 ec 32 07 cb 3b 3b 1b 5d f6 9b fc 29 bc 1a
-9b a2 b4 72 a3 56 aa e9 2e 6f 7c dc 07 1a 27 83
-70 ca 5e 4f d2 56 ed f9 61 32 48 e7 8d ea b7 bf
-f7 25 61 4a ae 14 46 c4 32 90 8e 87 bc 46 cc 9b
-bf f6 f8 43 b1 6e 77 46 e5 a4 cc b5 50 ec dd c2
-5e bb 18 be 99 62 42 c5 66 03 82 99 81 2c 5a 6b
-d2 4b ad ae e1 0b 41 43 87 c9 00 0b d0 fa e7 43
-59 bf 0a e8 05 07 66 2b 0f 61 a8 64 52 21 4d 91
-a4 9d f3 44 b2 38 4d 4f 7c 9a 30 8b 94 c0 57 0c
-9c 43 a2 31 8b 97 ee 48 0a 74 b2 24 42 0b 42 49
-3c 76 33 60 93 fa 35 86 3e d2 fd 05 37 f6 22 ca
-fe ce 8c a0 03 31 e8 50 44 75 90 0c 52 3b 90 9b
-ba 5a 15 ca 76 7f 79 7b a2 02 ec 35 5b cd 76 66
-57 7b c4 29 c2 b3 72 d5 15 9b e2 44 2f 4e d7 f6
-f9 77 a2 bd d4 31 b6 d6 37 97 f6 27 ce 20 0e 80
-0e d6 3f af 0d 79 b0 ec fa f9 7c 03 06 59 46 c1
-81 da 01 58 99 01 55 f6 e1 59 16 ae 94 62 65 07
-12 61 b7 1d 9b 2c 08 9d 3a 24 0a b6 b7 b5 e0 82
-ec 41 f2 d1 a4 66 41 44 6f e6 10 f7 e0 f6 e6 2d
-9a 87 6b a2 3b 02 21 0c cf 96 1b ea b7 c0 de bd
-55 41 0f 79 cd b9 4d 1a 1a 01 16 e8 d7 d2 e6 29
-fa a4 ac c8 cb 60 25 7c 9f e7 6f 32 f2 31 55 73
-06 3c 96 50 c7 ab 87 28 f1 3b fe 5c c6 03 fa 2c
-77 bb 4e 3f d9 13 eb b3 95 d8 cf 00 56 c8 4a dc
-1d cd 5b 4a c4 bf de ab 2c 69 13 cd df 2a 88 6d
-52 b9 a0 70 27 fe a3 bf f5 5c 12 35 0b 3e c8 bb
-f3 d0 99 65 ab 4e 4f c0 56 49 f9 09 df 65 fa 91
-50 da 3d a1 48 87 fe 7e 7f a7 cc eb 2d f2 f1 33
-a3 72 8a fb 0b 13 7e cb c2 92 39 4c 9b a8 cf 81
-0c f7 29 a2 36 36 85 37 61 ff 41 fa 8f e9 e7 52
-3e a6 65 39 57 24 08 0a 35 1e 6b ca 37 e0 70 60
-14 da 9a 7a 32 87 6a 9f 8f 60 ba 3f 46 69 26 25
-d6 87 28 c9 96 d1 0e 31 ea 7f 7a 92 7e d5 0b f7
-72 aa 2f 3f 31 c2 a0 44 03 6f 14 1c df 1f c2 c4
-2b 46 14 13 8c 5e 61 f0 12 4b 04 71 a4 ef be b8
-5c 76 c9 85 fb 62 1c fb 18 e5 e1 53 f3 a0 a4 f5
-fe d3 57 0a 2a e2 d4 18 79 3a be a9 e0 5d a4 e1
-d0 53 42 d7 9d 28 e1 8f ca 7f 21 2a ea 28 4f a6
-fd 2e fc 99 9c 09 e2 ef c3 66 8e 9c ad b0 28 45
-17 a3 d9 70 99 98 27 0d ed 24 e0 85 36 42 14 34
-50 cb fd f2 da 85 3a 22 52 1f 17 dd d4 ec 84 95
-4a 8e bd 85 cf 15 21 7d 08 d2 18 5f 21 c3 93 cf
-16 45 c6 f2 88 35 f9 fa ca af 8b c4 33 24 59 13
-83 1a 7b d7 4e 2b 6f 4b 83 7c d9 a9 b4 84 4b 2b
-e0 f9 81 fb 36 bc d7 0c 71 89 90 5e cb 40 e9 ff
-79 0e 19 17 84 ac 37 52 1f df 47 66 a5 fb 9e 76
-5c ff c8 18 30 e6 80 f4 76 c0 f2 f2 0a ec 05 97
-ab fd de 02 f0 df a7 c2 ec 11 e4 80 c2 9a 13 db
-dd d0 af 0c 8a 3f d3 45 72 0c 25 6c c1 e0 fe 0d
-c4 fd 17 1d 2d 75 26 ff 1d ae fb 49 a3 dc 60 88
-4e e6 a5 d3 8c e0 1d bc cd 12 7f ff 4a bb 81 57
-94 ac 21 98 3c ed a8 48 7d 41 70 30 e2 ef 9f c9
-e6 5e 01 43 c1 ea 31 bd f1 b2 d2 2f cf 62 f6 e0
-50 ab 1b 53 a8 0c c2 3a 41 5d d8 dd bb 31 b6 43
-db c5 80 09 13 99 50 9a ef 09 ca e9 ce 97 e3 ba
-a0 e5 f0 a5 81 bd 34 dc f7 c2 da 25 af f9 a9 31
-e2 13 bf ff 42 d0 27 32 03 e4 cb ae b1 49 ac 65
-6d a6 61 8d 6c 26 f8 8e b1 86 b1 14 b0 b7 33 2f
-fc 2a 19 49 95 09 cf 61 6b de 50 4e 59 37 bd 0b
-72 91 7b 45 7c f9 af 7d b7 a6 22 a1 06 8a 4e 45
-88 55 46 48 da d7 a9 0a de 4e fa d9 85 82 f3 91
-29 e3 4e 08 9a 56 e3 79 0f 6a da 97 5e f3 89 f0
-34 fc da d3 4c 12 22 09 18 ff 9b fa 1e fc 6f e7
-8e 4d 5d 85 b1 ff 5d 0a 6f 14 83 2f 69 ac 8d 05
-eb 8d 74 eb 7e f2 db 80 f3 bc 9f 58 26 66 67 75
-54 69 e8 d0 68 61 35 04 9c 08 ca 41 2a c2 6e 15
-52 6e 25 ad 72 3b b0 ea ca 9c 42 4a 2b 85 4c 6d
-bd 22 88 20 76 88 8f 7b 6d bb f0 8c 7b 0d 12 72
-ce 42 72 26 32 9f a2 04 e6 39 d4 07 f2 1d 1a a5
-08 ed 57 fd 2f 01 f0 90 c7 12 13 08 ce 1f 85 63
-fe df 47 19 6d 79 85 01 5d 6c 17 f8 57 2f 2d 93
-b6 99 65 08 7b 52 d7 f5 0a d8 6b 1e de 29 fc b0
-6d 80 a1 03 4e 1b 70 ec 09 14 b8 eb df 41 cc 00
-54 2b 10 84 1b e2 c1 7d 45 5b 72 a3 8a 50 f2 fc
-a3 22 d7 42 ba e0 5c 89 9b 07 bb d1 3f 7b 3f ea
-12 21 73 11 c7 80 89 37 bb c7 88 61 55 24 5d af
-68 c5 46 ec c0 bd 47 29 f7 74 ec 78 23 b4 3c 0f
-7d ed b4 be 57 0a 9c dd 71 38 72 d5 66 ed 23 7e
-c2 4d d5 d1 9c 16 fa af 80 2a 86 f4 1e 63 fe 3d
-da 67 d0 d9 f1 f6 85 07 f3 6a 61 d4 3a 1a b0 53
-4a 7b be 47 15 10 63 54 19 5e b9 14 b1 f9 f5 08
-3d 78 b0 05 ac 30 32 ef ff 66 ba 44 e3 39 1f 77
-c3 94 7a 72 17 e4 d5 74 b1 1a f9 fd 3f 24 a7 8a
-19 e9 6e 8b c0 80 c5 4b f2 18 d6 9c 2a f8 06 dd
-e7 50 7a a4 59 6b be 5e 9d cf 28 b5 7a f6 b0 e4
-15 07 d1 99 8a ed e0 6e 7b e8 2a 25 1f 81 a3 fa
-b8 e0 23 9d 81 f9 d4 1a 8b f3 77 9d ec 8e cb 52
-ea f6 59 00 48 b5 34 50 50 22 fb eb 70 21 92 ed
-4b b8 41 5d 1a 3b 6b 16 1f 05 9a d2 87 2b 5b 1e
-8d 11 66 0e 5f b2 c1 d0 a1 ef dc ad 01 63 c6 9d
-80 dd e4 9b 42 25 a6 20 e2 62 d4 38 7c 25 b2 f8
-17 cf 1b c9 7c 5d 38 10 97 b8 d4 60 bb 88 23 f3
-6c 59 a9 1f ad 9e bb 22 9f d1 4e eb d7 00 b3 69
-6c c1 2f 73 05 4c 02 26 d7 80 e7 48 fd e9 3a 7a
-d7 94 c0 bd ba 6b fa 35 2d 09 0d 74 39 7d 37 25
-32 de 5a f3 2a 3a ac 24 b9 f7 4d 89 15 0e f5 7b
-ed e1 d8 48 55 c8 91 bb bd e1 64 77 e1 a4 47 2b
-61 47 3c 18 d5 54 ce 68 ca c1 70 4a 7c 44 0d 8b
-e4 99 af 04 e1 be 10 91 d3 c4 06 cf 9c 50 46 a8
-a8 ae 53 e3 bb 68 26 c8 6a 50 89 8b 9e da 71 4e
-75 c9 c7 10 64 9a be f9 d6 19 4f e6 ec 87 08 74
-ac 0b d0 18 be 26 c2 41 2a c6 3c 1a f7 2a 98 76
-7c 4e 1c 1e 4f d7 02 37 1a f1 bd 53 fa 9b 02 57
-92 50 fd 1d 8d a6 e9 8e 3e 7e 41 d5 d8 58 85 60
-c2 d9 51 60 18 1d 89 23 aa 6d 5c 98 91 49 3c 13
-0c ab 0d 5f 71 54 a1 fb 68 ed c9 34 5d 46 ed 5b
-b1 96 53 91 f7 e1 c6 e2 b1 e9 62 a7 ce 23 4c c9
-c2 d1 41 8c 87 7e 19 88 9a 66 14 80 3f 57 2e 72
-e2 41 78 01 df 19 ba 18 76 96 e1 70 1d 5d ef af
-60 52 7c 3e 62 0c 7d ae c7 27 87 19 a4 cb 39 7a
-1a 23 96 fa 2c cd 89 73 1c 62 22 34 e9 47 e0 a2
-73 6c 07 0e cd 7a 1f 35 ea 54 0d ee 42 cb c2 1c
-c1 82 fc 3f 77 de a5 e2 3c cf fb e7 08 84 27 ad
-19 01 7e 3c dc 53 e2 82 e6 e7 20 6e dc 1c b5 2b
-e3 62 2c c6 e3 77 79 c6 7a 1f b2 64 15 ff cd b4
-e8 af 5e 8c 02 7b 04 74 18 fa 7e bf a3 cf 07 d2
-26 88 68 a9 55 99 e5 62 1f 26 ee 36 79 e5 af ee
-81 7b 4f 75 78 3e cf 14 ed ba 6b a7 a7 ab 92 0e
-31 35 27 87 f0 65 a8 7b 21 89 0d ba e6 99 1d ed
-05 5a 40 c2 ec df 29 e3 38 52 45 b0 ae 76 7f 30
-c8 2b 31 04 14 ec d4 45 81 9d ee 5b 14 32 e5 07
-b5 53 84 02 6f 3d 3d 9a f7 f9 6b da 52 40 f0 78
-9c 6e 88 f8 4e 8b b9 53 82 21 ca 72 42 4e b1 8c
-a4 d6 b2 bc 9c 35 fd a5 cc a6 36 54 05 f5 e7 a9
-3a 45 6d e9 32 0e c0 c5 34 a3 64 fb 2c 68 a7 e8
-bb 0e 95 4c 91 9c fa d6 e4 dd 69 37 37 7e f7 27
-39 a7 cf 51 9a 8b 45 96 e8 d2 fa c8 4d 68 3a 8c
-b8 67 35 f0 80 ae 80 75 e2 41 04 05 fe c6 82 61
-9c 84 5f 0f 37 0f 88 cf 3e bf 47 5c 09 0e 84 b8
-24 b9 bf 85 5b b9 85 9d b5 09 3d 9e 7a ca 2e c2
-4b f8 cb 12 dc 46 a9 da 54 08 1a 50 fb 1a 78 90
-df 73 d4 1f 12 8b bb c6 3e 75 19 dd 61 ef 34 87
-3d b2 aa 4b 09 e6 61 a0 a6 93 92 8c 12 7c c8 a5
-b1 15 1f 52 42 71 d2 31 82 7f 69 cf 23 81 3a d5
-72 93 1b cb f3 55 51 ab af cb 8e e2 eb c3 f3 e5
-01 5c 04 92 5b 0e 2b ac 7a 92 04 82 a0 9e 77 49
-20 4f 01 c9 79 44 16 69 f6 1d b3 5d f4 aa 18 02
-f7 1f b6 b3 84 ab c7 9a ed a9 6c 30 a0 bd c0 8d
-00 bb 4f 60 93 13 a4 3d 57 a8 38 3c af 2e 54 28
-2c f0 81 cb 5a 74 87 38 71 4d 53 b0 4b c4 e0 b7
-8e 90 b8 a2 f7 65 5b 0a 42 77 17 93 8c ab 4b 0d
-e1 7e 82 44 3c ea b5 ed bc e0 16 fe 5a 7f 16 f4
-b5 2b 18 4a 99 1b 79 88 e2 91 f0 81 02 be 7f 58
-ae 4b 60 79 0a 07 63 ce 9e 95 23 a9 5d c8 f4 0f
-e3 1f 09 a5 b0 78 43 24 df 7b 74 a7 6a 7d c1 90
-00 c6 62 81 b9 20 fa 93 76 49 50 88 6e 5e f5 e6
-30 3f da 1c b7 29 e8 76 91 cb e0 1d 6a 8a 56 01
-71 c1 73 16 9e 46 93 42 90 73 8b 7e 39 2b 5a 24
-4f ec d8 5e c0 4a 92 7b f7 22 19 74 7f 0b 1b 48
-02 9c cd b7 1d 50 5f 36 52 6b ce 8e 20 b1 3f 60
-a3 ae c5 03 0f 83 32 85 b8 e0 aa d8 af cb 14 f1
-65 87 a3 f7 39 02 28 8a 72 01 07 61 09 43 be 87
-04 b8 07 45 2d 1b 80 65 57 32 5d a4 a0 ed 40 2a
-e3 02 15 30 42 78 d2 f3 6b cf cd cb 0c 9f 1d 0e
-85 b6 81 cd a4 65 e5 2f f0 01 2a 2f ad 97 11 5d
-17 19 dd 19 5c 16 b9 34 55 4a 21 94 bd 86 a6 5c
-b1 d2 a1 13 1c 00 52 aa a0 c2 12 0f 94 7d c3 37
-7c c5 15 f8 24 18 74 c4 d5 76 d8 aa 33 16 a6 cd
-3e bc 70 8b 23 4a 21 d9 fb 35 70 12 85 83 3c 4e
-ca 18 b2 d1 a9 f1 1f 91 6a b3 cc 96 48 bb 55 dd
-e0 4c e0 6c c9 39 4d 52 8a 0b 26 11 c3 04 d1 4c
-cb 58 c8 ba 82 47 06 c0 35 9e 3a 80 72 98 e4 e2
-23 4b 57 f6 f7 d6 c9 2d 38 1e 87 f0 d4 8f a8 12
-24 3f d0 ec 0e 3f 5c 6c c9 e1 d1 47 78 5b 67 09
-d5 b7 69 ab f3 d0 89 a4 9f 02 e9 24 3c c4 25 73
-a5 c5 b1 b3 ba ae 4c 7f 71 ac cc 71 a1 4c cb f4
-e6 80 bf bf 2b 8d e0 b2 85 c0 08 9a 4c a8 95 ae
-91 15 72 4c 72 6d 79 5d b8 70 0e f6 41 f8 3d 16
-6a f6 8a 94 03 1b 04 56 2c c4 8f 4d 5e b7 1d d3
-c6 8c c9 c4 79 8d 8b 5d 43 98 18 b0 aa b8 63 87
-61 a3 6e 16 b2 2d c7 10 17 c5 35 bf 8f 01 41 46
-5f ff 60 66 1f 5a 00 64 2b d9 d4 f9 e6 22 2b ea
-7b fd 4c 97 02 de cf d6 61 22 f0 62 b2 16 63 22
-eb 1e f5 05 41 a7 0c aa d9 cf fd 9d e1 b5 69 4f
-d2 24 c6 2a 43 e9 2b b2 a8 39 f2 a2 32 12 25 f4
-72 4f 0d b7 73 b7 0e 05 94 07 e9 82 3d 33 6f 16
-75 da f0 c5 98 91 3d 2d 7c 57 d3 38 76 c1 1b 92
-79 63 a4 3c 19 2f 60 cc 22 02 d8 dc a1 e3 08 be
-0b 07 88 d9 89 df 6b 9d 82 08 f0 0c 59 ca 9c 61
-4f ff 11 a7 0b a9 bd 8a 1a 96 5b 9f 3e d0 66 b6
-f1 68 c6 bd 32 03 70 28 a7 d3 6e ec 95 e6 ae 77
-8e 67 3c 29 38 75 ea 67 c7 49 73 a5 8a 5d da e6
-d4 19 b2 95 bb 1f ee 94 22 4c 72 99 76 95 f7 e4
-65 11 70 87 9d f9 83 a4 49 d2 3e b1 95 48 87 3a
-98 6c 0c d7 c8 5b ca 1a 76 51 05 f5 3d 00 c6 99
-38 46 83 1a 55 bb b1 47 31 f6 86 02 c6 fa 28 36
-5f 2f 4a 95 54 b7 49 a7 a5 04 5f 96 b0 96 02 09
-f7 2f ed e8 f3 8a 19 27 71 26 b0 52 49 f6 58 5a
-07 2f 80 dc a5 f1 2d cf ab 1f 17 86 d2 e9 d4 f0
-18 f5 e4 9e 8c 06 d6 4f 2f ea 2f 57 22 3b 3f 52
-a7 37 c5 a7 74 44 3c b2 e5 eb fe 5f bc 14 ee ec
-83 59 96 9f 64 d4 7e 73 03 99 28 68 f6 e2 c5 77
-fe 6d cc 59 6a e2 6e f2 37 15 97 ef 2d 34 23 ca
-a9 8f f4 79 42 7e 46 5e 9c db 2e f3 ab 38 7b 32
-95 07 9a 69 11 cc 96 c9 dd 82 01 fc b8 ff ee 7e
-5e 8c 9c 6a 12 8f 5b fe 2f ab c0 62 16 89 d9 ed
-3e a1 45 33 7c ca b0 0d b4 e5 9c 79 72 71 60 49
-f8 17 34 05 ae 89 fe 60 5c 3b 08 c6 3f 3a 62 1d
-73 3d b9 64 cb c2 a0 cb d8 04 c9 c0 20 83 84 4b
-97 d1 c3 29 a7 51 72 b8 97 d9 bf c4 d8 c7 5f ee
-e5 b1 a7 b7 07 b9 0e bb 7e 7e 6c be 9f 01 41 a2
-a2 ab a3 e2 90 e5 24 cc d7 db f8 4f 2e a0 da a3
-8a d1 1f 61 65 08 51 05 45 ce 0b 9f de ba d1 39
-58 ff 58 a5 f0 f3 a6 c2 8c 8d af cf 5f a6 1a 5a
-37 31 46 b0 2d b3 80 c7 da cb 08 f3 4a 67 4c f6
-0b 9a 26 86 04 4c 42 d7 06 b7 5c 80 06 50 12 b1
-68 7e 90 03 ba 73 18 7e de 99 b8 13 1c d9 b8 ca
-20 ac f0 5b 27 c7 e1 3d b4 d0 e3 e0 5c b9 b1 21
-41 80 23 57 69 5d c9 ef e2 22 f5 8b f8 26 52 4f
-44 c4 04 00 13 4e 4d 13 bd ed 8c f5 a9 7c d0 b2
-d6 2b 03 59 5b 18 3d 4e b8 6f 24 13 ae 22 cb c1
-2a 43 92 50 57 0f 4b e1 58 1d 42 27 d3 95 a4 96
-7d 10 00 bf e0 a1 01 c5 fc a2 ba 6e 1a d1 7c 39
-f7 aa ed 2a 32 16 47 10 c5 d8 a7 93 fb d4 74 85
-2c 84 f7 b0 88 fd 24 e7 b8 bd e8 f3 76 e3 82 85
-5d 88 89 b2 f4 90 df fd 3f 46 e9 2d 8e 95 7c 87
-85 92 89 14 30 6b 28 f7 56 84 2d 5b c7 41 5f 8e
-72 19 91 85 5b e9 d3 94 0d 48 01 58 26 61 50 57
-03 61 01 53 de 60 98 ad 7e 0f a1 a5 82 e9 7a 79
-af 00 57 a1 a4 3a b4 3f 84 ab eb a7 11 a3 dd ed
-87 8a eb 1c 1d 3b f0 99 b6 6e b3 c6 df e0 7d 79
-e0 fc 63 33 bd b8 06 aa c0 bb 8d f3 5d e5 29 92
-87 4e e4 96 e8 98 e4 fd 6b 06 6a b1 26 90 8b ad
-4d 88 6e bd 2e 5f 92 3e 0a 79 7f 82 e2 42 88 49
-85 82 2c 03 d4 51 81 31 53 c0 c8 63 be 22 33 8d
-d5 14 d9 ad 19 92 51 66 43 78 3d 43 af b9 d5 e0
-5e b1 4d 6d e1 8b bd 92 c6 6b 1d 2b e1 00 bf 8c
-59 97 11 4f d4 a0 de 77 12 3b e7 76 dd b7 b8 61
-cf 5b 57 3a 38 62 24 5c cd 93 bf 1c 0d b1 53 65
-eb bc da 37 87 bc a0 12 38 5d b9 b2 9a 5f 91 32
-6d f6 c2 6d f6 68 ac 42 28 39 83 db f1 84 66 01
-ad c9 78 c8 1c 5d 9f c3 87 eb d9 6b 0b 2f fc 24
-77 bd 2d 03 7f 51 7c d3 50 99 80 01 1f 16 89 7b
-8c 37 f5 dc 31 aa 95 62 e2 55 fe a0 a0 f3 7a 14
-e6 a1 eb f2 19 b9 86 8b bc cf 09 3d 07 33 9c 8a
-4b 04 c8 54 10 da 49 0f 5f e3 4c f0 c7 f5 de b2
-e2 36 a3 4a d5 48 5a 85 52 5c 63 87 f6 77 a2 bb
-69 3c 26 a9 b5 71 75 a5 07 30 1d dd 65 2b 82 6c
-da c7 ce ee 94 33 15 7e c3 14 f5 b3 c2 8e 9b 29
-11 24 c9 6c c4 82 e9 1a 72 10 da 43 5a 00 79 2a
-69 55 60 fb ec e7 50 0e 2f 04 9e 0c 19 c8 2c 4a
-0e 5e b4 45 a4 0a 4b 19 19 2b 56 1f e9 49 aa a4
-85 68 db 24 1e 6e 9b a1 fe 5d 86 8f 7b 10 ad 14
-32 c8 c3 e7 e7 0e d1 ef fc 0c d3 17 41 b8 9d 7c
-25 c1 79 eb 58 4c 95 a2 31 79 18 5c fd d0 72 00
-61 c2 7a cf 93 ad 05 ef 58 11 55 d6 72 3e 1c 25
-17 ef e3 b5 3e 53 1a 22 3b d1 b7 81 fd fe c4 1e
-6b db 03 d7 5e 5b 4c 73 01 31 f8 5b c9 d3 66 e4
-f6 a7 83 a8 e5 e5 55 f8 33 e6 59 5d da 8a c5 93
-e9 e3 2f 3d 06 13 6c 41 fc 86 38 52 46 69 e9 b6
-12 0b 18 7b cb ac ca 77 7e 4e b5 cc c9 67 06 0d
-af e5 92 f9 94 e5 65 1a 77 90 00 9c 1a dc 43 4a
-89 62 10 c3 d4 33 ee 01 b1 4c f6 a9 5a 52 b1 1a
-bc 05 47 62 ac f4 19 14 34 e7 70 72 a3 16 8d 6d
-00 f6 10 83 3d 49 91 33 7b 66 d1 4a dc 9a 63 81
-30 c8 4b 32 78 cc b7 49 75 d1 ae d9 b7 1d e6 42
-56 09 c0 81 b1 c2 3b 49 63 80 b0 71 66 25 84 d5
-28 54 4c e5 9d a0 ca c1 41 17 76 cb 22 08 05 24
-35 91 b6 2a 75 f5 7f 7b f6 e8 a0 32 07 3e a1 cb
-cf 50 19 e0 ac a4 46 cc 0f 4e d2 4a 53 c6 50 f0
-53 6f f7 13 97 dd 50 50 6f 07 5d ec c2 45 44 94
-22 db 7b f6 0a 9c 33 cd dd 33 5f 49 1d ec 7c 12
-05 1e b1 57 b7 ef 64 71 2a bc 7b bc 5c 86 e4 6c
-a4 5a 95 a7 48 5a 39 ad 19 74 4e fb d4 04 cc 89
-8d 74 3f bf 11 2c 46 6e f5 cf 50 c2 40 ff 34 87
-c9 0e cf 71 aa 80 6f 58 95 9c 6e ba c9 58 7b 0c
-2f 31 7b 28 85 53 fe 1a 35 5c db ea 3c ce 7c 5d
-2c 62 bd 5d 42 97 d8 7e e8 65 d5 2b 02 52 48 19
-bf 0c 94 e2 b6 d8 05 74 7a c2 ae 14 ef 16 84 78
-5f f9 1d a1 67 db 2b 82 a8 9e ff 6b c8 cb 0c 9a
-69 a1 d2 73 18 d8 3a 37 c1 2e 6a 9c f9 73 78 89
-79 09 a1 e8 f4 60 bd 98 20 00 36 67 9b 07 78 9d
-08 db fa 88 e0 f9 51 78 e1 26 41 7b a7 9e 73 95
-2d bc 9e 67 dd 70 58 b5 c7 fa 42 90 d5 dc 61 1c
-50 6f 36 ae 1c b9 a7 36 3b 77 88 82 71 15 d8 72
-c0 8d 83 76 11 6b 1e 76 ec ea ee 24 eb db 2e fb
-ee 8c 57 82 bc e7 6e ff c4 1d 10 4e a1 5d de e4
-4b 24 d3 7e 5c c2 13 32 2b 18 ae 2a a2 d7 85 e4
-3f ad 3a 1a af 8c 54 25 c2 35 8a 55 50 0d f2 b0
-ab c5 f1 30 da d7 3a 26 c0 7b 42 6b 1a 7c 37 52
-6b b9 21 eb f8 02 e5 bb 4b ad c4 72 0c e3 46 8a
-b3 44 f2 77 e2 f7 ef 51 e2 0c be 37 c0 bc fd 22
-9c 06 a2 52 cc 79 38 84 56 44 45 6e de 53 2b ec
-cd 10 03 e6 70 60 37 f4 e7 83 cc 6d 2c 01 1f a1
-35 a8 5d c2 3f 89 f3 78 95 42 4d 6b ca 78 70 2b
-de cc ef d6 f9 c8 07 61 a4 7a 3a 3d 0b 2b c6 9d
-db 22 03 25 78 16 7c 94 d8 f1 8b d7 2f 46 4f 92
-ec 6c ea 15 1f 47 73 7f 6b d4 39 5e 8f 3f 06 e5
-f5 2d 35 1f cc 3e 52 ec c3 1a 40 bd 47 14 29 70
-57 e6 a7 c5 6a 07 3e 49 f7 da 34 3a 6d 2f 99 15
-f5 02 ff 8e 33 1d 05 e1 b0 f3 9a ef b3 71 ac 36
-7e 9a 4d 11 3d 50 d9 0e a2 8b 5a a1 e9 c1 1c ec
-68 0a 15 c1 53 e9 42 ad 18 a0 51 3c 0c 1b fa e7
-85 c3 33 63 b6 19 de dc 3f fd 2b 72 1b f9 c3 91
-6a 2f 2e 11 ce 2f 68 94 2e 67 dc e4 93 36 ad 62
-a2 2f 99 9e 29 67 9d 5d d8 29 22 63 87 7f 2d b8
-f9 10 c8 94 be 29 fb b9 a9 eb f5 41 8f 09 4d 72
-d0 5c e0 65 e9 fd de 17 7d d2 19 6f ea 3d a2 c5
-58 b7 56 7b dc 0a 80 d2 aa 01 49 0b b8 b8 eb fb
-b5 17 b1 2c 7c 73 ab a7 61 cd a4 a6 72 8c 32 ca
-1d fc 04 16 a5 46 ba 28 49 f4 18 65 b2 19 d2 f8
-e5 15 a6 4c ed fb d5 50 25 22 84 c9 69 f3 bb 2a
-25 3d 99 f5 4c db 80 10 00 48 f7 b7 7f 68 6d 98
-d2 5c f4 f1 4a c0 b6 95 58 7e 34 d6 51 37 5f a9
-1c 53 bf c0 13 53 fb 0c 68 0c b0 47 81 8f 7e 0c
-9e ca cd 51 e3 9b 40 b0 af 48 bb 6b 7b 1a 08 20
-51 d9 fb 7f f3 73 11 cb f1 e8 5a c2 0b 32 68 04
-ae e6 a2 fc 4f 58 56 5a d5 79 bf 75 fe f7 38 87
-64 17 ac 7c bc f6 8e 54 bd 62 21 d1 3b aa f6 06
-8c 8a 3c c4 c0 a0 31 23 21 9a d9 83 54 69 fc af
-be dc fa 76 e0 72 29 90 fa 21 8b 49 f5 05 9b 37
-d7 d9 92 59 34 30 94 08 d4 78 a5 d8 d4 5b 39 4b
-9b 62 15 a1 36 a0 05 41 e6 a6 5a 59 15 80 23 5a
-8e c3 29 de d0 ca 16 b1 8f 5e cb 94 78 fc 31 c8
-61 8e 01 fd b1 a8 55 ed 30 3f 6f 61 64 a0 e6 2d
-0c 35 a5 ea 07 56 ce eb e9 21 4d a7 04 37 38 87
-ef 42 ad bc 8e 84 17 f9 f5 60 d1 86 f6 18 f3 aa
-00 2b bd 21 6b 4d 83 0e b5 71 3a 5a b2 5e 3b 92
-02 fe 9d 47 2a 6b a5 5b 5a 79 77 d8 9e 75 92 47
-0f dd df 70 de 72 73 39 45 c9 eb 14 4a 8e f4 b2
-aa c2 e9 0e cd 11 f4 dc a4 ec a5 e3 da 34 0b 2d
-a3 77 e4 44 d4 3f e6 5e f9 2f d7 33 a4 d8 bd e2
-c5 c4 4d d4 84 e4 37 73 8f ad 01 57 a9 16 ea df
-64 26 62 25 2c 01 e3 04 ce ef af 19 7d 99 b0 8a
-98 cb 80 7f bd 3d 91 67 8f bf c1 59 dd fd b4 64
-0a 6c 1a 58 64 58 f5 ad 76 d1 ed 14 50 0c bf 3a
-44 7a 03 12 65 4d 30 79 1d ac 65 df bd 48 f9 d3
-b7 07 67 bb d2 a1 3f ca 58 ae 39 19 bb d2 44 b4
-f4 d6 81 1a 76 b6 34 62 51 54 24 f1 57 f3 f0 38
-55 43 15 f8 2c f1 b3 fb 46 a1 85 1e 15 a5 05 d6
-59 1d 40 4e 74 7b f2 03 df ad 52 ea 2f 1d 0b 0f
-5f 2b 82 62 7c 9b 02 c5 e0 3c e0 5d 41 b7 aa ee
-22 9b e3 8a 92 35 4d 54 d1 58 64 d9 b6 a7 2d 71
-59 8c 1b 59 a0 e2 dd 82 69 b5 90 1c 97 2a 68 d1
-7a 8e d5 c0 e0 8c ff 8e 89 e9 61 65 1a c4 3c 70
-ba 5b 63 75 16 70 1e 75 8d 1f fe 13 e8 ae 48 38
-4e 62 d8 d8 0e ab 3f 7d 47 71 4f b6 db aa 16 fd
-33 dd 54 1e 92 b3 4e 95 18 ac e3 f9 4c c7 30 57
-01 a7 a6 9b af 5b c6 5e 13 f6 7d 4e a1 48 e5 14
-3e 49 86 ce cc f4 b3 de 62 e3 a2 5d 2e 25 d4 73
-b3 0e 47 0a 4a b5 22 88 a7 43 a7 10 3a 82 ba 6b
-05 42 1c 1e 66 57 9e 3a 1e 83 db 00 ac 0c 63 e5
-75 1e 24 47 7b 5d d9 61 bc af 9e 49 cc 6e 59 05
-73 2c c5 a1 0c ef 8c 36 d2 9a 0e 1e 52 d7 6b 0c
-df 37 7a af 42 d6 d1 92 d3 4e 88 30 0f 9a e0 70
-1f eb 6e 67 98 3d 28 59 21 a2 ce c5 63 a1 e0 71
-12 5b 62 3e 91 b4 54 51 d2 33 22 d0 3e 6f 98 9a
-0e 1e e0 dc 68 b2 dd 75 4d 57 85 b8 f2 45 4f 6a
-16 fd b6 4c 45 d2 af 09 ba a4 19 3b 26 9e 97 1c
-61 ce 31 3c a5 8b 07 12 6e 27 29 cc f2 e0 fc e0
-f9 7a 8c 85 d2 01 53 20 c3 e5 f4 eb 29 dc 77 6e
-63 55 14 03 9e d7 f9 2f 32 a5 99 b4 df f6 cb 2b
-46 85 bb 16 6d 3d 10 1c eb 72 04 a1 83 14 a7 d8
-e9 86 3c 8d 58 e6 2d 0b 7c 48 b7 2c 35 9d 55 27
-ca c2 f0 1e 5b 74 c3 62 93 a7 76 80 dc f5 73 8c
-7e 9f e3 b3 a2 cd 76 b1 2a 0f 02 6b 79 b4 64 c4
-92 11 be 8e 13 e7 a5 9b b2 4b 78 61 60 95 37 2c
-cf 49 98 50 c7 1c b5 8d 80 d6 e5 0f 6c f4 58 0a
-0e 58 e2 d7 c4 e9 47 37 63 b0 d5 83 76 21 a2 54
-b9 6c 86 75 78 79 42 94 8f 3f 78 67 1f b8 9f 76
-61 9a 2f bc 18 43 d4 02 b5 18 f5 60 5f d7 b2 d5
-b8 cf ae 80 3f 42 83 c2 d3 83 c3 be ef 33 ec db
-77 31 f4 62 04 07 e9 df 56 1e 5d 23 27 26 20 2e
-76 6e c1 cc 00 09 a8 e7 46 cd 32 ec 2d 89 7f 09
-ae d7 a7 be d5 a1 29 03 5e cd 49 86 ad cc af 79
-56 bb 62 00 28 2d b1 36 02 97 66 e0 49 3b 4b 78
-b2 63 f2 ca ff 30 0d d6 80 af 98 4e 16 39 f7 70
-bc 45 cc 3c 15 14 88 2e ac 70 bb f4 db d1 46 08
-3a 18 fe 01 4c c1 89 e8 71 bd b8 c4 e5 00 18 b0
-8f 77 f0 80 99 f0 23 43 f7 0e e9 b2 2b 36 09 fb
-c0 ba c8 13 36 36 da da b6 8f 7d da c8 76 ff ed
-c7 b6 12 56 51 8f 55 c7 ad 7d ad 31 5d 14 02 d6
-b8 6e 0a a6 a0 5b 88 6e da 1e 9c cc 41 5f c0 b4
-d9 6f 92 68 16 77 cf bb c5 94 57 d1 53 50 e9 09
-96 c7 a4 27 9a 88 fe 0e 8b 29 70 3b 96 ea 1c 70
-de 02 48 f6 ef 3e 27 28 2e 4d b7 32 d8 7e 39 b9
-e6 bd c6 e2 10 ea 2f 8c aa a3 90 fc 8f 48 e8 37
-ef c2 d4 33 29 a1 2f 65 95 d1 f6 de 66 05 db 82
-14 fc 8f 1e 99 9b a3 8b 88 3d 54 b0 d6 39 b5 f9
-9e 6a b6 20 bd 7a 6a 6a 51 3b f7 92 81 d7 5b f6
-b5 64 86 0a cd 33 d3 4d 4c ea 97 d7 dc b8 26 b4
-9d a4 d5 9c 10 14 84 d6 75 29 64 7a 3b 94 0c 63
-3a 51 dc 41 6d 88 1e c9 cc 26 dc b5 19 ef e9 19
-d5 35 36 ff 1a de 53 ee 2d da 34 28 dd d0 65 3c
-a6 c8 ba a5 1f ed 84 d7 95 0a 04 82 1f 34 2d 88
-37 ed de 1a f1 1a 18 7c 96 ce 24 89 8c 82 18 4f
-e7 60 f7 39 9a 45 05 56 08 17 a1 fc 1c a9 d7 cd
-a8 f4 ad 35 75 c2 46 c9 8a e6 db 74 75 14 72 9d
-d9 86 5c 64 01 7d 5e c5 62 92 9e 45 02 2c 3c f2
-dc 9a 71 55 01 c2 70 fd c0 27 e9 3c 0d ea 1f a2
-b7 16 25 99 10 6f 39 e8 08 51 d0 8f 34 f9 c1 37
-9c f4 1f e7 96 21 3f 00 5b 12 78 98 38 44 20 df
-06 0d df 18 88 f3 2f bd a1 4f af 18 7d 2a 47 8c
-2d 9f f6 36 67 c4 f4 ea d3 1d 59 6f cb aa e1 56
-c2 2e af 66 ee 65 64 b6 2b ab 19 c1 d5 aa 62 ef
-32 84 d5 1f 2f 5f b2 55 51 5d 50 5d 8b 8c 32 9c
-7e 54 7d 09 ca db 1e 82 38 ec a2 65 10 c7 bd d3
-b0 66 1b 8f cf ad 1a 91 a4 fc 8e fe b9 79 51 53
-0c 9b 8a c4 0f d9 b3 01 cb 1d 93 09 5d 2f f4 cf
-c0 ce 5a 2c c0 02 c2 a3 19 d7 5d 10 3a 80 45 3d
-ff a4 6e 49 1c 0d 07 63 fe 06 bf 09 09 7a f5 41
-57 99 a0 fd a3 e5 b2 90 cd 25 e0 fb 9d 66 ad a2
-eb 01 91 09 4b 75 23 c7 07 a5 0d f9 e2 79 3c 1f
-6e 39 8f 1f 06 a6 9e 9e 6c 70 45 ce 04 ab 38 40
-96 75 34 8e 74 c2 56 50 7d 81 6d f1 bf 9b b9 e9
-f9 8a 2d 02 94 62 2c 0b bf 96 7d 3f c8 48 0f 54
-bf d3 af 39 08 5a 52 85 fa 9b 8a dc 01 8c 97 8a
-77 ec 4a 43 34 13 d7 9d 8d 1f 8b ec e1 4b 90 db
-ac d9 11 96 3e fb 8b 6c 36 98 bc e8 8f a8 bb 67
-0d 92 fa b4 d7 2e 95 d3 9c f2 b2 ce 76 9e c8 e0
-92 56 64 53 59 7d e9 9d e5 10 30 97 62 94 61 3e
-42 a8 c2 9d a4 16 88 0d 94 5d 6d 0a c6 18 3c 3c
-90 b8 21 38 41 3e e9 3b 81 94 f2 22 99 79 09 65
-08 4c bf 9c 90 cd aa aa 45 8a 48 30 3c f2 3c 55
-9b 48 c1 4b a4 a2 6b 1b 57 1e cf 58 ec 19 50 24
-4f d4 34 fc 94 7e c2 ab 93 07 13 49 7e 8f 26 24
-e9 2e 4a ef 9f 43 e5 c9 d7 50 4c 38 6c 5c 77 25
-56 9f 22 81 02 00 6d 80 d5 83 6d b5 c2 dd 46 c5
-56 23 a3 94 a8 35 dc 72 05 85 ac 7a 34 a1 b3 21
-d0 a3 21 e7 ae fe ef 19 15 7d 79 2e ab 37 51 a1
-c1 95 14 be f6 c4 70 ee 36 ca 29 90 b8 3c 63 fc
-9b 1d 80 ca 28 3e 7d ac 6b e6 da ff 90 bf 7c 2f
-32 2f 9e 03 5b 50 83 8e bb c5 02 c0 af 06 79 05
-f7 8e 76 e9 eb 96 d2 a5 e8 f7 a6 54 ac 6c df 35
-91 c7 24 58 74 4a a2 ba 4b 5c 23 1b 2f 98 d5 dd
-30 5b ae 2a 7b 23 6f 2c 46 a9 a0 12 c7 bc 5d 4b
-6d 52 79 f6 c5 d6 a7 83 cb bf 22 dc 73 8b 34 ba
-d4 e5 74 8d be 11 a8 20 88 6b e0 92 5f cd 10 6b
-98 6c 91 83 55 8e 97 c3 e3 17 5e e0 8e 2d b6 f7
-18 5b 1b 20 2b 47 a4 7a 94 6c 54 ac dc 9e e0 b4
-3b 7a ce f5 57 0c 12 bb fd 16 ec 21 01 8a 8a b2
-f9 3b 87 c0 a7 b9 e3 52 be db 44 9b 2f 67 e5 8c
-22 70 99 57 42 8c 26 ed 8f 94 29 01 4f 54 aa 87
-07 0e 28 4a 0e 6b 17 97 fd 34 d4 19 9a 4d 3b a5
-97 76 1b 7e 92 a4 23 f2 0d d0 58 a7 30 77 69 33
-df 7b 11 46 45 a6 73 38 e4 85 e3 c4 b4 af ce 28
-99 1e 60 63 e8 b5 ee 27 29 b3 0b 0d 49 3e b0 e7
-0e b5 e3 64 d5 65 f8 c6 07 8c 3a 4c f9 75 02 d0
-4c 6c ef d6 ba cd 8c c3 ac 82 e9 ae a4 14 cc ac
-3a 2e 69 f9 1e 54 d1 81 86 13 9e 56 5a df b3 3c
-d6 c2 f9 08 d2 3f 81 7d df fa e6 ef 42 01 86 d4
-e5 32 87 bf 14 2c 20 08 4e 9f 70 5c 0b 76 ce 29
-a7 82 20 09 b5 ae b0 72 d6 0e 20 44 de 1c d7 80
-1a 24 27 d9 72 1c 94 a2 0d 85 21 bb 95 c6 1b f4
-e0 00 c8 d3 80 53 57 bc ab 83 37 70 d8 ab 4b 08
-eb c8 00 22 37 2e 01 ea 76 2b 4b fa 83 ef ab 36
-49 2b b8 bd b1 e0 f8 23 48 60 c7 5d 1e d9 0e 2c
-fa a5 32 57 2c 4b 8e 4f f8 ae cc 88 25 25 43 3a
-5b fe 13 cf 29 07 6c 04 73 fd 6c 73 4b 76 57 7d
-35 75 df 23 1a 1d 5b 53 2e cd 2e e4 05 27 a8 57
-22 ca 97 b2 27 a7 12 d7 06 d6 67 6f f2 d7 f5 7b
-fe 0c 87 3f aa 2a a1 14 4c 42 e3 85 36 35 f8 67
-f1 26 dd ce 14 74 dc 32 69 8e 22 b9 1a 39 c2 9d
-4f be 5a 54 01 50 06 f2 0f 5e c6 9f 61 23 2c 4c
-a8 53 46 86 05 be ba 82 f7 f2 05 4d 22 69 7f 96
-6d 46 63 31 d4 b1 05 fc d9 dd 44 cb 02 c4 15 87
-4b d7 68 41 7a eb ee 74 c8 24 3b be 52 4c 72 4c
-79 58 a4 4e 4c 1b fc 7f a3 90 91 28 c2 4c fd f2
-f5 92 7c f1 97 df 03 f7 8e 2d 69 1c 7e 8f 38 98
-93 58 54 47 5f 34 0e 57 f5 56 a8 cb b0 82 7f fb
-bf 65 f8 85 b7 67 09 eb 5d 45 70 c4 f1 8c 6e e7
-14 8f c1 c8 4b 67 b0 57 5b 08 23 87 d5 48 b4 99
-0f 13 0c 69 99 6c 31 6a a5 7f 8b f3 10 e3 3e c2
-5f 79 6b 53 fe 78 8f b8 9d cc 7b 6d c1 d6 57 04
-3d 68 80 06 db 27 5d 21 50 26 87 d6 1b a5 bb 0e
-26 2d ac 1f da 49 5e a4 2d a4 bb c9 e0 4b 4c 35
-7c 69 ac 9c da ad a4 98 67 fe 9d a6 f1 67 af 0a
-45 e7 a5 d6 96 2f 0b 60 36 83 df 15 ab 6a 8e 42
-f2 6b d3 ed cc e7 d0 ba 9d 03 43 a9 48 80 71 95
-3b f2 19 13 ac 41 55 ab fc b9 eb 41 0c a5 21 e1
-2a ff a2 67 d3 62 df ee 85 87 99 44 1c 0c f9 af
-65 9b 0a 73 19 85 fb 31 35 ae 5a 88 eb 82 84 1f
-69 04 c1 e2 ee 64 53 f9 ae 3a 62 37 49 15 af c5
-c8 45 17 8f 97 70 b7 0d 72 d0 e3 ba cf 92 07 a3
-bf c9 07 eb ae 82 42 07 a9 84 3b 39 76 31 74 69
-8c 23 a0 f0 03 ae 6d e6 16 1d 9e c5 f8 24 49 3e
-75 b7 45 44 f0 a9 d7 34 3d 71 41 2f 46 39 7d 0f
-d9 cb 60 55 da a1 c4 b8 be 6c 40 c7 02 00 a4 f7
-bc 5f 58 6f 92 c6 3d c3 cf ca d9 64 7a f2 24 db
-d5 4e 27 9a 12 27 81 c3 e4 73 51 ba ab 94 45 52
-c6 29 0b 9f cb c3 8a 7f 00 ac 8b 8c 0b 6d 8c b1
-05 76 e7 4f 80 a6 13 bc 49 30 6e 33 e4 34 f7 e2
-50 e3 33 4f 50 ee ba 08 06 c9 c6 b3 fd 33 21 97
-04 bc 16 a4 43 c7 11 76 8e 85 9a 10 18 b9 20 86
-27 b8 d9 c5 58 5d 9a 07 ba 4d 81 04 b3 58 ef 2f
-d9 c9 1f 0b d3 9b 7a 00 a2 92 74 1b 0e 47 8a 64
-90 e2 31 e6 2c 68 c7 77 02 a9 ba 20 43 a3 fd a6
-bc 69 40 31 e2 b8 5c 02 b7 d6 d7 a3 91 2b 98 c9
-71 30 c8 38 d8 2b 29 1a da 7f f9 f7 ef d5 42 6d
-43 a1 b3 21 30 ab c7 6c d6 ed f3 71 19 f0 15 1f
-f0 72 9e 13 4b 55 cd 12 db 86 d7 33 a2 f2 31 23
-dc 92 1c 53 b9 30 5d c5 df a8 d5 04 92 e2 4b 73
-30 b6 24 bf c7 d7 22 36 87 3e df ae b4 93 03 9e
-e8 c0 65 e2 d6 52 fa 13 b1 7d 68 ad 2b 73 44 6d
-9a c9 4f ec f9 54 6c a7 c8 b9 8a ac e9 0f 95 4a
-94 1e aa ae 3b 15 01 03 e4 76 e9 0b 83 25 9b 78
-f5 e8 b0 a3 3d 70 79 d1 54 2a 7b cc 37 a3 0e 43
-9a b2 98 a1 c0 0e 45 50 56 db 8b 3a ee 0a 21 60
-05 a2 4f 34 51 06 eb ac 9b 06 07 a1 2e 12 c4 7e
-d9 c3 a3 fc 46 96 3b 71 72 0b 66 47 5b 7b 80 48
-90 d8 0a 82 73 41 a6 d7 50 0e 46 62 e4 b2 d5 ce
-6a bf 25 16 20 af b9 4a f9 a3 70 01 96 92 dd 59
-0f da 7d ea a5 3f 7b 7e 3b 2c f1 60 4f 1d e6 d0
-37 0c 33 d9 55 af 6a 9b ea af 5e cd 18 7e d0 cf
-0f 3d f8 b2 be eb 88 48 92 80 6a 1f 25 ed a8 04
-90 4c 90 8a 53 55 a1 f6 8a 4c 73 1e dc 02 30 72
-8b b9 75 46 53 d7 6a a7 9b 4c 7e ae bd fb d2 ca
-87 bf e3 3a 40 8c 66 17 6f 5b 7e 37 51 e3 14 28
-c7 6d e9 4a 28 da 32 6c a3 d0 7d 89 d6 49 ec 71
-ba c9 1f d7 d5 13 02 da d6 0b 42 a1 8f 89 95 8a
-fa 1a 08 74 c2 e8 d9 01 91 b2 91 e6 a1 2a 81 90
-cb 00 6c 39 9c c4 6c da 72 ef 56 37 16 9a 00 e0
-f0 e4 ec 4f 8a e5 c4 5d e7 6d 95 7b bf 62 52 ee
-c1 a5 2f 51 87 be b3 88 60 31 78 76 55 0c 43 72
-55 46 23 32 54 a8 60 15 76 f0 41 3d d6 46 0e c9
-39 0b d4 5a 12 a9 b2 b3 3c cc 9e e0 59 2d 5f 7b
-5c 61 b6 99 03 dc 02 99 78 53 c2 46 f3 46 0e f7
-a6 82 a2 70 85 26 4b 07 4f 57 df ad ab 7f 0e 24
-19 15 be 2d ca a2 c2 cc 65 1f a7 17 a8 b1 75 b3
-4d a4 30 42 b7 bd 9e c8 69 7b 81 b5 b0 cd 75 76
-9c f1 a6 f5 7e 95 a3 d5 7f 2e a1 c3 3e cb 47 74
-6f c5 98 50 16 df 9c 9f f2 df 9a 77 b7 5f fb c6
-93 6b 74 4d 45 f4 2f 73 b0 0a 2f a4 5e 04 f8 4c
-ad 69 85 97 50 55 fb 07 5d 1b 42 6b 54 c5 34 f1
-65 85 e0 91 54 18 72 ec a5 67 85 63 1a 05 9f c5
-f8 39 98 cc e5 df b9 8c 2d 92 13 79 05 26 ec f2
-bd b6 42 58 a9 41 97 0a 72 76 6c 5a 4e 62 12 dd
-ae fd 7d 7b f4 ae 24 e8 0c 66 de 35 d9 66 cf 01
-d2 de 6c ca 41 2b 67 27 ae 20 5e 92 50 1f 07 0c
-25 94 f4 d6 a0 db 2b c1 ac 06 32 50 68 94 50 51
-86 53 01 d0 be 7f 4e a3 f5 b5 03 09 bc 37 d1 ad
-aa 61 d3 ff b9 20 79 c3 f5 a3 65 16 0d 49 73 74
-64 6a 4e 08 1c 6a db 38 4b 72 b1 44 38 39 82 f7
-8d 17 7c 90 35 83 4f 2c 0f 40 d6 5c 90 1d 04 a0
-1f c9 c8 3c 92 77 fa c0 ff 78 5b e7 b1 12 6c 12
-ad c6 e9 18 7c 30 04 06 04 39 b4 95 ee d5 e1 ec
-d4 f0 95 81 51 be b1 03 45 5e 11 b2 68 49 04 26
-bc 2c 2d 57 81 f6 9c a3 b9 d6 c9 ac 13 e5 38 76
-3a 16 a5 63 c4 6b 43 7f de 95 d1 07 d6 a1 bf b2
-e3 35 7e d8 60 83 9c 1b 00 a9 97 b8 8a cf cf 2c
-09 83 42 60 9c fb 6b 39 a1 52 7a a6 e4 f6 d2 97
-f3 4c ca 0a 72 58 30 7e f7 68 0d d3 a8 aa 61 c1
-dc c4 b1 64 6a 5c ee e8 3e e5 83 df 26 10 ae f5
-b8 21 e5 82 c4 48 24 f5 ce ac 23 06 60 8b 53 14
-f1 0c 06 15 5f fe fd 53 23 79 d4 b3 24 ae 32 ec
-07 56 20 af 35 a2 2c cc ff c6 40 e2 78 a6 d5 e5
-28 a6 a5 ba f8 35 d8 34 52 0a f9 cd bd a0 c1 32
-4b e3 d2 0e cd 4f 94 78 1e 23 96 98 2c ce df c6
-12 6c 6f 9f 78 d2 07 ef c9 c5 a3 2a fa 6a cd 07
-91 d8 ac 05 6c 0b 82 80 89 30 53 45 98 7a e2 b7
-41 38 70 b5 3a e3 68 ca 38 2f 1d 87 c5 84 d4 ab
-f3 73 eb 80 7a 56 4a fd 4c e3 3a 2d 43 1a f2 e1
-4d c7 5c c0 fc 05 aa 28 bb dc f0 a5 ef 96 96 28
-db 04 28 25 21 7d c8 9b da 51 9c cd f8 ce bd 49
-7e 25 6b 10 c1 57 27 9b b9 67 c7 a9 2d 9d ee 27
-14 ed 3a a2 ac 0f ed ce 4e 25 e0 b5 94 ae cd 6e
-c9 e3 09 7b 55 0a 32 2e 5b c9 db d0 02 d5 d1 bb
-35 2d bc 79 59 cf a5 c1 79 fd 5f 26 3b 22 3a 37
-93 4e c0 88 42 4c 20 a2 77 2e 9e b2 d9 cb cd e3
-ff 15 8d fd 70 81 40 ce 85 3f 1b 38 e8 60 d9 85
-5b d9 67 03 85 3f 3f 4e e0 ba 99 2f 4d 74 1a 3d
-59 55 ef 91 f1 07 76 2b 58 11 59 8b 1d 2a 0f 3d
-85 76 f9 7b 11 fc 52 d2 e1 4f 15 c3 50 c8 b7 5f
-c4 c7 44 2f 02 a8 38 b5 0e a5 ae 26 80 98 8d f7
-3f 31 cf 4f 91 e0 37 5b 10 15 a6 8d e5 c4 70 14
-00 f8 ac 51 d7 57 e4 db bc 7c 13 48 b2 b8 8a d4
-a7 af 36 89 61 6b a2 f7 a4 31 32 ed 3f 5d a1 e1
-0a 3b 80 98 f1 fe b1 96 3d a1 72 a3 bc 04 90 ab
-1a 2f aa 1e bc 41 1b 0d e7 3e c9 13 6b 1d cb ee
-ff bd 65 5c a7 95 b4 65 34 6f d2 7c d9 fd 31 8c
-65 cd b4 03 21 b5 47 59 3c 3b f9 d4 93 2d f6 bd
-d3 a5 08 e3 f3 97 bd 2d d0 89 b7 5a 5c 2e 88 8b
-fc fb 02 58 66 e6 39 db b2 9d 51 7d f7 de 21 70
-42 47 15 2d b2 81 df e5 fe 11 6a 63 70 6b e9 a0
-eb c9 46 13 04 8e c6 46 c4 3b d5 cb 54 4a cc 98
-b5 e5 6f 16 48 17 1c 1e 1b 52 ab 29 f9 05 66 39
-3b 5a 1b 3e 80 49 89 34 a1 0c fc 86 53 f3 16 8a
-be 04 e5 f9 88 25 8d 59 af 2d 5d 51 a3 b9 86 93
-94 12 64 83 81 30 82 91 36 e5 42 7b 07 40 58 2c
-9c fd 90 97 39 87 f6 51 ec b7 a6 86 ec 18 fb 89
-a0 c3 26 90 92 51 00 23 e5 a2 f0 96 e2 74 a3 ed
-8d b6 6f 01 9b c1 05 90 26 66 8c 6f f8 e9 a1 ba
-d7 df 2c a6 5c db 52 20 22 1b 03 6a df 91 93 a8
-92 5f 46 58 7a 10 39 b7 80 b0 70 61 b1 20 34 56
-8c 00 c4 f3 11 67 cf ff 0b 9d cd 20 12 b7 81 46
-74 a0 4f 4f cd f8 47 75 8a 79 2a e9 ef 28 57 73
-88 6d 11 5b e0 8e ce 0c f6 b6 e5 2f 75 98 36 08
-60 56 d1 93 8c 19 36 36 b4 44 2f da c8 af d5 75
-0b a0 04 28 a9 4c c2 4e a2 70 02 c9 b4 31 74 99
-d7 ca 55 d0 2f 51 03 5b 78 7e 89 64 fb 13 56 40
-5c 3a d4 fa 4c c7 83 23 59 b7 27 4d 47 91 c3 5f
-73 6b 10 91 ee 56 f2 13 36 03 95 d2 60 22 d0 20
-5d 36 0a 1b e7 ae d3 97 b0 f0 3e 58 e9 ae 3e 68
-05 e5 4f ae 69 84 28 78 44 c4 b0 8f b9 84 58 1d
-8a ce 9d 7c 5b 13 7f 91 00 b2 b9 d6 1d 9d 42 2f
-34 71 c4 a8 32 51 72 81 e1 19 63 94 fe a5 1f 63
-d5 33 a3 61 bc 3e bb fd 90 b3 8d 92 3c ad d4 4a
-eb 8e 82 b0 58 8c 20 e7 06 13 76 41 77 6a 6d 0a
-df bc 1a fe c1 fa 78 b5 47 12 d2 be 5b 79 db 6a
-5f 5f 31 fe 49 ef f8 d4 aa 9c 7a dc 3d a1 66 ad
-9d 8d 7d 34 3b 9b bd c5 88 36 81 59 80 27 86 af
-5f c4 52 7d 61 9e d4 a1 c0 5e 98 d7 ec b5 01 7a
-e4 b1 ba f0 82 bb ae 59 a6 d9 c5 d0 95 a9 a2 74
-47 2a e2 83 bf 00 2b 82 92 e5 5b bf 58 09 b6 20
-eb 55 af ac 11 58 c3 b8 02 f7 1c 70 48 f0 93 6d
-ea 81 b5 71 0b ff 64 24 e7 a3 eb a2 8f 96 cc ef
-4e aa 4f 5e 00 dc ad 82 28 d1 2b bb 9d 25 37 d5
-92 47 3d a6 0b 7e e6 53 18 89 7c cf 23 82 57 e5
-b9 f1 eb 01 42 45 1f f6 f6 ce 27 73 4e 2a 77 c1
-10 04 6c bd 07 92 b9 ca ba 52 48 82 19 1d 06 29
-c9 4f 6c 4f 06 d4 db 87 a2 5c b7 85 64 17 4c f7
-83 62 3c 62 0c 8d 46 4e e8 ef 52 eb 50 33 15 ca
-52 97 a4 74 aa 14 34 7a bf 80 0a 9e 8c 38 b2 ad
-bf 70 6d 51 8b 1b 09 20 3c 45 f4 c3 17 16 7e e5
-97 cf 65 59 d4 b4 e0 18 60 d5 c2 14 c0 20 27 85
-22 9f 56 68 3a a4 45 f3 f9 a5 bd 56 6e 10 44 e5
-48 e6 39 49 dc 29 ee 85 cc a3 48 12 65 7f 5f 49
-87 07 3b d7 89 97 3f 14 b6 55 c7 01 84 e4 8b 5d
-e1 da 43 9a 93 56 b4 f2 33 e9 62 c9 5f 5c 92 4c
-4f be 43 4b 5f 46 aa 44 c1 28 be 59 c7 f2 c8 e0
-d3 12 79 46 92 f3 65 d6 db db 5e f8 8e 69 35 10
-f9 80 7e 78 a1 3d e0 18 f7 c4 c5 4c fe 82 ea 9f
-26 3a 4e 25 26 8a 82 64 11 11 b8 dd e2 8b e9 1f
-f7 b7 13 55 4f ab 50 a4 d5 8e a7 aa 87 9b 75 8b
-72 80 c3 cd 51 48 f4 78 b5 8c 01 33 7f 25 11 33
-0c 25 7f 33 88 66 2d d7 a7 69 58 aa ca e5 85 1e
-72 76 ca 7d 58 a9 13 ba 25 4b 6a 6d 3d 57 82 75
-49 67 80 62 d4 3f 5b f4 22 3f e4 c4 4f 92 dc f3
-9e 6b 46 14 64 e3 cd d9 88 91 ff d8 81 ce d5 44
-df 96 58 5a 2d 8f 42 83 e8 35 ac d9 b2 a9 49 9b
-ce dd f5 cf ee 4e ae 31 11 b4 58 78 d4 20 9f ca
-e2 15 6f 60 5b 2a ac 00 3f 04 26 c3 ad 3e 75 33
-7e 64 4d 23 13 1a 86 71 c0 e5 ff c6 03 b8 eb f2
-bc 20 71 cc db cf cc b9 98 f3 da 3d fe 4f 6b 3f
-5c 70 04 89 b8 31 2a 97 28 ba c4 57 ed 5b 22 59
-c1 44 27 6c 30 44 a8 4b c8 a9 33 f1 99 47 8f 56
-e0 33 bd 52 22 70 b6 88 44 71 4d 0e 1d cc 9c cb
-5c 96 b6 a7 de 59 14 12 de f0 44 84 9e 74 1a 98
-5d de d8 f1 4c b5 8c d8 61 28 e2 aa 6c c8 38 c6
-2d 61 1b 05 21 73 62 67 3d 81 ff d5 6f 4b 22 1d
-b9 03 61 8c 8f 21 3d 7f c4 98 a5 c1 f7 6c 3b 23
-45 91 e8 57 23 1f 04 d9 c0 a4 ac a4 36 9d cb dc
-9f a6 1e 96 c3 f2 21 30 6f e1 e9 cb 02 33 16 cf
-95 d6 86 e5 b7 f5 b3 4d c5 77 30 36 7a 0b b6 30
-35 4a 29 ef d3 e0 c3 d5 0c 50 6b 75 e2 68 46 ac
-b0 94 67 41 ca cb b3 70 8c cb aa 15 f5 d9 9f 5d
-94 7d 93 03 9f d1 13 3f ba 48 5b cc 93 6d 63 67
-1c d8 a1 4b c9 d3 29 e6 85 94 5e ea 73 84 9d 27
-0b 65 15 7b 39 c4 ad 3c 4b dc 04 f5 3f 1b c6 a6
-55 11 2b 7a 46 68 28 13 2f 3f fb 19 bc da 11 42
-25 48 8c 25 02 0a f1 ff a5 c3 53 30 e7 b0 6d 5e
-79 b2 50 d2 65 82 aa 6c 52 cb bc 20 f3 fc 8d 0b
-b5 ca 47 24 21 c2 5b f7 91 fb dd 95 75 e2 37 e7
-51 5a d5 71 79 17 5e 0a bd 40 ca 2c b0 e2 c3 84
-c7 c7 e3 58 85 80 99 37 aa f7 df 10 eb 3d 27 fd
-48 5e 8a 1d 3e 29 8d df 93 ed 58 8a 6f ea 5c 96
-fd 50 51 d1 e3 84 65 10 16 65 c5 46 b6 78 d1 73
-c6 89 2c 31 96 2f 18 04 10 b3 17 d4 d2 d2 a7 ac
-8d fb 1a fa 77 b8 0d 26 90 1a 0c 03 cb 72 36 5d
-a6 4d be f4 e9 76 8d 6d c4 bb 9d 7c e5 00 ec 77
-39 f9 48 cd fa ee 15 13 13 f4 16 34 53 4a a4 32
-a7 bf 11 c5 d8 8b 59 15 45 45 89 8c 10 4a 4f f3
-9d e1 9a 08 76 cd d0 ce 6f 55 96 ff 2c 71 42 c4
-0d 27 6c 3a 72 71 dd d4 f2 4b ae 15 2e c2 95 bc
-1d 41 ad 89 f4 87 9d 30 d3 b0 1c 8e 05 64 a0 1b
-f7 ef 9f fa f1 95 8b af 8d b3 ef 2c a9 96 64 c5
-ef 0b 57 8b fd f0 00 6e 61 ff 3e 55 7c c9 d1 f3
-73 51 f2 46 67 ee 6c 07 4c 8a d0 a4 28 9d 06 c7
-70 59 c4 a4 e3 ad 01 0f d2 5f d8 a2 2c 6c 0a 92
-ee a4 92 76 ab 20 e2 66 0b f4 18 0e 42 ad cf 92
-98 2a 06 6d 04 82 d1 8a 2d f3 4c 02 bd c5 a3 c9
-2c 7b 02 e5 16 ec c2 0c 0e d6 f2 dd ea b4 bd e2
-4e 56 3c f5 98 88 5a c8 50 85 8a de c1 a5 e5 34
-d5 8b 21 02 26 2a 77 20 b6 71 8d 45 99 74 86 6f
-d6 50 9f a0 e3 78 ab d5 be 5a 7d 89 8b 2e 0a 4d
-78 9e 81 e7 71 1a ae 68 1c 68 0f 5e 99 0f 67 d7
-3d 2a 2a 3e 4e aa 8b 3d 3e 14 19 f0 80 f6 1c b1
-c3 fc 70 96 a7 c8 68 66 cb 46 a8 da 7c cc 29 33
-0e 30 03 f4 51 5d bd c0 55 96 ea f0 8c 02 81 0c
-8b b2 ac f4 c3 1a 63 5e f8 89 9a 55 39 e6 f1 95
-fd b2 6a 0a 05 85 06 d9 17 8b 7f 32 14 8d 7d 08
-df 24 73 31 06 e3 d9 80 bc 6b c4 48 2f b9 fd 14
-28 9e a8 83 3e 34 c4 a6 b8 38 0e c2 30 20 87 92
-78 f4 ae 0f a2 5d 3b 39 eb 84 22 24 7d 82 06 1f
-b2 e5 25 7f 3e 85 06 c5 cd 95 d7 9f b2 e1 58 3c
-61 72 8c c7 b2 b7 c6 50 32 12 2d 1a 31 59 21 bd
-1b f8 59 1b 20 e7 5f ef f5 8d fd f4 fa da 40 40
-79 26 5d 22 e6 92 6b d3 29 8b 40 37 f9 26 b8 f8
-3e 8b b2 bd 3c af 68 ef fd ec 0a 8c 7d 6b 78 89
-db 50 3a 99 d9 ba 6e c9 4c 06 39 d6 6e bf de 57
-bc 65 ed 92 02 d9 98 99 92 2f f8 62 0f 5c 89 4c
-ba 45 86 37 ba 62 a5 fb 7a 8b fc e5 b3 92 e6 a9
-70 5f 58 b2 8d e4 19 eb fc c7 a5 d2 5e 6e f0 d1
-71 41 f7 4f b9 cc 5b a5 4b 44 9b 80 d2 fb 75 a1
-fb df 88 0d fe 25 c2 e6 1b f4 a4 c0 7f 67 c7 4d
-bd 2d 11 79 fa 67 3c a5 69 da e5 22 84 1b 4a 49
-c3 4f 94 e1 03 82 ff 08 75 40 af eb 46 94 4a b5
-90 a5 f2 f2 3e fd 41 1c 30 f9 01 61 93 97 22 47
-e6 99 5e 31 76 39 4a 1e 7b 3c b0 b6 e9 69 7c 93
-a7 b9 aa a2 5d 81 44 05 18 22 0c 4a 98 24 dc ca
-ea 0e b1 dd 94 da f1 5a a7 3c 60 40 74 12 9b ec
-a4 7a 93 65 fb bf 52 90 80 a0 35 39 7a 9a 17 a6
-64 4d f2 9c 9a ed 07 1c 94 6a 36 35 3e 0b c2 8c
-84 a1 71 be be b3 0d 83 d5 60 09 0e 43 28 f6 5e
-65 c6 1f cb 69 81 a7 06 a1 40 2e 81 83 f1 a3 e5
-b4 2d 1e 6a 99 74 44 77 cb ec d8 72 9b 6c ab a2
-90 fd 23 b7 06 7e 74 ad 89 70 bd b3 98 82 a7 b7
-76 16 72 b8 3e 59 2a d6 d4 e3 34 af 30 fa c3 28
-1a 6f 25 61 af 9d 4b 5c 8c 74 a6 33 d6 7c 87 c1
-0d e3 89 d3 b2 d6 88 91 64 c4 c0 8e e0 69 fc 51
-58 36 72 0b eb a5 6d e1 00 a4 1e 54 a3 e5 25 4c
-eb df ec a3 d7 eb 83 52 85 a1 a4 54 2d 7d 76 26
-bf ac 3d e7 75 24 39 b8 07 05 a3 13 36 b3 78 8f
-fb 44 eb 42 45 ec ec a5 b1 98 ac 89 74 bc 5b 57
-5a 3d 41 0b 8e c0 8d 99 0d ee 63 17 58 12 dd 5b
-0e 44 f4 7c cc 01 bc 39 c7 7d ee b4 91 d3 d0 a1
-d7 a3 c3 b6 19 02 7b 88 b1 f7 48 3a f7 e5 74 be
-40 a4 a6 52 77 e3 bd 4c 7c 84 ce eb c3 52 e7 14
-c8 47 bf df c6 b0 77 2a e6 b4 5c 21 a6 bf f6 ad
-43 23 ec 79 ef c4 d9 f2 3d 53 70 44 bf 42 79 ea
-e3 ff 13 44 a3 7e 96 17 f5 8c 54 f2 f0 c7 98 56
-fd 99 6d 81 48 db 2a 7a 56 fa 1e bb 11 f8 96 a3
-02 f9 a8 b8 3a fa 70 a8 f4 69 33 46 5d 96 b4 21
-46 91 c0 69 89 99 0b 78 d8 62 1d 45 a2 04 60 64
-0a 13 9f 2c 48 73 ea 36 40 b1 6d b9 bf 9f 6e a7
-e6 30 e0 09 4f 46 7a 4a 39 11 b1 63 62 86 a8 a5
-a0 30 8c f7 38 3e 93 8f 32 d5 41 da 66 56 d0 69
-84 63 0e b1 8e 38 8c 1d 44 2c 42 63 04 3e f4 54
-6c 8c cc f5 16 8e b6 b6 3d 3c 8f b8 fa 3a 82 a4
-af 59 e4 ff 02 3b a2 30 53 3b 7b 02 05 b7 4b 75
-22 1c 37 ca cb ea dc 8b c9 87 30 01 d9 1f 90 66
-43 be c5 b9 b9 04 2f 4c bf df ee c5 3a 00 87 e8
-73 d9 7a 64 ca 9c b7 6f 03 58 df 5d b2 51 9e 1d
-f3 0a b6 ec f1 ca 76 44 6f b7 f6 27 b1 70 0c 8d
-35 dd ce e8 7b 52 25 5b 27 26 3d 45 fb da a3 e6
-27 62 d3 33 9b 14 a7 88 da e5 05 1a eb 92 b1 9c
-aa 16 54 a8 fc eb a7 79 1c e4 be 7d a2 c9 43 e1
-b4 76 4d 08 64 61 0a a6 5d 18 57 61 66 0c a4 12
-66 81 ce 3e 6f 35 c0 f3 54 2f 10 37 e2 a2 1b 9a
-93 65 27 72 0f d7 a2 3f c9 71 5c a2 93 33 7f ad
-83 a1 84 f1 f4 b3 5c e1 05 f6 fe af e1 06 6a 50
-ef 38 65 b1 c4 5a 98 74 54 71 54 c5 3e 6d cd ea
-06 fd 99 8b e8 9d 44 42 bf de 8c de a2 39 f1 fb
-55 f2 35 4d 85 05 85 a2 73 ec 6d ca a6 2b 5e 82
-02 b8 dc 8f dd e6 b0 d6 a4 fa 6e 01 d9 25 2e e8
-43 d6 85 6a 11 0c dd 9a be 0f a7 96 6b b1 18 79
-12 78 e3 2e 50 f7 77 b4 f0 04 04 c7 96 e6 6f a9
-d6 fd ba 4a ef 65 4c f9 55 c1 b6 82 bc 6b 63 5d
-e4 cf 86 fa d9 2f 65 29 bf a7 68 d4 e8 87 1a ea
-06 2c 55 b5 2c 8f eb 61 98 3b 92 47 e9 12 e4 9c
-1d 17 75 ab 04 b2 9d 9d 3a ee 71 72 c3 9d 2e ad
-11 05 1f a2 a5 8f ea 9a ff 32 c6 cc 2b 0b 01 87
-91 35 71 53 0b cc cb df 0b 22 10 3f 86 16 15 46
-f4 a6 aa ff ea 06 c4 a8 92 8c c8 fc f0 04 13 20
-af dd 67 70 30 a2 45 1d be 5f b5 05 5a 9c 55 64
-4a 39 e8 69 de 30 12 b7 d1 73 6e 03 fb cd fb 47
-fa bb 9b 18 d6 c3 a8 7d 80 f5 96 45 fe 19 5c 18
-2e 7e 36 3a 98 a7 42 b1 34 a1 88 aa db 0b 39 f7
-d1 58 c1 43 9e 15 77 6f 55 67 22 4c 2d 4f 63 4a
-9f b7 cc b0 da bb 2c 44 c7 a4 3e b5 a8 51 78 d1
-20 d5 86 96 63 19 0a d8 77 63 c2 79 be 73 16 cc
-59 fe ff 1e e3 70 31 ac 3a 60 7d 2d a1 86 10 f5
-fe 0f 73 41 b2 05 0a 87 ab 57 d6 b4 ed d5 04 fb
-23 8a 0b 75 72 7f e1 7a 0e c5 13 5b 43 4c f2 24
-f0 ee 59 32 bc 7d 7e 19 ef 61 ea 4d da 9f d4 30
-30 01 5b 24 b7 d4 9e b3 bf c4 c0 bb e4 e7 23 c2
-33 d0 70 a1 10 43 5b 45 e0 1c 07 61 25 ac f2 56
-e2 9e b4 41 5d 66 28 da ba 99 23 b0 9e 78 4f 41
-6c 34 81 19 1c 51 2c 6c ff 52 23 54 5d 51 54 53
-fd 01 4b 3e d5 0e ff 5f 3a 3d 11 cf 38 bd f0 24
-2c 85 93 ce 72 ee 8c 87 cb e1 cb 89 a6 8f 21 41
-af ba f1 d3 d6 fd 55 d3 91 3a 59 d6 39 eb 85 5f
-37 a6 73 74 ed a8 12 36 f3 de 64 05 11 6a c1 84
-61 2c bf e5 27 a2 6d 0d b2 44 13 d4 e1 79 bd 92
-58 69 c5 a3 4b b2 89 da c6 c5 ac 8e 99 32 3e 80
-35 c5 ed 06 a4 9e 0b 51 fc 09 11 ca 6c 6a 5f 42
-17 d3 3d 52 91 20 65 ff 18 e3 0c d9 8b 5d ab e4
-48 44 21 96 2d 9c fe b0 ca 6e b7 31 26 26 a0 d3
-df 97 9c d0 85 ba 24 3f d7 09 06 9b ef 0c 44 e1
-90 ee 1d 4e 5f dc 16 27 00 ea 34 df 75 cb a5 97
-bb 54 96 49 ea 00 4f 32 f9 5c 05 dd 80 a1 03 56
-88 88 84 aa 23 c3 cf a2 2f 23 b6 af b8 85 bb 2a
-d1 e2 75 a4 9d 0c 26 23 8a df d5 94 92 77 b6 d4
-b7 98 38 07 7a da 01 12 14 90 e8 b7 a8 b6 aa 40
-ac 62 1b 27 bc 95 54 9b a0 e9 3c e6 04 bd c1 b6
-8c b7 ca 34 6c fa ad f4 99 df 04 b4 f3 e8 0a 3f
-33 f4 c1 cc 04 72 1b 41 a4 ee 95 a7 82 22 e2 47
-75 2a a3 bf ae 50 a0 6a d2 b5 2d 8c 08 5d 59 1a
-d3 22 9d f7 88 49 67 24 55 c8 50 29 bb 4c a9 34
-fa d1 c2 44 51 9a e1 2e 11 ee da f9 41 e0 6e 29
-2c 33 89 00 a8 25 20 19 8a e1 b0 56 b0 98 bb d7
-b5 09 a2 25 7f 95 16 e5 2c 85 3f 58 f1 ec 2e 6d
-1e db e6 99 00 c4 e8 73 33 c9 ec 1d e8 63 61 bd
-c8 3e 9b aa bf e1 92 ee 1d 12 95 8d e3 1d 58 96
-09 83 a6 28 7c 3d c7 ee 85 29 a2 cb 69 30 e0 e5
-2c 77 e9 39 28 65 c9 1c 08 88 0b 04 9b 53 c6 f9
-1a bf 3c 5a 2a 7e 62 ec d9 ae f5 e5 65 71 32 a5
-a5 da 64 fc 3a 31 16 ad 7d 34 b5 87 5f 00 04 c7
-23 3d 25 85 7a 47 c7 d3 a6 e4 39 b4 8a c1 07 d8
-94 9b c4 c0 5b 6e 59 25 1e e9 02 93 fb e1 4d 6f
-41 38 f0 52 de 26 39 d8 1e 6f ae b9 f8 d1 a0 24
-a7 38 27 c9 d2 82 64 21 03 87 da a4 8d 9e 74 f3
-b5 2b 5f 45 70 1b b3 16 b1 e6 13 05 73 95 90 de
-5e 86 a5 8d cf 8b b6 2a 9b 2a b9 bf 1b a7 a8 ef
-7a 62 ee 96 36 8a 4e bb cd 74 85 92 48 6a cf 05
-43 e4 39 84 e0 87 ae 71 91 a4 ae 64 98 23 52 2e
-8e c6 d2 81 49 f5 2a dc 2b ad 15 e3 4b 54 88 cf
-75 a7 f2 60 b2 2a de cb b8 cd 37 ad b3 86 a3 9e
-20 b0 ed 7e c4 78 e4 ac d7 70 22 34 fa 24 54 a6
-0c 2b 22 4d d3 89 20 49 9f 7f 80 53 8e 85 dc cf
-e3 e7 63 4a 61 cd a6 4c 73 2d c3 d1 8b 8c 7d c6
-67 40 d1 d4 ee 64 69 93 1c e1 a3 59 97 96 a2 c3
-7a 9d d7 bd 0e c6 7a 69 30 3f e2 15 be 47 60 53
-ca b2 33 46 26 fb 77 56 a4 fc 81 5e dd 0e 97 ee
-6f 09 f8 90 7d 67 6b 95 ee 7f 01 41 9b 18 12 c6
-75 28 44 fb 79 40 a2 54 55 fe 4a fc df 07 69 b0
-a2 ee a6 c0 7e 0d 91 f6 fe 55 90 42 37 77 26 87
-db 72 3f 35 69 f4 c9 41 09 25 5b 12 96 2a 6b 10
-1c 84 fa 50 a2 0f 59 d5 36 33 2e 32 e8 35 8b 92
-b1 d5 ff 4e 0a bd 87 fc e3 bd 12 6c 39 3d ef e8
-60 35 fd ca ce 0c d3 d5 8c 0e 1c 50 0a 7b 61 0a
-dc 6b 65 51 0c b3 29 73 a8 eb 6d 2e ad 5f 4d 2a
-7a 63 b5 18 ee 64 c6 3b 00 68 56 88 bf 91 00 2e
-e9 7e 11 af c3 6b 9f a3 3b a4 13 96 a5 7b a6 e6
-65 38 25 33 c4 d7 b0 e7 e4 3e 86 68 72 98 59 80
-33 22 fd 7f d2 88 23 e4 f1 27 bd d0 c9 82 9e 88
-17 d5 a9 4c 33 6f 07 ac f4 eb e8 ef 33 04 4f 80
-73 84 88 66 0e 36 3e 87 45 7a e1 5e 3e 3d 07 7e
-1c fc ce 2e 73 1b 2f ba 82 9d 6e 72 dd a4 5c 7e
-96 5c 51 ad 17 8a a9 f8 39 d0 bd 8a 39 f3 9d 55
-a9 78 c7 31 ce 76 90 02 85 6d 53 04 62 81 40 5e
-bd dd 14 f5 d4 33 78 5c b5 5a 62 18 f5 94 36 8e
-ae c9 5f 81 18 f7 95 d1 5a 95 c5 02 e6 bf 9b 01
-10 78 84 0d 1f 90 5c 9d 08 b8 68 92 23 2b 0a d0
-29 ed 3a ba b2 a1 62 d1 50 bd 65 1c 18 5d 38 d5
-a4 e9 c3 da ca 0e 71 57 bf 00 a5 e1 0d 00 a9 9f
-77 15 e1 2e aa e5 ca 02 47 ff 5b 93 ab dc 86 57
-5a 70 1a 4b c1 c4 41 01 a4 d9 40 d2 d4 6f e8 6e
-bf 25 6b 19 f3 d7 62 ed eb 3c e0 4f 41 a3 3c 22
-18 39 a8 1a 3a f4 d8 1d 83 e0 41 0c 81 4e 04 5a
-a8 c9 c9 b3 09 87 1a 88 78 a9 d5 51 86 5b 6d ec
-3a f9 48 ad 3c 4c 7d f1 61 81 c2 6b 52 c9 09 ff
-21 e8 4f 88 50 d4 f5 fc 81 bd 6d 5c 43 bd 53 08
-61 b9 94 2c 4d 3c db 05 0e 72 ab c8 2b c4 8f 89
-19 0b cf 56 86 4a e0 18 6d c8 93 0c bd 3f 6b ca
-47 55 fe 0a 3d 9b aa cc c5 bd d2 b7 25 17 c3 b5
-77 b1 09 15 47 96 08 07 4c f9 58 c0 2a cf 2e 6f
-e0 f2 8c bd 62 0a 33 8e fb 0c 9c 7d 07 53 2a 37
-a5 73 51 54 29 96 8b 47 f7 b6 5f 73 46 d7 2e 35
-38 fc 0b c4 ef 7b 09 b7 23 82 bf 51 59 0c ef e5
-6e f3 bb 97 fc 57 61 01 32 99 0c fa 9e 49 9c e2
-15 14 12 a5 49 45 0a 96 f2 3a 9b 7c 5b fa 96 cf
-7b 71 2b c5 7b 98 23 b4 c7 bf b9 b6 e4 be d1 d8
-1a 5e 04 8a 83 75 16 a2 46 8b 90 5b 9d ff be eb
-29 85 f7 49 f9 04 3e b5 ca 1a 5c bb 7c 80 ab d9
-64 e7 38 cb d5 69 0e 1a 12 01 3d e1 36 0d e1 e8
-54 f4 3d 11 9a 64 1b 3f 28 d5 9e 13 64 a7 26 b0
-22 4f 4e 35 bf c8 a4 9a 5c e5 fd 18 a2 8a cc 37
-9f 3c 1b 93 72 f1 1a 44 04 95 c2 76 05 21 b3 70
-3f 67 f6 f2 e7 d6 56 f7 f6 6d 16 f7 33 59 b7 7d
-46 af 0f 56 9f 75 fd 63 f9 9d ae 06 e1 53 8c e0
-fc 43 43 a0 41 e7 d9 da cf 91 03 52 2d a4 d4 df
-4b 2e f6 8c fd 1a 84 f1 9e d4 26 b1 c6 33 38 7b
-7e 84 39 37 80 3c 9f 44 45 74 8c 71 9c df e0 9a
-7a fe 98 8b ec 53 1c ef 2b 37 03 5e d3 1b 6e b8
-b6 6b ed 60 b4 fa eb 74 fe 5b 11 45 44 ef 42 8a
-51 46 e9 51 c8 ef ba 79 8c fb fb 5b 27 04 c3 3c
-5c cb b6 a7 1f 45 56 71 4d ff 18 ea be 3b f9 34
-21 92 aa 9c 67 a6 aa 3a 41 86 df e9 28 cc 12 39
-5e 5c b7 ac e9 72 66 2a 27 ff b7 2b a0 48 56 cb
-b9 f6 b6 5b e6 c2 c1 9d 04 f1 82 68 7b 17 2c 91
-c0 38 1a 64 a8 e8 40 34 84 7e 19 7f 0b 5d 16 d2
-af 66 7d 5f 1f 81 a1 d1 db 29 b9 f1 f5 87 3b 06
-a7 08 7a 52 8d cc fa 3d 98 dc 64 fb 83 c3 69 f8
-4d 9d a1 d0 ab 62 8d d1 1c 41 ef 86 13 c9 cc d8
-3b 0b 41 10 6a 7d e8 58 eb bd 23 91 a0 68 b9 c0
-db a0 48 fe 54 09 51 84 a9 0b c3 d9 20 3f 13 4b
-10 ef 7c 41 78 b4 c5 3e 38 d6 08 60 d1 ba c5 cc
-8b 63 36 73 e7 5c b0 33 90 e5 e5 4d 53 0e 8e af
-58 c3 70 49 a7 5d b7 42 6b 9a b2 03 22 fe 0d 1e
-d6 4e 80 c6 79 37 18 98 8d 42 c7 cf 2e 95 b3 12
-50 fa 79 b0 4e a3 e5 06 36 d0 c7 f2 81 86 16 d6
-6c f6 d4 cf 86 fb 23 8c 8a 5b ab a0 5d 31 7d 26
-69 4d 94 ac 6d bc e9 62 d4 36 e5 6b ee e3 93 e2
-36 91 88 54 ff b2 28 c4 c3 11 88 ea 27 fe 61 4a
-81 24 bc 88 50 3b 10 c0 9e a6 ea ee f3 b0 e6 17
-46 42 91 38 3e 49 fd bc 1d 47 9e 9e 0c a5 6b 44
-7d 4d 4e d9 4f ef 55 8e 48 3b 35 94 7a 87 75 17
-02 08 01 01 8c bc fd a0 e9 58 0c b2 12 04 72 92
-1b 82 84 b4 68 8b b5 36 37 d7 31 04 52 fd 74 f3
-83 b1 f4 5f 11 04 0a 58 e1 76 15 54 4e 0a da 6c
-8c ec 6b 3a e3 d5 84 f3 fd 20 95 a7 59 f0 c3 58
-1f dc 68 69 c9 85 9d 82 f1 e0 f5 2b 86 3c f2 68
-25 e5 f9 c0 4a 45 0b 95 fb 93 b9 d3 e6 8e 17 97
-58 67 a8 8b 95 c5 d1 8b 97 9e 75 66 ad fc c2 ad
-a8 ce 67 3b 91 c6 16 da cb 49 ff ee 97 3d 67 18
-79 b7 a2 65 55 30 97 55 ff ea ad 3b d4 97 7e 8c
-31 0e 90 91 5c 6e bc f0 d9 8d e0 34 f8 a3 7a c5
-bd 8f 97 61 96 8f 68 fe 54 c0 87 b7 05 bd 6a 7a
-04 fa c3 29 95 10 a9 9e 4c bd 69 d7 30 f5 bd 5b
-1f f9 7f a6 18 47 51 ba ac c1 df 81 53 49 cc 0d
-89 ba 4e 15 dd d1 5f b3 b9 df bb 57 00 b7 31 b8
-25 3b 92 95 66 23 e9 0f 08 9f 3d 1b de ca 52 10
-2c 79 04 db 95 b0 14 eb 07 b7 dd f2 c1 fe 05 c0
-5c a1 0e 22 5f 0d 79 a1 d5 0e 94 d3 d1 b0 9d 9c
-5d da 43 28 42 93 d4 f2 85 b2 0e 0f 29 07 a4 ae
-a0 69 7e 07 1f ce ee 69 2b 30 b6 81 9d 76 c9 01
-83 af a7 a1 2e c7 53 e4 db 80 83 9a b3 11 a0 92
-fe 5e 22 7d 42 6b 73 e4 e3 0e fc 2e b3 57 2a 8a
-50 84 4e e7 8f 92 a2 ff 9c 51 8d e6 16 8e 63 72
-5f 24 a9 0c c0 23 86 36 a0 de e0 97 b2 9c ef f9
-ad 50 ea 5e 3e 09 32 71 84 9e dd 4a 0b 4c e0 1b
-dc 74 6d 90 a5 f7 a7 24 c9 9a b9 67 09 7c e8 b8
-38 62 16 df 70 53 07 2c e3 eb 48 6e 97 61 8a 80
-76 61 33 3a d0 4f f9 a4 af 7b 50 43 33 1c 8c 36
-09 55 70 ae b2 d3 d4 10 ba c5 f5 a3 b3 7b 2e 39
-d0 50 0a 37 c3 ab 51 b8 a5 c7 60 c5 7d 1f 47 0f
-c7 b7 ac 2c 1d 6d 6f 61 e2 6d 33 ab 54 e9 01 e1
-31 fd f5 6b 0d c4 6c 5d bc 16 18 77 20 c0 40 b0
-1f cf 3e 45 e1 39 5f 6f 62 18 19 cf 3a d2 01 5b
-e6 61 ae 6c 53 23 7d b5 8a e5 10 fe cc ba 8b 56
-2c 16 f1 92 cc 7a 2b 9c e6 f4 24 c7 58 13 e8 92
-ae e3 3d 15 6d 6a c1 f1 d0 21 6d e0 a7 a7 46 89
-0c 48 e6 93 af c5 4e 38 d2 cd a9 71 fe 91 c2 79
-5e 5a cc b3 e5 94 23 3f a9 96 48 d6 01 55 88 c1
-6c b2 ca 7d 3c 78 1b 1b ed 5a e9 88 0d 1c ba 1f
-a0 8a 18 19 95 ff c3 51 ac 25 6e aa a5 c1 cc 65
-8c cf ec 68 42 17 c5 9c f6 9e 87 0f b5 a1 29 f7
-3f 2b 93 01 e4 d1 e3 a6 78 c3 b5 60 1c d2 2b 72
-3c f7 76 52 81 d8 67 2d d3 0e 49 1d 3e 1e 99 a0
-62 54 50 24 6c 9a 68 33 17 49 1c ec 20 a5 e2 6b
-16 33 fa bd e0 ea 35 a0 aa 53 d4 5b 5d 1e bc c9
-01 80 d5 80 86 dd 1c 6e c1 1e 9c cb cf 87 27 be
-79 c9 83 1a 31 c3 43 04 e7 f0 3d 96 a5 69 fd fc
-a3 b3 d6 21 d1 e5 56 f7 5d d4 7b 7e f8 73 ed 3b
-94 74 51 ce 1f cb 2e 3b 5d fa be bf b2 b5 5b 30
-4b 6d 27 a7 1e c7 29 ac 37 68 3d 75 42 5e 93 35
-69 3b 51 fb 2e 8f aa cd 16 73 0f 2b e6 d2 9e 58
-2e 71 e2 15 6d 1e 95 5d 53 49 f4 89 22 2b 33 19
-88 fc b1 8e 49 eb a0 47 ad 35 ab 36 57 2a d7 e5
-0d 83 b8 7d 77 30 7c 2b 77 d8 8c 3a 45 d6 44 40
-30 2e a9 28 c6 bb d1 00 87 98 a7 74 53 18 de e9
-b5 51 5b 50 5b 38 52 a4 05 a1 51 df ab f3 1d cb
-f0 9f 98 90 6c e7 cf 4b 3a 05 1f dc 8c 8b e3 37
-45 a1 3e f7 82 44 3a 56 2d 6e 89 4e e4 ac ef 52
-e6 d7 0c 60 af 63 ca 4c 3b db 9f b3 d3 66 33 dd
-5d f3 ef 4e 7a 51 b8 6d 90 ac 95 7b 20 b8 f9 df
-82 fc bf 1b 9a 66 08 a0 08 fa 84 ed 2c 54 0c 72
-b4 1d 91 d6 0f 5e ac f3 e3 8a e7 d8 69 b8 6b c2
-47 73 12 cf 4a af e4 e5 d3 f0 13 53 42 4a cf 3c
-0e 89 e7 b8 18 de 0f 15 03 c8 9a ca 88 46 b5 0c
-55 2d 7b f6 ef 7e 4d 54 bb f3 8f 28 57 19 86 95
-eb da aa f2 22 47 57 9b 56 43 66 40 af 25 2d 72
-1a e1 74 80 9e 19 47 61 93 a3 89 dc cb 31 64 87
-9d e1 db 1f 67 a2 c4 d7 64 62 08 fd ce 4a 1b bc
-cb 46 a4 f9 b7 9f d0 3c c5 99 5d 00 be 5c 4c 28
-a5 b6 0a a3 91 0d 3d c0 bb 29 88 f5 f4 f8 64 b9
-75 c4 ab 6c 39 a5 5e d4 5f d3 90 d6 f9 80 52 55
-15 c4 87 9d 49 0d 95 04 54 09 44 dc 1d 7d 17 90
-94 76 a1 ec dd e1 f3 a7 79 b7 fb 10 63 71 09 1a
-90 9a c9 4e 35 39 77 72 13 e2 d4 9b 60 04 fa 0c
-ac a1 9a 93 31 c6 fa 85 02 76 24 18 97 fe 62 e4
-26 ec 5d 50 c1 98 c6 07 5d 57 1e c2 a9 86 43 bb
-fd 4e bd 91 27 32 81 09 01 bf 77 11 b6 fa da 3c
-a3 c8 03 08 12 7f 71 12 d4 e7 b6 ae e9 c4 59 1a
-94 91 02 da 37 67 ff 5c 0f cb d0 15 29 fa 76 3e
-98 4a f5 2f e0 31 69 4c 0e d1 f4 c8 56 09 14 99
-c9 52 48 a7 5a 42 f5 7a e1 21 13 6e 54 90 3b 6a
-3d 15 9e bf 3a 5b 55 b7 8c cf 37 e1 4f 8a d8 06
-67 e3 82 19 42 7f 9a fc c6 d4 1b b4 27 f2 e9 09
-05 a4 b7 9f 60 d8 f0 38 31 5a a5 f5 99 72 a9 86
-da 27 0c 51 44 38 d3 89 f3 83 59 73 54 8b 26 77
-31 dd 76 3f 6a 72 34 74 0d 99 5f c3 f5 3a aa a9
-44 24 15 38 d7 eb 43 7d 13 b9 2d ab 44 84 ff 83
-a5 55 aa 60 29 df cb b5 d5 82 15 fa d1 7a 19 d5
-ff f8 d7 80 64 99 7c 97 78 ea 1c 5f b1 81 9a d3
-e3 c7 cc 3d 72 5d 1b 45 79 8b 63 13 ed c1 5c df
-00 df 25 51 b6 66 84 0b d2 b2 58 f6 3c f4 11 04
-1e 7e 6e fe b8 59 d2 f9 45 d6 81 ae 3f bd b7 78
-32 5a c5 a1 85 b2 c7 28 bb 59 e7 97 e6 b2 40 28
-1f c0 bb a7 40 ec ab ed 62 a1 80 9b 05 8c 3d 73
-cb f3 54 de 0d 08 f2 1c 3d be 87 f1 cb 27 5c 99
-cc 46 98 bf d9 3e 4c c3 c6 f1 62 86 d0 8c 5d d8
-c5 09 d5 50 70 4e 18 ec ab b6 31 30 5e 78 b6 c1
-c4 50 81 c8 a6 fe 56 66 6f 69 fb ff b3 60 f6 79
-0c 80 e2 e4 c3 a7 ae 13 ce 17 f8 77 66 ae 66 6c
-b1 23 e2 2c ac c3 4b 94 ed 4c 78 b0 45 20 3a c1
-9e 3f b3 55 95 af 8c 63 bc 98 84 e7 71 7e 52 34
-2a f5 65 18 f3 ec 5e a9 ad 74 61 54 0f 38 bd 29
-a2 19 1d d2 74 80 1d 26 e8 8f ff 92 41 fe 0c 3d
-2d a9 bd e9 b0 6f 14 c5 06 06 36 0a 65 ab e4 51
-50 32 da 62 fc ef 67 9c 7a 69 02 8f 01 27 eb a3
-71 a4 78 31 b1 42 98 5c 1f e0 98 69 bf b7 b3 e2
-1b fa da a7 33 5e 1e 00 9e ef f8 50 00 8a 70 7a
-30 a3 ed 63 0d 1f bc f0 73 20 c7 05 2e b1 5b cd
-25 93 2a 42 c0 5e 31 c3 96 5c 59 86 8b 23 03 37
-92 5c 3c 24 93 3d 2f 82 3e 8d 52 82 39 31 7a ef
-8e e5 21 cd 48 d9 d5 39 44 b3 96 81 8c a5 a1 4d
-e8 dc e2 24 a6 ec c2 7e 62 ef b4 ea 20 51 cf 0d
-ba 35 03 77 24 c6 d5 0f 2d 40 5e d5 97 92 d3 22
-3d 5c 7e c3 b2 6d 27 8d 25 37 ab 55 62 69 99 87
-b1 54 87 7a 98 c9 f3 eb 54 9c fe 3b 43 82 88 6d
-3f 79 92 2e 63 fc 92 8a 26 38 07 77 46 8e cb 80
-6f b7 d0 55 be 58 34 92 55 50 0f 59 6f 85 c1 39
-2c 90 88 b4 40 76 fc 9c c4 2c 51 84 67 03 ef 03
-d4 c5 58 81 67 b3 68 86 6d 48 7e 01 fa fc 9b 90
-24 07 51 ad ab 64 5e 43 40 44 87 d3 b3 bf 09 b7
-5e 44 d9 92 a0 f0 0b f5 d7 00 4e d9 db b2 97 bf
-c6 bb 1a f2 dd a4 59 70 55 87 ad 8b 3d f3 66 de
-69 48 0d cd f1 ad ee b7 2a 45 85 57 e4 6e c3 82
-52 5a 25 ae 80 0f 47 36 09 e5 32 27 99 9c 5a b1
-57 7d 11 6f 35 eb f5 b1 61 b6 df d6 15 6a bb 69
-74 34 6f 0e 2b 8d 8f 6f 93 d3 c3 5f 02 08 d8 8f
-49 35 82 27 c7 dd cc 0b 7e fb 7e 01 6b 33 0a c5
-26 ff 57 4b 40 70 a0 2c 21 06 7a 38 49 ea 0a 5f
-4c a9 e4 fb 46 ae 2a 15 73 ef 94 82 90 36 e8 ca
-e7 f5 41 41 bb b7 85 65 58 29 e3 46 86 1d ac b9
-8c 1f f5 09 20 22 b0 d3 85 af 93 df 97 3d a3 2b
-f9 6d d3 3b 86 fb 9d 64 90 2e 71 7c cf 54 8b 1a
-49 e5 dd fd b5 33 4d a3 36 bc 18 25 0d 2b 8e 1d
-1a 59 ba c5 d8 73 6c dc d6 12 77 31 a0 84 92 ec
-d7 37 99 da d7 3d 6c 71 1b 9d 0f ec b7 ce d9 a3
-5e ea ba 1f 63 dd 0e 26 e1 cf cc 97 83 bc fd 91
-65 de 77 95 fe db 43 c5 ef 04 37 c6 56 0f 99 c7
-bf 33 c2 61 33 e5 8a 64 48 21 78 e8 25 ff 4f f5
-ca a7 dc 20 61 3d 26 14 ee 0d a2 3e a2 55 12 cf
-3a e9 91 52 ab 54 12 8f 98 49 ac 31 e3 f7 dd 70
-70 cd fa 9e da e9 67 b0 55 4b 9e 8b 91 e8 14 a5
-89 c5 52 07 a0 8b 75 b5 be 4f 57 62 c7 3d 9c 04
-88 ee 10 4a ad 06 74 53 2c bc 6c b3 e8 b9 04 e3
-7d 65 a3 39 81 12 62 eb 76 44 97 ef 2a 6d 92 d8
-1a 73 0d 38 af ba 92 0b ed 2e f7 8b 68 db 86 45
-0c 50 18 d1 13 d7 9e b1 29 cf 76 42 d8 cd 72 83
-ba 38 15 9f 3d 66 6a 61 24 e6 82 0c 1c 58 24 29
-dc 12 91 d1 66 21 02 12 a0 30 bc 69 98 bc 82 70
-3b 87 92 fa 10 38 e6 ed 03 dc 89 c2 9d 16 f0 a7
-8f 38 96 b9 46 82 7a 4a 8d 83 f3 e6 d5 5c 21 90
-35 d5 3c f9 d4 b0 d3 86 d0 ce 2b 6e d9 24 50 a2
-e1 68 ba 17 95 d8 46 5d c4 77 48 7f 8f 1f 14 75
-f9 7d eb 51 ee 9e a6 e7 97 24 50 bc 93 22 df 35
-e1 09 ba 1b 5a cb cf 26 64 c0 2e be a1 2a 91 6b
-08 e8 9f 4f 5a 96 9a e1 58 30 47 93 81 69 e0 d5
-b1 9b 6a f5 15 05 43 17 38 7d 16 96 59 3d 8c a1
-ad 87 be dd 8b 4f 52 34 3f 85 03 d4 38 bb 82 2b
-33 17 7d 58 06 aa 29 d1 87 11 ee a8 8a 9e a2 83
-c0 14 2f 71 a3 30 48 c2 22 13 9d f3 b6 c3 5c a5
-5a 17 07 77 8d 7f c3 21 0e 0b 9c 26 b0 90 15 29
-c0 d9 c6 dc 1c 0e fb 07 86 f3 f1 67 da 39 df 15
-41 c9 00 f3 86 32 f1 f3 59 e0 0f cf cd 27 f5 d7
-b7 4b f9 fb 84 53 aa 38 57 2e 98 d1 ea 0d b9 24
-03 e3 d0 50 66 de b8 c2 a2 f6 99 37 8e 40 55 f6
-b9 4b 10 27 5b ea c0 87 f5 37 7b 1f de 52 20 f8
-59 6f 60 4d 0e eb 10 74 fb ea 9a aa 34 83 aa e9
-1c 7a 2e 05 0d 75 83 3d 4f 41 e4 03 00 d2 93 05
-5e a1 cb 8e 67 7a 81 92 96 26 7b ba 80 a5 23 7e
-fe 7a 28 e7 ad 97 1c 0b 62 9e c4 77 ee 9e e0 e6
-62 bd 73 86 00 2f 31 b7 04 26 73 74 fc 21 c0 c6
-3c 8e 2c d4 f1 3b 27 d3 fd 53 eb b5 70 54 12 84
-70 c3 73 3c be 87 c0 e4 18 a1 27 a6 cc a0 25 19
-2d 7f 99 f3 25 02 7a 30 a1 da 41 e9 d1 34 e5 58
-12 b3 90 fd 53 bd 23 74 fa 40 37 4a f8 97 9c e2
-35 8a e6 c7 d7 19 bb f7 25 eb 38 0e 33 73 97 27
-2d 88 49 ee 2a f7 14 e0 ea 06 f6 ae 62 80 de f8
-29 96 14 73 ae 46 8f da 48 e1 ef 66 63 d6 80 69
-22 95 69 67 fd 2c e5 2d 75 eb 06 91 9d 6c e0 09
-1b 76 5e 5a b8 86 55 24 33 d9 9e 7c 3d 2e 1c a1
-f3 5c 70 0c fa 16 78 3c 82 ef d4 e7 f1 a1 66 4e
-2e 2a 9a af ea 8b 7d 96 78 3c f6 a9 1d 24 cf ed
-46 6a 69 51 30 70 c9 40 45 63 b3 48 68 06 1e 42
-b0 ff 43 7e a7 d1 d7 63 9e 1a 8f 44 a4 cd 37 26
-6e 20 4c bd 5e 72 54 23 c8 4a e9 a9 74 e8 37 55
-84 ca ae dc 78 0f c0 3f 46 85 36 13 e3 ac f3 70
-13 3a 84 11 5a 59 03 f5 2b 66 df 08 3a bd 9c 12
-d0 bd cc d0 f2 0d c7 c0 f3 de 13 1d 90 cb 20 3f
-bf 43 92 68 c0 7d f9 55 bf 01 3e dc b9 ca aa 8a
-9e 47 ed 60 4f d7 95 f9 be ba ba 7b 56 3c 26 51
-ca f5 a6 7c d7 95 eb 92 e0 75 29 3a e7 fe cb 02
-65 f1 1a a8 60 9d 9c aa 99 c7 88 4e 04 5c a2 40
-f7 38 b5 e7 17 22 59 68 91 ee 1d 5f 36 36 15 0d
-4d 56 b7 1a bb b6 9d ed 4e 5a 34 ed 07 54 b3 71
-86 39 58 88 56 a2 87 d6 a0 d1 11 e6 38 3a 44 59
-57 74 d3 50 2b 87 37 19 be 7c 3d fd 35 e1 1e 6b
-b0 3e ff 1d ef ba 4e f4 c7 f7 6f 2d 10 84 9f ce
-06 47 1c b5 a2 25 65 7e 03 af 3d 3b 9f 72 9a 91
-48 05 6a a7 7e 00 c8 e7 7c 8d dc 02 eb 99 3e a8
-a8 5d 2c d5 2e 76 4f 64 6d b5 95 c1 1c 0d 15 6b
-a5 d0 dc 3b 99 79 52 8a be 9f 0d b8 15 84 20 03
-b3 be c5 5d 97 aa 35 75 f0 7e 60 3b eb 25 cd 30
-26 fa 89 6f 04 a7 12 bb af a5 ef aa 95 46 e7 d3
-51 1a c2 8e 7b b5 c2 6a 7c c3 cc c4 6f 3c 90 b2
-f1 59 9d ec e4 c3 a1 07 b2 4a e7 04 4c 81 be 6d
-26 e4 3d 91 60 c1 08 0f ff 37 e5 36 f4 fc 3f 22
-02 04 04 0b 4f a2 fe b1 d4 00 a9 bc e1 47 6e 3b
-21 21 fe 24 1e 99 4f 08 84 8f a6 86 96 18 99 73
-3e 77 4b 70 cf 80 17 5f 73 fd 0b a0 a9 f9 c7 83
-b5 38 95 61 0a 61 48 a1 c7 fc 2a ee 75 42 97 35
-9a df 89 e4 9d 53 06 f3 6e 64 3d 80 57 7e 49 00
-de 41 24 5c 6e 22 a0 1d 1e 1c ce e5 4e d7 d3 02
-fa 83 43 30 d2 f0 92 d3 62 e6 2a 1e 2b d6 7b d8
-da 66 30 8a 0b 7d 24 b3 95 8d 6b 7a 80 d6 70 16
-a4 8a 7b 4a 32 ae 15 da 76 92 b0 78 88 5f 8f cf
-b5 95 50 a5 a1 d1 06 b1 93 33 eb 27 c8 fc 60 f2
-c1 cd b3 29 a0 ff 29 d9 4f 4c ba 06 50 99 9f af
-5e e1 6f 39 bb e4 75 85 0c 50 11 4a 2e ab 92 78
-1f 4f c2 05 a1 5d b4 28 3f 92 f1 c4 f9 a0 4b 8f
-b5 fb 7e 00 06 a5 02 c4 d2 49 06 50 12 81 3b a5
-5b 6e ef fa cc ef e5 2f 58 d0 e0 0b 4c e3 e0 4f
-69 ea 4b dd 62 02 ac e8 b7 b8 cf a8 fc b5 e6 94
-70 6e 1f 93 5a 8b 9c f2 6c 93 ed bc 81 8f fd 3c
-01 53 30 f2 2c 53 4c 19 8f f7 a2 47 8d 60 e2 82
-ea 8c 2f e5 db ed cc 2a 2c 10 28 62 ae a0 ad ed
-a2 f7 f9 6d a6 db 26 41 f1 96 83 24 03 7b 9d 41
-67 95 6d 8f 7b 4a 0a c6 32 d2 37 de 5a 8a 92 e8
-95 85 74 6f 14 3c ee 56 35 de d1 f6 fb 63 7e d6
-6b a3 75 29 24 83 7a 28 81 6e 5e 75 e4 1a 1b 49
-74 38 7a 37 be 21 6a e3 b8 69 95 79 42 2f 73 4c
-4e 02 ad cb 97 86 7d c4 ec 2d 20 43 29 a2 a7 ee
-69 2b 53 32 3d b7 8c 35 aa 6a 4c 69 00 47 a5 52
-70 0b e2 6b a9 06 0b 28 8e 4c 2e a5 3a de 0c 2a
-27 a1 92 82 6e da 74 3f 1d d1 d4 f8 be a9 f1 df
-9d a1 46 83 50 67 d1 f7 e0 8f 88 f6 2d 1a be 5f
-29 08 86 43 65 ac 42 d9 5a 6b 2b 8c 83 9f 43 bf
-0f 25 e6 08 0e 4f 4d 9e bf 90 d7 01 c7 04 04 c4
-88 db 4f 62 fd 45 7a 0d 1a b9 3c 95 49 3f 41 b7
-76 2c 77 94 2d 82 0d 32 75 9d a8 87 fd 01 89 f2
-42 f8 76 35 26 06 5f f3 9f c2 21 e3 76 b9 17 95
-dc 31 04 31 a1 55 1c 89 71 7f 38 8c 61 3a 1c 4e
-44 a2 e2 ed 82 97 64 d6 7e 5d c7 8f d9 11 6b 9b
-d7 15 93 20 bc 1b d9 3e f0 88 0f 28 ea 67 3a e1
-55 ea 5b 0d 29 01 42 46 40 ec f6 0b d7 94 d3 0c
-68 c1 21 2f 5e 42 b8 41 8f 89 ce ab 14 05 57 75
-75 a6 93 43 0f ae 79 ae 1d ad 60 58 1c 6d a7 dc
-f6 3e 8b 40 d9 4a 9e e0 5c 76 ea 60 5d 05 a1 14
-8a ee f3 89 b9 40 93 38 16 2b aa b3 d0 6a 63 cf
-30 39 d8 3f 2f 8d 21 d1 3c 58 59 7b d3 89 7e 07
-68 99 b0 4c 47 bf 5b 5e 92 a8 af ed 31 0d 61 1d
-0e 54 db b9 af ba 49 59 51 be 8d ef da 59 e6 cb
-ed 42 f5 2c 5a 9e 5f 0e 42 f5 b8 60 8f d7 5b 2d
-2b 91 9e 2f 9f ba 93 6a 06 00 6a 0b c9 7d 71 ef
-7c 79 d0 90 d1 72 a5 57 ac f5 a1 12 ee 49 10 62
-10 e4 40 08 03 31 14 af ec 05 b8 fb 04 34 ac 21
-fc 8f 40 3e e0 25 07 5c 2d c7 c3 41 a0 77 1c 16
-cc 87 b1 97 4b c0 a2 88 3b d4 8a 88 fa 3c f8 aa
-75 60 44 cd a0 af 15 18 1a 05 2b dd d3 59 09 2c
-0f 7c f1 0e 00 ee bc 85 17 b1 63 80 fd b6 13 f1
-a6 6a 51 2f a8 dc 11 9a a7 0a 39 73 0a 22 59 6f
-bc 2e 33 e7 c4 0a 93 f5 02 36 99 e0 44 b0 b5 96
-57 3f 52 53 5a 07 45 7e 7c 2a 4c c7 c9 6f f3 3f
-cc 2d 0b a8 1a a1 22 ff b0 9d 76 87 99 d7 7a 4a
-1e db 56 c9 65 06 cc 00 fd ea ed 19 1e 3b bd 19
-a5 f6 b0 ec 24 85 86 2a ea 0a d2 7f 3a a6 e0 cc
-c4 b8 33 15 b3 25 bf 8a 53 c7 ba 10 1a 4c c0 f8
-db 49 53 f6 ab 38 8c 1d af 78 37 be 22 e5 aa 5e
-dd 82 0c 1f 34 80 f7 cb b0 2e 37 3c 4d 61 1c a7
-30 1b 1e 9e 1c ca 23 cb 0d 21 8a 79 4c 47 8b a4
-ba 9b 30 13 6f fa 2d 58 c4 74 aa f6 99 74 e9 df
-8e 1e 7e 07 45 9e ce 61 a6 4c 4d b9 f0 a0 ba c3
-ea f1 32 9d 03 7e 02 7b 81 f8 2e 4f 55 22 d0 cb
-de a5 d5 12 60 fb bb bb d3 3e 21 ce 8c 71 32 f3
-52 2a e3 db 93 e0 99 4b a1 bd c6 d2 a3 0f 4f 62
-d3 f9 44 c6 15 54 af a5 68 a1 93 88 75 1d 58 00
-98 09 b9 ba 60 75 90 b3 d3 60 da 8e b3 6b 81 e7
-30 e8 a9 71 11 73 fe 0d f9 9f fc 9b 88 be 64 c1
-8a cd 53 f5 1a 75 c1 25 68 fb b3 a5 41 d1 e9 d0
-27 51 f1 1c 25 90 50 02 0f 03 40 a1 27 3f 31 78
-08 6b be 03 43 02 e9 ec 0d 04 ac 71 b4 1f 60 fc
-e1 99 95 06 61 00 e2 41 5a 5d de ac d2 36 43 3a
-cb 3b 28 2e 42 f1 de 12 c8 d8 09 38 32 c4 f9 d0
-9b 2b e4 69 ff 47 85 9e 5a 7a d8 b7 16 a2 5e 4d
-b2 6b 47 c7 e0 f1 89 32 f2 ae 37 20 a4 6f a1 30
-37 d5 1d 85 ae a8 e4 15 fb bc 84 2e bf 28 d4 49
-0d 4e da df 10 96 de 91 87 89 9f 7e dc 2b c3 1c
-6a 84 06 53 cd e7 b9 32 06 c1 c2 db 7d 47 7c 92
-d3 b9 09 94 26 67 91 45 61 96 cc 70 d6 f0 2a f1
-b3 8b 33 a1 64 74 cb 6d 05 62 37 be 78 30 66 34
-72 1c f8 0a af 80 33 51 e8 0f c5 27 7d ae ee 3f
-4f b3 9a be 6a 0c f2 7a 95 77 53 83 f1 41 61 00
-2e 0f e3 d9 b9 49 c4 b1 2c d7 18 a9 80 bd db 66
-90 97 28 20 d7 d4 4b 60 98 ac dd 11 8b b2 51 80
-f1 ca 0d 61 15 c6 eb c3 7f 1d 4b 9e 09 26 20 a4
-60 eb 81 42 82 7e 8d ad 63 8f 13 87 89 84 d0 77
-f6 81 84 23 01 de d5 d1 1c 8a 2c 1a a1 a1 90 8c
-11 db d8 02 e2 5c 50 a8 68 b7 cb 0c 6f 76 2b 33
-7d ac d9 af 7b 54 0e b7 4f 9b 2f f2 77 3e 5b 32
-85 5e b9 62 76 47 bc e9 cb 80 d4 73 b3 e5 88 9a
-ee c3 5b 9d 4b 29 42 77 87 83 43 63 85 76 70 7b
-d7 ca 38 7f de ca 34 c4 e5 29 8d c0 dd b8 26 60
-f4 a7 59 da 93 f0 32 55 26 68 81 9b cc 5c ca 33
-3a e7 b1 ff f5 ff 64 25 f2 b4 91 9d 30 73 eb 28
-9b 9c e0 26 50 06 00 2d d0 bc ef a5 f9 84 c4 13
-12 de c6 f3 60 53 59 38 0f 05 f8 88 f6 0c a8 cc
-38 d1 96 66 a0 41 9e 30 ab 68 5e 29 97 6f a4 f2
-85 3c b8 d2 1e 94 17 1e ca b7 f0 df db 4d 52 29
-e4 86 0d 11 bd 64 22 f4 82 6e a3 8b 2e 2f 91 29
-73 e1 a2 d5 ea b9 65 09 d1 4c 1c 5e cb dd ef 83
-5b 4e b1 c2 5b 19 8c c2 b2 e4 43 6c 0c e6 d8 44
-8f 14 6d 59 1e fa 7f 97 8a 64 8f 3f 56 2f f2 bc
-79 7e 68 69 62 54 78 b9 f9 1b f6 37 4d c8 f2 95
-a4 df c1 9c 78 eb 86 ca 57 b4 bb 2e 1a 1d e3 2a
-46 2b 27 b6 a7 94 1e 08 6f 9a 93 3f a8 2e 80 13
-cc 0d b6 f7 7d 8c e0 54 c7 ff dc d1 c5 e0 2e 21
-3b 57 50 b9 a2 19 ed d2 e4 e5 92 05 de b7 e1 a4
-38 3a de a0 b7 a6 52 fd 3c c6 7d 99 af 6f 6c 18
-e1 08 df f2 c8 8c 7a d2 4f b7 5c bb ed 75 b9 c2
-3b d2 f3 e8 81 c9 98 7d 90 22 12 95 41 cb da a9
-33 ca 48 9c 90 a0 2f 88 cf 05 c6 d1 79 05 5a 36
-a9 b2 fe 69 da d5 a6 4d 05 b9 43 59 43 7d 34 17
-b8 4f 79 c2 7a c2 89 0c 52 c3 60 6f c6 34 28 a5
-94 cd bb 92 f0 98 71 6e d9 3a 8b d6 9d f8 a0 4e
-73 84 b2 f4 f1 41 c6 55 c3 78 b0 c9 76 ea 55 94
-8a f8 82 31 ef f4 9a b9 7d f0 12 f9 fb 3e c1 0c
-0f 69 96 1f c7 2d 94 51 9b 93 bd e6 a5 6f 68 98
-a6 af 33 f1 b9 b9 d5 f2 51 9c 55 db 2f 41 08 e1
-c9 bb 49 5e c7 3c 7c d2 e0 36 5d f6 51 4f fd 37
-40 dc 2b 40 c5 6d bb 42 6a d7 9e 1e 06 8a 03 28
-ba 04 90 4e 9a 8f 4e 2d d1 3a df 7b bc eb 4a 11
-e6 03 91 dc e0 44 2a c8 26 91 7c 19 c3 4e c5 1c
-2b db 53 11 61 7e d1 da b7 93 57 38 1b 7a 99 a3
-75 e9 72 d5 f4 69 0b ed c4 09 c7 fe 40 61 ba d3
-0d dd bd fc c9 ab 18 14 c8 a3 e5 45 df 05 3e 27
-af 45 3d 0d 6d 21 f5 20 7c b4 4b 8e 6e ff b2 66
-39 bc cb b1 05 4d bd 67 11 f4 65 03 14 6f a4 3c
-16 a9 2e 38 cf 45 76 ba d6 38 03 bd 10 0e 91 14
-b8 77 c4 14 47 7b af 68 79 d8 a9 70 f5 0a af 78
-d8 2e be 2f 27 61 86 d6 6a d0 1e 0c 02 ec f6 00
-76 43 fa 9b 9d 67 a3 61 e8 38 53 4f 13 b6 0f 07
-f6 43 4c b6 a1 84 60 c0 9c d4 14 9f 76 71 34 5e
-ac 06 0b 40 04 a6 84 88 2d 40 c8 7b 84 8f 8e f0
-b7 1e 20 c4 c6 cd b7 c0 65 a5 8c c5 ec 1a 3d e1
-3b 7d 49 e3 46 cb aa e3 84 9f 0b c5 e3 92 0e 43
-69 e2 50 c7 a1 4c 00 d6 e2 95 c2 e2 dc 98 fc 3e
-83 06 75 94 93 53 a7 62 b5 0e 7a b7 9f 6f 21 66
-31 5f bd 0d 15 8e 76 ee af 4d 13 c2 7c 6b de cf
-49 83 9c 41 c2 06 44 ed a9 74 1c eb de b5 db f9
-66 bd 8c b9 aa df ee da 0f b5 e1 20 83 a2 2f 2b
-c6 62 56 f1 23 d6 de 15 cd 88 65 89 c2 68 69 90
-b3 7f 61 e7 0c 41 16 a2 c3 69 f5 40 61 1f 24 56
-0f df 08 07 e4 9c 04 80 a3 12 72 e2 b3 93 8e 67
-c3 9a a8 35 0d ee 0c 1d da bd cb 63 5e 25 1a 7a
-ec 9f fb ea d3 41 71 95 90 c9 05 19 68 50 a8 b4
-bf 3c b7 e0 8d f9 c4 94 35 64 30 51 76 86 83 05
-89 e4 ce 21 f9 a7 61 f3 b4 d4 00 dd 4a 94 c2 3f
-0e 74 1b 2a 74 38 1e 04 1f ed 19 b8 86 ae be 5f
-f8 92 37 ca d1 b5 98 23 b6 7d b4 5d 87 bc 21 b0
-44 26 6d 12 0e 6d 82 e1 52 75 d4 3c 4d 3d 96 69
-aa 46 4b f9 9a 17 de cb 60 09 7c 61 5b e7 bc 0b
-16 a7 99 95 f5 84 7a 5f 39 bb 7a 32 8c d6 4f e5
-91 6c b4 7c 40 01 c5 f7 50 92 c5 bf 46 d6 4a dc
-b3 38 09 a6 d5 06 10 a3 69 56 c6 7f ae 97 e8 3f
-f8 b2 a9 cf cc 67 f2 3e 43 76 b9 9b 99 ce e0 f9
-2d be 13 b3 7f 2a 95 f2 a1 2c 4c 95 7a 31 9e 50
-f6 72 80 56 cc 87 5f af 7f 20 5b 99 8c 13 e9 61
-55 93 43 ed 5e 79 96 58 b6 58 43 31 5a 65 2c d7
-ab ba 48 07 7e da 1a 40 82 a0 57 80 09 c9 cb cd
-31 52 2d aa 91 6c 1c 7f 5d 41 d0 0c 51 0b ec 00
-40 be f0 8d d5 1e d5 f9 af bd 44 a9 4a f2 b2 a7
-6a 3d fd 90 4b 32 42 8f 54 7b c7 2a d0 1e 66 f9
-ee 49 9e da 98 24 4c 63 e1 9f b3 4d 79 ca a2 67
-5c 99 73 d9 17 39 01 03 ba d8 88 21 bc 6f 00 9d
-bb b9 28 66 d2 69 9e 16 a6 94 da 3c bf 3e 18 ce
-c8 56 37 d2 1d 2c 12 b6 a9 ea a7 e9 60 b8 59 04
-ac ea 89 56 8c e1 19 b3 c0 01 fa 48 39 15 f5 cf
-08 4b d3 87 74 4c 6a 96 70 56 58 84 f1 e6 09 10
-70 c2 1f 11 eb f9 49 6e 0f 7a 31 21 ae 5c 38 89
-d3 0d d7 ab 49 db 91 ea 64 80 95 e2 98 64 07 57
-b9 7a 87 5a 1f 10 be 9d fd da 0a 26 51 9f b1 39
-dd 4d 59 c7 d8 4b 76 9a 9d 38 69 95 03 7f 7f 2d
-ec 96 93 d5 6c 03 9f 8a 48 d3 22 ac 8c 66 f0 2e
-37 01 30 48 db 10 bb 78 3e e4 eb 6b 00 95 b4 73
-c5 37 86 d3 fc 97 2f 5f 0d b3 68 b8 1c e6 7c 59
-e0 95 71 39 50 76 b2 10 59 c5 10 73 50 39 37 79
-dc 6e 09 9a a3 dd 5c e4 df ec 1e 4e 41 f7 be de
-47 fa 33 0a 6c a3 c4 ff 56 0a c1 33 fa 0e ce d8
-d5 fd f1 1a 28 4b 09 63 98 71 e7 bb 30 bf 60 e0
-c7 6c 7e 26 92 69 93 c8 6b d3 00 d5 2b da 05 92
-e9 12 c6 aa 0f 4a 09 f8 48 b8 80 7d a9 5c fa 79
-d9 b8 00 04 fe 5e 4d af 5a 55 8c fa d2 fd 90 13
-e8 87 9a 34 ae 71 ca 10 5f ce 5e b3 e9 5d 72 32
-1b 18 f2 1d 9a 1d 44 22 1f a4 00 44 9b 92 63 4f
-06 61 58 ec 13 14 47 62 f9 3b b8 d6 e6 0b 19 7b
-61 62 7b 9c eb 24 96 8e 17 3b 07 52 17 c8 08 4f
-ee d9 84 b3 70 c4 4e d9 46 4b e8 84 81 c4 c0 2f
-f5 13 78 dc 11 c5 41 dd df 5d 28 98 01 8d fb 5c
-66 4e 5a e7 40 a4 e7 39 86 7c 24 60 ff 7f cb db
-e8 2b 5e 6d 02 82 b2 9f eb 6b 8b be 9e 78 c9 b9
-b6 92 e6 ed 1c d7 86 59 01 41 85 71 a5 20 c0 16
-34 fa 45 e2 07 d2 c1 4f c5 35 6e e2 d8 c6 9c c4
-03 fb 74 01 2c 8e 14 ed 5a e2 2c 3b 9c a4 59 d7
-ee 04 10 ea 2d 7f 2b 26 6c 8d 3a 65 3e 80 6c 44
-e5 08 20 67 84 c9 d2 37 63 b4 3b ec e2 74 e3 36
-5e d5 72 53 8a d6 1f c3 94 a6 d5 57 44 6b 1c 02
-fa a1 1f 1b ad 64 ee 18 f9 ef 64 ba d7 d6 5e 8f
-f4 8f e6 90 50 c1 d0 4d ad b3 95 52 ca 51 e8 dd
-4e 5d 3b 8d e0 6b f0 9b 44 75 c1 21 0b 26 83 3f
-a7 d8 19 b2 b4 ce 4c e4 1a 5c c3 63 5b 60 e1 79
-a5 51 dc be d4 b2 75 92 7c 50 0b f0 74 4a d9 66
-23 80 5c 06 31 9b 4c 33 0f 8d 79 78 d7 cf a8 4e
-00 56 c0 5a 7b b9 07 db a5 07 39 a8 40 47 b0 a2
-0d 34 f5 02 1f 11 ed a8 13 71 e8 91 2a e6 ea 13
-ac 71 d2 6a 84 71 d6 0c 16 0f 1a 83 65 d0 d6 fe
-b9 f9 0a 58 20 50 01 60 04 a9 5a ba d1 75 7f e8
-30 61 e1 72 d5 bc fa 5b 0a 0b ca fb c9 5b ba 54
-df b2 a5 5d 47 fc c6 9d 97 a4 0b 83 c4 05 24 70
-65 54 ac e5 ca f5 fa bd 75 c0 55 1f 81 6d 6b e2
-56 bf f4 b2 fc 8c f8 ae df ef 08 cb cf cc 5b 88
-74 72 22 3e c8 2f 7e 0f 1a 80 18 88 df 16 5a 05
-74 de 83 60 45 14 36 be 45 8a 0e e2 73 52 a9 10
-d1 1b 76 77 17 01 2b 43 f6 50 8a 80 9a 27 a3 33
-4a 25 5b 3f df 09 28 a3 12 83 7e 33 99 c1 40 32
-c1 81 b3 cb 20 6a 16 0c 88 74 33 a8 30 b9 99 72
-94 d7 8e 58 5b ab 3b 11 c3 8d 30 99 43 53 56 16
-a8 d5 61 28 cd c1 59 fd d4 2a 5c 74 55 80 7e 74
-cd c5 68 cd 03 a0 b6 b1 9c b7 c1 1d ee a8 6b c2
-d2 b2 0c 1c 96 19 57 1c 78 d7 88 5c 30 72 85 6a
-39 80 37 b0 80 b0 ed c0 d2 f9 3b c6 7f a0 b2 8c
-47 46 ad 19 05 27 fe a4 32 57 7f b5 cb 47 5c d2
-39 f8 31 dc 08 48 a9 3a 78 22 c7 c5 cb 67 60 37
-33 cc 3a 31 b0 cf ca ef 2e de 90 1c d6 b9 a0 24
-9e 7a 13 14 a8 d6 43 70 31 3c 34 58 65 2a 7d b2
-27 16 61 ba 4d 83 bd c9 b8 dc 16 99 34 f1 7f 91
-1a 57 02 b9 b5 8b 2d 82 f8 db e3 6a d8 a6 ca e6
-f3 b3 31 16 a4 99 4b e6 ab 27 25 a4 fa c8 c9 77
-fc 67 41 9a 7b 63 80 10 41 ba 9c ae 3c 68 98 5d
-ae d2 b6 b0 5c e9 86 27 2f ea 0c c5 e7 ac 50 c6
-85 10 2f 28 cd 2b c1 6f 2e 81 50 86 4b 59 33 6b
-5f 80 c3 d7 c8 39 b7 49 d7 40 3c 56 47 1c 9a 8a
-9c 78 da 04 54 8d 01 e4 c1 49 d8 74 de 58 ff 89
-60 b7 9a 31 57 7a 7f bd 1b bf 94 dd 81 f3 f2 47
-9a fd c5 52 4f 1a 27 8c da 12 8b f7 07 7d 78 da
-2f a1 80 da 6e b9 39 0b 9f 07 36 f7 61 bc a7 b6
-da 2a a6 67 e4 d0 c7 16 f2 d5 35 7c 66 ed 03 91
-7b ec 93 57 ad 38 78 92 ca 19 0f 06 ab 78 1a 68
-dd eb 7b 52 e4 9c 45 5d 0c f3 42 d4 2c d6 28 30
-90 a7 c3 36 e3 c6 17 ef 96 d2 0b 32 e5 98 70 65
-e2 4d 21 17 09 00 2d dd cf f2 34 05 63 c8 c3 d8
-64 5e 91 d4 42 94 b9 b0 93 5f 8d 6f 7e 60 e9 bb
-ec fd 67 34 30 61 8e ec 6e f7 03 52 2d 29 c1 83
-33 df 57 ac 0c 56 de f9 29 8f 3d 88 13 62 62 db
-71 6e 31 cb 17 ff 97 d6 a0 76 05 d8 43 0c 8d 3f
-9d 6d 40 5f a0 b9 b0 45 7e c8 f5 08 48 76 a1 d4
-38 6c 68 ec b0 cf 64 93 be 0d a0 3e 08 29 dd bb
-24 ae 6a b0 93 a5 c9 19 95 bf e9 db 8c 51 07 83
-1b 84 f1 a9 12 74 b4 e8 56 4f 8b e6 6a ca 93 87
-10 11 5c 96 b7 7a b3 23 ab 4b 64 94 78 fa 2f c7
-96 15 06 16 25 cd d8 21 f2 21 02 c1 cc 15 4d dc
-af e1 90 0f ae 2b 88 91 35 f4 03 28 71 08 37 44
-ea c2 aa 4c 58 d1 64 8e 63 e4 f2 85 2b 4e 04 dd
-d0 59 47 6d 4b 05 b8 18 48 54 80 3b 08 87 55 d0
-74 f3 ae f1 7b a6 63 f0 34 84 ee 69 ac 3e 07 47
-57 2c ea e5 07 4e 21 25 38 c1 de 83 31 a9 8a 3d
-95 42 ac 68 27 d4 8d 35 7f 58 a7 ac e9 e5 34 15
-29 51 00 3e 91 45 ff 4c d1 72 d1 5b f1 f5 0f af
-ea de 2e f5 52 9e 42 31 a6 22 86 60 38 48 ca 89
-a9 9d 6e b2 f5 a8 cb 5c bd 68 a2 71 b3 5e 6b 71
-a8 59 83 1c c9 ee 8a a6 5b 71 31 f9 8b 0d f2 02
-83 80 45 03 bb 70 9b 2e 19 2d 48 48 ed 20 24 54
-81 2f 69 4b f8 33 15 41 33 6b ef 75 c1 9c 58 0e
-e1 b6 f2 0e c5 e3 d5 4d f7 0f 35 85 71 ce b9 ef
-a2 89 74 4c d8 47 28 d0 9a 17 cd 01 a0 61 a3 11
-b5 55 68 4d 3c 44 5c cf 20 a3 aa b5 27 64 8f bc
-e1 4f 29 21 e5 c5 3e de 3b 09 27 a3 a5 49 1e 25
-33 bd 70 b8 1f 07 30 57 1d e8 25 c8 05 b4 ac c9
-3f 85 a3 9c 06 d9 c2 a7 95 72 43 74 e7 d2 ae f4
-32 16 b2 09 39 c5 19 c2 b5 89 19 05 88 a6 59 a5
-92 83 e4 79 62 d3 c6 64 2a f9 27 29 18 16 18 69
-3b e1 0e 06 da 15 32 75 1b b7 81 13 3c a9 86 e7
-fd 33 65 74 66 c1 78 65 e0 dd 1b 40 02 e6 aa 29
-a4 f0 a3 a9 8d 7a 1a 74 80 be 12 55 32 2b f4 ed
-4a f9 e8 d3 80 92 7a ea dc d3 c3 4a f7 33 c6 b0
-ad 2a ec fd 56 6b 39 57 ff c0 a8 62 db 1a 57 d6
-01 53 7f 85 02 29 37 99 26 87 b5 9f 03 c6 43 55
-ee f4 d7 50 bc 9d 71 ef 83 11 6b 17 44 70 63 d3
-9c c8 80 8b 83 0b df ad 18 9e 03 f1 4a a6 21 61
-05 4d c9 f1 ca 7f 75 ac 97 0b 90 70 0c 31 e4 e2
-17 0e 94 bd ea 6b c5 b6 ac 47 5e bc e9 cc 29 25
-59 66 db 01 8e bc c8 e9 d0 77 43 27 f4 c9 35 6a
-bb 85 2b cf d8 85 86 bc 13 e8 87 15 b8 e1 78 bf
-a6 3f 5b 4b 94 6f c8 10 c0 ae bc c6 dc 84 35 4a
-9c 8a d2 f0 ea 7d a9 4a c3 cc d2 d4 ce a0 2d 11
-1a 36 59 c3 6f 4d 57 41 a2 de a9 f2 2c ee 5b e5
-ee 42 15 33 2d 85 da 29 76 14 2c 59 bd 13 d4 d6
-4e ba af fd ed 6b 9a 05 c7 f4 19 26 fc 2e b0 41
-ac 13 62 0d ac d4 d5 0b de 71 f7 24 a9 57 24 49
-d1 22 99 01 68 0e 63 9a 66 6b ee b9 f5 a5 4f 6b
-f6 29 77 b7 be f7 9b fe 32 90 c1 30 a5 6a aa 6c
-3c 8b 22 a5 99 2d e8 30 37 2d 16 ae 92 11 ba aa
-d5 b6 64 84 c7 78 8c 14 48 f7 74 1c d3 9a 82 fa
-62 7f 24 37 a3 5f 6b 37 1d 1a 38 e3 b5 20 1d ae
-ff 7b 4f 69 6b f5 19 da e4 7b dc 8b 88 e9 41 3e
-2f 6a 7c 48 19 26 7a b6 32 78 03 f9 75 57 f6 d7
-4e 14 01 01 87 1d 75 65 80 56 6f 32 15 20 10 a3
-9b 4f 7e 67 b3 e0 21 39 af 48 22 7c 0b 66 d1 20
-db 69 39 8b 5c 27 72 06 dc 88 8b 30 34 02 7e 7d
-6b 4b 31 90 3c 14 f0 c4 28 a8 79 5f d3 37 fc 91
-8d 7a 36 a9 91 79 aa 8f 4f 7e 41 1c ed 7d d7 eb
-66 c3 b8 63 cf 74 72 6f 62 a2 80 13 cf 41 15 68
-c5 9b a4 df 19 d3 2e e7 96 e3 fe 91 38 d0 e9 1b
-89 1c 09 1b 3e 58 a0 c8 7a 36 4a 1f 5e 6b 67 9b
-66 c6 34 04 2e 40 43 f8 19 94 a6 78 4b 29 08 7e
-01 7c 9d b3 cf d4 b7 8c a8 1f 24 48 c4 e6 53 0e
-83 dd 72 a0 78 ae ab 32 2a 91 fd f2 1e 97 7a e8
-66 9f 71 7f ea 99 5f 92 4b 33 30 a4 cf 72 cd 6e
-5c 3c 5c 10 bf 66 df 3f 30 42 a5 2c be 22 a5 0e
-09 71 45 69 c1 50 f1 d1 e2 68 c6 fd 1f 42 80 0f
-35 80 e8 32 11 73 bd e1 31 c6 d6 8b 8d 26 bb cc
-ea 6a 56 ee d4 3a c2 48 b6 32 83 2f a3 60 44 3d
-be 6a fc c2 04 00 98 42 e9 13 a0 b9 1b f4 66 0d
-e2 1c ea 7f 81 61 3b 3c 42 b3 52 90 d1 1d ab 46
-9f f2 19 91 dc f0 03 83 dd 35 63 f0 d8 e0 07 ee
-8e 61 24 49 27 df 14 2d 41 80 39 b3 79 25 56 8c
-82 70 be 32 a7 05 fa 1f ca 7b c9 36 25 73 5a f5
-cc a6 e1 4f 2f 11 ce ff 2b 13 37 68 84 c9 a8 4c
-d0 59 32 12 d3 af 7e e7 ad a9 bd 3f ae ff 63 a7
-4f bb dc 92 48 83 6c 2a 0f 19 35 48 78 74 47 ee
-55 e8 e3 fd 7e ee 9b 5d 2d 63 99 d4 05 40 63 6a
-d0 f1 45 29 7b 38 30 57 9b 8b 7f 5e ef cb 10 1e
-9c f8 94 1f 7a 3a e0 31 dd 6f 41 18 58 d3 1e c7
-81 2a 80 d1 50 2a 52 e2 7b 1a 94 94 eb 0a ec 54
-66 d6 a2 20 de a3 41 c5 9a 02 35 88 ae 78 f8 0f
-6d 06 7d ec cc f8 62 ea 31 df b5 e0 ac 75 7b a7
-54 6e d4 53 10 5d 2c 8e 83 88 ce e8 0f 24 83 d7
-63 76 24 5f 89 d4 32 bc 3e 1e aa 38 1a a2 ac b1
-ca 1a 66 ef 8d 06 5b cd b6 7f e7 25 77 9d 89 42
-0f 9a 72 59 ac ea 8a 17 fa e4 56 a8 12 25 a0 f9
-c9 66 cc 7b 31 b6 92 49 3e 99 ea 20 a7 89 d1 1b
-79 0a 08 7c 72 53 a1 cb 87 97 d4 d6 d4 52 96 8d
-a5 cd 96 7e 1e 76 21 83 8d 44 07 77 07 80 6c de
-36 37 33 d0 7e e5 0e bd f8 da 98 03 4a 4e ac 1b
-27 20 19 0b 18 fb f2 9f a8 d1 1c c6 e9 54 7a dd
-28 f3 06 08 69 49 0d 31 8a e0 10 2e ac db 48 50
-c9 5f 88 b0 c5 ea 87 4b 19 57 d5 1f 59 87 77 66
-c0 54 70 b9 5a a2 d5 2e 58 fd d0 d6 e2 62 9b de
-8f 07 75 67 38 d6 2b a6 10 76 20 7d 70 ef 3f e4
-49 2c 79 16 4c c7 2b d6 34 f4 02 84 bd f8 59 79
-8d f3 f7 1c 7f 70 4f 1b af 54 dd 92 d5 d9 ef 07
-38 43 15 9a a4 76 9f a9 af 73 fe cc bc a4 be 95
-7f 16 05 e3 8d a9 02 97 f6 6c 44 88 0d 18 3a 80
-78 c1 64 20 f4 1a cc b5 cd b1 f7 22 ba 9b da 2b
-38 13 bc 83 a5 5b 66 e6 06 59 4e 76 03 c1 d8 70
-65 6b 4b ca 8d 91 21 f3 1b 02 2b 79 6e 0f b0 1b
-98 96 3a d2 0b 00 26 bd b4 8c 56 f1 83 85 5c ea
-8a 06 5a 17 56 8d d1 50 4d 54 bf 44 00 92 f4 22
-db 9d da 89 c3 84 8d e5 9b 22 d3 09 6c cb 0e 23
-9b 4a 56 44 d3 21 6a fd 41 54 3d c8 90 73 34 8a
-b8 58 73 dc 8f 4a b8 37 56 46 5b 9d df 8b 05 1f
-6c 31 e0 72 cb 8a ba 9a 5e 16 e2 e1 c2 75 37 f2
-55 51 61 4d 03 54 29 04 97 a3 50 84 7e 0c 79 51
-e4 9d e9 c9 0e 1d c2 70 4c 09 24 1f 90 3c c0 1e
-07 3a a9 36 6c 0a 39 d9 cd b3 e1 0f 82 c7 9b 55
-8c cd 94 c0 f3 30 48 8f 2b 2f 32 6e 2f b7 a7 a7
-ac c3 de 9d ab 37 e9 46 df ca 0e 0d 7a 41 ba 1b
-9d 78 f6 6f 22 a4 ee c4 be bf 3c d4 d4 a1 9f c6
-04 79 8f b1 d5 ed a6 d9 f3 4a 49 9c 2c 00 77 f7
-9c 00 9c b6 a0 0a c1 ae 85 10 73 10 eb e5 c8 a6
-25 34 5a f0 c7 78 31 bf b0 bc d7 df 50 3b f2 51
-90 61 77 86 06 dd f6 5a 73 6e 7d c9 e0 70 32 81
-38 da 3a 29 22 5a 6c 1f 79 db 44 f9 ec 82 c2 6c
-03 73 85 02 16 f4 34 5e 51 49 b6 f0 3f 85 e8 ca
-1e 57 9a f8 0a 37 d6 10 6c ec 2c 6e 4d 07 8f be
-21 31 87 43 ce bc d6 1e cb 57 3c ae be 34 3b 73
-4d dd f7 1f aa 53 2c e3 64 c9 c1 86 34 a6 22 ea
-98 d9 3c 3f 78 90 38 03 30 c5 17 c3 f2 22 63 74
-a3 ef b3 03 44 d9 ae 0d 63 95 24 04 a8 b4 be 3b
-ef f7 f2 38 9d 85 64 7b 05 bf d9 a5 00 bf 8c bd
-5e bb af 65 20 eb f1 21 61 83 42 80 23 ad 27 97
-48 fd 0d f1 4f 26 4f 74 4f 18 d8 19 0c 1d 09 8e
-a5 3e 7f 92 1e 7f 4d fd 95 78 4e 75 71 7e d5 73
-e9 e3 bf 73 28 c0 15 5c 39 cf ec 19 1c 47 78 23
-d0 05 4d 39 20 9f 15 5c cd ac 18 e8 cb bb 2a 43
-b7 d7 49 46 3b 9f 2c 9a fd 8e c6 98 5d 72 f7 1b
-67 af 6a e3 a4 11 ee c1 c2 10 30 d3 85 a7 c3 98
-d3 15 f6 14 28 da 76 46 cc 66 be 7a 47 f8 b2 aa
-77 30 f1 49 11 df 00 80 17 9a 46 f3 8d 8f 12 d3
-ad 86 2b 6d 92 1f 0e 43 80 f1 ce f7 2e e2 0d 02
-ec 46 64 0b 86 a5 f8 53 00 b5 16 be 98 3b f6 5a
-1f 6d 63 ae 6d fd ee 9d 2a 39 7b 6f d6 f6 7f 28
-24 d6 83 0a db 51 01 77 f0 94 98 5f e0 42 96 29
-ee 2c 92 df f9 7f 69 07 bc f4 bf 82 9f 5f bd 48
-92 0e f2 61 40 a3 42 8f 72 a5 92 a3 ad a9 e0 7f
-f6 29 82 45 1d 23 4b 28 cf b0 1c fd 02 50 06 f2
-b8 fc 8f 09 32 0e f6 32 ff 36 0a 4f 71 8d df dc
-ee 4c 92 15 aa db bf 43 05 42 18 e0 7b 8e d5 47
-dc bb 90 a2 25 ab 2d 07 be 99 0d 81 e8 5a b4 55
-20 0c 6c 4b 23 88 03 0e 57 d8 fd ff e8 1f b0 ff
-54 1b 7a 20 10 d9 67 94 17 f7 a2 5c 09 e9 2a c8
-6e bd ec e0 be d8 35 36 84 60 ef 00 35 1c d3 a8
-63 90 02 37 60 df 26 cf 30 15 82 6f 41 f1 9e 44
-31 45 83 73 89 53 7a e3 e7 f0 fe 2a 89 b5 8a 3a
-10 0e 90 fb 37 c6 96 a7 78 44 b6 df 3a be 11 27
-13 8e 20 f0 24 f2 05 a2 91 74 64 3a f2 d7 32 de
-58 bc 80 19 0e 7d 5c 2e 84 0a 18 c0 8c 28 94 3c
-84 e0 6c 47 dc ee b1 da cb 99 06 0b cb 86 0f 28
-41 91 ad 53 04 97 c2 1b 17 b7 0e 36 d2 bf f3 d0
-ab 99 bc c8 8f 69 ef 48 23 d8 7f b1 0b 56 d3 94
-5c 3c 28 45 f6 2b aa 0c 60 1a 58 39 89 7c 64 01
-e6 c5 ad 98 a2 b0 fe 2b 56 d9 e2 45 86 c3 58 c4
-56 ba 28 cf aa 76 e0 ee 43 90 72 b4 19 40 82 51
-de 8f 93 c3 75 35 83 a1 38 9e 0e 98 80 53 7c 8a
-78 da 8d b7 5b e8 c0 e3 fe 1a 91 bc d3 6d 51 15
-ec 5e 74 0b 6e 93 2c 28 e5 f6 8b 38 c8 41 63 c1
-c4 70 4e 6c cb 91 97 56 22 1a b4 a2 86 a2 36 30
-53 22 ec bb 8c 9a c1 af 99 71 ae 7a dc c5 f3 a9
-ac 58 33 a5 29 d6 43 fc 83 9f 24 bf d1 b7 15 09
-84 36 b9 1d 46 cc bc 4f 0c ce c1 31 ef 5b e3 41
-99 8c 42 7d 9e aa 2b e3 cd 93 01 5e 17 a6 b3 7c
-97 5f 24 c9 1d 8a b8 17 6e 0a 4b 91 86 a4 df 99
-e4 fa d4 df 17 8a fa 1f 29 22 66 b6 33 a1 99 f9
-be 68 9d 78 89 d4 51 95 da 25 4b 42 11 f9 4b 98
-59 06 ee cf ff 96 d6 0c a1 2b 24 5c b8 04 fc ef
-c6 21 3d 38 42 d1 1a c7 e6 14 57 25 fc e6 d2 12
-3e 2c e0 95 72 20 51 26 f9 8d 72 f4 27 e9 59 e9
-a6 8b ba fa cd 38 00 06 84 ed 7d 84 d3 11 25 3b
-6c fb 60 8d e1 00 f4 c4 e6 0f c0 6f eb fd 49 51
-e3 2a 2c 0b 86 13 2e d4 84 fe c4 57 49 e1 99 82
-1e a8 4d 18 fd ae 8d 2b 5a ea e5 d5 ed 0c aa ae
-a0 9d 98 f6 9c 00 f2 d0 d7 8e 11 6d d6 d0 a3 25
-75 84 70 e7 fb 56 4b b5 34 59 02 e0 6a 9b 08 9e
-7e ed 8a bb 53 8e 7e 40 d2 c0 c8 f8 41 12 cd 15
-b4 14 05 be 17 8f d8 82 7f 2f a4 b6 0d 84 90 d1
-d0 74 f0 0b 3a 45 2c 26 07 71 18 7c aa 90 e9 8a
-59 de fb d2 06 9d d3 23 4d 2d 4e 7c 9c ad 27 51
-7e e8 77 8f c3 69 ff 51 01 20 aa 1a 42 a3 47 98
-83 70 c9 54 ab 1f 43 69 45 3f 88 19 b7 3b 8d 67
-7f d6 58 1f 7b 8f df 48 1d 2e dd 85 3b a4 7a fd
-7a bd 90 37 55 e8 46 08 e2 51 1c df 2f 4d c8 f9
-cf 5f 0b c7 16 ea 4a ce 94 0e fe 69 35 27 cd 0f
-82 79 97 b8 7d 44 33 a4 84 24 2b 2f 62 9c bd 67
-cb aa 55 67 73 6c 67 7f 99 b7 33 c0 91 97 98 42
-fa 32 0b 77 08 d1 b3 29 3c bc d3 3d 86 1c d3 3d
-b0 f4 87 39 71 b1 90 08 07 11 0c 59 3b bb c6 00
-e5 f4 ed e4 d8 06 6c d7 32 0b 2e b8 a5 ef 75 3c
-d4 2b a4 de 4a 3c 57 94 45 a3 8e d0 71 93 1c 76
-ea 9a 1d 4d 78 cf ae 0a 1c 3d 53 9c 42 1f 89 40
-1b 33 45 a0 af c2 aa ff 78 a2 25 23 5d 1d 81 f4
-72 e4 b5 b8 f5 b3 42 85 8e 6c 0d 7e 95 20 69 ab
-65 09 8f 14 34 80 76 6c 8a c1 32 38 bc 94 cc e6
-39 a9 d9 3c eb c3 35 ce 83 6b c2 b1 02 63 4f a0
-59 5b 3d 10 2d 86 96 82 90 6c be 06 49 4d ed 06
-40 1b 81 73 9f 64 41 e9 04 6b 0d 66 17 16 df 5f
-83 89 b9 43 92 86 9c ae b0 f3 bf 05 1b 83 8e c3
-f4 ce 51 40 c2 52 fd 15 ac bb 9e e8 ca 81 1f 89
-83 a6 2b 02 79 9b 62 e4 33 4e cf 0d a2 d1 52 07
-c0 09 6a 77 06 c9 cc 2f 2b 4d c6 70 cd 1d 5f 77
-e0 07 b0 3a 7e 8b f3 8e 09 41 4e 45 99 72 1f a6
-92 49 26 f7 11 eb 31 fe 20 fe 13 fc 2b 19 7a 3c
-8e 3e f8 8c 1b 41 da 13 1b 5b 18 4e 4d 06 2e 07
-a8 e0 1a 75 6e 3e b6 2b 53 8a 36 e8 61 e8 20 dd
-c4 73 3d b7 36 60 0d f2 83 db f5 3a 4e f4 cf 3f
-ba 1b 68 95 ba 98 87 63 8b 3a b4 d9 9a 08 a6 e2
-c9 fe e5 eb c0 0c e0 6f dc ca 8d 30 04 7f de 51
-2f 72 1f e3 c9 cf 8d 95 f8 47 9c 11 ef 19 f7 8b
-31 f3 19 c4 1f 1b a6 46 56 07 82 a1 6e 07 77 ec
-85 81 f9 c4 fc 31 00 d6 96 92 14 6f fd 4d 6c 4f
-b8 52 4f 69 19 f9 d7 66 b2 b7 51 e2 95 28 37 be
-00 e3 1e f1 dd 0e 4b 2d 6d 9f 7a 7f 96 18 9c 83
-80 95 7d bb a5 4a ec b5 3a 3d af fa 63 1e 5c ff
-0e 9b 9d fa 85 bc ca aa 3f d0 b9 25 0f 5e dc 70
-29 66 32 ae 6d 55 d1 57 2e f8 28 ca eb b4 13 7d
-14 69 e0 12 c6 06 e8 be 1e 55 00 90 6f 67 f4 a2
-57 a5 85 6e ca 79 f9 46 fc 70 95 40 08 7e 9f 37
-46 39 e6 00 b5 b6 81 f6 c8 b4 9b 3b 05 96 d7 6a
-42 a0 0f ef a3 f7 61 11 3b 10 60 37 b3 23 aa e6
-c1 32 b7 b9 aa 56 b5 59 51 de c2 ba 6a 7f 63 6f
-9a 66 11 d2 50 b0 9a ae 93 08 03 76 0f 02 8f 67
-7d cb 68 f1 1f b4 d9 b1 20 e4 e8 f1 d5 e5 42 85
-4c ae c4 ec 30 f9 20 6a 32 d0 99 dc 67 02 5d 56
-fc 5a da 41 cc 90 69 8b 05 77 81 40 96 2a 1e 38
-8b fa 77 52 5e 96 f6 d6 63 3f 4e 09 a6 d8 79 39
-9a 84 bd 28 92 df cd b1 de 50 72 88 80 61 51 f5
-e0 1a 9d ae dc a1 6f ad ae ae 0b f6 80 77 a1 41
-40 2b 98 81 0c 5c 99 31 37 4f ec b2 40 b0 35 e0
-a6 c2 6c 21 15 6f 50 d2 b0 3b 03 1c 35 d6 87 e6
-72 3a c8 13 dd 32 42 ff 84 68 c6 ed 40 9d 1d 24
-db 79 68 fa 55 f9 65 09 c4 bc 17 0a 5d f5 93 8d
-4c cd 1f 2b 21 3f aa 11 fd 45 5c dd 84 0c 1b 70
-57 d2 8b 2b 6e c1 fd 51 0d f7 bf e4 c0 af a0 06
-6e 2a 72 bc e7 16 8e 21 90 db 67 2a e2 2a 60 96
-b3 7e 05 ba 16 f7 ed 0c fd 4e 00 9d c4 7f 99 38
-6e 8b 0e 6e ce b9 16 50 7b e6 f4 48 20 1a 9f 54
-bb 12 1f ff 3a f3 f5 79 bd bf 47 8e 1f 55 65 8c
-5c 68 77 2e b3 c5 13 8e e1 c0 c7 e2 98 a9 bc c7
-62 9a f1 cf df d3 86 1c f2 40 c3 32 fd b6 cc 18
-ea 5c 73 4d 54 2c 07 11 30 8c eb 6d dd 9d 7e d6
-d4 de 59 c2 f0 a1 0f ee 45 95 4a 79 5f 97 2f fd
-dd 6f dd bd be f6 02 17 cc 0a b9 cf f0 7a 72 99
-c1 43 c4 47 92 b2 48 0c 97 6b da 77 cf 17 49 5a
-c5 a8 ff 8b 61 b2 50 10 e4 8d 41 b5 b1 7a e3 08
-55 cc 71 3f 50 d9 8a 9f bb 0c 19 b1 12 7c 32 a4
-bb bc e7 5c fc c7 52 24 19 50 a8 9e 03 38 ab 06
-20 07 68 a6 64 34 e1 44 85 08 10 1d 5a dd dd 53
-3b a9 12 40 5b 13 f0 c0 d8 27 40 f6 14 01 f2 ed
-e6 25 a6 a3 12 81 83 79 21 be a4 52 75 95 6f 4b
-59 82 a5 78 50 7f f6 ac 1a 9a 13 2e 7a 3d 9a 25
-f3 c8 de f8 20 70 01 8e 0e 4c f0 94 5f a7 d5 71
-e8 eb d9 9d 2f a6 4d b8 34 90 95 04 58 56 7a a6
-75 65 a4 14 d0 06 50 48 21 a2 25 8a 88 02 7c e4
-da 8f f2 63 94 23 d7 e4 ed 74 10 1d 58 cb 5c 47
-74 a6 1e a9 b2 54 eb 4a 01 3a d6 74 60 77 8e 69
-12 55 9e 46 56 e3 60 bc a8 a0 82 10 d7 37 ab 24
-03 9f 4a 88 99 f8 f6 42 6c 6f b0 2a f2 36 05 7c
-1a 55 a5 2b 4f 8c 78 ca 7c ce c0 63 cb 8c c0 4c
-43 da 9c 56 a1 e2 01 65 f5 92 38 48 c1 00 79 50
-47 82 3e 57 64 6b 47 0d 65 90 9d 49 01 f1 c6 25
-e6 16 4f 95 13 d6 01 ef 9c 58 2a 8d 81 99 18 33
-06 53 77 e3 cb ff ae 4e 4f 13 1c 24 16 de 61 0f
-c0 5c 7a ed f2 39 89 dc 85 5c 45 d6 10 c8 56 c7
-ab 6a cb 81 f1 21 7d d3 19 04 c5 a3 95 e6 bc fd
-47 62 06 10 cd c7 e1 fa 2b d5 ec a3 21 95 f1 3c
-ce 27 39 bd 03 cf 53 dd a7 39 e9 d1 b8 37 88 14
-6b 04 d3 02 47 96 64 3a 23 c3 e3 d0 fc 37 3a 86
-1c 6f 43 42 d4 14 3f 53 51 34 32 f4 e0 94 2b 0a
-5b b5 f3 4d f1 bc e8 51 fa 31 d8 7d 87 63 bb 5a
-78 d9 50 7f b8 c8 08 f0 52 12 b1 77 82 e2 e0 6b
-b9 06 2e a2 9c 38 12 bb f5 65 e7 9c 9b 50 59 b0
-e5 60 a2 da 7f 99 04 23 a7 d8 95 00 be c8 c1 d7
-af d2 91 fd fc dd bc e7 b8 8b cd 24 52 07 bc d6
-84 1c 93 6b a7 c7 ce ae 2c 3f bb e4 a2 28 f6 75
-42 4a f5 e6 f1 07 2e ba b0 a8 44 a7 a6 94 db 93
-16 4c c5 dd a7 b3 6e 32 95 71 b4 3f 09 62 a3 ec
-2a a8 bd da eb 28 2b a0 5f 73 b0 9b 4d 33 59 6d
-f7 0c 8a 00 cd d6 b1 f2 26 3f 17 a5 b1 20 20 9b
-f2 1c bf e6 2a 44 b4 69 a4 29 d4 ca d3 89 a9 70
-fe 75 83 cf 37 a2 0f 1a 87 d2 bc e7 c5 fd 99 e1
-1a 6a ab 62 80 9a 8a 8b 19 06 b9 8f 75 d1 9b 05
-46 af ae 00 87 18 ec e1 ef 14 24 77 c0 98 c9 ab
-d7 55 80 d3 c0 04 ba 7c a0 df f2 30 5e b4 b4 d1
-eb d9 41 2e 23 49 af ef 1c a9 53 66 5e a3 b7 e5
-84 e1 0b ff c6 12 f0 c2 7a e1 f0 2a 55 36 26 ae
-ee 9c 41 90 18 af b1 7e f9 4f 25 67 e9 d8 43 f1
-cb f2 9f 94 c7 9d 35 40 f5 a3 b5 ba c8 89 3c 32
-65 37 46 62 c5 86 7a bc 9d f3 6c 0a 90 62 b1 07
-3a 79 f5 50 9d 0d 3a 28 69 6f 74 37 1e 22 f9 4d
-c6 67 e6 5c 06 9c c7 b3 20 03 00 9d ba cd 25 be
-d7 ad e5 ae 79 db 51 71 cd ad 5a e1 0d b4 cf 1f
-30 6a ae 6a cb cf cc 76 01 60 2a 8c 4e 15 c6 f7
-be ff 25 06 4b 73 f5 ef bb 05 be e3 94 b7 da 14
-e2 83 ce 6d 41 9d e2 43 14 6f 8c e3 c4 f8 cf b3
-45 ec d2 89 22 e5 d7 3c e8 e0 30 ef a3 cb 5a 96
-9d fe 60 90 2d a5 df cd 05 7a 85 86 a8 62 14 bf
-15 a9 2c b3 1d 12 3a 6e 50 d5 25 4a 14 4a a3 2b
-2c 50 28 c4 84 5c 17 22 71 16 64 01 55 d5 04 fc
-73 e9 90 53 e3 b4 6b 29 30 85 7d c4 f7 82 70 61
-99 f7 64 dd 67 00 2c 8b e7 01 01 13 0e 82 e1 bf
-c1 df c7 47 b8 13 e9 c1 d9 96 2b 8a 7e 84 a3 a2
-55 b2 85 dc cd 02 8c 61 95 70 22 13 60 87 f3 47
-0e d3 7a 00 9b b5 2e 14 7b 7e b1 54 08 ad ca 7d
-bc d1 4d a7 f1 8b b7 43 23 e4 30 16 bd 8d 7e 40
-35 28 98 55 88 ba 4c 73 e9 ac 5c 6d 58 30 8a e7
-6c e1 60 ce 07 98 11 59 67 e2 57 b9 13 5b 81 04
-ef 31 5d bb 1b 4b ed 8e 77 68 1c d5 84 7a c6 de
-e6 1c 85 7e 4b f2 62 c6 7e ba 26 67 8a 14 c2 bb
-8b 13 1a b7 72 e7 30 b7 9c 5e 96 b3 64 14 d8 f9
-50 5f 0f f7 23 df 02 11 22 e2 96 de b5 54 96 c9
-ba c6 c2 46 6c 9c fd c8 44 22 d8 02 99 f6 4e 61
-f6 85 ce ab 3c 3f b7 6c 23 87 a3 78 5a d7 75 29
-5d 9c b3 2c 38 56 3d 67 f4 0f 26 17 75 58 6a d1
-5e 31 31 a5 f7 28 a1 fe ad 9c a6 4b 0e 06 e3 a8
-e2 c7 56 48 ed f1 cb 7c 46 20 80 2c 56 ca 9c d6
-a2 be 62 67 08 75 5b 7e 25 2e 68 5e c9 b5 80 7c
-6a 03 e4 ad 73 72 da ac 16 56 23 24 a9 c4 a9 97
-6b 73 01 cf 27 70 2f f4 69 4b bf 66 81 ed 4c e0
-27 66 7e d2 3c d7 0a 3b 9e 0a 53 d9 ef c8 3e d7
-e1 22 e9 08 18 67 5c ab 11 20 e7 33 dd f4 38 2d
-30 c5 a9 93 a9 5d 50 27 66 65 b1 2e 7f 96 e7 0e
-64 12 1b 2c dc 7a b1 11 2a df 3a bd ae 5a 68 bb
-84 4b 97 09 f3 16 bc a8 cf 38 f9 d3 d4 94 f8 95
-97 05 80 01 f3 a3 78 37 63 e8 ec d5 f7 f4 5c 4c
-8d 82 cb 44 49 40 d1 56 4c 83 34 81 b8 f0 28 6c
-5a e5 8e c2 65 ad b5 65 db 36 64 d9 86 b0 c1 b5
-44 2a 08 2f b3 fe 1b f5 ef 05 2c 22 21 42 d6 13
-3c 58 2d 6b fd 0e de c1 c1 6a 32 b2 81 56 b0 d3
-92 8a 2f f9 ed 64 b6 ea 23 7a 04 29 79 19 ef 86
-9c 6d 30 38 c9 3d 9f 5f 98 e9 16 27 8e e2 38 49
-fe 74 74 e1 9d ab b7 76 9e 10 52 b1 fe 70 fb ca
-c4 a8 3c 48 a4 68 2f 6b 86 38 f6 58 c3 87 cd 98
-3e c4 9f 36 f4 55 0c bc 94 42 64 19 ad 4b 5d 65
-40 9c 9d 84 b1 6d 0c 81 db 3c 35 df 98 a3 fc be
-a3 01 46 6f 02 9e 29 2c e1 fe 89 3c 02 2d 88 f7
-81 87 5f e0 d5 63 b5 cc ab 4d af 7d 2d 36 d5 8a
-5f 65 15 50 ba c8 05 f2 fd 09 b5 9f 78 5e a4 29
-5e ba 25 97 00 03 91 63 f5 d7 b9 32 a8 06 80 2e
-5e b6 e5 06 88 e1 fd 7b 15 de f3 cc 17 04 c9 b6
-ca 5d 75 8c fd aa 10 0c e1 97 6f 54 f4 99 a1 7f
-df 8f 42 51 4b be 2b d3 75 f3 7c b4 78 ee 21 e2
-70 7b a4 40 35 c3 42 5b 29 73 20 37 30 c0 98 50
-42 fd 88 81 77 f2 dc 5e 0b 55 f1 f7 71 23 e6 0f
-00 a5 19 f6 ee da e1 ca cb 81 f7 c2 cb 83 90 0f
-bb d4 3c 8e 53 56 1b 21 ea 71 95 64 57 21 9e b0
-be 92 e8 19 92 ff 79 92 69 ac bf d8 01 00 e2 15
-88 4c 8c 29 f6 6a 12 4d 91 41 eb 1d 1b aa 07 e8
-63 44 7f 68 2e d3 e9 a5 5a 51 08 0f 85 88 39 5b
-af 0d a3 f4 38 d5 8d 0c 1d 1f ee ba 12 29 43 52
-d9 9b 95 8e 85 bc b0 1b 81 02 9e 99 71 73 e0 8c
-04 85 87 b3 39 60 b2 b2 0a 17 1e 6d 4c 19 6f eb
-74 73 65 93 ab 7b c4 78 ce 5d 5e 13 44 8f 88 7e
-0e 3d e5 fa 7a c1 8b 28 8b a1 8e c1 c7 1f 3c f5
-8f 62 dc ea 8c 30 ce 6b fc 3a a1 67 2a 7b d4 99
-72 a7 00 87 9f 13 b1 73 e0 96 a2 ba 42 a3 b5 2f
-91 8c 1b 43 98 40 1d 87 f1 ce 7e 1c 8e 0c 99 2a
-3c 2e d5 e6 fa 0a f5 3f be 62 2b 3e 5b c2 fd b8
-86 ed 02 f4 d8 9c 2b 2f c7 4c f7 70 60 04 aa 7c
-69 84 b2 58 69 69 89 da 75 04 41 10 41 ba 91 2b
-93 d0 4e c6 12 06 81 3b a7 21 3a fb 57 89 90 90
-08 85 03 fe 89 f2 eb a0 e3 c4 8a 76 4b 35 40 d1
-f4 f4 8d 6d c3 65 07 af 6f 9c 67 05 08 bb d7 26
-10 b1 b1 d7 81 8f eb 0b cb 21 dc f0 c4 5e 61 e0
-0c c3 12 1b c5 cb 83 a9 ab 0d 2d 82 81 2c 5d 5a
-e4 13 7e 21 d0 ed 4e 49 24 c4 c4 91 12 8a 68 73
-25 48 fc 6a 5e 8e 70 de 40 31 a6 8c 2d 50 a5 84
-a9 5c b6 a5 2b f9 ee aa 18 ba 2a fa 43 70 41 a3
-3a bc 31 2f 74 d5 45 18 0e 2d 61 94 4e e5 b4 4e
-bd 46 55 4b 34 9d cb 77 1e d6 d9 85 da a0 86 20
-bc 6a dc 94 95 a0 63 16 ad e9 93 84 35 68 52 45
-76 f5 59 e8 0f 23 ad 73 5a e4 a0 09 5f 05 8f e8
-ec 05 9d 61 44 d0 ff 60 c2 72 b5 53 c6 38 2e b2
-14 78 bc 2b 03 62 92 8c 4a 07 81 44 12 b6 b2 ac
-80 cf 11 71 67 64 f2 d8 58 7e cc 27 e1 14 de b0
-1a b3 a8 f4 eb 5a ac 11 1c 77 84 dd f4 45 dc c1
-a3 29 90 f2 03 8b 44 f6 e6 ce eb fd e2 53 d6 aa
-7a d8 0f c0 98 be 66 71 84 e4 26 a8 c9 b0 ac 82
-c3 17 ae 7b e4 77 00 e6 05 29 4b 98 35 68 8f ef
-14 60 36 47 0a 7a f6 f2 d6 9b 21 38 15 4f ef 3a
-4a 44 c9 0a 85 e8 96 57 33 a8 64 d1 14 3e 4b df
-32 96 f0 aa f1 27 3f 8d d9 f7 d4 39 69 00 26 31
-1a f1 de 38 e4 36 59 a0 ea a5 14 69 5e 9e 0d e1
-c9 9a 57 6c 4b 6f a3 fe 10 88 dd c2 8f e6 5c 4f
-97 6f ca f3 33 b6 01 f2 8d ac 60 a4 cd 02 79 31
-ca 37 d1 70 a4 0a 0e 0d e8 40 b1 b7 98 e7 59 8a
-c9 76 f0 51 60 38 20 4b f5 c1 82 78 14 b0 66 17
-81 d5 8f c6 e7 fc 62 9f bb 7c 80 38 94 c8 d6 4d
-61 e6 5a 06 a8 0e 8e 50 e3 b1 43 c1 33 6e e2 a2
-e1 6a 01 83 e0 ad 3f 48 77 b3 49 21 96 0b f9 82
-1e e1 6a 87 70 46 2e cd 61 66 a3 14 a7 d6 22 31
-b3 bf ff 57 24 c1 ea 8b 86 ef 7a a7 5d 65 bd b4
-49 42 2c 76 74 5b d6 2b 11 c1 0b d7 5a 86 e6 93
-8a 57 08 18 fa 4a 2e 95 cd b3 11 98 65 96 7c 61
-66 44 fc a3 48 a9 c4 d2 b3 c8 01 d7 d2 17 1c 32
-99 88 6b 6c 00 2b 45 5d 8e 94 10 b1 a7 56 8b e9
-b5 62 47 21 02 4d 5c bc f7 c3 ab df b6 9d 37 28
-41 8f 24 75 a0 1e 38 8e 97 79 26 22 d9 7b 33 15
-5b af 60 c4 28 51 dd 43 b3 82 0e dd dd 4f bc a9
-7f ad 26 32 69 6d 6e 25 d7 81 33 fe 07 07 bf 39
-b3 3a dc 54 47 a8 6d cd 08 40 5f 23 b7 6b 54 2d
-b4 ae 9b 64 c1 1e f4 23 98 ee 88 3f 18 fb 2e 56
-35 e4 2d c0 09 d5 8a 7f 98 53 08 f2 00 a9 d9 a5
-85 2f ad bf 60 77 b9 b7 bd 89 79 2f b2 de a4 9f
-75 d4 20 dd 1e 9a 8c f8 03 76 1a 4c 8a 91 7d be
-36 bb f6 97 94 ae e2 f6 17 30 b6 b7 96 0a 08 9b
-fd 24 d4 88 41 2a 84 46 9b fe 74 f6 c7 74 e0 fc
-8f ab 51 9c ba 0a 1b 97 1e 7c 68 5c ba c8 82 89
-21 19 a2 0d 89 57 d0 30 e7 51 6a 52 a1 f8 49 09
-79 2c 3c ca 22 5f ef 3a e8 c3 11 f2 95 05 b3 66
-84 6d 37 22 bf 39 cf 56 53 0d d4 54 19 67 72 61
-00 71 d8 0e b0 b9 5f 30 ff 8f 54 5f 42 b6 43 e3
-e8 1c 77 89 d3 22 c4 29 72 75 f3 3d 9f ac e3 fd
-1b 5c ec 94 49 33 6f d2 4c 56 f7 fc 9d 7b a3 eb
-a4 1d b9 27 95 cb 39 1d 13 d5 80 9a dd 1b 4a 69
-58 d6 70 83 9f 64 86 1d 14 5b dc 03 de d9 0f 26
-74 9b bd 69 82 62 2d e1 8d 93 c5 aa 47 5a a6 4d
-a1 75 1d a3 6b 92 f4 4c 02 f9 f9 15 ca cc 1f 1d
-93 5f 43 14 cb df bb a3 2d f1 a1 a7 1c 1d 47 fc
-41 cb 93 db 6d 4b e9 d9 59 33 4d 1f 5c c9 c4 10
-9e 58 b5 e5 a2 d5 69 59 87 6f 0e b5 e5 cc ff 73
-0d b9 32 94 2a 76 6a c6 fa 90 16 8d 40 08 2e e7
-10 ea f6 f7 4f 31 d0 6e 37 a4 d7 b0 15 78 67 a5
-5d db 2c 31 6f a2 e0 cb ee 43 3c 7e 53 3e f0 a5
-bf 4f dd 53 15 5a 91 a1 f9 07 1f 5c 54 bf d3 27
-42 de 15 b9 25 4f b6 a1 b6 bc eb 9f c4 f4 f8 eb
-62 22 5d a2 6e a2 c6 42 77 1c 5d d2 e9 69 67 09
-8e a3 0a 92 e1 b6 ed 32 9f c4 10 20 6f a6 ed 53
-8b df 05 35 70 2e 73 2c 6b 09 4b 59 b5 f6 0b af
-76 ab 97 26 73 45 79 bc 38 a6 27 4b 62 3a a2 25
-b7 43 7b b4 b8 83 91 67 e4 86 5d d7 ca 6a 50 39
-d1 e0 f8 2c 80 e3 ac a7 fe 89 63 57 fa 91 f0 0f
-c4 89 f9 c4 07 7d 7e b6 4b fa d3 58 a5 25 c4 cb
-fe db d1 20 1c f1 bd a7 1c 2a c8 98 6d 2e d0 21
-48 b1 3a a7 19 86 c6 e0 f1 ec c9 af 05 9b be 6b
-68 e3 ea 27 11 3d 6c 6f e9 c9 3f ed 74 6a 01 09
-57 e6 10 be b1 e6 81 01 c1 c2 ab 1a 98 cc a3 a8
-32 6b c7 4f 21 73 be ba 37 93 84 06 9d 99 b4 14
-4b 22 0b 30 4d 07 e2 e2 c7 03 1f b3 33 77 57 9d
-8c 70 e9 ab c1 8f 03 ce 8c ac 85 f2 bd 0f 22 65
-ce 49 40 00 df 1e bf 60 93 fb a7 d6 08 c6 f7 b7
-86 07 91 9b 5e c0 b7 bb 97 71 a7 cf b9 e3 5e 1e
-85 0a 47 d1 31 e7 44 8e 8a ff 74 cb e7 1b 25 df
-79 e3 03 fe 79 79 00 62 3c 16 52 a4 8d d0 8c 12
-b5 2c 57 2d a1 d1 aa 5c 6e e6 60 88 7b e3 66 9f
-9d b3 a1 b0 ba bd 2b ad e2 5c 4a 9c 96 7c 7a 5e
-ce 7c a7 63 32 da 33 70 9d ff 06 ac 8d 16 94 57
-59 5e 52 97 93 d5 ce 58 9c 01 40 8a 35 a5 c5 75
-05 be fa 18 f2 b4 7d db cc f4 f1 dc ac 89 35 2a
-bb 64 ec bc ca d1 8d e4 b9 b2 c3 34 69 d7 f6 25
-7c 2f 20 19 ae 3e f5 82 9c 16 6f d7 9a be b1 2d
-5f 68 5a 8b bf 27 6a 04 30 1f 29 23 be 42 d9 a2
-21 93 d7 67 8d 8f 9c 19 47 b9 2d b0 72 05 a9 ad
-39 95 30 48 7e f8 08 9e da b0 95 78 99 4f 16 f7
-55 54 6a 0a 4f 4f 51 9d bf 8b 0f f1 b6 62 6f a8
-44 7f 86 cf 3e 9b e5 3a 4f cd b7 70 6d b8 94 f0
-ec f8 51 63 1d 31 1a f3 8c f5 15 0d 17 86 f2 6b
-7d 57 bc ac a6 08 e5 15 fb ea 75 2d 1d 2f b9 63
-71 bd 19 33 74 aa 60 b4 f2 ae 60 ab cf 2b 8e a4
-1a 8f 06 4b f3 47 bf e4 a3 48 07 2d 4f 5e 38 a0
-d7 d1 89 4f 46 20 70 20 57 8a 68 00 a9 a4 63 4e
-2d 22 cf 15 41 97 a7 a7 50 14 14 55 0c 11 6f 6e
-ad c0 bb 31 50 d5 c1 23 59 2c 19 04 fb b0 d0 65
-6c c0 bf 04 1a 1a 93 53 4a 31 99 49 18 26 b3 ee
-e5 01 be 52 bb 2a 56 29 ff f2 2e 60 c1 91 66 bf
-ab 7a 18 fb f5 ec 84 78 f3 ad 10 df bd 12 07 80
-08 3c 62 a5 cb ea ad 6c 90 a3 37 28 25 63 1d a7
-9b 73 91 07 7b 7d 39 ad ed 49 e3 97 48 1a bb 26
-eb de 50 e2 c0 ce b9 55 da 92 29 eb eb 8b 04 40
-f4 79 da 90 19 77 b7 e6 b6 d5 1c ed 21 60 84 1a
-6e 0c 16 22 66 85 aa 0d b3 ef 4f 0e 54 92 a4 a4
-53 5c 32 94 80 d5 22 fa 07 ce 18 41 a5 63 9c 85
-20 ec d8 7b b8 20 3b ad 16 82 1f 39 7c a9 cc 19
-09 3f 65 a5 61 fb d1 51 48 61 cd 89 c5 84 ca 69
-ea 5d 93 0f 96 67 79 4c 9e 82 a5 4f 87 11 a8 5f
-21 4c ea f0 95 2c 00 02 40 97 3b 89 86 41 53 0c
-39 61 37 6d 1c c1 b0 1d f5 b8 24 3f b6 bd 5f 26
-72 a2 1a 5c fa b4 32 99 8c 6a 07 ee 1f bf 08 4a
-22 69 77 fa b6 a2 43 38 bb 3e f5 37 43 34 7a b0
-79 6a 2e 37 66 b7 56 aa d5 9a f3 6a 41 2b 5a e3
-51 74 ae a7 7e 45 a6 15 05 d6 33 88 56 75 69 82
-2b 80 65 30 57 94 46 99 f7 ac 0b 0b 8b 4a 40 78
-bb 58 83 d2 67 9d 07 3f 39 30 ae f4 34 41 62 ee
-6a 3f 99 8e df c4 b6 76 ff 44 dc 3a 0b 93 9c 02
-e0 b3 92 14 b9 f9 26 f0 6b 54 1a 1b a1 ec 1c 0f
-a1 6e 7b a2 0e 05 9c 91 41 1c a0 9d 1f 2a 70 cd
-b3 c7 19 52 7e c0 66 de 0f 82 03 f2 33 c9 e1 53
-14 52 4a f8 18 73 31 34 70 3d c1 68 fc 52 78 52
-2e 5d f1 f9 00 07 d5 0e 66 2d ff c5 71 01 19 cd
-3e 51 f2 f4 33 d2 cc 6c 42 d4 24 96 b1 1e 47 69
-77 c2 e2 02 90 9e b3 d1 a7 8e a4 e5 2a b6 bd e5
-f4 05 7b d8 1e 65 93 eb c6 d1 14 1b 76 bf 80 63
-dc 27 d9 9b a7 ce 24 08 1c c5 e4 3d 2b d1 4c 21
-93 67 0c da 49 79 ef ee cc 7e d5 4a 2a 4a 8e 60
-57 2d f8 54 da e3 d0 62 15 0c c5 df e2 17 6e 39
-61 20 e3 9f f9 1c c8 61 31 5f 95 f1 65 54 8b ec
-ba 53 27 11 fe a9 10 d1 87 8f 28 1f 99 eb 45 81
-1c 3f b4 a3 a5 2b 46 2e 06 cc d2 88 00 a3 0b 2c
-3e 3f 83 56 1a 52 fb b1 2a 92 5c c7 2f 29 88 98
-00 86 49 9d 9c 7a 9d 38 92 37 91 89 e6 0c ca 2d
-8c 2e 59 fe 05 2b 73 5b c6 22 ad 37 04 d4 7b 89
-2a 10 8d cd c9 44 d9 82 a6 4c ac 72 94 8d 5c a5
-28 d8 1c 2a 64 cc c6 50 53 37 10 32 af bc fb a7
-b4 45 2d b1 25 43 ab 6b a2 bd c5 b8 e0 4f c6 37
-64 01 27 b4 3e 05 f7 2e 56 c4 95 b8 ab 73 b8 ae
-1d e3 06 72 d7 6e 9b 56 2d f3 94 70 f0 8d 1c 3d
-8d e6 c5 60 70 99 87 b2 0b 22 a3 f7 74 c4 5b f5
-2c 26 05 77 ec 2f 25 bd 46 1e 86 0c 5e 2f a8 a9
-42 57 82 c7 c1 c8 d5 76 0c 36 85 eb 01 13 4b 38
-7c db fe 3d 50 90 a3 25 1e 4e e6 4a b3 f4 6c b3
-d5 b5 0e ec 90 18 47 30 d3 d9 1c 6c 57 ba 05 e7
-63 2a ba 31 0d c8 21 e0 e0 43 18 25 fb 86 e2 77
-50 f8 7b 7a 87 4a c8 c0 a9 77 d2 0c 71 07 2a 73
-8d b5 9c fb 19 cc 2a f7 62 a4 14 b1 3a b6 33 5c
-b9 e5 5f f2 07 10 49 c5 df d2 e8 9c a1 d9 68 be
-62 39 f0 34 4c de 17 86 e0 6d 8b 49 0c d4 6a d6
-b8 4d cd c7 47 57 1c d8 df f7 e1 b3 18 72 a2 c6
-f4 6f bd 24 5f a0 0c 81 46 68 7b e9 70 07 61 e5
-b7 15 dc 8a 0f 78 bd 52 45 dd 88 88 f2 8e 11 e2
-dd df 35 3c cc d2 d2 93 9c c8 d3 f8 78 cd 6d ea
-7c bd 10 8e 79 64 38 8e 63 64 72 84 04 07 b2 79
-26 c1 96 c7 3b 30 30 c7 dc 10 cd c6 fe 26 2f 20
-58 a5 87 49 f0 9c 36 0a a1 9f 58 e0 4f 70 1d fc
-32 0c d7 a3 a9 b8 12 a2 29 39 25 bf bc 7b 8e e4
-b1 6d 23 a4 13 6d ed 98 f4 b1 68 67 5f ac 74 54
-e0 20 1f 6b 57 c9 c2 62 5c 06 3b 71 0f 5f bb 1b
-e4 8c 20 dd f6 07 cd 9a f5 81 46 62 70 da bf b2
-e8 5c 1a 7e 1c 5c ad 9e da f0 e1 48 bb 9f bf 85
-26 71 e5 ab be 43 fd 9b b9 c6 82 b7 92 b6 cb 42
-20 4f 46 96 d4 42 8a 38 22 07 c5 96 1e 47 5e 80
-15 e7 4f b2 66 eb 44 b3 b8 60 33 1b ab df af d3
-ed a7 97 49 16 a9 9d b4 97 8a d6 93 4d dc ac 5d
-7e 93 fa de 13 bb f7 6e 8a 16 e1 dc b9 53 dc 6a
-af 16 ab 61 06 2b 43 5d ad e5 95 2b 76 0e f7 96
-5e 61 1c e8 ac a8 d4 3e 58 74 55 b7 27 a2 1e 0f
-73 03 4b 90 2b 11 08 89 89 58 98 5e b5 95 d7 bc
-a6 7e 86 45 1b bd 1e 67 0c 86 3b e4 93 dd ac d5
-b5 21 af 38 75 00 71 aa c0 33 ff 63 37 3e 84 05
-0c 76 fe 31 94 ab 6d 60 71 27 6f 35 92 21 4a 28
-95 96 6d 8a d2 42 78 bd 99 20 e5 8c ab d5 6f 44
-64 09 23 31 05 9a 47 78 73 4a 52 19 c3 d1 c1 23
-41 20 aa c8 a2 06 78 99 60 39 4e 53 96 d8 b1 25
-69 3c 67 85 a3 c0 0f b9 8b 41 03 b6 59 87 5f f7
-cf b9 f4 d8 43 91 e2 12 c0 26 c4 62 16 e7 8d 0f
-39 73 5d 04 c7 11 b6 c2 ce 96 b4 53 76 46 5e 43
-9f 67 79 c9 a9 53 84 e7 9d b4 34 02 0e d0 d1 02
-54 a7 54 03 27 b5 72 d8 5c f9 1a af 1f 3e ca 68
-c9 34 d3 85 e7 0c 27 c2 81 92 66 61 e9 57 a7 4c
-ac de a9 20 e3 0b 07 26 4c a5 3f 31 22 59 39 dc
-80 2c 35 7d 85 09 ea c4 95 27 8a c9 0c 38 a3 76
-61 21 06 08 a1 a3 c5 b8 e9 92 c0 3b 55 87 7d 51
-3b 97 98 61 de 34 30 b7 38 70 09 fe 26 b0 0a 97
-01 47 87 0c 87 2a e6 cb fc e0 7e cf 34 aa 14 8f
-a5 dd 19 24 0d eb 4f 4b b8 44 44 88 86 31 72 f9
-3b dc f7 43 ae 51 ce dc 9c bd 8d 79 f7 21 75 82
-43 20 82 97 c8 0d 07 21 d1 ec 77 cf 1c c6 85 c6
-5e 18 2b 7d 38 99 45 95 e4 93 3f 28 05 d2 92 3a
-7c ac 75 b6 32 e5 64 66 9b 68 c1 68 a4 e4 2a 04
-07 10 4b 7d bf f6 1f a0 eb c1 50 0b 13 26 aa 5e
-0f 4c c1 74 b0 e6 a9 aa 36 36 05 74 44 6b 6f 57
-10 e6 e2 db e9 11 13 67 a2 e0 b1 01 fb c9 a0 7e
-c4 b0 b5 15 f4 3e 55 bb a4 c5 b5 43 9d 0e 72 97
-ee 8c c3 e5 5f dd 8a fc bb 25 86 42 de f4 e5 e8
-e4 1b 34 3a d2 96 77 b7 d9 59 7f 77 2e 46 8f aa
-b2 50 df b8 6d 9a fb 4b dd 7e c7 a1 66 6e ae 13
-bc 30 a8 c3 ff 63 5e dc 88 0a 0f a8 49 bc 99 f3
-9b 2a d7 e0 6d 47 4e 40 55 aa e2 96 bf da 96 df
-fe f8 28 37 00 0c e0 2f 2c 86 2c 36 6d 60 b8 ee
-ce 50 c4 e7 96 08 49 25 b1 c0 c9 27 f2 47 fa 9c
-bc f4 d7 3f 6f a6 95 39 88 60 4a cb 43 82 8c d8
-81 a5 28 ef 7f 55 da f5 3d 42 36 c3 24 9a eb 1f
-7a 52 72 b4 01 cf f0 71 1f 58 28 1f b1 16 3d 8a
-d9 85 0c 14 e5 7e 73 63 43 46 d5 83 6b d3 5f 81
-92 d5 5b 1e b5 18 a0 0a 23 7f bd b8 d1 5f 37 11
-ee b5 57 4f 7e 64 94 1f ae 1b 5b 64 29 0d bf a2
-4c f0 9f d6 ac 9d fe 87 1d ec 57 13 9c 5d 61 93
-2f 64 38 23 36 09 c6 ea 40 2f 5b fe 04 32 06 fc
-bb 2f d3 ec 6b a4 5c 4d c0 ac d4 82 71 3f 66 2c
-ee 6d 92 b9 11 1c f1 19 dc 75 b7 ad 9e a1 99 2b
-20 5b 1b c0 c8 65 d0 ef fb 1f 5c e1 99 d0 8c 04
-e5 6e 01 95 c8 c1 79 9b 88 71 f2 96 70 61 5a ad
-f5 c7 38 d9 d7 a2 9d a0 ad c5 25 46 3e b3 1b 7f
-ce 9e 27 f9 69 74 96 ac c1 81 1f b2 b3 0c 6d b2
-e9 12 25 45 eb a0 9a eb 5f eb 4a 97 10 c7 14 1b
-02 2f e6 89 c9 cb a0 7a 5b 9c 6d 92 ba 7e a8 1c
-70 59 04 21 ea 57 ac 03 52 08 ce 9e 2f f5 1a 48
-66 bf 63 9f d4 16 fb c0 ce b0 3f 6d 8b 6b f1 d3
-42 9d fb 1a e0 7a 91 78 18 57 85 af 8a 2b 35 6f
-bd f5 06 69 95 f8 10 f1 70 83 4a 07 82 bd bb 19
-c4 4b 58 8a ca c8 a2 50 2a 75 ff f0 53 0f b2 f8
-fe 9a 7d 99 28 a7 ad c6 58 d0 9e 06 1f 7e 56 4d
-41 29 fe f3 31 f1 3e 48 2f 0c c0 58 85 56 4d d2
-36 a5 bd ae 7d fa 83 26 6f e0 52 ba 2d c8 7c c9
-99 5a 39 ae 22 16 1a 37 51 81 a0 7d 00 9f 17 8e
-b7 80 0b b9 26 67 9b ff 76 c6 2a 12 43 e2 e9 47
-6c 94 2f b3 0a de 56 bc a8 f4 67 62 ef 03 3d 15
-99 3b 3e fa 53 60 9c a4 e6 63 75 59 29 02 82 f6
-5c 4e 8a 56 0a 97 32 56 88 b2 c3 45 72 40 b8 d4
-1e 7f e1 2d 6b 14 e0 0d 16 ea 13 01 d4 74 9c 7d
-bd 24 cb 5d 73 52 ed b9 74 f2 72 21 e9 55 ed 5a
-e5 77 ea d4 10 6a 42 c3 fa d9 3f 03 02 59 13 5c
-d5 38 cf b5 b3 a8 95 dd 18 29 66 a9 fd 1b 49 e2
-8e 8f af 58 8b 96 38 83 e7 cb 02 4f 61 8b 42 f4
-ca 75 5a ea d4 10 9d 61 32 17 01 67 d5 b1 e3 a9
-e0 c6 83 b3 79 7a 36 22 a5 68 08 c9 62 75 d6 f8
-9e 16 e3 84 33 37 7e 8a 61 7a 92 62 1c a1 f9 14
-95 17 9c fc 30 b1 0e 5b 7e 46 12 3e ca 26 4d 0b
-92 f0 69 78 db ac 34 ba a5 cd d6 44 1f e9 17 59
-04 41 92 08 ff aa 03 7a 1c 54 18 93 01 54 36 74
-ca ef 3b 93 9e fa b1 28 75 41 90 fd aa 2b d2 a8
-e1 2e 39 43 28 c0 20 cc 9f 85 59 a9 d6 8a a9 a3
-ab 6d e7 ea a2 dd 5e 52 8a 56 9d 58 5e d1 97 38
-19 44 4a c1 2a 7c 8f 8f 9e 22 aa d4 75 e7 4b 68
-c7 cc 23 38 83 32 6a 50 76 06 80 dc a4 08 92 f1
-1e bf 98 2e a0 64 50 dd 74 09 ce 70 de ba 88 88
-0a 42 b8 9a 42 22 46 b1 86 f2 d0 a6 f6 d9 24 c6
-6e e1 87 f3 e9 07 cf 92 e1 51 d7 95 4a 46 76 91
-c3 dc 1c f1 4c 74 95 dd de 76 b9 53 c0 c1 e1 1c
-47 f0 ed 7a da 4b 8b 13 ec fa 82 b5 53 eb a2 6b
-cc 69 f3 e7 20 92 2c 85 74 38 1a 8d 9e 3f 27 d9
-0d df e6 7d 52 14 2b d9 f8 a1 db 0a 20 d4 1b 13
-36 b1 3c 2a 1e bf 3f ee f7 8b e3 6b ce c1 8b 55
-c0 c7 f8 45 76 ea f9 1a 4e 88 99 16 07 2d ab 3f
-3f 57 fb 79 b0 6a 13 5a 97 dc 7b eb c2 67 89 a2
-19 f3 c2 5a ba 36 04 9b 42 09 7a b3 03 72 3c 80
-9b da df f3 a0 d5 a1 db 34 2c 30 52 f4 30 1b f0
-70 97 d4 15 3f 3d a1 06 76 63 89 49 b3 98 fa a1
-48 74 f8 46 7b 31 02 7e 21 a5 62 19 d9 ac 26 b6
-9f f6 1a ce a9 30 c4 1b 4e ee d5 1f 93 93 f4 74
-87 c0 ce 9e eb c5 a2 f0 51 8b 55 5e 7a 7d 31 05
-6a 06 85 b9 43 1f 37 76 b0 7d e5 79 04 19 5b bb
-14 cc 63 33 bd 19 b7 97 66 a5 48 78 88 f7 d5 71
-31 76 3c 9e 07 ce 77 c5 e8 81 0c 91 8b 32 b6 2a
-13 7c e7 a5 92 8c 71 e2 3c 8a d7 25 9b cd 34 00
-60 8f cb 4f 80 23 49 1b a4 20 6b 4a 4a 06 d6 7e
-9c 5f a8 55 b1 c9 2b 07 6e 3c 35 0f ec 4c 77 c8
-d0 78 b3 4b b3 18 6d 53 27 6b df 64 6a 80 70 5d
-cb f0 f9 95 5f 32 8e 45 a9 41 0e cd 65 96 92 e6
-73 f2 5c 6e 8e 55 55 5f ee 9a d8 e5 65 e4 02 2f
-da 00 9b 1c d4 81 ef 53 36 17 96 d5 93 0c 32 be
-0e 61 0e b1 c6 6d d0 74 d8 22 ec b2 ea ef 42 09
-fa 9d ef 3b 42 f1 a4 24 44 8c 4b 76 b1 c0 7b 2a
-0d 85 4e f4 07 c9 26 bd 98 b6 8c 79 2c 07 dc 80
-34 41 be 7f 90 1c 0e e1 6f fc 8a cf 3c 5a d8 34
-65 2d 28 cb c7 bf a3 dc 67 e6 04 3d 28 9b 9e a3
-d9 7b 5f 6f 6b 2b 91 4c fc 7e 51 a8 0c 8c 65 27
-37 c9 f4 65 37 67 d3 c5 6c 64 e3 f1 d9 64 60 c1
-37 73 e3 82 b2 5e 86 91 3c 9b 67 0c be bc 64 29
-94 18 34 1f c4 c1 8e f9 9a 9a 01 c8 a3 95 dc 69
-f1 4b 22 c6 0c c5 15 b5 b8 3c b2 10 32 b3 a8 7c
-6c 43 bb e8 ae d2 b5 8a 94 29 64 49 16 9b f5 00
-57 ab 23 f5 44 6a 3c 0f 45 44 97 d3 85 37 8a 01
-1d d1 93 31 7f 86 00 62 2f 78 b2 a9 17 78 f6 35
-f9 68 cb 5e 82 c5 db 2e f5 39 bb f9 22 ba 65 ba
-63 28 f7 b8 ce 0f f5 36 9d 47 b3 39 73 15 b3 c4
-de e4 2d 4e d1 51 d3 66 d8 e0 f6 91 0c 13 77 ee
-8f 22 48 30 8b f3 93 d0 cb 87 fd ca 46 c8 8c c5
-89 e8 8f 82 99 3c 80 63 a5 22 f3 fb e6 40 e5 3a
-72 ae 25 6d d0 dc 8c 27 5c d9 68 34 de 8f 00 c2
-f7 1d 5f 8a 8d 98 76 56 cc 5a 5f 15 19 dd 73 52
-f8 d7 06 10 cf ff e9 6a fc 10 ae 25 86 8a c8 ad
-d6 15 4b 9c 37 3e 19 24 a0 69 8a 04 79 d0 4e bf
-b5 5d 66 8b f9 14 a8 b4 e9 17 44 7e 83 aa d0 e6
-25 ba 9e 8f b8 20 80 93 a1 06 4a 2c ae ef 64 1e
-b0 7f cb cb e9 64 4b fd 3c b5 bc bc 4c b8 a0 b3
-4e ab de a8 c7 f6 d4 55 04 f5 15 24 0c 4b b5 04
-ef dc ba 7d 1c 01 50 85 b1 93 a2 68 d8 57 19 73
-b9 19 1e b9 df 08 a3 01 b5 59 97 6c 12 4f fa c1
-5c e7 b3 e5 cb 30 6f ce 8c 37 12 fc 9c 35 f3 04
-cd 29 0f 2e b2 94 7a 78 02 d0 e1 51 78 e9 9d f9
-f4 6a ed f0 0a 27 c1 14 9e 63 5a 79 25 82 f7 a1
-e6 49 86 86 5d ab 8e 96 16 b5 4e a7 fb 4e 65 e5
-7e d4 93 10 aa 68 53 06 c8 d0 50 34 d0 47 fb 1b
-52 7d a5 ed b3 30 14 11 01 8b 9f 19 20 22 62 9b
-df d9 64 2c 75 5d f2 24 bf db 4b 10 99 8d 6e 85
-01 1e 47 9b b4 0c 74 d0 9d ae 52 e6 73 da 7c cc
-d5 ed 15 5f 8e db 3d 75 61 8d e7 da a3 cc eb c7
-f5 4a 72 85 22 ed 6f 3a cc 94 78 da be f5 cf 89
-9a 7e c2 9c e3 cd a7 cc 20 75 eb f7 fc 35 fd 7d
-03 64 70 90 ca 76 28 fd 10 97 0e 9b 46 b7 ad d5
-f6 a3 73 61 24 8b e2 5f 97 86 dc 35 61 b5 c0 b7
-f4 39 56 9b 7e 85 a7 50 44 5c e4 0f 5c a1 65 97
-68 1b 01 37 d0 a0 be 3a ab 59 3b 6d 54 7a 84 78
-fb 0c 0f ec dc d7 72 13 90 36 00 49 4f 53 46 7b
-50 98 6e e2 fc 8a 7a e3 7f f0 d9 0a 23 62 ff 5c
-08 ec 01 a6 8f 0b 80 43 07 d8 0e 6a 31 22 43 d4
-e6 86 53 88 c1 7e fd 39 1f 7e 0f 5e 44 f7 f2 95
-fb 7b 57 6b 44 75 e4 44 6e cf 73 76 6c a3 a1 21
-d5 01 e0 f4 98 6a 8b ac cd 21 0f 66 ea ea f3 a5
-16 f8 27 07 23 06 9d d5 ad 4e 85 05 8b 66 94 a0
-ed 2f 0a 9c 13 48 cf 50 e7 14 49 29 97 47 ee 26
-3b 10 bb d3 49 32 30 33 80 8c fd cb 27 c5 e8 f8
-01 38 d8 f8 f6 21 18 bc 23 ee a3 c1 0a 87 7b a6
-35 1f cd 3c 07 80 2d 1f fc df f3 cd 41 9e 70 77
-46 91 98 b1 67 f5 08 46 99 c8 0f f0 32 3c b9 77
-02 26 19 f9 38 60 a4 5c 36 3f 77 18 1b 3d a0 ce
-3b ae 3e e4 7a 50 b0 5c 17 a3 2c 86 8d e7 e3 12
-73 b3 2a c3 6b c1 e0 88 31 de 6d 89 64 a7 9b 7c
-6f e4 d8 03 aa 33 56 79 c1 bd cf 38 9a 04 77 e0
-c3 83 02 38 bb 74 e1 0f 89 93 c4 f9 e3 73 f0 87
-70 ba 09 45 d7 c7 82 c4 47 b7 22 1a e7 9c 41 ae
-37 8c 09 cf 8a 55 25 56 0b ad d5 75 46 d9 41 26
-f4 4e 08 f5 95 5b 8c 54 09 0b 54 39 f5 13 83 33
-3e 66 0e c2 53 c6 8d 8f 2b 25 93 b2 77 a0 54 54
-44 ee 83 ac 17 26 ac d2 7f 44 38 81 bd 8d cb aa
-c4 eb a5 b8 93 6a a5 3b b0 bf 73 e7 de 5a 55 0f
-6c ad db a9 ed 7d 9f ee a3 c8 d1 4c 82 eb b7 3e
-cf 84 cb b1 1d 53 69 30 6c 52 a5 90 82 7f 59 ca
-76 e1 aa f0 d9 16 66 f3 d4 70 cb cc 7f a4 68 c1
-7e 12 67 d4 80 99 5f 14 ed 9f dd 40 a9 5e b6 39
-f3 20 7f cb c7 80 9b 9d 40 ae 28 c5 af 20 e2 be
-4c 6c 09 b0 0a 3b 70 6c 0e c9 fd 6b eb 71 76 9a
-34 cd 6a 9f e9 ee 50 fb 6c 43 ce dd 0e 3f 00 37
-35 ae 60 88 5a 49 28 bf 0b e0 0f 37 7e 56 43 63
-c5 d0 a5 a4 40 25 0a c0 15 3c 52 bd 4a 28 a1 45
-bd ee ac 44 47 01 c5 8c 42 37 a0 ee 13 8f d3 dc
-0b a4 45 16 62 97 63 40 be 67 f3 df 68 4e 21 c4
-61 69 c9 06 79 de bb 11 e7 2e e6 0e 10 b5 00 6f
-8d 0a 2f 67 90 d2 a7 4b c5 c9 39 28 5f 8d 3e 17
-7a 71 2b 6a f4 09 72 3e a4 dd 84 cc 7a 0a 3b 71
-0b 76 5c 04 45 fb 15 d5 9d 32 a6 bb 34 e2 ca 3c
-cf 56 41 4d 3d 1c a6 a9 e8 03 af d0 f5 f2 2b f2
-33 66 58 96 3b be bc 3a cb 26 64 b0 b5 c6 f0 3d
-5e c8 b8 10 92 5c b5 06 27 f6 5f 31 03 4c 67 31
-b3 8f e7 79 b8 e2 3b db 91 c2 3c f0 a0 c5 9b 0e
-58 c9 d4 7d 81 57 8c cc e5 3a 6c 39 6d 7f 66 1e
-29 52 1e 2b 35 44 ec 61 e3 53 37 52 8c 45 84 68
-93 35 db 0d 39 b1 ac 7c ce b9 09 02 d3 c6 48 bf
-3b 99 cd b7 0f ad c9 5b fa 63 8e e1 86 2b 33 8c
-e8 4a 28 43 2d c2 a1 74 9c 02 0e a7 1b 6b 5f 14
-fb 2b 30 a1 a9 e0 2a b1 46 56 7d d3 4d b1 a7 c2
-ca 17 6d d0 0c 2b d1 25 c7 e6 45 aa de 66 25 b0
-37 7c 0f 93 e7 5d d8 95 1c ff e3 f1 b8 68 06 ca
-a9 bb 41 1a 03 47 36 e7 05 94 4a f5 d3 bf fd 06
-79 12 6c 98 9b e3 c7 ec b4 ff 04 c7 05 76 af e1
-ba d2 e5 f7 dd 8f f2 94 d7 36 d0 2f 4e b9 c1 85
-72 d6 40 19 e4 e3 1f 53 6f 8b ea 4a bf 6b 3b ff
-de 5d d6 ae 16 df e7 67 47 01 ba fa 84 d1 ab a3
-c6 a1 be 03 e4 36 6a 14 e6 de d8 2e d2 8f fc a2
-6e aa e0 97 20 38 84 22 63 5b ba 44 a8 54 bc 07
-57 9c 8b 07 e6 d4 08 2b 7d 8e 8a c5 8e e6 10 80
-a5 87 43 55 87 cb ca 70 c3 1f be 1d f7 54 ac a9
-6c ec 86 36 47 4b a1 b2 c8 a7 ec 2d 08 ed b9 e0
-d5 0b 37 6c e7 e6 6e 81 12 a9 2c c2 3c 0d 25 06
-d0 50 c7 1e 57 84 f3 c9 e4 4b 65 7b 05 eb 3b d9
-b9 81 27 26 b9 f2 ba dc e8 77 9a 1a 9f e6 a1 db
-f9 04 be 14 e3 00 29 55 c6 fa 0e c0 ce e7 8d b7
-63 8c 29 71 d5 54 dc 1b 25 01 e2 6c 1d 2c f6 75
-57 7c ca 66 55 5a 50 eb 7c b7 ca 0b 31 ec b5 68
-79 ae b3 d3 93 19 b6 52 79 8c f7 81 de 32 0a 22
-86 dc 34 3d dd 98 e3 1b d7 b0 67 52 5d 19 bb 77
-41 da 9c 9a 05 bf 18 f7 99 d3 a3 18 7c f1 8e 3e
-08 db 2e 60 f5 1f 41 5b 0c df 64 4d f3 fe dd 0e
-87 54 e4 52 57 b3 4e 5d f7 ea 2f 72 cd 66 c4 96
-46 9b 86 7a 1a 2a 4e a0 9e 38 ff 80 ad fb 20 85
-a1 34 63 71 0c 00 19 24 6a b1 70 c4 80 0c 38 c2
-d1 9c 5f 35 8d af f0 bf 47 fa eb 76 07 15 8e e6
-d6 62 6a 50 30 cd e9 ed a7 82 74 eb 57 44 5c 42
-d8 de 0d 0b fd 3b ae 1b 38 74 6e 84 bb 6f d7 cd
-7b c9 70 8e 8f 9c 72 46 b5 cb aa 93 c8 5a 23 3e
-1c cb 17 2b 38 9c f4 a0 79 2a b5 24 40 f5 f9 66
-c9 83 23 60 2f 95 66 23 62 b4 f3 06 1b 1e 8d ce
-73 7b b6 0f 2e 08 20 d1 d5 8a 11 e3 64 26 73 53
-a2 c1 ed ac ff d6 73 93 94 b1 e2 e8 1c b5 e1 85
-a3 6a 79 cb c3 b3 a8 57 d6 ea 7e f9 c6 54 0b 0b
-8a 9d 4f 8b ba 2a 28 1c 08 d0 4f 80 9b 98 c5 07
-a0 c5 9a c7 3c ae 4c 8d 7b f7 5c 75 ad 23 e3 bb
-fb c0 09 a7 89 03 af 2e f5 af 6b 21 8f 1d 80 e2
-f9 70 04 d6 32 40 1d 51 e5 39 67 14 01 3e 32 ae
-31 68 df 79 a7 a9 d5 24 0e 16 71 fc 5a 45 74 81
-f4 d4 7a 3c 3b cb 39 08 f6 7f d6 c5 74 0e 56 6a
-ec f4 2a 5f 59 a9 5f c5 7c 39 aa b1 96 83 5e 34
-84 8d 07 ca 7b 25 13 0c 40 e5 e1 1f a4 77 52 07
-91 93 e2 5f d5 54 7c f5 29 40 6b 3c a9 80 3f ad
-95 63 31 ed 30 47 9e c0 81 3d 75 a2 39 81 7e 48
-79 2e 1c e0 e9 b7 1b c6 ec eb 7c e7 5e 67 d1 f7
-60 57 ef 6a 73 94 59 aa f6 ee 0e e2 26 ed 77 93
-31 72 f5 02 4f 1c a8 30 8e 68 48 5f 98 06 d3 fc
-c3 3c 2a 81 48 39 9b d7 cf 9a 91 7d ca d7 c3 5f
-5a c1 cb c4 bc f3 a7 eb 99 7b c1 d3 ce dd 5b 4b
-b6 f7 f6 bc 8b 46 b6 07 9f b4 62 a0 a3 78 ac 8b
-6f 2e 13 bd 39 90 25 9c 41 b5 8c 5d 7c ee 55 b3
-08 b6 4b 3c 45 2f d1 b2 de f6 14 c3 62 22 a3 7d
-40 3c f0 93 dc 37 cc e4 78 7d 2f 40 5d 0f c8 65
-e2 39 a9 cf 53 71 5f 0f 37 2f 30 a0 66 da 06 82
-87 9c b3 71 94 97 8d d2 90 12 4f 72 d6 43 3b 3c
-50 79 f0 b9 af a7 bf 67 eb 0d fa ae 7b 4b 77 88
-e4 9e 4c db 4a 02 8f 9b a6 fc 1d 54 2b 78 6d 9b
-c8 e3 c2 92 02 87 76 8d 65 fa 1b 27 26 20 60 0a
-03 5c db 0c e2 68 3a 1d d9 63 20 2a b9 80 63 fb
-f4 b7 b1 76 39 19 31 d2 f4 ed 88 f2 3c d5 db c6
-c7 c1 59 aa 87 ce b3 be 09 20 fa 2f 20 46 87 dd
-55 77 74 36 d7 f2 ac aa b8 65 1a 7a ba c2 97 46
-77 e6 b4 cb c1 4a f2 96 00 89 2c 1a 82 4e a8 75
-54 99 38 de 13 23 62 d7 00 3b c1 46 48 72 a2 3f
-94 51 a9 f9 ef 23 00 9b 5c ec b7 82 cf 5e b7 72
-8c 7f 77 22 bc 89 4d f8 7b c1 ce 05 94 7d a5 62
-75 fc 26 aa 1e 5b 24 d6 ee 75 d9 7a 78 33 23 5d
-26 ca 9f e1 ca f9 6e 34 53 c8 e5 ae 5b ee 5f e7
-dd 7f 89 8e 59 3b 0b 9e 87 2f 26 12 21 72 49 dc
-d1 00 21 2d 7d 03 a6 f7 34 ff 9b 49 49 ed 57 a7
-a7 e3 20 28 0f 67 25 58 fb e0 52 45 61 f3 59 8d
-24 0b 38 33 f5 c8 36 f8 26 7c 66 ef 2f 47 0f 7a
-b3 d7 f5 fe 09 fb 86 b1 64 46 f5 cc 74 60 ca 7b
-9f f8 ed ed 91 ab b5 a6 48 fc c1 24 43 d0 f3 5b
-49 35 43 b5 d6 d4 8b 56 10 45 20 0a 35 7e 67 56
-16 59 78 3c d2 8a 40 03 33 47 c1 a1 c4 98 29 5e
-48 c2 3c 63 b1 52 d4 af f6 4d 75 5c 6f 0c e1 e0
-c9 36 05 bb 08 09 aa 58 14 58 fd 3f 51 94 27 78
-b8 61 14 11 22 9d c2 b0 30 f2 c5 4a a4 bb a9 36
-90 1b 59 d4 af 72 90 aa d0 66 37 8a d5 70 44 2d
-85 20 2f 3a 97 41 ad b5 f5 ed 60 bc 64 65 52 99
-74 02 7a fe 99 2b 54 2f 9d 97 76 c0 82 2b d8 58
-1a 98 e9 51 42 ff d1 00 9b 30 db 2d 63 90 5c 4f
-a3 b7 55 b8 c4 09 fb 64 38 1c ca 82 d1 d5 9f 70
-65 f7 03 0a bd 0e 33 35 e3 9d 7b fe ba 63 15 81
-2e 1f 44 00 03 6e d9 9f 83 61 4f f2 74 26 72 f2
-d4 fb 7f d1 f9 a3 54 5d 2c ca fd 7f 7e f4 62 39
-e3 aa 2a 4e c1 a2 a8 12 15 35 38 28 16 4e d0 08
-36 96 ad 58 e1 d2 80 88 b0 f1 33 9b 25 e9 72 c9
-82 af 1b 4d cc 62 5d 23 ce dd 10 2f 53 b7 ba 82
-3d 62 28 70 e6 ba 9a ce 8b 5c 4e 24 55 a3 32 5f
-73 15 ca 89 55 4c 6a a3 96 f6 c9 02 95 b1 b9 f6
-da fa 26 c1 6d 0a a4 d8 40 ab b0 b4 38 f0 52 77
-d1 55 b0 98 5c d2 ab 17 e9 4d c9 d1 62 5b 08 88
-d8 b7 3e dc 9c e4 ca b4 e2 da 23 de 7b 84 cd b9
-c1 a1 23 29 8b 6f eb 9f 5d f8 85 77 b0 77 9c da
-23 eb b5 20 59 fb 71 7c 4d 18 97 62 17 db 8f 00
-02 7e 5e c0 5c 22 77 9f cc 77 95 d8 96 48 ff 45
-ca 86 39 9e 1d b4 9e fa df c3 1a f5 2e 33 87 98
-b6 09 61 4a 0a 5f 05 21 9b 08 95 aa a4 eb 98 3d
-96 18 01 a0 bf 76 31 85 bd a7 ec 47 8b 1b bd 64
-f7 2c 42 18 e1 e5 99 f3 99 fe 06 1a f3 1e 2e 37
-a0 c5 b0 83 61 cc 60 84 c1 ef 9d d7 f0 bd 67 d3
-5e 53 24 df b7 55 4e 34 3b 9d 30 76 10 5f e7 98
-66 8c b4 47 04 16 e8 3d cc 60 ad 52 e9 df 21 ec
-bf 03 c1 e8 c2 dd 96 c5 78 e3 17 dd 6c 71 79 7e
-dd 4c 05 b7 fd ae 46 7a 73 f0 6f 5c 17 95 f7 45
-7d ac 7c 6a 32 4a a4 4c 4a c0 08 4e b7 69 7e a5
-08 85 01 9a c0 70 8e 34 03 47 05 96 13 c6 f6 f6
-ba 0f 76 bd 63 c1 cc f6 01 be f1 d2 40 5d b1 41
-ba 40 ce 03 65 6d fd d5 b7 61 52 c5 5a 83 07 23
-cc 4d 06 27 f8 65 e4 fe 2b d0 a8 16 cb 87 8b f9
-2c 04 d4 0a 43 cb 9c f7 3a 91 55 37 43 00 5a 33
-c0 27 03 e1 41 90 e5 fa 4d 03 6f f5 76 02 bd 14
-b4 6b 7d 9c cc cc b8 1e 3e 06 9a d8 ec ad 00 26
-92 4a 24 e3 b6 4a 1c 4d 07 a4 b4 12 42 17 e6 e4
-4b 61 36 3c a3 a2 e7 9f 9b 49 b1 e2 fb 0b 8c a1
-b4 29 a5 6d 1f b3 83 d6 a3 a4 2e a4 cd 1d cb cf
-0e f1 33 62 56 05 d4 c5 0c 98 79 55 8b cf 1b 8e
-59 0d b3 c6 a0 b3 e3 e9 f8 95 8c a0 ff 22 e8 13
-26 06 38 68 93 5d 06 fd 2d e1 37 98 cd e1 b8 76
-42 20 47 f9 df 20 53 4e d2 85 79 06 4d 1a 54 e4
-4c ff db 99 3e 66 c1 b4 5b f2 8a 90 d7 52 1d 71
-a8 70 bf 79 e9 67 b9 a1 0b 35 62 b8 e7 ef 6a ce
-2d e7 d2 5a 4a 63 3f a6 56 62 f2 1f d4 2a ed 12
-00 5b 38 f7 c7 62 4b 3c fa a7 97 3f f7 86 64 e2
-73 8f b1 5f 9d d5 1d 34 36 a5 9e c0 af bc e8 b3
-a0 e8 1a a6 0a a2 9e 18 28 70 be 5b 3c 23 fb 85
-f2 1e 90 09 ae 28 04 75 66 bf aa 64 b8 38 e2 0b
-7d af 03 23 11 a8 2a 17 e9 d9 59 89 a4 1d 5f 63
-49 25 96 2f fd c1 70 58 8a 00 39 19 b9 92 14 0a
-98 b8 eb ea 6e a1 fe 8b 75 14 ad e8 a8 f0 0c 88
-be 37 71 2d 60 cb a3 b1 8f 1b a2 c7 a6 17 10 7b
-f6 45 70 1d 96 63 f0 91 54 b1 7a 5e 1d 09 20 d6
-54 32 da c2 c3 b1 70 d9 39 7f e6 ac 37 07 8b 98
-bd 6b a9 51 d4 24 4c 3d fa a7 9a 73 d3 e3 e5 c5
-7b 38 17 f0 82 de ee 08 50 ba 67 5b f9 f8 0d 15
-3d 29 f8 ad d9 71 da e8 37 b3 fc 2c f0 3c cd c5
-f0 01 d6 7c 6c 80 21 8e a7 0d 9b ec fa d2 6c 93
-f4 0e bb b7 8c 22 a3 45 e8 7c 1f c1 7f fd d0 4b
-98 91 f4 c7 be 84 80 f5 ef ca da 8c 18 bf 11 2d
-65 28 71 f9 c1 a8 3e a1 5a 1b 00 cb b7 96 be a5
-b5 c0 b6 51 bb 2d 6b da cf 47 9b 08 a5 51 5c de
-1d e3 91 d0 94 14 4f 15 f3 93 63 cf 53 2c 1b 4a
-1c ed 34 67 29 8d da 3a c9 ab 30 d8 1b a3 ea 22
-4f 0a 3b ff 4d 10 fd 89 1a a1 b3 bb 48 2b f4 a8
-24 7d f6 b5 00 fb 2e c2 0b 2b d8 63 06 36 4a 9c
-14 28 9d a3 b2 9e d3 73 e9 a7 ee c7 1c c5 64 f7
-e7 63 68 1c 0c 6a 61 61 7e 57 1a 46 e4 b8 c3 14
-a7 92 17 18 d2 85 eb 2b 98 22 99 f9 a4 9d 49 92
-37 9f 4a a7 19 a3 95 fe 06 74 29 76 c0 16 1e 9e
-42 b0 ce 23 0e 2b 64 b8 1e 4c 6c dc b3 20 4e a3
-c7 6f 35 33 6d 09 4b 6d fc 92 ec a0 36 92 d6 6b
-6f 2f 74 ac 37 75 8e 30 2f 6a 2d da a1 4c 02 da
-9b f4 59 7b 7b 5f de f6 fc d5 09 85 d5 82 9a cc
-d1 57 37 1e 86 2b 90 94 fa 34 7b a8 76 67 60 4a
-15 35 96 a2 70 f1 0f bc bd 14 16 1b c0 f1 e5 ef
-21 cd d3 63 cf 1b 61 11 dd 22 29 1d 9c f5 68 84
-39 e5 aa 88 be 6b 20 22 96 5e 83 eb b9 48 85 9c
-f6 25 b2 3c de 41 dc e5 27 26 9d 03 f9 82 93 30
-87 b6 2f e2 c3 ad 80 0d ba 87 87 7d 52 7e 82 7c
-f0 4e 62 70 00 97 fa 85 25 c6 07 0d 51 5e 2c 30
-45 ae 1d 90 13 de 76 5c 04 3c aa a7 bb e9 e5 48
-a4 a0 94 0f c8 1b 41 23 25 05 03 9d 91 0b 32 ee
-46 78 2e 93 27 18 c1 bd 1f 8b 71 47 fa c6 d8 86
-02 df cb 64 e8 21 09 9c a8 d1 16 f3 eb 14 94 62
-48 a5 34 0d be 85 ce 1c 00 e8 33 92 f4 cf ed df
-a2 82 72 f5 28 5e cd 17 57 d5 5c a4 e6 a0 e9 20
-65 85 14 2e 7d f8 d0 e6 73 52 ea c4 54 81 2f 09
-2d 91 91 f1 90 91 f7 a1 1c 3f b9 f0 d5 49 90 b7
-d8 b5 79 a8 2d a5 95 6f 69 f8 ce 37 5f d6 09 62
-74 f1 4f 7e e0 5c 65 21 e7 86 6f e5 10 9d f4 8b
-8f 6a eb b2 b5 39 43 1b 0a 8a 9c 5b 4d f8 28 7d
-a3 8f 8e 7a b8 29 83 2e ee 92 95 85 c1 c0 ad d2
-62 eb c1 60 96 4b be 75 39 cc fd fb bd 57 03 30
-4c e6 75 54 3f d2 69 5d c5 1e b7 bd e8 b8 fb e1
-e0 cf ce 1e b7 c3 5f 73 1b 42 2a a4 1b 5b c4 4c
-8d e3 19 1d 36 b7 39 b9 33 02 a4 dd cd ae 67 8e
-84 4b 6b d0 2d 36 8c 92 e9 cc 84 5f 58 d2 1a b9
-9a 6f 7c d0 07 74 52 4b 8d 09 92 18 f1 91 a4 a0
-6b 90 41 a7 d9 a7 30 b7 0f a6 0b 60 43 75 d4 71
-4b 17 7e 1f 54 ec b8 cd 4c 4c db 28 b0 89 c9 f7
-5b 04 d1 c0 74 c1 b1 7c 4d da b0 93 65 ab 2a 1f
-2b 42 5a 71 61 55 36 e9 af c1 d0 7c 00 3c 3b b1
-e1 5e 4d 58 96 9a 72 70 38 ed 5b 31 9c 80 fc b3
-8b 95 c7 bf 77 90 0d 84 df d7 b1 e5 5f d5 a1 d5
-52 7c 60 1f 79 4d 0b b7 e6 02 08 e2 a6 10 03 47
-2a 4c fe 7c 97 40 82 b9 96 dc 03 56 17 ed a6 e9
-51 e6 6e 16 96 26 3e 96 51 16 56 01 a4 46 c5 ce
-d4 77 21 82 35 fb fa 96 fe c3 81 20 1d 57 1d a7
-d9 a0 23 3a d5 6e 6a 89 44 4f ec c2 ca ce c0 0e
-d1 70 c5 57 ac ca 7d 87 b5 3b a8 e4 4d d1 fc 94
-d7 5d 2b 79 bd 94 20 30 e8 7c 1c 64 33 89 88 25
-a4 98 c7 40 ac b0 4f e7 b3 dd d7 03 cf fc d6 9a
-e9 31 7a 8b d7 59 60 6f 90 4d 61 ea 0b 24 0e 6d
-37 8d 5a 1a f2 2d 96 c0 01 9e 23 f4 68 27 bc a6
-dd 54 9f 83 e5 da af 5a b5 38 39 5c 9e 7f 7b 77
-35 29 e3 a2 45 d1 96 e5 a6 ee 3e a5 02 16 99 14
-62 46 05 a8 ad 81 be 55 d4 76 89 94 37 99 1b e9
-6a c8 20 96 f3 ff e4 c1 f9 23 7d f9 70 f6 e9 a3
-a9 af 23 8b 81 4e 5a 0c 00 49 a8 2f 0b 65 5d 7c
-8e 4a e2 7b 4d 31 d4 31 f8 ab 47 e8 2f 3c 53 12
-9d c5 2d 71 08 be f8 77 20 b5 e9 05 47 ec 71 fb
-39 ed 6b c6 78 4c 74 ce 96 0d 1d b9 1e 26 19 09
-f4 fb d7 c9 ab 54 36 67 c6 21 73 22 c5 13 0e ad
-ae 80 3d f4 7e 29 20 9a 50 d4 a1 e3 6d 87 22 fe
-88 3a 5f 7f 91 18 e9 a1 eb 6c e0 9e 65 97 2b 6d
-e6 6d f8 39 ae 9b 1a 1c a6 4c 28 3d ab ff 5c eb
-a6 6e 48 a9 ef 92 ff ff 93 a8 03 f6 0d f0 03 80
-5e e2 03 1b 01 ff c3 eb 1a 63 b6 c9 77 a8 ea e7
-84 9d 74 96 54 63 09 1a 94 d2 d8 b3 be c7 1b 87
-33 e3 d5 d9 a7 34 b8 dc 01 12 7d a6 1d 4a 0e af
-6f 9f 0c b6 2c 60 83 de a1 93 1e 34 f9 f9 f7 45
-2e a8 f8 d0 a9 f4 eb 54 7b 08 ff 7a 35 35 ac 36
-67 74 42 e8 fc a9 70 c6 60 27 27 ff 64 99 b9 86
-c9 f0 37 85 a8 4a 59 bc 49 ce c2 d9 24 50 b6 9c
-46 de 66 f5 d6 bf 8a e8 8c 77 43 21 67 cf b0 78
-ad 93 70 b9 52 fb ad 7d 40 fa 0e 1d 10 cf 37 48
-da a4 cd b9 b6 45 6d 4c 1d 24 cd 35 61 6c bd b6
-74 ca 27 5e 12 52 fb cb 50 bd a6 e4 49 c9 dc 7e
-a0 d3 bd 93 30 1e 2b be 1c 09 17 46 c1 a8 87 04
-a7 d3 da 0f 1f 1f 74 34 6b da b8 b5 bf 19 2b 3b
-69 c7 33 a0 e6 f7 d8 7a 6c 17 ea 1c 35 83 36 86
-7a 74 81 99 d9 90 59 75 50 94 92 71 3d c4 d1 fd
-99 60 93 ff 87 f9 48 7b 14 8d 83 9a e4 9a c1 cf
-a8 3f fb c0 eb 4e 88 4c f3 05 f7 a4 81 e2 fd d2
-b9 be 02 11 ed 0f 8a 4f 19 9b eb f2 b4 0c ce 16
-86 fa 2c 54 74 97 f9 3b 05 e3 fe a6 56 9f 51 94
-75 ce 50 db 44 7b 80 87 15 22 75 94 9a b0 5d fd
-f5 b0 7e af 47 08 76 fd 5b 61 f4 e1 c0 fd f5 6d
-d8 07 ab 55 95 a0 b2 b9 5e bb f8 b2 53 78 98 09
-00 a4 c0 f8 ed 31 b6 65 21 f8 1a f3 b3 22 ac 3c
-8a 6b d0 a8 b5 56 39 a2 32 0f db 6b 4c 66 db bb
-4a 68 62 1e 5f b2 81 be f6 07 3d ed b2 c5 2d 96
-eb 69 3b 7e d1 e2 62 a4 3c 8b 14 e1 e0 c3 73 3c
-9e bc 86 3b 25 18 59 43 54 93 99 a7 96 c0 ca 2b
-c6 a4 dd 58 9e 15 3f 94 74 9e 1d d0 a6 ad c9 17
-64 6c ab 19 78 83 31 49 be a7 37 3a 0d 01 2f 67
-a4 36 e9 ff c0 32 00 c3 d8 8f ce 4d 3f 4b bd 3b
-34 ef 85 bb 9b e7 32 d6 c6 ae 88 ef 68 61 a1 63
-0e 16 41 58 95 a4 68 6a 60 7c 84 1c c2 52 7e 26
-b6 ab 13 a0 a6 8a 52 e7 38 21 c9 5e 4a cf 51 5a
-80 47 fd 69 78 77 eb b7 c8 e0 44 81 62 64 a9 fa
-fb 75 43 d1 e7 99 48 8f 1f 55 f3 ff cc 53 ce 3e
-68 d5 b5 2c f4 10 6e 7c 43 e3 5e bb be 24 16 8c
-60 36 05 08 ff de 64 5a f4 b4 73 47 ee dd 42 62
-17 f2 90 ec ab 43 61 8c 55 32 fa d0 cf 43 60 78
-a3 35 67 c7 b3 8b 13 3d cc 76 c6 d6 2d 11 21 16
-72 74 36 aa 7f 74 7d 4d ab 71 23 1b 99 96 c2 5d
-9c a4 c5 a9 ee ea ea df 54 95 78 cf 0b e6 97 b1
-f3 d5 e9 31 71 f7 cb 8e 8a 57 6d b0 be 1e b1 34
-90 a6 4a 75 2f 62 e2 e2 74 67 6e 92 4c 47 3d 31
-fd 25 18 67 e6 9d ca 28 6c f2 93 e9 36 cc a8 40
-b8 00 42 39 dc 3c 0d ce 28 ba 67 c1 7e a3 b6 9f
-64 51 73 d3 5b 20 f6 f7 57 83 43 71 64 ed 9e 0a
-81 d1 b2 eb f3 b7 26 64 c2 6c 20 87 ae 2b ea 09
-99 64 c8 f9 82 e2 fa 26 95 91 86 54 8b 2a 8b 35
-13 71 59 1e 82 85 43 72 16 c7 0d 81 88 96 48 5f
-b5 f4 b4 1a d7 04 f0 69 4b 1f a9 39 95 34 91 94
-e2 78 84 93 fe ce 6d ea c9 0e 6e 02 30 42 d4 ee
-e7 e9 99 47 13 17 50 e1 5f 88 31 1b 26 fe f1 a8
-04 44 a7 60 8f 01 bf 78 94 3a c1 6c f1 24 bf 28
-f7 ca d9 60 d9 01 fa 71 71 50 bb 34 b7 6e c8 bb
-bc ea 8e d2 22 3e b9 f7 ce e7 97 89 e1 9e 85 ae
-71 8e a0 d6 60 8b ef 67 5c 1d c1 5c 93 10 4d 55
-af 4c 78 47 5a 96 9e e1 c2 a5 7f 07 06 e0 50 8f
-54 8a 00 df d3 10 3c a1 cc f0 8a f8 de 64 d7 e3
-f3 08 f1 97 b9 12 8a c3 62 d7 bc 4c 55 48 3b ba
-fd d3 5e 6f d1 98 cc 06 0d 17 da dd cf c1 a3 20
-96 ed 92 3a ce fe b7 c6 68 20 2e f0 0e aa 52 89
-6b 0c b6 86 98 83 8a a2 0c d8 a0 41 5d 24 22 d2
-42 0c 27 73 2a 21 64 3e e5 47 88 05 8c c1 5c bf
-8c 08 d9 b4 4d a1 c9 4c 39 7b b0 1c 76 ea af b5
-0c 7e 47 e2 71 6a c7 99 f4 ef 71 cb 3f 54 f4 c2
-e6 ae 2d 43 d1 c9 ac 44 7e 8a 24 62 c4 b5 19 a7
-ff 81 9f 29 5a 4a 0d b0 7f 05 f7 27 7f e8 d3 e7
-5e 70 c9 cd cc fb 97 9c db ea cf d8 a8 00 71 8b
-0e 2b 90 f4 05 01 3f 3b b4 ce 76 a9 71 dc 66 29
-b2 63 f9 e9 bf ab ac e6 b6 c6 f4 85 74 54 9a 77
-ed d6 0c 27 96 8d 97 a6 48 14 b2 69 e5 88 12 03
-46 eb 63 f0 ce 12 0c cf 19 8d f0 08 ae 7b 49 9e
-2a 9d ce cc f3 5c a9 3c 48 4a b5 2f 92 57 e3 3c
-35 87 24 96 83 30 b9 ab ff 23 a9 8b 58 83 b3 ec
-7b 5a 68 76 46 57 c2 65 17 15 c6 13 7d 30 bd c1
-92 7a d5 b3 6d b9 69 96 c3 c3 35 5a e4 ef a9 f9
-5f 28 52 3a 86 37 86 96 6a 18 6f 0b 32 0e 5c 0a
-21 4f d2 fb c8 b4 d3 02 8f 72 78 19 30 65 2b 72
-6b 56 bb ac 09 72 9f 99 38 20 66 cf 93 54 4d bf
-cd 7d 67 79 99 a7 87 c8 f9 50 0b 0b c9 71 28 d7
-7b 0d ed 76 01 3a 48 cf 4a 04 0c 63 ed af 8e 96
-f7 94 03 89 b8 e5 e2 40 e2 c4 45 2a db 9b 1b d9
-69 f1 55 3a c2 1f 03 02 e7 71 3b 30 42 24 f8 c8
-00 32 9c 3f 82 00 1a 0e 39 d4 99 92 6e 12 4a e1
-62 cc 44 72 61 0b eb 15 20 d7 ed 77 4a 13 bd af
-8a bf 42 42 fc 79 0f d9 2d 10 c0 b6 c2 48 47 a5
-93 8e 30 a9 f2 ac b2 76 a9 cd ac a7 1f 26 a9 04
-85 e1 51 81 f7 44 08 7f 75 80 e6 27 82 e3 3c 9b
-46 39 97 8f 80 ad 82 a5 ab dc d7 df f5 af 85 3b
-3c 6a 92 c1 e5 51 ed 4c ac d7 59 f5 7a 52 2c 5c
-8a 4f c2 54 2c 03 4d 94 4b 60 ca 1a 74 c5 66 0b
-38 08 13 4d d5 af 40 64 a6 21 9a 58 44 86 6d df
-34 fc 56 dd 1d d1 9d f1 b7 72 3c fe 87 65 1e 86
-e4 6c 05 e6 d3 bf bd ed 4f f2 4b 04 91 8b b3 9f
-a3 81 e0 6c b5 4c f5 33 c6 1f 7a 84 89 dd b2 e1
-9c ea ca 2b 1f 36 27 5a a4 dc 23 0c 81 65 bb f1
-a4 c8 e2 fa f3 26 b2 91 01 97 fc 5d 53 2f 2e 9f
-d7 6e 86 fc e3 54 0d 81 84 87 d0 6a 9e df 07 09
-ad 2d 92 cf 02 19 37 9a 4a db 67 31 42 d0 3b b6
-24 cb 2f 64 b9 bb 7c 39 cd 4f ce cd ed 60 e0 de
-d9 7d af 22 be b8 1a 45 f9 24 09 15 a9 d3 28 1f
-59 45 47 b8 b9 30 e6 e8 73 15 c4 72 f7 f9 97 62
-fb fc c7 f4 61 b1 a2 ce 81 2f 8f 1e 72 6c 60 77
-5e 70 78 73 9d 4b c5 3b b8 7a 16 0a d4 7c 6a 10
-17 7a 3f 31 24 ca 96 ec a2 52 9d 8a c9 78 77 6a
-df 95 e0 84 e3 c6 5e fd a0 14 61 49 c4 6b 68 be
-9a 73 24 38 a5 b1 48 99 85 1e 29 eb 92 77 2c 7b
-bb 6a 90 18 47 6b 35 02 0e 7c cf 0b 7d 50 bc 13
-13 a5 ca 38 04 a1 15 c6 51 91 08 86 41 37 42 aa
-40 49 38 c1 7c 00 d6 7a 67 ee 47 56 32 44 ce d9
-9b 17 5f 29 bc 9f 8c 26 58 02 33 70 aa b1 35 2b
-be fe 30 24 df c1 3e 56 38 2e ad e5 0c ef a9 61
-2e 1d da 31 d3 ab 4e 98 9d 3b eb 7c a4 f7 67 32
-14 44 b8 64 74 11 04 c4 a5 74 2d 72 bd 3f f1 30
-ec e6 d4 08 c7 98 e2 3e ae 0a f6 16 80 72 49 62
-22 b9 31 52 bf 1b de b7 6b f1 22 60 50 1a b3 72
-4e ee 4c 6d 27 01 dd e6 a3 f8 89 a2 18 6a 40 22
-26 5e fc 68 5a 81 25 57 a4 a4 e9 90 3e 43 9c 0e
-62 45 c3 41 19 4a e3 05 77 16 3e 5b 51 08 72 ba
-a1 bf 17 79 be 11 5c 3c 1f 30 a5 b6 b3 5b 5f 89
-7d 6a eb e7 a9 10 09 b4 d1 c9 18 08 7f 39 dd e7
-8f 7c 0c 58 8f 2d 61 7b 8d 65 06 db cf 43 7e 57
-c8 67 45 8d 16 b7 19 f8 eb e0 5c 79 13 30 1a 19
-d9 53 4d 6e e6 0d 0e ed 21 4e 3f 4a dd 26 24 2d
-b0 e2 c0 f3 3c ce 95 f1 6c 0c f0 61 e1 0e 28 84
-1f 14 2b 9d 17 a7 4a bc df f0 df b1 a2 7c d3 2b
-a4 51 37 9d b8 ac 40 85 03 75 32 80 80 df 4b f8
-37 79 20 25 5d b4 4f d9 5b 87 32 07 10 8e d3 44
-45 5f 4a 96 7e 4c c0 42 e4 d3 f7 f1 d4 28 cb a7
-d3 49 f6 d8 27 59 fd dc 3b 41 fe 17 e9 7f 61 b4
-0f 2e d3 5d e7 fa 1e 62 d1 5d 17 eb 35 c2 64 ce
-21 1b 5f bf a0 de aa 77 9e 06 20 3d e8 18 a5 1c
-29 db 68 78 92 05 24 22 28 de 96 42 50 43 93 11
-fb 68 06 98 47 fc e0 89 3b 45 dc f1 2c 03 4b 43
-f1 03 c6 65 c9 e7 0c d3 43 ea f9 05 a0 ac 92 26
-b5 fb b8 99 a3 30 90 b0 0f bd 54 89 2e d0 26 9d
-d6 ff ee ff ce 4b 05 6c d6 ee b0 c6 57 b1 e7 df
-51 fe 4a 4a 1b f5 d6 36 28 ad 23 09 41 0e c4 15
-9d 85 dd b0 fb e1 74 d1 9d 41 8a 14 a8 0b 18 5d
-44 17 e8 fe c6 ac 12 38 ed fd 57 76 9b e4 79 bb
-72 33 2e 12 76 8c 0d f6 94 80 a4 53 d3 a6 a9 1e
-03 a0 ff fa 8e cd 96 6a 83 7c f4 da b7 18 40 91
-30 4d e0 2c 2f e3 27 da f5 4f 72 ad 03 f3 48 9a
-22 ee 07 42 79 66 d7 4e ae 44 99 00 ae 4f f4 48
-97 7b cb b5 4b f5 40 56 c5 50 30 1d b9 9e e1 7d
-5f 8f b1 30 24 9d fc 53 c0 5f a1 19 a2 bf 2d 51
-15 ad 42 21 d7 04 7e cf 9f a0 cf 56 4c 1d 7e ce
-b6 3b f9 75 03 14 8f 52 a3 56 a4 51 19 d3 50 1e
-a3 8f 90 f9 c1 7d ef a5 85 a7 23 7b da bf 48 53
-cd 32 6c 4e 37 30 b0 35 a2 65 19 bc ce e2 6a 0e
-7e a6 b4 1d e0 3c 12 76 50 61 a4 27 10 d6 fe 30
-a1 c1 22 06 9e 42 bb c4 eb 2e ce da a7 e3 c4 c1
-59 27 2b 16 6d 9f c0 d4 f5 36 2d b6 5b 56 60 08
-db 54 99 bc 43 db 2d 3b db fb 1a 0b 86 23 2b 9d
-a5 91 2c 42 2a 8c 6e 2b 18 8d 0d 4f 79 79 7a 92
-d8 5c 52 b4 fa 3a cf 29 be 24 59 72 39 4b 69 67
-6c 57 ac d8 98 00 36 10 62 e6 55 f5 ea 8a 31 4f
-45 5b 5e 1c fe 2b 3f 46 c4 c7 4d 37 ca af 33 61
-cf 47 cc b5 2a 2e ab b8 30 06 55 c4 7e 2b 7e 81
-89 ce 67 37 5b 16 22 ab df 45 6e 44 7c 5b 2c 13
-16 47 0f 63 06 ef f4 c0 8d 27 27 e7 0e 6c 8e d3
-c3 d6 0d 8c e4 1c 36 32 fb ea b6 0c 82 ec e0 77
-c8 17 c3 e9 40 24 e7 99 cd 69 5e a0 8f d6 e8 b1
-ca 0a f9 8f 04 2e cf 60 c4 3a 9c 58 93 96 f1 56
-4d ce e1 9d 90 d7 12 3b 3c 01 4e c8 90 2f a4 ac
-00 c4 92 f3 59 9f 5b 8e 7e b8 49 86 6c 38 e4 63
-e8 f2 85 96 73 de 9f 02 bd 71 69 04 c0 82 4a 2b
-62 85 85 0e f4 eb 02 31 c0 c8 0d 29 48 6f 5b 17
-28 fe 34 2d 4a cd a9 4b ae d5 11 37 95 a5 ec 60
-dc 02 5e c4 4d 7f 79 c3 c4 df 8e 2f 69 ec a4 79
-58 ca 4d ef 4e da e9 7b 3a c9 9d 4f b6 b5 39 e5
-3a 86 e7 cf 77 08 9f 3d 19 74 ef 31 1f 3d 60 b4
-ae 7c a9 15 ff 51 c6 9a 87 4b 43 68 93 26 09 1d
-35 9f 5a c6 ba 32 b1 95 8c 10 7b 1d a6 e0 6f ed
-af 27 ae 91 d2 e6 84 4e a0 8d 62 8a 5b 9b 74 83
-bc 44 40 d3 14 3d e3 6c 53 3f de ad 58 57 61 b1
-31 87 ba 7e 8b d3 69 8e 1d 51 8d 8e 13 94 48 63
-ea 9e 40 c2 0c 9a a5 81 30 5c 68 e2 32 c4 69 82
-6f 52 af 20 09 7f 6a 9b 7b a0 7c ba 35 49 47 38
-93 94 a2 f0 7c 9d 72 b0 20 59 a9 b5 91 3f 9f a2
-fc af cc cd fa 9d f5 13 c2 ad e9 c7 8d d3 57 b1
-c2 da f7 61 e2 1a d0 ea 7b 69 5e 50 4b 0b 09 9a
-24 e9 b8 3c 42 77 09 6d 4b 47 52 02 fd 1d 6a 99
-1c 73 91 7a 66 de 44 f9 2b 2f b5 5f 88 82 77 2c
-a6 42 83 e3 17 fd 31 c7 bc 61 a9 0f a3 da 5f a6
-51 91 65 d8 b3 7b 16 59 9c ad f2 f6 03 74 50 c5
-74 ae fd 51 e3 a0 31 b0 9c 93 d7 be 43 b0 d0 03
-e1 a9 d2 14 5d d8 bc b2 1d a8 2e 55 46 0d ba f5
-2c 5e e0 84 33 a7 da 54 20 de a2 a3 2c 25 ea 4a
-b0 da a3 14 78 7f 61 4b af f4 92 af b9 df da 19
-16 bb e2 40 9d d9 27 a7 da dd 03 32 35 0d fb 23
-fd 31 a9 28 e7 f0 b6 fb 45 03 06 af 9d 8c bf 88
-b2 50 f2 58 08 e3 bc 23 d0 f5 0f fc 0a 96 c1 14
-bf 11 2c de a5 6f 23 a4 37 fb 6d ed e6 d4 af cb
-99 aa 39 2c 7f 0d 3d fe 4c 28 2b 59 a0 24 6c 82
-4a f0 59 f5 49 af 87 88 14 52 96 97 1b 76 8a 39
-75 45 cb 3d 93 2a e9 94 d8 4e 8b a1 0e a7 4e 44
-ad a1 18 c3 3d ff a0 e7 fa 7b 16 d5 e2 29 37 bc
-92 a6 a9 cd 61 72 2f e6 d1 1c 04 39 34 77 0d 5e
-9f 1d 7e 08 ad b8 00 5b 84 3e 35 94 11 b8 fa dc
-6e 37 68 0f 6a a5 e6 dd 8c ac 83 03 1e ad 6d 2b
-3d eb 5d 76 08 2f 7a db b0 06 b9 99 5b f3 c6 52
-3f 1a 69 e1 da 9b c4 c9 5a 63 9f b8 af 0e 8b 2e
-ba cf fc 72 e9 ad 59 08 68 45 15 6c 00 17 07 39
-71 26 f4 36 f5 84 9a f6 b0 1c 3a 74 10 06 37 5c
-f7 67 f7 53 3d 48 e1 9c b5 cc cf ab 77 8a c2 c9
-b2 f3 1b b0 2f b9 b8 c6 67 00 ef 16 f7 1e 04 6c
-3a 22 f8 47 5e 08 80 a0 70 94 b4 a6 b0 05 f2 92
-93 9e 21 64 ef 95 a2 2d 58 d0 7e 9f 86 e7 06 a4
-43 97 c8 b6 49 c8 68 51 5e ed da 54 f1 53 c4 5a
-b4 74 e4 a9 67 42 8c 7b 6f b1 a5 6f 5f f0 cc e7
-b0 4c f3 6e f8 b6 11 d3 fd 34 3d c2 20 8b 96 d4
-4d f9 28 f9 4a a3 cb d5 54 2b 32 59 a0 7a f5 81
-7a 31 e6 38 fe 71 29 14 e2 a1 1f cc ee 06 bc 92
-13 a3 68 e9 00 d0 96 0d 52 d8 e1 9a 99 b4 fc 6e
-14 06 69 e3 b4 27 c6 64 ba ea 79 43 a1 9e ee 84
-6a ec b3 c3 3d 10 a3 7e fa eb 7a d3 46 a5 d3 b0
-67 91 3d 1d 34 da 89 c1 db 95 f8 94 51 24 a5 85
-00 01 9c be 07 20 81 52 45 47 9e 63 22 a2 d1 3b
-ff 0f 4b ad 3c 1b 11 9f 9a a4 68 08 fd 97 9c 9b
-9b 2f 94 3d 02 0e c6 1e 86 15 9b c5 14 21 d2 e5
-c8 09 40 2f 63 48 93 22 1f df d6 0e c7 cd 53 66
-db 16 d8 b0 c4 fa 0a 75 78 37 e1 8f 84 88 15 d8
-2f a9 a4 83 c4 f9 a1 6e 51 fe 7a 69 30 a9 ff 46
-0a 81 49 5e fc 5e 99 38 3c d5 ed 46 69 8c ae d2
-c0 bb 3c e8 a3 1d e0 b4 71 64 88 9a 07 6b b3 24
-6f 6e dd 41 cd 87 7b a7 74 4c d6 c2 35 67 5f 09
-5d 82 d0 17 d5 ca 67 d9 25 2d 51 ec 20 f2 97 12
-e4 a3 d0 28 9c 55 1b 9d 20 a7 f0 95 c1 1e 71 23
-83 84 bd f1 1d e2 71 bb ab 6a d6 23 21 6f 71 d4
-57 42 f0 0f 15 0f df 9b d2 ca 4c 6f ab 2a 3e 04
-cf c3 71 c0 30 f4 9f 8a bf ef 01 1c 44 93 37 86
-9c 59 eb 2b 33 aa 28 19 4a 91 5b f9 21 9c 2e c3
-aa 27 e7 3c 4b 21 f6 e9 72 e1 f1 cc aa f4 97 5a
-ed 0b d3 1b cb 74 80 63 d8 7e b5 86 8f 8b a5 2a
-0d a2 31 12 96 55 3b 5d b4 8d a8 46 0f 9c c5 b4
-ce 1f 32 93 ba a2 22 9b 42 9f ec 88 35 2e 9e 68
-d3 81 b7 03 a8 4a 7b 63 b2 43 f5 3d 33 b0 6c 89
-31 e9 d8 e1 ff 5f 75 8a 35 71 fa 67 54 90 74 6a
-1c 2f f2 5f 3f c5 0d b2 fd f8 e5 ac cb c5 f1 6b
-85 0d d9 67 e6 98 18 fa 08 a1 86 b0 b1 2d 4b c4
-54 23 42 78 c2 80 34 4d 51 7f 15 7b 41 1d a3 06
-bc f3 8a e0 10 6a eb ec cd fa 71 11 d8 10 bc 63
-2f bf 9b c5 8d b1 e3 86 dc 9a 52 a2 1d b3 35 97
-de f2 b1 cb c8 25 90 98 82 82 34 7f cb 07 0f 09
-9b 22 42 d4 3a 8d ca 79 c3 f6 44 06 0d e7 ee 83
-32 2c 51 67 f0 ce 2f f3 2c 35 6b 7b cc aa 4c 9f
-65 8e 92 27 92 44 a8 30 e5 2c 4c ba 00 b7 b0 f0
-d6 30 84 a2 e7 e4 17 d3 e7 23 33 1a c1 27 e0 58
-ef cf 5e fb 95 1d 15 52 cb c5 62 a9 43 a3 74 d0
-7e 8e 9f ef 4b dc 7b 09 33 4c 3c 7d 2c af 2a 18
-b6 b4 b4 52 d7 ac 56 2a ba 01 d1 28 10 22 19 20
-3c 7d 9d 3c 0b 85 39 d6 81 b0 8a 71 0d c8 f4 1f
-e2 d2 41 cc 22 41 bc 9c c1 40 1e c1 70 c6 7d 12
-93 48 6e d3 76 9d 85 5a b5 be 3a 80 2c b6 68 9b
-78 c4 3d 65 d2 51 31 36 b2 0a 79 44 e7 a2 84 14
-9e c3 00 eb da b2 b4 d6 21 da 3b cb 81 23 64 23
-47 86 ee d8 7c 11 37 22 1e 72 7b 6d 71 2c 05 fa
-ee 9f 26 29 49 2a ef 3c c7 f9 d0 e4 10 b6 5d 9e
-00 8c f9 2b 06 f6 8c ce e0 0f 8f 68 50 65 0f 37
-cf 6d 17 96 75 04 6d 47 a8 a9 8f 36 01 d3 96 33
-13 15 b9 63 bf 24 17 da d1 db bd 3c 6c 85 1a 24
-44 6f 12 5e b1 f2 3b 19 67 4b 05 21 ca e6 9f e0
-2b c2 68 95 e1 d5 c8 08 d0 9f 88 de e3 e9 40 f9
-3e c0 dc 40 dc 70 4c af 82 ef ad 1c f8 dd bf 7a
-00 ec 8c 84 3d de 4c 78 95 db 71 d5 23 97 9b ac
-ab 6d a0 c0 16 6f 34 ba 2f 2d 05 de 05 36 13 54
-09 51 77 75 14 82 4c 8d 33 06 5c 18 ef 25 11 68
-5b 97 eb a0 ff 1a 59 72 f7 6e b7 d6 70 92 83 12
-7f f8 8c e5 54 56 0a 78 90 e1 f0 ae 0a 63 8b 06
-66 ee 7a a7 94 96 b0 92 69 48 37 aa a4 0f 3e 20
-76 73 5a 29 f7 57 c1 4a 16 25 99 9b eb 8e 7d f7
-17 82 49 f1 d0 64 9a 2d cf 2c 71 5e 4a df 0f 92
-46 e5 0d ea 6e cf d5 18 52 59 8c 13 06 e6 a0 81
-ab 9c 14 1f 64 ee 97 1f d8 15 b2 64 46 14 79 5d
-1c fd 8c 86 53 c5 e2 9e df 3e ef 55 f6 ce 26 22
-40 95 cc 41 1b bc c7 3e 61 f5 25 b0 22 d2 18 90
-0b 83 4b 3a a5 75 c7 be e2 73 c0 be 38 a3 84 46
-d7 cd fd d0 4e 1a d3 27 c8 a8 32 63 42 51 72 aa
-73 b7 54 f3 8a 09 84 12 9a fd 90 8d e6 9d 0d ee
-fb 9b 48 d3 ec 25 1f 29 f6 69 a0 eb 9d 49 84 04
-66 33 ce 08 37 f5 2a 22 82 9c f9 71 2b d8 3f 58
-b8 5b 66 98 72 5b 69 77 95 b7 ca ed 0a 2f 65 8f
-3d 28 58 43 67 72 b3 f5 d5 b9 b7 9b 34 db 34 b3
-d1 95 a1 fa 3e 8f fe d8 fb b0 f4 de 98 e3 16 5d
-e3 19 97 ef a9 b1 c7 f0 5c 44 d0 4d 2f d9 1e ef
-8e 74 1a d0 38 a5 0b a9 fb f9 cb b9 3c d5 8c dc
-78 49 b2 14 5d b7 80 8d e9 2d 0b 5e ee 37 86 b3
-5c 09 7d 87 06 79 57 1e 77 b5 e6 9a 27 99 15 d9
-17 af 5b cf ff 75 4b 2e 2c 6c 1a 80 6a 14 73 7a
-46 68 43 65 75 c2 d6 2b 70 82 0b d7 5c 37 9e 85
-25 7b 15 df 43 88 7f e1 eb fd 3e 78 ba 5c a9 bf
-be f0 ec a1 c0 ba 1f 5f 8c 8d 01 a8 f8 07 db 38
-c4 86 5d d7 08 3c a2 99 27 7e fa e2 a8 4e 53 60
-59 c9 cf bf e8 8a b0 ed 6b cf a5 3f 8b d3 01 c1
-2b 74 b8 e9 78 01 22 11 27 15 8f 8f cf 17 33 af
-2d b9 9b c6 8d c2 1a 8a de 14 bb 52 01 f6 d2 90
-d4 98 2d 5d 07 cd c7 f9 96 3f 0a 0e 17 d0 2b fe
-97 f5 60 a8 d2 e6 7e 6c e8 24 fe fb b1 a3 c9 88
-ff 79 4c a4 69 83 1e 4d 4e b3 e2 a2 b6 c5 63 0f
-88 1c 52 03 c1 24 c8 07 44 19 ff 33 29 de e9 f5
-c4 e5 e0 3f 2a 4f a2 8d 95 7e 21 fd 7a 20 df df
-27 6f 2c 64 b2 82 3d 9a 56 9d 37 1a 45 39 42 9f
-9d 66 3a 08 89 6e 86 5c de e6 e1 a0 3e 4e ce 95
-f8 f1 8b 68 04 86 52 4a 90 ed 9c 65 57 f0 71 af
-e2 67 fa b9 01 91 e1 9d 2b 54 3e 20 0e c7 f1 7c
-18 76 0c c3 bc dc ee 8d b2 75 a2 48 64 2f 93 0a
-6d d1 b4 3e df d8 b9 23 58 3e 4d 26 38 86 79 8a
-d8 59 a8 dc 1a 64 ef fd dc 0d ae ae cf ae 3a 4a
-af 2e 42 37 bd 78 ed 5b 08 87 ef d7 0e ac 57 5f
-2f 85 c3 9c 3b be cc 0e 5e c9 62 59 37 e4 44 38
-60 56 83 6e 9d 62 5d 27 2c a8 39 dc 22 97 ff ce
-8e cf 3c b6 06 8b c2 7c 10 a1 80 af 17 c1 cf 82
-84 04 f5 6f 8b b6 c6 ee 1c f4 13 78 bd ab 0d 9b
-ee be ab 0f d0 01 1a 01 e9 8c ee 79 37 18 90 49
-5d 1f 1d fd ac ac 94 b2 44 5c b1 ba fb 9a b8 95
-3b 22 73 6a d9 29 23 7c cb 11 ee 76 4a 54 e8 09
-21 c9 85 4e 88 b2 5f 4f a9 e6 bb 0d 86 9e 85 52
-d4 ef f0 84 39 40 3e 17 21 a8 15 3c 0e 38 7a 3a
-bf e5 de bc 03 57 96 f2 1b 33 72 b8 9f ed b7 1b
-97 b5 a2 f7 d7 dc d1 2d e7 6b 81 74 f4 10 46 4b
-46 f8 39 b8 18 84 91 18 94 00 2c 68 7b 55 08 fa
-bb 5c b8 be 1c 3f c1 51 4f 01 cc 38 79 7b 8b ff
-3b 9e 4a 50 80 8a 13 b6 67 2e dd 66 c0 d2 28 2e
-3d ca f6 95 1b e5 95 d7 14 23 1a a3 aa ad 10 08
-1d e2 a3 57 d2 9e f4 1a 32 95 29 33 fd 5b d8 6e
-30 9f 1c b1 62 95 40 21 43 5c fd f4 2f 38 4d 93
-5e e6 7c 80 d2 7b 62 66 8f ef 7c 51 6a 16 c7 86
-e8 6a 58 2b 82 ed dc 8d fe f3 fd 2e 1f ad 60 23
-56 f7 5d 87 ce b1 2c b3 2c 85 5c 7f f0 4a a8 27
-ec 3b c5 d4 4c 39 d2 6a 7d 4e ae e0 d4 6d 48 b9
-ce 88 95 bf 3b 5e dd 92 5c 32 49 90 da 5c da 33
-ef 36 c4 30 48 af d0 7d 93 b6 9f d7 9c 9c 59 e8
-0f 6e fe e7 6c b8 85 70 6f bd 91 f2 d2 58 21 3c
-ad 44 6f 97 5b 89 31 b7 28 54 56 5e 92 df f8 a6
-51 be 07 b3 1e 54 69 c8 d6 88 cd 89 3d 5f 56 60
-5a 5e 21 e2 38 0e a2 96 83 8d aa db cc 74 d5 4b
-9b 88 27 9c 3e 11 dc 0b b2 14 6b 39 01 6e 02 2b
-9b e2 e7 46 bc 06 fa b6 86 29 be 80 48 ad 5f aa
-57 1e cf 8f bb b4 ce 60 61 73 3a 3d f3 68 be 4c
-dd 0f 37 dd c1 46 e5 94 ce d9 a0 d7 0c 2d 03 70
-92 0e 40 bb ab de 7d c8 cc 41 64 a0 6f a4 44 da
-dc b1 82 ac 79 53 85 9c 1d c7 f5 bb 4b 75 f2 4b
-65 e7 24 d7 67 ef c4 9c 58 98 12 76 81 ff ed 58
-6d 41 ee 5e 59 be 27 dd 52 1a d3 4a 65 b7 1e a6
-e3 b7 7b a0 d9 c9 37 62 c1 a8 5a e6 5f 3c 5d 69
-cc b8 30 73 e5 24 f8 40 11 da 0a 34 5c 2f 81 b5
-d1 bd 2c 7b ce 7a 27 49 4b ae dc 74 f7 90 09 62
-3b 7a af cb 46 80 00 20 cc ff ae 14 90 14 27 96
-d9 d7 c2 00 fe f0 43 37 7f 28 28 2a d7 4d 8a 67
-4e e8 1d 5b 5d 57 e9 13 4b 85 68 89 2c 25 ec f0
-58 61 9e 40 96 8d 88 d7 fc c2 3c 57 3b 60 09 6c
-e2 dc 47 eb 9f 4f a7 08 2e d5 54 2a 99 28 e8 2d
-9f 36 58 41 7e af a3 1e 7c d8 d4 a9 2e 68 25 fd
-c2 bf fa 5d 53 d6 b6 eb 9b ec a5 bc ae 0c dd be
-da 4d f2 db 0a 98 34 00 d6 41 63 57 0a a3 a7 3e
-6c a1 9e 4f 00 59 c0 cf 37 ae 71 72 ee 26 28 da
-f5 1d 17 fc f4 a7 0a 95 0e 32 54 ee 08 71 ef 26
-e5 8a cd 07 d9 52 15 23 48 12 cd ce 3e 72 71 be
-9e 10 2b 67 ab 3f ef 64 57 62 be 01 4b 16 5d 38
-52 2b df d5 98 39 14 2b fe 32 db 66 b5 43 99 e3
-2e 04 c1 0e 2c 3c 44 1d da fb fe 30 a0 df 3b c7
-54 8f aa 9f ae fd bd 96 7b 7d 41 19 77 b5 52 90
-3b 5a 42 85 cb ca 14 bc 2b a3 ab 77 f0 05 7a b5
-f8 0f d4 69 b5 33 a6 2b 15 9c 7a f2 02 6e 9f 3c
-e0 8c c7 0b 57 11 c1 99 a5 9d ac 98 75 e7 56 94
-f3 31 a4 50 5c 41 b4 fc 0b c7 a8 3b 02 31 a3 f5
-b1 d1 a8 a8 45 61 d0 36 e1 da 4a 22 91 19 4d 15
-b4 69 75 48 ba e9 c7 a0 a1 42 5d 38 cb 58 23 a0
-c3 16 bd 77 0e 9b f6 13 84 a7 bc 8a 66 a5 78 da
-df 59 d7 a4 66 71 8e b3 49 0d 01 d1 cb aa 95 39
-63 3b d3 fc 01 fa 21 5b 2f 4f 52 18 5d 32 9c 38
-99 b4 ae 29 ce 1b 65 24 63 ea 3a f6 78 d2 cf 8d
-ee ee cd 36 1c a7 92 58 c2 8d 1b 57 4c c9 3e 20
-db 6e 01 2d 2d 35 3a 76 e6 90 70 da 8c ef b5 4c
-29 80 90 d9 b1 64 01 05 35 12 12 5a 2f fb 15 48
-c9 f5 31 88 86 1b 64 db 01 b9 a6 18 a9 a5 5e 43
-dc f8 fe d3 77 dd a0 ba e4 08 8e 25 ad 03 7a e8
-73 6d 71 fe 9c 7c 17 f8 bb 26 03 42 3d e1 92 25
-db d2 d0 13 2c 6f ab ac 56 f7 71 d6 e6 a3 b8 c2
-09 4a 31 72 ea 05 80 b6 fb 61 1a 3a 01 09 93 6b
-4d 92 88 05 6a cc c6 10 31 16 f8 8f b4 4b 0f 6b
-be e9 50 61 53 b6 fc eb ff 94 20 09 c0 42 70 ad
-47 e4 f1 e1 8d 51 fa f9 79 80 7d 89 91 46 55 72
-63 5a 64 e5 cf e5 58 e8 f3 4d 07 f2 e9 ed fd 6d
-12 52 51 96 d4 31 bc ea b6 b3 ea c3 5c 62 e2 d4
-12 83 83 30 87 3a cc be 51 27 ab f9 7f 22 1b 6b
-8b 4b 18 c8 96 e3 59 3c f8 4a ef 20 52 96 8c ce
-6a 9e 79 74 bf 5a 54 aa 9b 90 09 67 af 47 6d e4
-f5 a4 86 42 99 5d 56 81 4e 5f c6 e0 98 63 6c 74
-80 7b d4 34 64 fa 11 fa 4b 52 91 a8 03 45 df f0
-b6 2f fc 1d 3b e4 19 5d f1 da 46 03 5c d1 36 ab
-26 8c 82 50 73 ad 54 b1 1c a3 2c 33 60 eb f5 d9
-43 c1 c6 2c cf a5 46 4b 55 e2 65 9b 96 7b 50 67
-b3 6e e5 a6 bc 8c 6e 18 39 b7 1e f5 1b c2 19 a7
-63 30 f0 71 d0 df 40 e2 e7 2a 1b 9b d8 e0 02 1a
-b0 37 a1 e1 df a8 40 64 80 f4 a2 14 78 61 d2 b6
-4c 0a ea d4 3e 2d 80 69 5a af ed d9 bf 51 52 49
-1f ac 88 fc 18 5f 26 0f fb 69 60 d8 ed f8 3b 62
-34 3e d7 11 f5 f3 3d f8 28 7c 24 c1 67 95 bf 04
-2f 3b c2 64 2d 51 06 1a 4d 59 5e c7 32 e1 b5 74
-23 73 a9 2c 6f c8 a0 2c a8 8e 5b 1f 50 5b bb 6d
-12 d9 0c 87 ca 72 5a 7b ad d8 c8 b0 8d 5a e9 29
-f4 95 60 1a 8f 60 93 71 35 c8 40 c6 53 89 0d 24
-24 e5 21 90 75 29 4f b1 90 5c 28 92 49 38 1a 36
-55 59 44 4e 41 a2 a2 83 85 11 89 32 d9 f8 09 3c
-4e 75 65 f8 08 c1 65 02 6e 1c f6 8e 05 f1 74 84
-3e e4 c7 5e 6a 82 86 0f b6 ea d2 ec 5d 70 03 b2
-bd 49 48 f9 d4 bd ab 8d da 03 4b 34 0b 42 00 03
-ed e3 83 fd c6 ee 95 c1 6f 30 c8 eb ae e2 da 51
-06 af 56 7d 23 9d 16 22 6f 1c 33 83 55 77 08 01
-09 dc 3b 99 5d 61 9b 5c bf 7f 7c 11 da 62 27 46
-3a 1c 11 6a 04 1c 3c 52 f2 25 4c 94 71 a4 49 b6
-07 0c 28 4b f1 27 98 3c 70 7a b5 05 01 5d c5 24
-ee 92 60 6c 59 af fa ea 97 cc bd b6 ae d6 b7 74
-3f 0e 01 13 c6 f0 4e 48 e7 9e 31 ed c2 36 64 4d
-da 0e 50 a1 cd df d1 d1 b4 ab 81 70 78 d4 fe c8
-0c 9a 8e 4c b4 9b 44 d2 cf f9 60 b2 9b d7 78 4e
-4b e1 0c 14 38 c6 4f a7 3c 62 9b 5b 6f 29 78 fc
-42 83 f6 f6 38 40 20 14 d1 54 26 6c b3 8c be 2e
-e0 ee 88 69 c6 0a 55 cf 21 ae 1f 19 65 3d f5 10
-d5 76 34 80 f1 1f e2 a8 47 b6 b8 5e cf be ed ce
-24 96 47 dc 76 68 29 04 15 00 a7 a8 36 5f 51 99
-ba 1b 94 f4 89 00 1f 7e 31 8c ef 47 a0 60 9c a9
-48 8a f1 1b dc 95 de 31 d8 92 d7 96 6f 0e 29 c4
-7a c4 d7 cf cb d1 2c 09 31 a6 f8 dc 70 9e ab ef
-ff 90 e5 ca 71 18 19 45 9c ad 77 03 94 da 38 10
-ef 5a 68 8e 91 63 9d a0 de 43 40 7f bb 7b 83 f7
-65 52 9a 21 18 e5 28 d1 12 19 0a f1 83 51 25 f5
-eb fd 19 df 2e 10 51 f7 a5 85 6d 5e f6 c7 35 57
-9f b7 ff e9 4c ad 4c c6 12 90 b0 d3 f2 b2 c0 25
-6f 83 bc 23 9f a0 ed f1 fc ad cc 5e 4b 75 9c 54
-46 8b 19 26 56 d5 3e 56 13 e1 f8 09 b6 65 95 f8
-03 00 3b af d4 d0 e5 cf ce aa 59 68 c8 ba 08 41
-4d e0 2e 2f bc 37 9f 39 40 db 9a 28 4c bb 6d 78
-a3 06 11 72 71 a1 c9 0f 34 b8 f1 60 82 60 ee 1c
-53 19 cf 2f 9a a9 f1 93 96 c9 bb a3 0c 65 f4 4e
-2f 7b 91 7a 76 38 3d 03 bf 02 ac e0 44 6a 19 45
-50 98 b1 10 d0 cd 75 c9 f3 a4 50 1a 24 ec 2b ae
-29 8d 00 56 25 3d 35 2e f7 25 14 66 c9 89 3f 11
-08 2b 16 1b b7 c9 33 e1 c0 16 2c 35 aa dd 3d d9
-ad 95 31 cc 46 5d 9c ab b3 fa 1b 29 38 b5 bc e1
-43 a5 84 e4 fc ec dc b0 a9 46 d8 7c d3 9a 24 97
-b9 60 8c dd 2c 30 11 06 db 2d a9 d1 de e4 27 22
-d8 ec 36 da 21 8b fa 97 59 92 6d 93 5c 71 eb 3d
-c3 26 1f 5f a4 53 e3 79 da 87 41 00 7a 41 ac 27
-9c e8 a7 67 06 6e 56 67 ce a4 48 59 90 06 ac 7d
-1d c5 a6 f8 f8 90 16 46 7e f7 fb 06 be 23 0b cf
-6b 70 aa 83 3f 33 02 a1 db da 83 89 37 0d d7 e4
-63 cd 51 81 1c 08 56 49 e9 74 3a de f1 94 d9 ba
-a5 4a 7a ef b5 cf 20 f7 18 fa c0 8a 4c 1d 58 d0
-e0 79 36 57 32 fa 9a 1b 8f 31 98 74 fb 67 82 45
-21 5e 76 59 1e ed 03 68 ae b8 10 5a 7e f7 6d b8
-d6 c5 11 ff 3d a3 ef c8 cb fa 92 c5 33 a4 d0 c8
-df 7f 79 65 7c 5e c0 29 8e e2 46 1f 05 a0 5a 80
-d7 b1 2c 8e 6a 5a 1d 28 86 9d 18 d3 63 54 36 79
-c4 d6 90 d4 99 99 36 e0 68 53 74 e0 28 2f cb d0
-07 3c 12 14 81 8b 3b 87 b6 41 64 69 54 be c8 d2
-3a d0 85 4d d5 e6 cb 2d ee 9c 7a 48 ff 54 64 4f
-d0 20 1e c2 60 ae 2d 3c 80 0d 19 4c 3b 90 f1 56
-50 83 c3 9c 7c af c9 ab 74 4a fd 45 aa 1a 13 d6
-00 64 f7 d9 2b 16 89 40 4a 7e 3d 51 04 ea a5 a9
-65 82 a4 87 6f 4b 73 26 9d 40 52 1f 31 d2 20 04
-7f 14 63 b6 96 86 cb a9 62 29 09 e8 d8 04 52 bd
-73 97 31 13 93 4a 02 5a b0 5c 6c d5 e9 67 0f 58
-8f b1 7d f5 33 b1 91 6b 45 1a 3e 66 2c 14 74 fd
-4e de 07 84 a5 c6 ed 2d 18 f0 e8 76 8e fb b6 10
-2d 7d 4c ba 97 25 e2 2e f1 ac cb e8 6c 5c f7 5f
-65 62 a8 3a f2 44 6f 25 32 f3 85 dd 70 97 3b c0
-d6 d4 4f 5e 92 fe 16 32 ec b5 9a ce 9b 9d cf 1c
-e4 11 02 62 c4 f8 14 50 60 f8 11 95 62 30 0d b6
-92 9f d9 bc 8a 10 b9 d6 e5 35 8f 94 10 33 ba 2a
-2a 3b ea d9 09 47 f0 f9 ec 29 e5 50 1f af 0c 61
-5e 7c c5 cb a2 b0 0b 6f 3f 2d e9 3c 0f 8d ba af
-b2 e2 28 f2 14 03 c1 eb 8b 60 0d 5e 2c c7 9d 8d
-3a 2b 39 fd 65 ef 0c aa 75 20 14 9c d8 7f 8f 0b
-e4 a3 3a 2c 04 db 9f 7c 06 4f b9 cf e7 ce bd 0f
-2a 58 60 4c 49 9c fb c5 a8 15 17 f3 b0 d3 6d 5f
-80 60 ec 80 2f bc 0a de 5d d3 e2 3e b7 7e 44 92
-70 1a 15 c9 a3 28 29 b3 90 57 c9 44 32 47 94 ec
-38 0d ce 9b 37 36 5b 50 df 79 eb 40 12 32 8a 98
-f9 63 a2 40 5f 52 13 10 df 9d 7e f1 87 87 24 cc
-30 22 ec 3e bd 36 ed f9 4b f5 36 20 f6 31 bc 61
-8a 02 95 93 f1 0c 19 34 a2 1e 60 8b a3 bf 09 13
-59 fc 45 13 1f 4f 0a d8 89 d7 d8 13 0e f4 fb f4
-2b ff 38 fb 46 60 7a 40 8e af a5 2d ce b4 fe d8
-60 7b 64 25 45 1e 64 4f 73 fd 5c fd 16 d0 f4 ea
-fe 3f 7d 4d 51 e4 41 51 e8 66 be d4 96 de 86 e1
-2d c7 af ef e7 ea 40 bf b7 4a fb 8d 9d e7 88 88
-76 63 84 7e 5e be 67 a3 a1 21 06 44 fd ad a2 18
-cc 2c bd d1 53 bb 00 45 83 d8 83 e2 65 5c 97 d3
-56 9f ae 99 bc 1b 00 d7 6f 3e 50 33 f5 8f ed de
-ff 93 4f 54 db e0 20 5c 80 7a 27 d1 3d 04 97 9c
-da 14 98 8a ad 52 5a 53 3f b9 e8 2e c2 3f 1a b6
-e6 da 9b 4d fe 54 2a 80 2b 41 18 89 14 0e 77 f4
-aa 14 84 14 4f f9 a4 27 21 5f b1 22 45 79 bc 96
-55 63 71 08 d3 b7 a7 25 44 e6 0e ba 68 3e 91 b8
-45 ff de 58 ab b0 1d 78 3b 32 7f bd 75 56 0d eb
-34 b5 0c 30 84 ff 8b fb e2 cf 68 da 22 a1 57 4c
-d5 32 1a bc cb 1e d7 20 e8 89 d1 b4 dd d1 ed ab
-ee cf 00 6d cb 2d 1f 08 57 db f1 84 4a a7 9b 4b
-1f ed c7 89 7c 57 87 26 e1 4f f4 b8 5a 00 3a 34
-cf 52 54 17 70 b2 85 49 6f 64 5b 70 95 a5 01 97
-73 05 29 7c 65 93 41 2e 01 f4 0d 56 27 4b c2 4d
-f8 88 bf cf f8 40 42 c5 28 e1 97 49 e4 77 45 49
-5a e7 0e 4d 8f 09 57 0d 00 74 0b 35 7c f5 61 e4
-85 f1 c2 b4 8a 10 93 a8 f5 27 e4 43 76 01 8f 4e
-65 b7 24 47 bc e3 cf 63 6f ec c6 82 4a d5 41 e0
-85 d6 67 44 b1 61 85 2b 15 93 cc 43 14 2a 7c 4a
-81 5b bd 68 fe d1 1f 16 09 c2 c2 c4 5a e4 77 ce
-c7 bd 71 11 6d 96 9f 38 06 c0 7a 95 e8 66 8b a9
-ac 8b 58 62 57 4f f0 26 91 af 18 a2 2d ad 83 70
-5e 13 0e e7 60 60 e9 09 e6 f5 0c ed be 0d f8 e6
-20 c7 49 15 f9 f8 4b c2 44 29 ad ca 72 01 91 61
-6f 67 cd 86 a9 66 d7 cd a4 dd 24 bf 70 7b 2a 42
-b9 bc 92 8d ab 1b c3 c0 bf d4 c0 44 6e 86 aa 76
-bc ad 3a df 97 da 3d 1c 53 83 de 40 62 18 0e b5
-be 27 6d 44 ad dd b7 93 f5 02 70 ad c6 23 61 2b
-38 15 ca e7 a4 8b c5 50 f8 bd 08 15 83 b4 c3 fb
-8c 6b 3e 56 84 10 fd 36 ca 58 17 66 69 25 b0 38
-dd 18 8e 55 f9 93 3c b1 71 17 02 74 db 7d 7d b1
-9e 7f d4 69 a5 6a d7 1f a4 73 cc 9b 1f bd 72 0f
-17 44 7a 4b a6 33 06 ef bf 6c d8 bb bb f0 30 5e
-8b 0f fe a5 d0 75 8b dd 80 b9 c8 34 c3 03 06 c3
-1b ba 76 5d b4 ed 6e 7f 46 06 96 8e 5c c8 8a 16
-48 bf d0 70 b9 d9 97 97 57 a5 b5 3b af 5a b8 84
-2a ce 17 b7 18 7f dc 3e 2c e3 76 4f da ac da a5
-2b 2b a8 f6 a7 80 f4 b7 e9 fa f7 e3 9c 00 8c 04
-a0 61 9d b7 27 fc a4 75 7d f5 5a 9b 65 30 70 a5
-13 67 5a 71 fb 65 8c c5 6f 58 45 e5 55 61 6a 97
-f0 76 40 81 d5 13 46 57 89 f3 58 2e 2b 21 9c 17
-37 47 a3 fd 66 e1 80 ef 30 72 fc 1b e5 31 c8 26
-5f 12 94 ef 6e fb 1e bb 76 48 1e 36 7e 80 2d b9
-bd 6f 3a 69 4b ef 38 0b 40 e7 bb ee 3d 27 57 bd
-b9 df 1f 43 1e cb 72 76 aa 0f bd 03 94 02 b3 9b
-61 fb e3 9c 10 cb d2 50 a1 30 97 3a 0c c9 eb 3f
-be cb b0 cb cd b2 e5 d8 15 8e 74 34 fb c5 f7 7d
-2f 21 01 d6 dd 81 f2 54 77 34 47 4b f7 a8 f0 73
-0b 4d 53 6b cd ea 4e d8 5c a0 72 91 ad 22 12 57
-c8 6b 9b 99 37 f1 c4 f6 43 2e b7 b3 38 f0 97 07
-2f 40 1c c7 98 ca 5a d9 7f 49 c2 69 f6 d1 d4 dc
-6e ec 8f bb 99 9f 69 74 ea 42 cd 8e 45 f8 44 11
-cd ed 8f ce b1 34 38 30 6f 89 25 9e 8b 30 7e a5
-5b 6a f3 cb d9 be 73 42 1d 46 2d 73 3e ae 06 19
-1c 9a 5d 65 e2 49 b2 c0 8a 3c 91 50 10 0c 91 39
-24 ee 8f f8 8f 8e 29 54 da 19 f5 5c 7b 53 de df
-3a a1 4d 72 92 41 a8 30 a6 01 ca ec ef 68 9b 17
-25 3a a7 b5 a9 79 32 23 03 1a b9 cc 69 5d 69 d3
-f7 d6 fd f1 c1 af 81 80 b2 e1 4c b5 b3 0c 56 c2
-d0 97 58 8f b4 72 48 1c a3 a4 f6 f7 dc f8 ec b3
-0a e7 94 07 d5 64 a4 d2 a1 3b c5 fe 1b a0 d5 2f
-80 d0 cc e9 bf dd d5 8b 7b d7 4b 79 99 94 e7 ad
-cf d1 73 50 ec af f3 00 2f ec 1c 68 e0 a2 1c d5
-90 90 fd 2c f8 2b ab 91 e2 c9 94 3f b8 a2 c4 52
-ae 20 62 cb e0 ab 63 8b 09 a3 b6 4d 36 c2 80 42
-28 a2 e2 28 3d c0 d7 88 47 1f 7a 22 19 75 46 46
-ae 1a 92 c9 7e 2c a1 9e 6a f5 61 86 57 3d 7a 23
-2f cc bb 91 ef 6d 88 b6 e6 88 22 1e b5 4f 91 34
-26 da 2f 70 cf e4 1b c8 1b 34 18 44 d0 f3 2b 2d
-37 3d 20 0d 0c 9a bd 88 c4 56 10 19 c4 76 93 1a
-a6 f0 c8 7f b4 fb 4d ba 96 4f e2 a8 57 f8 dc cd
-47 6e 4c 28 90 2d dd ee c9 b1 95 95 0a d0 1e 0e
-43 55 44 80 cd 0d 90 f8 91 fa 9b 5b 3e b7 1e 18
-2d 47 2b 89 8e c4 bf ff 32 99 d1 02 31 5b 1e 00
-d3 0b 8b d6 95 fa 44 17 0c b4 6e 06 5d 8a e6 a2
-ca 86 4c 56 03 59 ec ce f4 20 e9 c8 a2 eb 47 88
-6a 18 b0 57 90 a5 37 e6 3e 8a f0 88 06 f7 14 d9
-39 f0 f2 9e b5 51 78 a3 05 6d b4 78 c2 bc 5f 1d
-89 01 2a 0a e5 dc 9a cc 08 8e 25 93 88 f8 81 b2
-6a 57 4a 90 9a f4 7f f3 49 12 f1 32 3e 16 9f 3d
-ab 9b 59 27 f0 d7 ea 78 89 8b 2c ec 99 52 50 c6
-09 00 c7 d4 20 b5 cc dd 0a 6a b2 f8 d2 5c c3 61
-6d ae 81 4e 0d 0c 69 39 eb 9a e1 9e 14 a4 fc b5
-c9 c0 e2 ca 9d 62 18 27 00 83 52 0d 16 a7 c3 cc
-de 08 2d 1d 80 b1 0c a1 3f b4 12 dd fa 0b a9 e3
-1b 0c c3 b2 46 69 da f4 22 42 b8 38 ee 83 c4 ff
-13 a8 e9 cb 6a 72 3b 90 e3 5e 2b 6e 60 e4 e0 30
-fc 01 d6 77 9b 43 45 48 ce f5 d3 46 5d f5 6e d1
-c1 b5 6e a6 6d 68 2c c2 66 c2 20 d2 74 cd ed b6
-69 e5 3a f1 9c 0b b3 7a 34 07 08 df 67 ab a2 b7
-2f 7b 08 4a db cb 8b a4 14 f7 b0 4c 41 d5 d5 d9
-f7 ce 05 d1 a3 44 fb b2 75 9c e4 dd 64 59 97 58
-c7 d2 42 d1 97 38 fb d5 51 70 7a 4d 3b 8d b0 0b
-86 0b b5 63 78 b1 51 50 ae 5c a3 33 c4 ff a7 d2
-f3 83 7f 03 cb 29 f6 63 1a 6e d8 a2 d3 b6 2d b3
-3a 79 32 e0 b9 15 21 81 c7 4b d6 f0 54 b9 9f a9
-13 6f 65 1b 7c 6b 09 22 3b 70 3e 2c 29 d6 9f 3b
-ca a0 b6 50 02 7e f5 d8 6e 30 31 24 71 53 3e a2
-c6 30 8e a1 d0 60 3a c7 8f 92 f8 82 0b 83 ed 7a
-9b ed c1 71 3c a7 62 58 c3 a9 db 82 33 64 77 2d
-f0 26 45 57 29 41 2d 73 34 58 af c8 f9 3f d1 de
-8c 6b 07 98 17 07 5b fb 20 1d f5 9e 71 21 f2 bc
-06 d4 53 a1 5c 5b ad 0c 7c 43 a2 7b a7 b9 89 e2
-80 ac 67 26 aa ca e5 1b f2 c0 c3 0e 7d 2b 98 ed
-63 fc e1 2c 8f cb 18 c7 e3 1c 20 cb ac ec 50 70
-6f 5f ae e4 62 2b 25 7d 85 58 2e 10 3a f4 51 eb
-b3 92 4e a3 26 01 b6 2f da a7 40 cd 58 73 ae 3b
-00 b5 b4 b7 8a 0d c5 40 07 31 3c 74 6f 04 13 aa
-69 58 f0 0e 8c ed 79 85 c4 e2 06 6e 2c 32 e8 09
-39 fb 86 c6 61 28 78 6b ff 3a 26 39 40 cc ef 0a
-43 6e 80 7c 54 e3 68 1f cf 01 72 09 4f 7a a2 aa
-1e 65 9c fb 4c ce c9 1e 94 7f 1b 02 dd 22 f2 7b
-c3 8e 38 fc b6 7a 44 bf fc fe 26 1c 14 aa cc ba
-61 d0 16 2b bb ef 7c b2 05 3e 89 d3 22 52 83 fc
-6b 37 55 fc d1 f1 9e 73 9a c2 0f 46 a4 47 01 9f
-e4 26 88 79 30 a4 d5 1a ae 71 b5 7f d4 08 6e 30
-12 74 18 aa 3c 3a c0 6f bf 04 c9 5a 0c 8c 53 35
-4b 0a 87 ec 67 a8 4f e4 5a 9c 5a fb bd b5 e2 a0
-cc 3a 96 66 20 4a 13 68 c4 7d e0 f5 4f ba ae 15
-11 46 62 0c 01 db 28 38 2c 7d f1 83 05 d5 c1 97
-b6 1f 49 f1 ff ec 74 00 0b 4b d3 e6 82 26 07 b1
-5d 8b 48 bb 23 6d 4c 2d ab 64 f4 c0 a0 c8 df fb
-f8 dc f5 42 7b 12 78 17 2a 33 64 86 a8 76 bc c6
-fa a8 c4 c0 46 e3 20 fa 03 7a 0e 6f 01 b7 19 82
-6f d2 95 7e 64 60 59 d4 07 d9 02 98 ae 99 4a ee
-2f 6a 90 15 71 f8 a7 1a 49 62 c5 67 9e 82 d0 b1
-21 e7 7f ea d5 30 80 3e 48 2c 13 22 de d3 b7 4a
-c3 c3 ac 9e 28 47 eb 78 6a 67 42 3d 56 e0 99 6c
-e8 a7 66 f3 23 74 6b 85 65 ae ac 14 f3 4b de 95
-ef 29 36 0e 4b c1 a5 94 89 2c bf 61 d5 00 29 21
-fd ed f1 42 57 f3 fb 27 23 88 7f 53 b6 05 b6 62
-32 e1 98 44 ce bb 78 91 90 9b 89 a1 fd 89 3d 0d
-7d a2 f8 94 5b 6e a8 a0 22 5e cc 94 3f 87 b5 26
-d1 b1 b2 fa b3 2d 63 90 d0 8b 07 be 40 86 ab 6f
-ab aa c1 96 50 fc d5 94 4d 09 6f f6 85 11 d1 c1
-c3 68 79 da 8d 68 31 85 96 07 50 4d fc 13 db bb
-10 fd 42 ea 22 ae 3b 88 b0 34 11 14 9e a0 73 80
-8f 5d ea a9 20 12 ae 43 7d 02 87 dd 0d f4 0e 17
-4b b0 7c 13 ad d4 89 81 c5 04 80 e2 cb 46 d9 b0
-c6 90 19 52 e6 57 28 5b 3b 01 ce 00 14 43 7f 91
-ee 0f 97 26 01 86 9a 16 b2 1d 84 fb a1 fb 0d be
-05 8a 69 85 aa a9 ad 59 34 27 5a 33 2d 8d 01 c0
-88 cf 56 ee 67 52 cc 66 c9 62 91 8e 99 a0 03 51
-3f 49 9f 39 e6 61 64 fc 6b 8f c5 7c 44 80 af ed
-1e 5b 82 1d 64 5e 29 11 44 e6 b4 a7 64 b0 b8 4a
-34 4c 3d 43 28 80 ae 20 19 d0 01 98 34 d9 2c 08
-c6 be a7 26 f5 23 75 c5 34 85 08 36 13 81 2b 35
-5d 08 2b 04 e6 bd 90 a4 75 f8 fc 92 1e 1b 69 6c
-07 99 b7 23 11 df 7e 4c 15 8c 6e d3 78 03 1a d5
-bc 32 ce bf 5d 0a 15 b6 e6 77 6e 72 0e 8e 09 88
-05 54 84 f6 07 83 90 b6 65 93 cd f3 71 6a a9 7a
-1d e3 1f 8d fc 91 64 bf 34 1b f6 a6 7d 07 65 dc
-36 cb 82 68 82 2d 0c db 41 c9 b1 3e 5c a7 49 a3
-29 94 26 a8 19 51 20 df 33 17 3e 0f 23 79 67 03
-dd a9 62 fc 91 3a fa c0 27 fc ef 1a b0 88 c9 1e
-b1 98 4e 49 ba 0e b5 01 cc 48 dc 63 f2 a9 b5 e5
-33 f8 df 10 2a 00 d7 cf c4 78 74 88 f2 a1 60 50
-df c8 16 de bc 05 50 57 51 01 69 98 a3 ba a6 7b
-99 9b 50 f0 f4 10 13 16 d0 5e 69 7b 45 61 c8 a3
-46 de 60 18 57 71 d0 20 6d 97 e4 60 cb 58 01 d0
-b6 f2 36 c8 c2 b3 6f 8e 3b 1d c6 5b d0 1a 50 f0
-a2 47 a9 a8 47 5d f5 65 ff 26 f3 9a 6c 69 24 c2
-21 37 48 87 86 61 28 f4 4b ac 20 e4 ee 05 29 c4
-c9 43 a1 a1 a2 08 9c 4d 64 63 df 27 94 99 ed 40
-41 8c 3e 0c 3c 2d fb 69 69 30 21 2e c0 76 0b 14
-53 59 f3 ab bc 0d 2c 75 82 ac 34 bb 15 c3 94 65
-dc f0 fe a5 79 eb e7 47 06 e6 36 eb 4e 30 19 ae
-a7 04 56 e7 01 9f cf f0 53 0f ef cc cb 90 25 cf
-d6 72 88 0a 84 85 8f 87 9c a3 92 6d 65 af 89 73
-95 e9 c5 2a 5f c7 8d 73 4d 36 8c b4 62 85 5b 87
-34 82 aa 13 58 7b a1 df 73 99 7b 85 82 01 87 c2
-9f a8 bd d9 d9 c3 9c 19 54 13 89 bd cd fd 3b f1
-86 b8 e4 4a 78 91 ab d3 a1 24 58 cd 26 f8 fe ab
-e1 74 52 9f 80 c4 15 ce 53 0a d6 fa 12 8a 87 57
-60 99 7d a7 f0 bf 31 e5 79 b1 8b 67 93 95 a2 11
-14 1c f1 dd df ed 5f 80 dd 28 48 5f 96 5a b1 14
-99 bb d3 3f 67 ab 7a 92 1c 4f 98 ed ae d5 dc 21
-03 44 97 79 41 bb 04 0a 2b 78 4f 4c ce c4 57 67
-73 ac 6b bb 70 ee a1 85 ce c9 5e 89 1e 3d fa b3
-a8 0c 0e 50 68 eb 2c 69 9f 8b 68 d5 d8 76 50 b3
-1f 7d 81 d8 b5 1e 5b fc 8d 4e 5b 27 23 df 3d c2
-36 4c 5b ee cb 94 a0 4a 2d f9 96 dc 21 4f 1b 1c
-88 d5 e5 cf a2 7f b0 26 b4 5b 17 59 ab 0c 91 52
-3d ba 8a 8c f4 3d a3 3f 7c 50 27 1c a7 70 5e 83
-57 21 04 03 61 aa 2e f7 82 52 ad ee 74 bb 2f 43
-e8 fa 22 b6 5c 5c b5 04 e5 22 cd 36 96 1d c6 9d
-62 c3 54 f1 6b 15 e3 22 7d 0a ab f7 6e d1 04 d0
-95 d3 0d 78 9a 1d 56 1a df 1a 55 13 4f a9 d3 28
-cf 7d 61 11 c2 ce 6f b7 8f 90 fe f4 b5 db 8d 74
-7b b4 99 84 aa 16 d4 4c 1a 76 06 23 2e 30 82 09
-01 a2 11 0b 7f a5 66 81 4a e8 6a f5 5d 24 38 8f
-f3 4f c3 e0 e6 0a 6b 4b 48 f5 21 c6 54 cb 77 ea
-c6 34 58 56 8f 8b b2 cc 93 96 9b b7 79 23 00 1f
-54 a2 cb 7c bd bb 45 99 1f 23 8b 2c 07 16 91 6e
-b7 63 bb 0d 9b 2c 7a b3 19 73 c6 c5 2b d2 a8 e2
-f0 b2 95 7f 34 5a 69 14 9b a4 98 55 04 b5 fb 26
-4b e5 27 74 21 59 3e 1d 83 7b b8 aa dc 4f 75 1a
-09 dc 79 81 9c 73 f3 5c 54 9f d8 1e f1 55 19 b2
-76 56 5d 7d cd 6f 97 b4 7c e7 28 cb 0b a3 b5 78
-e6 cd 5b d7 2e a1 73 b2 19 3c b9 5e c2 00 01 08
-e7 dd 12 03 59 a3 58 9b b6 0e 26 5e d9 60 2e 4d
-78 da d2 12 f5 cd c4 8a ae 56 ef 4d 98 74 ea 3f
-74 de c6 b8 d3 83 e3 1a 29 9e bf 39 7a 39 a1 0c
-d5 78 9a 83 b4 a1 5d 70 e8 32 d5 d7 c7 82 fc 07
-18 10 a7 b4 e1 d1 8a 8e 77 d7 62 d5 82 9b a4 23
-52 62 05 3c c8 77 b6 22 68 c5 44 ab e0 66 31 ce
-64 c9 4b 76 24 19 f6 cf c9 f8 d9 6b 70 b1 1f 00
-51 1e 97 c0 14 80 a8 52 0a 05 23 f1 43 45 bd da
-54 58 33 08 27 dc 78 a0 cc b6 85 86 da ad 2f 37
-63 dc 5c 52 ec da c5 32 8c 91 92 74 62 51 66 38
-02 cc 4e b1 a9 6b 4b a2 b9 ed b6 e1 e8 ee 47 d3
-10 b7 74 fe 65 2a 85 81 f9 bc 77 35 7d 87 f4 18
-87 bd b3 7d a7 e9 4a 21 07 a4 c3 ec 17 d1 f4 ca
-b7 22 33 68 9e 35 40 23 56 7c 4a 02 36 37 6d 4c
-69 73 a9 a6 f1 f4 32 31 32 cd 1a ef 49 d6 0f fc
-3f 21 f5 dc 4b 33 a2 02 6e de ef 22 45 00 db b6
-ab e9 ed 5c 09 89 89 e8 be db 1e cc 60 36 f2 bf
-b5 bf 3d 3e be dc b4 4f d5 3e 3f 08 e7 d1 40 3d
-f9 17 f0 29 14 46 75 40 f3 52 bd 29 1a a6 4a fc
-56 e7 dc da 79 31 64 da 5d e2 e4 a4 20 66 49 a7
-91 64 f3 58 27 80 12 db eb e3 84 69 ec 30 a6 f7
-fb 53 11 da c1 0d a6 2d 7e 7a ea 3d 35 a9 f6 99
-83 af 0b a0 71 9c 05 0a b8 2a de 32 ce 95 d3 59
-fb e3 26 51 be 20 a2 37 78 0a 84 5b c2 e8 07 0b
-1f 97 85 9b 1d 67 01 70 60 86 c3 3c 80 91 5c c8
-ef 45 27 4c 3c ba b8 ea 0d 32 fe 1a 66 89 d1 2c
-61 9d ac d6 53 a8 3a 9b 58 60 35 8c 9d 83 82 53
-b9 eb 93 61 2b b9 0a 27 2d 76 c3 d3 46 f4 87 1d
-38 f9 d1 3b 2e 92 25 07 31 5e e4 f3 5b f1 df cb
-50 71 94 72 bc 8b f9 3f ff aa 2b 91 51 34 45 28
-ed e8 b4 92 79 f9 e6 5d 4c 9a 56 d4 d7 cc 10 56
-7e 5c 38 70 f9 6a 82 7c 41 17 b5 c4 26 c9 db 48
-6c 19 30 3a ae a1 9f e5 ff 5b 18 fc bf 95 68 ea
-19 18 cf 8d 99 e6 0c 2b 49 f5 57 56 e8 10 de 0d
-97 fa 22 c8 31 35 15 ed 43 93 da a8 90 89 f5 ae
-0a ec ae 8c d4 dd cd a5 b4 ed eb 42 08 4f 7c 2a
-a9 45 98 6b d3 b8 54 16 14 8a d8 7a 70 f3 87 1d
-c0 88 d7 b8 a8 e2 61 56 a1 63 1b 3c cd 24 b0 26
-9d 93 65 51 1a ef f4 a6 b1 14 b3 55 11 df 46 1e
-34 15 6b fd 44 58 f1 98 10 f8 76 98 52 51 3d 6e
-fb 6c 61 7e 40 cb 33 e3 55 0a ce 86 dc 77 93 0f
-56 92 92 b8 e0 66 26 f4 0d 92 e5 3f 57 e7 17 f3
-00 00 1a ce 8a 7f f3 1a b9 2c bc e7 0f b4 03 b5
-c7 8c 5c aa 59 d7 0f 63 67 39 5d 4c e4 e7 38 8c
-3a 7c fb 4b df b6 1a 35 c1 e5 8e 8d bc 30 99 41
-b3 cd 4d 4c 02 2f 76 2b 5e 1d 93 0d b5 f1 8f 2f
-2a fa 7a 31 7a b3 51 64 75 2b 4a c0 bc de 22 b5
-2d f3 6d b6 e9 c2 4c 87 84 72 25 bc e3 84 99 72
-dd 76 7a 1d 57 34 2b 82 bf 6e 6e 00 d7 5b 79 3e
-5e 80 ac 4b b0 1b b4 5b 1c 26 fa e7 f3 6e 30 b2
-bc 95 cf 5f d2 65 d4 59 6e 1d 27 4d ad fe b9 7c
-05 b6 ec 99 25 9d 20 6a ce 22 c4 d7 cd 82 2d 85
-e8 1e 69 fe 02 a7 fe c4 37 c8 54 dd df 9b ae 40
-3e cb ac 27 bf 72 79 c7 ba c1 11 94 92 0c 8c cd
-3c 63 d9 5d 4a 45 05 39 2c 1e d1 c0 6d f6 8c 26
-fe df b5 2f 9f 58 86 87 d6 80 f8 3c ad 99 2e 64
-1a 32 d9 0f 5f 9d 65 3e 7b f6 1b a7 5c 7d 64 d1
-8f 37 d1 9e 49 4f 8f 11 c9 cb 9c bf 15 d5 40 62
-6a 13 7d b0 e6 19 34 98 c7 cf b0 aa 7e ac 7a 19
-56 67 12 b9 68 6d f1 33 af 27 fb f4 c6 aa ad f3
-3b 85 a4 8c da 9b cd 9b 15 a8 e3 90 61 54 57 01
-3b 6c 98 37 dd 36 15 ef 5d bd fe 41 dd bb 9d 69
-bc d6 40 9c 5b e5 8a ce 62 ba c1 c8 67 05 4c d1
-68 ee f1 d9 ce 3f c7 69 b3 de 7d af fb 89 6f 2c
-52 02 37 84 88 ed e1 e4 bf 9c 4b 95 30 5e 8f 06
-8c 2e b8 59 ad 8e 28 51 d0 0a a2 e7 be 91 1c a8
-a3 03 d8 07 01 e7 c1 3d 18 90 42 8c 69 2a ba 06
-89 ca 61 76 12 82 f8 1e ab 4a a6 f0 a9 f4 d4 af
-72 f7 20 28 32 5a 7b ce 2a a1 89 4b e3 0d c3 e2
-14 14 d9 8a e0 a1 5c 2f fe ab 27 21 12 98 61 0a
-d4 d1 bf 88 b5 3e 0d 9e f5 ad a1 c5 58 e8 82 1f
-82 f2 11 9d 77 72 38 fa 01 eb e3 2c 9d ea 38 36
-36 65 7c 53 7b bc 28 c3 0d b8 e0 d0 da 8d 4e d7
-4f df 50 d7 2e bb 3d 1e ea c7 6e 8f 9e 97 cc cb
-7a 36 1a 9f 57 76 00 89 c4 ca 24 55 e5 c1 dd 49
-b1 31 b6 07 25 ab 05 1c d6 e3 e2 98 af 4b 4c 1b
-9b 66 75 5b 86 da 6b ce 61 0e 01 29 8e ee 49 da
-c6 5b fe e3 70 86 fb f1 8c 5d 9e c9 85 b9 bf ac
-c4 cb 8f d7 17 ec 03 74 e3 b9 14 19 13 3f 8e 94
-a6 00 ce 29 4b a8 90 a7 b0 d5 52 3a f0 09 35 25
-a4 34 ba bc fe 99 f4 9f 26 ce ea f2 db d2 03 da
-f6 10 b2 f1 eb 43 03 09 65 84 ee 40 07 6f 64 51
-e6 2e 83 25 61 84 8d bd 2f d3 5b 68 f2 ad be 74
-a6 1f 43 56 05 ec 68 b7 b2 93 32 b7 57 ec c3 70
-fd fa 74 3e 56 ec 50 37 cb 66 ea 0f 5a 0d a2 7a
-1c 36 ff 35 f3 4c 83 c9 77 63 cf 19 ae 8a 38 5f
-46 22 b0 00 75 dd 02 66 98 77 43 f5 b7 7c 17 32
-6c 21 0a d6 33 6c 1c 15 61 6a 6c ad a2 53 4f 50
-27 84 46 91 82 fc 3e 14 d5 a8 72 8a 56 49 5a 0e
-c0 28 8d 1b 03 33 14 1f 93 af 11 94 68 d5 ee 6a
-bd 51 61 e5 78 02 49 a1 9b 9f 32 04 75 9a 69 1f
-b2 dc 93 d8 fe 01 e3 41 d2 2d ea 96 09 38 61 d5
-dd ce 33 9c c2 5e b2 96 5d 9c 83 e6 4b 69 ec 7d
-4f 60 9d 30 bc 87 55 52 f9 55 2c a4 4f 17 56 91
-01 42 9e 2b 84 7b 8b f4 4f a6 f0 34 3d 4e fe f7
-1f 98 14 f3 64 61 87 77 61 e0 25 ee ec 63 fa 83
-65 f9 40 e7 8e bd 2b a0 45 a3 a1 a2 16 db 3d 6a
-22 47 87 c7 22 c9 75 22 49 ed 6a 9b 5a 9c 3c c5
-67 80 7e ab a1 1d 41 91 fd 40 ce 48 2b f7 29 d2
-0d 94 d4 61 e2 82 1e fb 7e 16 ff e1 54 db 7f 9f
-ca 92 10 c8 4a 5c 07 2f 17 e9 75 17 bd 01 e0 d5
-3e 2f d8 fe f0 90 ee 26 22 45 8c 0b 28 e1 3c 41
-a8 34 f6 5b b2 e2 28 01 00 33 ea 14 92 21 fa 26
-d1 57 24 f5 65 14 f4 0e 66 3b f3 20 31 81 72 9e
-e7 86 54 fa 77 45 57 46 c6 aa e2 39 86 5e d3 34
-d2 02 d3 25 22 0b fa a9 f0 3c e8 08 ba 0e 94 f6
-95 36 77 31 86 72 88 4c 40 11 54 9a eb da 57 fd
-de 5c 38 dc 22 07 ae 60 e0 b6 f9 22 ac 7b a4 a7
-78 92 a6 5c e1 e3 58 8a 19 16 20 6a 3a 31 93 3a
-0e 6e 9e c0 da d7 46 ee 7f 04 e8 83 fa 21 b5 82
-61 f7 97 a8 7f 5f c8 28 7a 82 d3 bf 36 6f 73 7d
-b1 19 21 f5 8a af 85 76 ae 2c 74 06 c6 a5 e5 c2
-e3 dd 60 d5 04 9e 7e c6 76 6c 20 53 d1 cc ae 4e
-9f 2e 52 e0 df f9 68 34 56 e3 70 00 28 72 85 46
-63 e6 8a b6 b9 83 7e be 10 34 e7 8e fb 8f 8b 28
-15 9e 96 80 c2 9c c3 68 cd dd c6 a7 f0 a3 a4 fc
-e7 90 80 94 4c 27 d8 eb cc f9 5e d1 ac c6 92 21
-92 d5 e5 ae 8c 6a 6b 4a f6 b1 68 1f 87 cc 03 de
-7c 28 ba f9 05 8f b6 70 15 b7 54 a1 15 60 67 4c
-f8 b2 c9 c3 d8 57 cb 67 f5 96 b3 11 d7 26 17 1d
-34 c4 88 61 78 a0 9b 24 2f cf 33 c0 f0 b6 b2 8a
-40 5e e2 1d 7e 0a 21 b9 2a a3 2f 39 c0 61 95 bb
-3f 70 13 cf e6 95 5a dc f8 19 cb 21 4a 6c c2 ca
-ea 8c 02 ee b8 ca c2 d0 46 27 6f 61 7d fb 82 ac
-25 74 5b 8f e3 33 59 d8 39 1c d9 03 ec ef 05 e1
-8e 16 8a 03 54 a5 06 54 49 99 ea 7c 64 db 9b 2b
-01 0d f7 77 67 05 ca 6f 9b b8 2b 6e 82 1f f1 84
-3c bb 9f 33 2b 50 5d 74 ec 5d 65 dd ec ec a3 c4
-f8 55 8c 8d 1a b6 9e e8 2b f8 28 70 de 62 42 fe
-25 91 20 1c 06 ca c6 64 46 b6 00 99 69 36 18 a4
-57 23 07 b0 aa ce e9 e4 06 c7 50 24 af 75 b0 b2
-03 4f bc d8 a5 f9 2b 02 ec cd bc d2 db 13 46 ca
-0c 52 f0 02 01 da 0e dc 23 aa 68 0f bc b7 67 61
-ba 17 f1 e0 48 b9 5d 3e 76 6e 80 d3 29 f5 a8 e4
-4a b0 36 ab c1 7f 54 8c 39 4a a4 9f b5 90 e1 fa
-fa a0 0b 68 9b 9f ff 22 a4 cb 32 b0 d6 58 6c 99
-30 12 8c f0 bf 00 4d 9d 4f 61 9d 52 b1 19 65 a8
-da 85 c8 31 aa 59 19 3b 9d 50 5d d4 e1 81 0b 7a
-e5 a8 03 7d 62 bb b7 79 3a 8d af 06 98 79 e7 18
-79 03 ca 59 fc 85 11 ab 09 5d d8 09 ea 35 9d 77
-20 fe 71 3a 50 7e 6c 59 0a bb 59 e2 f5 6a cf 24
-ab 51 a3 14 ab cd 31 05 a5 8e 1c b5 b1 b2 00 7c
-d6 b6 7d 64 fc 5d 87 a6 42 5e 15 ed e4 7a 91 f7
-97 e5 50 98 7a 86 26 c8 56 94 21 09 d2 71 80 a9
-c8 fc 3f 80 5f 31 c2 cd a7 45 df 4f b9 e3 03 16
-b2 89 32 73 b3 dd a9 19 c8 2b 84 8c e9 b0 7b fa
-27 65 e5 75 bc 45 88 9b ad c6 68 4d c0 22 df 0a
-2f 69 48 7f b5 fb 5f c9 31 94 d8 18 49 d8 a4 08
-db f5 2f cf 88 47 4d 02 6c 47 98 dc c1 33 77 38
-86 36 93 0c 2e 00 2f 3d 36 b9 9b 7a 66 52 de d9
-85 77 2c 01 ba e0 b1 4f 30 be 78 0f ee 12 bd c6
-3e 40 73 b4 50 44 e1 9a 38 b1 66 5f 80 da ce 37
-1b 09 a8 ac 85 ee 24 aa db 1c 19 13 7b 45 f7 73
-dc c7 56 aa 73 2e 24 8c 5f d2 30 7f 90 e4 fa fc
-6c 49 b2 e4 b5 42 70 b3 ad cb b9 70 17 93 6b 02
-e0 6e 0a 67 a2 04 c0 0a b6 5c 22 88 11 a7 50 7e
-26 7b 00 ba be 54 35 b2 0f 60 54 b1 29 a9 f3 62
-0a 6c 64 42 27 69 69 2b 2a c7 9a 19 e3 dc ed 00
-13 bb bc 33 0c 27 51 e9 fb 89 74 d9 d8 07 df 52
-1f c5 68 3b 96 50 0a c9 80 fe f6 31 0c 51 45 05
-63 59 ee d8 24 4e a4 04 79 67 f9 3e 5c 38 54 a7
-a3 98 cb 7b 67 09 9d 9c e7 67 e3 0d bd 77 fd 13
-04 d6 b9 26 32 b3 a9 ff ca 2e 34 4d 82 fd b0 0c
-67 2f 26 65 48 2a 93 6e 48 7a 8c bc df a8 50 f8
-c8 53 16 9d bf f3 5e 60 ef 9d 27 6a c5 76 09 46
-0e 71 24 ca 8d de 0f 8e 20 8a 73 2c fd a9 30 32
-84 df f9 ab 2d 3a 08 48 c4 97 e3 20 93 10 20 fd
-cd 06 4c 65 a5 3a 5c f3 2e 9a 70 fb ad 2e 3d 99
-08 a7 03 d2 7e 18 ad 0c a3 14 38 8c 33 94 c3 00
-fc 63 48 ea 44 bc f6 7e 0b 2f 80 a2 11 03 87 ea
-6b cb 40 25 d2 20 3f 2e 9d 70 12 6a 98 f0 16 c5
-84 cb 25 a3 c6 f3 4c b2 8a 5f ee 0b e1 c6 57 74
-06 48 0a 58 36 59 44 54 ef 10 67 ea b3 63 18 2c
-b1 e2 32 1b a7 e6 9f 1a 64 1a eb e9 00 cd fb e2
-5f 35 7f 7f cb 32 33 a1 50 06 d3 48 65 b2 b4 de
-3b 5e e9 ca 1b 7f eb b7 e9 32 17 03 e3 9a 86 1c
-c9 b6 9e b3 72 25 55 28 c5 fd 1c ad 2d b1 44 83
-11 99 dc 03 73 94 fe 95 88 e4 f9 73 b8 7c ce 32
-ea 08 8e ea 16 fc 0c d2 0a 32 e7 1f 44 1f d4 ce
-14 68 ad 71 b9 bb f9 e8 f0 1d 44 d9 ee 72 2b 4c
-18 38 78 d9 f2 26 cb 83 30 25 ef 80 40 7f 9f 0a
-9a 1f 54 33 60 88 dc 79 8d aa b7 ba e2 f7 41 b9
-78 c6 22 6e b9 ad 41 a5 5b d4 43 5d cb 9a dd 73
-f4 cb d3 fe 72 ec b9 d7 6a 22 5f b6 d7 0e f3 4f
-d4 f5 c8 b7 98 93 d7 6a 92 e7 98 44 bb 09 8e 41
-3c 1b 6a b0 7c ad 42 09 f4 7b 2e 15 b2 07 ca 53
-e6 33 32 3a 8a b6 5a 9a 93 28 9d 33 e5 48 2f 9d
-aa 6e fe 9f bb e3 2f 30 b7 cc c7 6b a7 c5 c3 41
-9f 80 59 f9 0e 9f 5e c1 e0 b0 dd 27 a6 52 53 29
-a2 0b 18 37 7b f0 c0 26 4d 30 c7 51 4b 82 97 78
-75 f7 9e f1 e6 04 10 44 a2 7e fd e2 96 4d 2c a0
-b9 77 38 fc 4e 9a 62 d9 1e 53 8e 69 d4 d3 c3 08
-6a bc 15 71 84 21 c8 f3 92 d9 b7 ac a1 a0 0a 04
-4d 39 07 31 7d 66 21 38 96 58 cb 6a 1a 3c f7 1a
-77 88 77 84 30 89 b9 44 8c 61 32 53 9d 03 c3 2e
-29 2c a5 f4 42 12 63 ac 33 07 03 92 b9 cb 76 31
-14 f8 d0 ac e1 a7 19 fc 2e 04 51 b3 b5 5b c0 1c
-c6 6e c2 17 a0 81 e1 f1 aa 97 bf c2 58 10 c2 69
-de 60 b6 a9 05 1b 68 b7 2d af 48 d9 ff aa c4 49
-52 05 07 c7 7a 09 5c 55 a4 a0 30 5b 87 b7 e3 ed
-b4 27 79 53 97 42 44 54 ee 4e 93 55 16 cb b9 7b
-6e 10 a4 4e 4d 87 1b 60 b0 c6 c7 c3 7e 6b 74 da
-71 aa d7 14 d5 d6 82 eb b1 c6 c0 d2 e7 cc c4 c0
-7a 6b c8 75 a6 6d 01 4b f0 ee a3 d7 ab 4e 1a 11
-47 f5 ca 26 00 b0 05 0c c3 2a 8a 27 ad 4e 49 7e
-6e 52 6e e6 70 df 8b 04 a4 27 43 c6 1a 7f 16 90
-d2 f4 17 dd cd 18 6f 55 6a a3 47 45 18 4f c0 19
-ae 0b 8f 55 5f 5c 8b 96 c3 5d c0 89 d7 ba c8 32
-54 91 9a bf fe f6 c8 0b 53 11 d5 1a a5 9e 51 30
-8d 12 0e dd 45 12 0d 71 ab 8f 0f 01 43 66 a8 bd
-87 05 82 09 f0 3e b9 6d 17 3f 0c dc 24 01 5d e6
-86 e0 73 e9 7a 73 80 f6 1d b7 b7 d0 59 b8 59 58
-66 49 d8 f2 65 f1 a9 f1 1d 88 3d 06 52 3d 79 e1
-ba 95 10 0f 26 d9 6b 2a e4 60 74 85 68 81 c8 b2
-e0 18 88 9b 95 2f 4b f4 99 18 0f 93 c7 73 4d 35
-5c 07 9c 9f e9 24 90 cf 7d 0c 1b 18 46 91 ef 17
-1d 0c f1 91 2a 9f 40 84 23 28 f1 c3 07 0e 8d 9f
-c9 11 78 42 75 d3 3d b0 75 c8 36 7e ca 13 23 83
-da e6 e6 eb 29 78 d6 7e de 64 67 db a4 48 e6 05
-65 c4 8a 16 37 bd d2 61 3a 85 9f ed c0 50 a9 98
-7e 10 a3 dc 19 ae f6 b0 e4 b4 37 66 94 a1 65 37
-00 e4 7a 91 17 21 2b 7c 47 0c 09 e1 cc ae c4 1c
-b4 03 14 ff e4 73 de c7 7c 38 b8 d3 8c 84 7f 57
-7c 44 57 20 5c 09 ff c2 7f ad 6a bc 44 29 f9 87
-6c a6 ef 1a 25 0b 96 31 49 e3 89 e9 d0 9c b7 14
-20 61 85 a0 48 6c 7f 76 40 4a 61 fd d1 48 97 b7
-cb 0a 5e ff 85 eb 1a 8e ae 92 3c d3 50 1d ae 43
-4a c2 7c 67 d9 56 06 7a c9 a7 b7 92 fa 77 d0 a5
-a0 30 41 49 2c a4 f0 19 14 7a d6 4b fc 59 42 15
-f9 1c 9b a8 ce b0 60 57 6f 68 45 df 17 61 6f 29
-ba 99 3e ca ee 7c e1 78 8c 12 c2 74 9c 02 0b c4
-29 41 1d a4 e0 54 ba f5 a0 02 d6 f2 ff 81 6c df
-53 45 ac 3b 2f 73 94 e0 80 0a 92 83 af dc 25 42
-6f 1a 48 77 6a ba 84 85 bc 5e f7 57 7a ed bb 86
-00 b4 ed fa 6a 5e 9e e4 25 e1 26 28 17 8b ed 8d
-c7 1f 1e fc f0 6b 4d 90 23 04 0c 44 e4 6d f2 e5
-2f fd ac fe 8e 89 c6 70 1e f1 5c ab 46 27 a1 25
-d7 70 e8 11 e0 eb bf 3b 8a db 66 d9 63 8c e1 38
-eb c2 88 49 ae 7c 9d 2b c2 e2 41 e4 0d ff c7 cf
-e5 e5 49 db 58 05 d6 19 51 d4 f3 69 df e1 b4 6a
-4c ed 68 2a d9 d8 02 4c 85 aa ea 79 50 13 23 15
-63 49 ac f9 01 f5 e2 31 b5 c8 c8 49 b7 15 b8 79
-78 63 ef 4e fe 1a 34 71 ec d7 0d e2 14 cb f6 e6
-46 22 de 1c 80 d6 f5 9d 3b c8 aa 9b 8e da e8 df
-33 02 42 fb 20 7e c1 b5 c1 ca c5 e8 33 07 ee 37
-f4 cd bb 65 00 3a 09 aa ea 2f a5 79 02 21 3f ac
-2c d0 ab f7 e3 61 b4 ff 3e 77 19 4a 08 3b 68 71
-17 73 77 6c 56 93 94 19 64 f5 fd c4 2b 11 33 7b
-f7 59 5f 86 d0 99 58 b6 19 df 1d 65 4f fa 92 ea
-65 13 02 8f cc 4b d4 13 e3 40 61 2b 43 cc be 0b
-5b d1 61 5b 18 51 3b e8 c1 20 4f f8 db 5b cc ab
-58 06 4e ba 91 d4 25 1c df 96 aa 94 f2 5d bb 1e
-0b 36 4b b3 73 be d3 8d 3a 6c 33 fe ad c6 70 c1
-e0 fe 11 00 01 44 73 db cf 3a c2 2f 64 2d e0 70
-51 ab dc 79 dc b6 c4 6a db b8 b7 e6 65 64 d4 d5
-e6 03 0e 13 7b 2d ba 82 79 bb c3 0f 32 08 63 1e
-b2 c1 9d 26 ba ed 54 1c 60 76 c6 c8 75 be e6 95
-c1 4f 57 5f e7 93 4e 1c 52 79 bf 45 0c f0 4a 3e
-49 3a ba c2 67 88 5e d5 4b eb a4 39 7d ae a5 fe
-e0 a5 17 dd c9 b6 f1 ca 5d f9 cb 43 53 20 e9 3c
-06 88 4e 8e dd 61 df e1 b8 fc 58 8c a7 ff fa dc
-73 7e 76 1a 68 71 cd bc 4c fd 73 b9 be 07 e6 b1
-bc 97 38 e1 60 d2 0c 68 a2 7d 04 d9 cf f5 fe 2d
-59 66 61 d2 54 c8 96 eb de b0 90 50 46 73 b9 86
-e1 3c 58 8e 0e e3 98 16 61 3d 27 b4 6d 72 5e 3d
-4e 3d f4 8f 88 3a 1f 68 83 b4 96 33 c1 4a 3f d5
-01 13 09 53 db d6 65 5f 02 21 31 5e 49 af 35 9d
-7e 90 0e 44 e5 a2 ef ed d0 64 2b 26 59 35 e8 d2
-e2 10 8b b3 b4 0c 2b 91 1c ce 7e 27 f1 71 46 60
-6a 32 e5 c7 b4 84 5b f2 d7 4f 30 2f 37 5c ac 67
-e4 0c c6 76 8f d0 58 0a 0a bd 9a 9d 16 c8 bb da
-1b df 9c 38 f8 9d be a9 56 d9 46 2c 58 54 9d 95
-5b 31 ca f8 b6 3f 47 fc 8e 11 2a b6 1a 8b 49 e3
-c4 61 4b 67 d3 66 65 9a 6b 60 09 22 74 cc fe 11
-fe 26 5e 6b 5f 64 98 98 91 01 10 de 1f 1c 9d de
-19 ae 91 d9 e3 04 b0 83 bb 62 ec f8 7e ff 36 04
-78 c8 e6 75 bb 87 22 a5 ef 31 ad f6 60 c1 a5 bb
-28 58 dc ce 07 7e cf 16 a5 4c d8 a2 96 1f e0 94
-00 63 a4 1b 54 1e 13 5e 38 a3 60 2b 36 39 6d 59
-cc b5 92 02 3f c4 72 9a e4 a3 b5 1f f1 81 69 7d
-a5 3e 87 5a 01 b5 31 1d 08 6e 32 2e 09 50 bd 79
-98 bb 9e 6f bb 9b 33 6b e5 b1 a5 a5 59 1e 09 ee
-33 71 90 1f 5e c1 d0 a7 65 39 53 7d 1b 8e 6f 3d
-4b d4 49 8b 36 03 24 69 fd 5c 8c 68 bd 2d 85 e3
-63 7e f2 75 ba 9c 4e e6 8b b6 92 ea 66 3e 58 4e
-dd ad a4 0a da 3f 9d 6d 8f 4c 3f 58 6e 5a 31 9b
-4f 47 b1 f1 91 69 14 87 07 4e 10 95 87 ac 2c f4
-ef bf 07 71 f7 07 9b 58 f7 34 4b 8a ba 46 fd 38
-ed 80 7c b7 1b 4a 7f ef 0b d1 07 28 4c b5 a8 2f
-1d 38 ee df cf 36 f3 ef 1e fc c1 ba 72 c2 1f 81
-53 19 62 9e 20 61 58 00 3d 92 ab 99 56 bd 4d 11
-87 22 71 d1 93 c6 cc 16 79 5c b7 46 16 b9 2d 88
-2f 43 7d ff 3a 31 58 f0 92 cf ca c4 5a 91 7f 5d
-4e 72 3f b7 01 71 60 67 0f ee d1 49 26 0e 98 dd
-92 b6 97 2b 7a b5 88 ff b7 f2 81 cb ad 85 22 78
-77 17 90 7c af 3e 78 0b b7 a7 c9 b4 ea 54 2e 35
-70 d6 89 53 8a be 7c a3 12 3b 13 14 2f 73 8e 45
-b3 f0 f4 5b 39 ed 79 b2 e6 f4 23 04 c5 85 dd e5
-21 a7 fd 2c ff e6 23 93 f3 3e d2 5e 4e 7f 60 2a
-01 40 95 36 53 d8 86 e2 b4 f8 25 31 95 07 0c e3
-8e 41 3b f4 c5 84 8b 26 bc f3 00 69 85 bb af 87
-92 23 9f 50 28 fb 39 06 f3 13 3a a2 17 d9 45 1a
-99 2a 86 eb 73 1b 38 f2 e9 58 67 39 86 92 58 43
-36 d7 a0 24 00 37 aa d3 c4 81 c9 4d 18 74 ec 73
-d3 05 ec 66 53 d2 b2 71 91 f2 ac 2b a4 5f 18 a4
-52 d3 db a6 fd 0c 96 e4 69 71 90 9c 5e c6 3f 6f
-4a 17 c0 63 cd 56 6c b8 a4 74 ff a9 0c df 56 db
-14 96 06 cc aa 41 ee 7d 7f e8 b7 df 36 35 4e 27
-ca b9 fa 39 6f 37 23 2c f6 6f 09 c8 86 84 28 2d
-33 91 d2 35 45 4d 33 d9 44 c1 b1 57 41 3d 2e aa
-37 d9 12 18 9a 07 11 90 0b 3a da 00 a7 d7 d3 c4
-90 78 7c b7 21 83 d1 d4 bf fc e1 79 4e fb c9 fa
-e4 47 02 ca c2 8e 2b 1b 46 ee c7 db 50 28 2c 6f
-f1 ef 5e b2 f9 12 81 62 28 69 a8 15 1f c8 74 74
-e9 ee 6b 22 03 33 fe e7 de b7 30 00 63 10 57 aa
-2c 9c 47 a3 ce 36 6e 73 af 2b 7a ef 24 41 2e 75
-77 7e 92 64 c9 16 0f 1b 20 5b 73 06 f9 cd 0d c8
-86 a2 3d a3 05 77 6f 8d 43 a5 ca 43 c7 f1 9e 6a
-fa 02 5f 62 4c 81 55 5c 28 b2 80 9b 74 48 4e d0
-a7 87 4a ec 43 51 cd ef 1b 4c 05 c8 30 17 38 e9
-64 9f 6f 00 c1 78 79 05 ec ce a6 6b 6d ea 05 37
-2a 6f 9d 64 c5 6d 86 7e 87 86 f8 73 28 35 02 51
-87 03 8b 14 e7 79 8c c4 63 83 ff c5 d5 fa 5c 4c
-81 12 a8 ef 16 a4 5b a1 8e b5 29 b4 48 04 36 f2
-56 9a 48 cb 1c b7 f1 33 1f fe 50 c0 07 a2 46 dc
-c8 a8 7f 7d 99 54 1f 10 3d c1 f2 49 dc 03 67 e5
-5f 33 e3 9f 1c dd e9 83 af d4 09 b4 8e 32 30 c8
-d0 8c 28 2a 06 31 60 c4 a7 2e 0b 0e 2a 75 55 b6
-4b c6 e8 60 01 a7 b9 96 d2 dd 72 d5 d3 ba d9 93
-0c 07 45 61 d2 21 ca 05 f1 17 1d bb c9 39 63 c0
-28 b4 9e 55 74 e7 bb 34 57 64 8a f2 4f 5e 1e f3
-d2 39 6e e9 fc 96 65 f5 9d 9e de 31 a1 6d ac 25
-86 4f 20 37 50 eb 0a fe 30 8f 14 40 db e7 0d fa
-39 22 17 2f de 66 48 f6 ad 2f b1 3e 65 f8 c5 f6
-95 74 95 36 67 59 42 85 4c ee 8a e3 1b 08 be b9
-3c 16 c0 05 3b 07 ef b8 dd fa 18 96 6a d9 5c 6b
-25 8a b6 98 5a 6e a2 11 f8 b9 3f 34 15 1c be ee
-e7 74 0e 74 5e 92 65 e8 b7 ee 9e 92 00 99 97 0e
-a6 7b 6e e1 a6 90 06 01 48 8c 05 e9 73 7c 1c f8
-4b 1e 2c 2d 79 99 49 6f b8 c5 1f cb fe 29 72 45
-e8 2b 95 49 e7 03 d3 6b fd cf ba ea 42 79 15 e7
-8e 72 ac 1c 36 ae d4 c6 74 8f c9 2e e0 2c 24 08
-86 15 3b d9 33 ee fe bc f3 7a c2 41 0f 30 6b 7b
-72 5d 51 dd f1 d3 2f 49 73 5b a0 5e 98 1a 77 a5
-cc 02 29 36 65 5e 3a 85 90 32 9e cc 36 cb a8 a1
-f0 92 a4 5d 69 12 73 98 87 47 23 7d b7 7c 8c 24
-44 1a 70 76 1f 73 9a 8d 95 cc 28 ee 12 cd 8a b1
-1a 62 81 da 60 86 7a f1 2c 42 0a 16 af cc 17 97
-11 f1 1c 53 78 fe 17 43 96 b7 b5 16 ff 68 19 10
-78 c8 eb 90 fd 4d 8b 55 a9 f0 38 86 51 ec 26 d4
-6d c8 2f 10 70 e4 ce e7 41 2a bb 2b d9 4c 5d 2a
-08 a8 e3 89 44 5e 54 12 ce 6e 8d 4d d1 22 42 9d
-8d 1f f6 ba 67 de be 44 52 45 3f c4 ed e0 19 b1
-97 3f 4d dc d5 ee 6f aa b1 e5 ac ff f9 c2 c6 fe
-29 15 b2 42 4d be 6a 94 de 82 5c 16 b8 74 d5 4b
-99 b7 d4 2c ff c2 0a b6 d8 35 d7 a5 4f a7 ae 38
-de 4c 26 75 5a 72 a4 31 66 86 28 6d b6 ec 01 b7
-8d ca 48 ee bc 6b 7e 0b 40 42 fc 5c 1f c5 31 10
-0a 37 04 c6 8a 66 90 9e d4 16 9b 7b 5f 6e 37 1a
-2e 65 c7 35 b9 3f c4 8a e8 44 91 99 0c 5b 58 22
-f4 89 fc 67 63 84 7a 80 73 7d 60 78 04 0a 02 30
-23 32 54 49 3f 25 12 96 02 83 bf 92 8b e0 60 0f
-9f 26 6b 35 7a 65 3f 04 a6 04 13 30 8f 8b 9b 01
-7d 08 1a 11 83 4b a4 63 f4 d8 49 2c bf 0a 8e 46
-db e7 16 d0 55 71 f4 7b 11 db e3 46 22 da d9 0a
-66 83 4d 02 de 62 c5 18 47 3e 2f a2 7c 7d 1e 57
-b8 a0 44 9a 1e 08 92 1c 7e 27 86 41 3b 72 16 9c
-6f 2e a2 24 b9 f3 ff 38 52 61 de 3a ec 18 4f 20
-5c 0c 70 7e fa 15 f8 bc f2 ad fe f2 93 a9 2a 07
-58 a5 ac e6 d4 60 b0 0e e5 b1 44 d2 ea ad ba 1b
-12 72 84 28 d3 60 ef 59 f8 9c dc 28 e0 36 77 84
-c0 19 da f0 2a 6a 0b 4b 96 dc fc d3 97 07 66 fb
-26 62 b1 02 ea 6b 9e f4 f7 5c 16 17 3d 07 e5 29
-98 07 6a e4 08 ca 7a 1c a4 5e 0a 58 1f f9 dc 7c
-e4 42 a1 53 6f df fe 82 ce 96 19 9f a8 2b 1c 5c
-18 4c b4 a9 14 9e 1b 41 6c 9d 50 56 85 80 d4 b6
-c2 95 87 f6 ed 03 57 07 42 0a 57 95 95 e4 5f 52
-3d 96 06 d0 c9 e3 d6 14 af 0d 37 00 85 08 c3 93
-31 32 f7 d9 65 db 7d f1 e2 d8 ef 7e c5 cd 9f e2
-56 f6 12 8d e9 7c bf 8c 40 93 2a 0b 6f 84 c8 ab
-3c 9f 3e 18 bb 5d dc a1 2e c6 7c 68 5e b2 62 79
-db e0 a5 0e e1 96 3d a6 1d 2d 7a a4 20 85 54 d2
-d4 04 5a 13 c8 f5 d4 d0 c1 6f 12 91 da f0 78 3c
-f6 91 17 f8 35 31 7f 30 05 2e 22 b4 69 41 44 3c
-44 7f 86 77 4a c1 24 bc ef 28 4a fe 98 57 e0 e1
-86 22 d9 f6 5b 07 3b 42 31 5d 1a cf c5 7b e1 2e
-d2 82 03 9a 69 62 99 dc 59 5d 80 d8 63 09 52 c4
-c0 80 13 4e e9 a6 0e 10 5b e7 c3 12 60 5b 05 19
-0b 85 be 55 0e 2a 36 53 56 bf 21 00 a0 97 00 e3
-4f f4 9a b9 a3 ae de 09 2d ab 7a 8a e4 dc 56 9f
-9e 82 8d 70 3f 30 56 db da 3e 74 bf 12 aa 27 3e
-c3 fe 74 b8 57 0b 97 1a 66 bb 6b 75 b8 02 d0 64
-48 d6 04 b3 65 49 66 d9 d9 d1 58 5c ac 10 1b f0
-eb 72 34 3d c7 03 82 29 28 4c aa 6d 78 f6 5d a5
-1d cc db 2c c3 df bc 52 03 9c 8d 75 4e 3d 2b 8d
-e5 c3 6a 6f 6c 69 0c 9d 41 d1 f8 81 ec a0 f8 1f
-6c 25 97 39 a1 50 6d 74 45 93 d0 1c 00 92 48 14
-3b 15 f0 f9 fc 5e 17 a6 76 47 42 19 58 ec bf 74
-ed b7 63 b0 a3 8f 70 b9 ff b6 44 5d e6 ac 57 66
-84 38 7a cd 3f 1d 79 a3 9b 09 30 97 e1 b1 74 df
-38 0a ff 04 bb bb c6 20 f1 a2 be 56 0a bb c3 84
-64 7c 1f cb 40 c5 ac 40 c1 c0 86 ee 91 d8 9a 0c
-b4 f6 a2 57 a1 c0 ab 89 a5 fd c5 f8 63 8d 32 cc
-24 1c d7 1e ce 0e 93 16 d2 73 cc 1b b6 24 95 59
-08 58 17 30 e8 04 16 1f a8 df 47 5e ef ba 65 e4
-4d 79 e6 8a cf aa 97 f9 be c9 7a 02 cd 35 34 ce
-3f d6 ff 6a 1d ce be 3d 6b 39 46 b9 92 b8 7e 85
-38 d2 97 00 d4 bc 11 3e 20 f7 31 6f 89 59 22 d2
-9b 31 79 af 1f 0c f5 34 ec 49 d3 34 f5 50 51 e7
-6e 9f 45 93 57 fa db be e8 5f 70 4c 67 17 20 24
-e3 3d 4a 41 80 da 8f 46 a5 af 93 41 85 e5 47 09
-fc 96 f7 47 59 e1 60 18 ab f7 62 d9 0e a8 67 c5
-53 07 3e 5c 57 c4 dc a8 70 9e 94 b0 5d 97 53 15
-e5 b1 0a d7 88 19 05 54 3a 03 09 44 91 26 4d b5
-f7 a6 0a 07 43 fb e3 f9 b9 64 8a 31 af 66 8e 10
-28 b8 52 42 44 64 a2 df dd 7f ba e4 2a 49 14 5e
-c7 56 58 20 b7 24 10 76 1e ae 22 ea 0b 8e 59 5a
-49 06 c3 c3 db 31 ff 43 e9 b6 87 ba 29 a1 dc f2
-56 6d 42 18 28 c7 a0 f2 e1 8d 2a a1 bb 5e 87 e4
-7a c1 39 a8 51 3c 9a 37 13 c5 f2 03 fd 4f f6 c0
-26 88 b2 0b 98 da 34 06 39 31 96 3e 36 03 63 06
-2d 09 50 14 43 85 e1 0f 26 31 a5 ee 73 09 dd 43
-1d 52 c5 cc 78 da ee 2e 6f f4 24 eb 43 c0 fd a4
-6b 57 a5 db be 25 2b 55 e0 af 83 76 95 5b b5 b2
-86 fb 61 ee ac 7b f6 20 dc 7b 1b 3a 6b 80 b9 34
-fd a1 11 57 79 2a c4 bf 1b 72 bd 7d 9b 81 ec 47
-c7 fd 52 83 71 64 d3 7d b2 68 fc 2b 80 33 d7 aa
-d1 23 b5 2f b3 12 26 88 56 c5 03 2d 65 d1 ce 33
-ff e5 4d d7 67 49 0e d3 ea 2f 4d e8 9f f4 e3 16
-b8 c4 7c ac 6c ba c6 f9 72 b6 56 78 0a 78 48 04
-00 d9 70 40 bc e7 b0 90 c2 76 ef 3f 3b cc 7e b3
-03 f0 4f a3 01 ec d3 87 04 78 47 63 0f 8e 9e 47
-7d 50 56 19 97 b4 a6 32 cc a9 68 83 ff d4 fe 0a
-7b 55 6b a7 27 6d 09 bb 28 a8 16 bb bc a8 44 8f
-d6 5f 8a e6 f6 8f 96 df 00 c8 6a 3c 76 c4 36 96
-08 61 f0 b0 99 67 4f f2 62 ad 25 28 1d c3 b1 c5
-ec 2e f6 09 11 ac 68 2f b4 7f 30 4e 44 27 c6 89
-6d c1 77 87 dd e9 f0 03 1a 43 87 3d 67 ab 3d 04
-24 9a 3b 78 fa f7 56 0a a3 eb e2 b8 24 8b d1 46
-11 e4 53 2f 7f 76 d3 4c 4e 34 33 9c 1b e0 40 76
-29 de b3 3f 12 41 e9 4f ee c2 d7 c8 6b 62 0b bf
-b2 29 dc dd ed 90 75 3a 23 7c 49 ea 88 38 71 1c
-75 3a c2 34 f1 cd 10 84 50 3c 69 91 ea b4 86 bc
-20 f2 64 51 0a e5 b3 6f f9 5f 02 3a 39 ea 80 fe
-97 07 2a d5 73 18 94 7d 28 66 02 c2 6d a3 a3 be
-ca 24 68 76 bb a1 3a 6d ee 08 fe 23 bc 7e 60 a8
-e4 3d a3 e6 2d 43 0f 81 7c 09 27 c6 73 a9 a6 07
-8f a5 35 ad 7a e8 3e 11 92 a3 59 84 02 a5 ee 81
-a5 bd ee b4 c5 7a f0 d5 0a 02 1a 97 16 be 3a c8
-21 30 93 b9 c9 ca 4b ef d4 90 de 32 ff f1 fc f9
-25 c9 31 53 27 c2 d9 b7 93 13 d9 19 65 ca 95 3b
-02 95 2e a1 8d 2a 94 a2 48 3e 44 a8 00 69 31 dd
-a5 93 b7 4e 80 a1 62 c5 df 32 0d 60 ba e7 92 2b
-ff 68 fb e0 f3 9f f2 6b 5a 8e 41 c7 6e 2d 81 d2
-51 68 15 b3 0b b5 eb 77 09 85 a0 39 3f 2b 29 c6
-3f b5 ab 45 d6 91 36 d8 2c a0 56 bb 13 b5 30 ed
-77 ce 0d fb ac 64 21 93 37 af 7b 9a c1 a3 ec cf
-a5 24 da 9a b0 a0 f4 22 39 f4 c8 fb f0 c5 a8 2d
-d4 68 33 f7 cc 07 62 aa 0b 13 f2 a8 35 07 49 60
-a4 98 f4 be d7 66 bd d2 af 6a fe 2e 52 37 2c 17
-22 fd 53 98 a8 0e ef 68 9f 0c 6a b7 fc 70 42 f5
-81 20 9b 38 e8 c4 d5 85 e6 76 39 da 12 d5 35 b7
-3a 81 54 30 e1 ab 4c 00 ae 4b a7 f1 19 0a 52 46
-2b 1e 21 e1 92 a3 a9 32 fc 8a 16 69 a3 c0 9c 5e
-e8 3d 96 04 2f af 1d 44 e9 51 46 95 07 25 74 03
-a7 db b3 35 21 40 2a a0 a8 bf 27 81 73 4f 47 59
-0b b8 24 01 d8 02 cd 7e d1 00 68 71 fc 64 25 f5
-38 82 49 4f 86 89 16 db 07 3f 94 4f 8b a8 e0 95
-b8 39 a7 f9 c3 bd b8 37 07 c8 82 e9 5c 54 3d f6
-e0 91 51 e2 e9 c9 9f ab e6 35 86 63 52 8e a7 e3
-4f 91 b4 d5 30 ba 88 1e 24 1b 4e 0f fe e2 3d ee
-6f bb ed 34 94 b9 97 06 78 02 71 af 3a 39 8b 2c
-c3 0f 3a 09 09 70 17 1b 52 b6 50 77 5d 83 2d 16
-23 93 7c 94 a1 06 41 c7 22 94 6a b2 1e c7 52 6f
-23 75 9b 19 89 5d b6 1f 1c 2a 3d ef a2 59 33 57
-bc 98 f4 22 8c 30 1d f7 18 9c 71 bc 38 99 eb 4b
-9f 07 25 0c 6b 79 ae f2 c9 a8 76 f7 4f d7 43 e8
-55 27 d6 c0 d0 8c 15 79 45 3c 3d 0d aa c7 59 b0
-41 63 3d 16 e0 d1 16 57 20 1c dc f1 4d 15 d0 6e
-4b 1d 16 70 8c a9 7a 0a dd 90 af c2 5b 68 cd 0e
-3e 06 37 2e dc 4c 78 df 1f 46 bc eb 4c 02 33 1a
-85 ab 66 f5 a4 85 46 f7 28 80 e1 78 5a 5d 10 7c
-e1 fd 9d c1 73 bd 47 f3 d5 d4 3e a3 77 4c d1 10
-7c ed 4f e4 99 b6 c4 33 d9 45 6e be 14 9f 3b 3d
-39 b6 8a 23 46 ea ab b1 3c 1a 47 72 08 15 80 aa
-b2 7f 7a 57 b6 8b 46 27 d7 0b d8 cc fa 52 f8 ba
-b6 24 a2 4f 1c e0 87 9b 7a a4 c3 72 aa ee ea c3
-4a 7f 4d 75 e2 ea f7 d5 07 9a 05 68 28 1c 76 80
-9f f5 62 1e 1e 9f 15 00 08 ab 07 cb a2 12 49 73
-a7 fa fc d0 48 b7 f6 97 41 03 46 67 c5 df 5a 24
-0f 0f d6 2e 1b c4 ca 93 da 49 2c b1 45 71 59 a2
-f2 c8 28 bc 13 f9 2b 47 75 ec 44 a3 43 38 25 e0
-95 fd 76 1d f2 ff f3 fb 44 a0 e7 2e a4 de 5e 9e
-95 74 c0 b1 4f e9 1b ed 3f 06 36 2f 1a 9a 85 b0
-fa 9d 7f 15 9e f8 7e e5 13 9c 49 a4 77 f8 0f 00
-fd a6 ba 1b 0a 3a 01 e4 0b 98 8d 79 9b 17 30 29
-d8 76 e7 6b b0 a9 03 d3 3c 1b 02 09 e8 9a 47 c9
-5d 04 38 24 cf 27 69 4c d9 43 61 e4 82 bd 2a 5e
-60 c5 0a a5 1d 51 50 83 f9 6a fc 6a 89 90 8f 47
-55 d7 5b db 88 68 1d 0d b9 7c bf 11 9a f4 1b 28
-e4 16 3c 44 1c 23 ee b5 73 53 8a c1 55 df fb 9f
-5d a5 27 42 4f a5 d6 36 67 44 d8 52 a7 2c 8e a9
-d7 40 e9 3a 01 bd 42 79 70 29 9b be 87 f6 5e ee
-e1 1d ed 92 c7 8e 42 9e e6 64 91 5a 01 df e1 a2
-94 54 16 9d dc ef 1b 36 23 41 2a 0c fb b7 23 46
-1a 92 38 21 26 37 a6 0a e0 79 44 67 35 f8 f4 19
-fe 91 28 d2 6e 16 de 07 c8 93 cf 80 3a 33 58 91
-26 fb 92 d0 3e 78 9c fb 4b b3 f0 e7 08 f6 a3 84
-aa 29 50 f6 82 eb 43 31 05 53 60 b8 ab ce c1 6c
-72 a5 ae ff 79 b5 38 07 4a a3 77 a7 5a c8 c9 af
-17 6c 3b 52 ca 46 6f 7e 53 cb d6 b2 18 05 58 9a
-09 c3 89 75 df be b6 6a 68 fb ff 05 ec 0a d6 76
-dc 6f 07 da a7 9c 7c cc 4a 27 73 af 09 40 b0 d8
-8b 15 5b 8a c4 53 84 fe e6 ff f2 85 3e d4 5e cb
-61 04 71 d5 ea ad c2 b8 36 74 ed 73 11 20 3c 20
-a9 eb 30 28 0a 7d 87 d7 bd dd f7 ce 8d f0 f7 b2
-c6 94 31 4f 8a 89 d3 da 5a 8c 6d 33 b9 e8 e4 58
-f7 f1 b0 16 58 12 2f 3b 59 0f ce 77 b9 42 c4 da
-1b 23 fe 98 ef b7 b2 92 7b 9b cd bd 18 06 3d 80
-83 f1 14 ca 93 24 e4 38 8f 2a ca 46 5b c0 85 3c
-00 4d 70 4f 88 fd 3e fd 62 a8 7e b3 24 4b ab 82
-57 6a 64 16 59 92 16 78 43 c0 8a c0 cc 71 c2 23
-a8 f9 3b 19 e0 9c 60 52 e3 fc b4 34 c4 f5 d3 cc
-b9 ec b0 30 b4 19 44 01 c5 71 41 e2 b5 72 20 a4
-71 46 25 a7 23 37 8b 88 dc 5f 7d 9a 9f 26 55 80
-61 20 c1 bf a5 fb 5c 13 01 f9 a1 ba a7 9f fb c8
-88 20 25 ea 95 c1 06 9b 05 c2 57 48 50 31 f9 29
-49 e9 06 1c 55 b4 15 38 df b6 0a 73 3a fd e5 94
-02 f5 1f b5 65 1f c0 12 54 f4 18 fa f3 8c 47 7a
-2c bb 60 2c 2b 59 7b cd de d8 43 45 32 5d cc 7c
-95 d1 c6 e1 e9 71 b9 0e 3c 9b 81 e8 5f 68 f1 30
-ad 12 3d 0d 42 d9 14 e4 4a 12 8a 5f 69 36 09 f6
-d1 ee 77 78 3b dc 5f 19 f8 f7 6e 78 8c ad 24 d9
-ef 4d c2 6f 48 aa e1 55 d8 b8 2f 87 1c ab 51 74
-93 c5 b8 3f 99 70 55 a2 db 82 62 a5 ab 80 98 1e
-cb 49 27 86 b9 b8 3d af 1b 83 5a c9 98 a7 38 87
-18 ea ce 42 1b 73 2c b7 03 38 f9 02 91 10 a3 bb
-55 08 be 0a 8a 9b 70 d4 f5 16 c3 d7 ef e1 3c 15
-80 a6 77 e3 ef b4 30 f2 e5 db f1 9c d9 89 c4 d0
-d9 43 c5 1a b9 36 10 c6 ec 31 87 68 63 74 79 2b
-96 dd 1d ec b0 e7 84 73 ff 7a 4b eb 71 fd 11 79
-4f 0c c6 20 5f 01 28 c9 53 e5 0c 41 5d 01 72 e9
-4e 9a bf 10 16 87 b3 94 c3 6f a7 41 6f 16 9c eb
-a8 79 fa 69 cd 8f 65 73 b0 b7 d7 dc 8b d7 bf 46
-7b 2e e7 75 7b c7 54 a2 07 f2 02 f5 db 16 4a 4b
-ed fd a5 f6 db e2 50 de ba 59 62 33 56 64 54 ab
-ec 09 47 78 ca 7b 35 40 c9 95 f2 07 fd e7 f1 08
-c6 25 f9 80 f1 4b b9 e4 b0 99 d5 be d5 b0 07 64
-52 d9 1d 5e a6 1e 99 e3 2b 52 c6 79 8e 4c c9 08
-17 fd 85 78 af 55 31 32 ad 22 37 fe ae dc a6 73
-76 33 03 ef c3 2c 4e c1 05 21 49 40 4e f3 5f 5a
-c0 e9 0f 31 e8 c1 92 28 3a a0 18 8a 3b db 9f 08
-13 bf 11 5e 2f d0 f7 4c a6 4a db de ef 04 21 8b
-2b 66 6d 1c b0 8a 9c 7d 80 32 fa 86 48 65 41 3d
-55 f0 dd 79 08 9b 45 26 96 0a 38 ad 68 c4 de ff
-8d ae e9 1f ee b4 70 b6 4c b4 bd 20 14 f3 f6 07
-1c 7d a7 54 3d 92 40 e5 bf 06 d6 9b 62 51 73 11
-fb dc 39 75 4b a9 e2 b2 22 bb e4 b3 cc 45 2f d5
-c3 79 58 dd a0 47 79 19 e3 6d 6c 5c 18 6c 71 04
-6d 9f 2e ad 0e 5c 52 a3 cd 77 50 9e 10 c4 d9 4c
-73 bd 28 54 fb bd 09 00 92 ae 15 f8 77 c5 ac 87
-54 7e 66 af ff b9 61 ea 38 4f 7f 1d 3c 7e be fa
-27 fb 77 83 3f 63 1d cd d4 5b 10 63 87 f8 b2 ad
-d2 21 d4 84 d1 a9 f3 75 c9 60 d7 ae 7f cd c6 88
-c9 33 05 69 f6 11 21 f7 fc 52 7c 35 cc 6e 95 42
-79 c7 a9 ec 70 85 b8 36 75 c0 91 61 c5 48 a3 4f
-6b 43 d3 33 24 74 bd 58 1d 26 01 f8 0a 9f f5 1d
-29 16 50 e1 4e 21 0f e4 9a 0b 62 cc 0e dc 32 21
-96 5c 4d b4 7c 2c 7a 7f 70 34 c5 c0 eb 29 d4 15
-31 c3 04 c2 b7 ae a1 75 2a b1 76 60 60 7c 53 cd
-8a 92 b1 95 58 0d d3 5e a3 ac 95 db 07 85 03 d1
-75 cc a1 96 ad 48 a1 f6 8b 12 85 2a 5d f0 e7 bd
-7d ec ce 62 0d e0 19 fc 91 37 02 d6 d0 ab 7a a1
-1c 81 d7 7a e6 75 ed d4 5f d5 e1 b2 d0 4e ff 63
-d7 43 70 c1 60 3a f7 11 9d f8 57 ca 93 0f 34 ef
-dd c2 6f 11 92 37 d0 cf f7 e6 7a 87 d8 45 ac 78
-6c e7 17 7d 06 c6 0e b3 a5 53 ed 1a a4 61 6d 96
-f2 47 8b 10 e5 bf c0 e2 c4 a1 e7 8e bf 08 4b 03
-70 ea d5 ad 54 7c 44 65 4f b6 d5 bd d0 68 7d 47
-53 28 4b 06 ee 6b 73 50 9c 12 16 0f 9d 64 19 5a
-c6 4f 1c 8f b5 a5 b4 d7 d2 a2 0c 3f 97 ed b2 72
-01 d5 15 88 8a 0b 16 c7 d7 a4 ad 48 46 fc 11 19
-47 8c 66 5a f0 e4 b7 3d ed 0a a1 a7 28 a3 1d 0f
-8a bf 3f b1 8c 7a ae db 6d af 1e 25 c2 b5 e0 97
-08 43 d7 62 8e 6e ba 77 a5 bf f0 49 18 1a 7e c6
-78 33 61 11 8a 56 aa 67 5e 1e f7 e8 60 e6 4e 16
-04 c7 e0 a1 0d e6 de a2 53 7d ca 2e ad 26 9e ab
-b1 89 81 46 6f 95 bf 9e 67 2e 22 83 2a 45 18 4e
-c3 26 75 d4 d7 f6 31 66 4e 1e 2a 53 73 a5 d5 d0
-56 6e d2 70 1c 6b b3 38 2a 5f 2d 88 f8 f2 96 ed
-9e 6f 87 20 1a 6a 7c 3d 46 72 da 32 eb 20 54 fa
-0a 99 c5 da 61 6b 7b 0c 31 ea 71 65 a4 a9 9f 78
-2e 8d 59 76 33 12 d2 63 8a 28 b3 c0 83 d2 aa e6
-b6 c7 67 49 bd 68 66 75 e1 2d ad 8d 11 30 29 69
-bd 4d 53 15 df 31 1c 41 8f 83 c9 bf fe 67 f3 70
-dd 43 17 ae 23 f7 02 b1 0e 71 03 39 58 8e 11 a8
-8e 6b 87 a3 c0 ad 9b b8 a3 02 fb 33 6c 49 4a f6
-49 02 0a 96 ba 51 55 b4 1d 88 82 f5 5e b3 82 e0
-84 6f 19 ae cc 17 32 05 4f 7b 2d 68 2f 8d 49 e7
-04 d9 7f b4 52 70 a2 02 f3 c2 6d ec 9c 68 cb b7
-e7 6d 77 d7 e0 cb e4 ba 56 b7 48 32 59 e9 43 10
-a9 75 22 aa f4 dc 7b 9e dc 81 a7 5f 87 54 5a a0
-fc 8c d1 f6 ad 4c 16 e3 c1 d3 8e 1b 45 cd 6c 6a
-f0 ae b6 70 52 27 af c7 3e 25 2f bf a9 c8 d4 66
-d2 a5 a4 11 a1 fd 3b e1 6e 03 4a ac 2d 4c f9 d1
-8e c9 fc 70 81 cd c1 6c 47 5c 9f 60 fd ab 77 63
-b5 91 c9 1b 08 ac e4 a1 e4 6a 27 ef 7a 75 7c 89
-e3 24 34 35 c3 12 a9 56 73 08 4e d8 80 1f 87 bc
-d1 bf 71 84 3a 4e ec 1a e8 44 c7 11 3b 94 da 28
-63 48 94 37 cb 4a 01 b9 e7 9f 5a 58 b2 ca 9b a8
-2e f2 30 ea 50 75 19 08 44 dd 8a a2 12 6e 9d 26
-a1 c7 1c c9 f6 65 8d 64 14 e4 1f 31 d3 8a 1d e8
-2b 4d ec bf 60 6d 08 04 74 54 ef 1d 05 2c 02 1f
-d9 42 ef 90 8a 0e d2 cd cb 61 c6 d0 c2 43 a7 22
-03 fc b3 c7 3f 62 69 28 52 ff 92 24 eb 8c 17 d7
-e4 1b f0 42 68 d4 ef bb 2f 70 43 ff a8 73 85 46
-f1 42 6e f1 b9 3f 4b ac 59 0f 9a a7 e0 eb 1a d4
-36 84 4f 89 59 21 2d 83 a9 44 16 0f 5a 42 f8 af
-c2 80 6e 57 f3 7f 2d d9 ac 66 29 ed 37 c9 8f 85
-59 bd 02 d4 49 a9 63 2a 26 85 a1 9d 5f cf da 3f
-d6 ca 91 cd 72 cc 55 80 70 e6 96 75 64 84 7d 8f
-82 df ba 1e 38 23 9b 3c da c6 dc ab 29 e0 c5 e9
-c4 5d 2b 6f 2c be fd 6a 3a e2 91 90 c0 8d 71 16
-b9 0b 9e a7 0e a4 41 41 3e 26 f4 36 3f a7 4f ab
-71 c2 35 16 5b e3 68 41 55 08 ee 79 a9 1f f4 ce
-ea 51 63 79 6a 3a ad 52 45 d2 b3 e7 b7 0a d3 8a
-5e ed c8 24 7a 05 ed 00 c1 bd ad 25 98 6b 6a be
-fc 79 b7 dc 77 6b be 37 59 97 c6 d2 1d d3 e6 a9
-56 eb 58 43 68 c9 78 7b e2 b3 c8 b0 af da 07 dc
-04 82 4d 6b 73 77 62 b6 3c a1 b2 aa 5f 59 52 3a
-51 dd ce 77 c0 c6 8b 69 4a c7 b1 0d 9b 22 d7 bd
-b3 e9 53 42 37 87 fa 6f 4b 9e 51 08 50 7a e4 09
-54 24 1e 27 1c 46 9c 89 f3 f8 a9 00 52 97 d2 b0
-38 03 6a 0e 3f e1 b4 de 31 a6 22 0e b4 ac da 7d
-3e 78 d1 c1 0c 32 84 2a c3 70 c2 25 ec 3c 7b fd
-66 d8 04 18 10 6e 97 e4 3a 9b ad 95 74 d9 35 68
-08 d7 99 a3 36 30 48 0b 07 50 4c 1e 03 f6 71 3a
-d5 66 73 78 e9 21 9c e3 9d c7 4b 32 0a c6 14 7f
-78 34 d6 53 fb 70 a0 04 db 07 49 e9 bb c9 dc 95
-0d 38 1e b4 ba b6 c6 0f ef f3 99 60 13 e6 c4 27
-d3 da da a3 d0 8e 4d d2 b0 7b 1e b1 dc 4a 14 a5
-4b f7 a9 b0 98 e0 2f 57 c9 36 ec 7f 38 3a 2e c9
-73 50 90 b0 09 5d 04 c5 35 8b b9 21 28 fa 76 2e
-36 93 a2 11 8b d5 82 2f 6b 9d 07 bb a6 a8 15 e2
-d9 cc d9 97 98 df 48 f6 7a 26 f7 16 e9 71 bf 13
-ec 00 c9 07 97 11 18 6e 1d dd 9a cc 48 a2 d3 67
-8c bc 9f 56 c1 61 01 8c f5 b7 fa 87 d6 58 f0 e6
-11 9b fb 38 ec df c5 52 94 25 69 2d 3a 4a 85 aa
-92 f0 de b0 94 ec d8 49 0d 04 61 31 e2 6d 3f a9
-25 33 71 91 b4 39 c2 a7 f9 0b 12 da 9d 20 7b 33
-06 e6 cd a2 56 e2 a4 f3 08 26 02 a1 62 3f ff b3
-4b 91 81 a9 68 3f 84 7d 27 0e 0b dd 2b 7a 33 2f
-1f 1a e3 be 87 9e 07 c7 7b 7f 77 21 1e 78 4b 69
-6d 96 7b 25 b7 20 4f 5d c2 61 b9 0d b0 23 78 6e
-e6 71 4e 8a 2b e3 1a 0c 16 69 e1 5e 31 76 c0 06
-00 c2 f3 ab dc b7 aa 33 96 5e 14 c8 e3 75 84 f8
-57 60 33 28 97 7d 4b dc 63 0b 65 9c 34 03 3b 4f
-4c ba eb 73 58 78 b6 98 0c b4 17 32 49 91 14 be
-13 20 2a 1e 72 41 6d ad b0 52 fb 9f 46 26 5e 16
-17 2c 48 2d 31 1d fc 3f be 8e 60 fd f3 9e 22 3d
-93 70 d5 e6 3a 11 ec 0e 4b 32 8f d6 9e 19 f0 4e
-3a f9 60 69 06 d1 89 0a 9f a0 66 4c 3b ef 1c 26
-6d e8 a1 42 d8 9d ba b9 0e 20 12 5c b3 28 b4 ff
-96 fe 11 85 43 55 2c 5a 28 f9 48 5d b4 e3 8a 03
-c6 f1 9f f7 fc 79 c1 e4 31 f8 b5 83 fe d7 51 d4
-7b 4a 36 62 8d a9 ca 9b 30 43 91 9e f2 3c 86 ca
-ac ea 40 60 45 70 dd 66 e5 a9 a5 d8 f7 d8 b4 0e
-88 a3 a7 ea 96 47 39 cb 48 88 38 13 fe 14 d3 69
-c2 82 d4 46 44 50 2d 09 a7 28 35 b0 fa 5c d6 8e
-29 1c cc 36 34 5b 84 2d ae e1 4e 0c 47 d1 32 a8
-e1 5d b2 97 57 f9 cc ad c2 13 5e 05 9f 80 61 8a
-84 7b e2 62 57 88 9c 11 6b 7d 8e 34 68 95 f7 d3
-f0 86 d2 e8 87 1c 89 23 b5 0f 8b fb 89 09 e1 a4
-8c 98 22 d7 f8 ea 2d 79 75 eb fd 26 17 bf 0d fa
-31 ec ce 1f 47 38 03 f6 11 00 76 dd d2 05 03 ae
-95 d3 37 e8 d2 ac 4b aa 81 21 67 2b 20 e0 0a 9d
-a9 b5 6e af ad 9d 65 75 ee cb 9b 00 6a 5a 29 e8
-7d e7 42 41 c6 c5 d4 da 71 c7 1c 4f db f2 7c 44
-85 a9 41 67 28 32 1a ee aa 68 60 13 0c 95 eb 3f
-7d e9 52 9b 4a ad 52 aa 3f 1a 35 e7 3c b4 46 2d
-0c e3 34 e5 0f 42 cf db 44 08 b9 00 72 e4 1e 3a
-e4 d6 c3 d6 f2 42 2c 35 9b fd c4 e1 15 ab 2b 11
-2b 38 9b 62 2b b2 28 f5 4a 53 a0 a1 72 9b f9 84
-54 79 af f2 d9 d8 ee 9b ca 2c 59 1b 82 9a 78 15
-69 9e 5f bb 6b 1c 8a 63 37 89 b3 7e 33 61 a9 3c
-ba 4c 80 2b f0 5d 97 78 55 0c 2b e1 1e 09 44 ba
-b6 9c 17 9a a5 34 66 57 b6 48 50 bf fe d8 a0 ef
-de 31 25 49 40 78 22 cc 9e 3e cc b2 1c 10 59 2f
-a6 9b e4 49 30 e1 a8 36 46 f3 49 d2 a6 81 de 06
-11 bc 8e dd 0e 56 62 a1 28 4f f7 6d 63 e5 7a 11
-a6 80 5f 29 46 5d 9b ef 1b e3 f4 62 9b ba 03 a6
-dc 55 0d 9b 02 92 b5 a1 20 2d ee 4c 76 9d f0 15
-81 0f d8 89 8d a1 b7 4a 31 62 55 3d d6 bc f7 a9
-b1 7c 35 0e bc 84 8d b0 8a 39 06 cf 98 58 26 3d
-86 6c 26 02 5c 09 f8 d0 d4 fb 48 7c 91 0c c9 09
-b8 db 67 d5 5e de 3d 78 37 a6 0c 13 ae f8 67 f2
-ec 17 07 51 6c c3 1d ef 73 ca 94 c1 6a 78 5a c7
-87 60 9f e4 11 bf aa 49 16 59 41 76 28 39 4e 68
-0f f9 07 21 0f 79 e5 a6 cb f3 0b d5 f5 fd f1 f2
-8f 4f 02 4b 89 56 e1 0e a2 e2 15 1b 88 d9 a1 d4
-4b 28 07 ee 37 11 17 9c 71 3b 0c dd 89 39 16 2b
-e9 99 a1 06 5f 20 9a c6 f2 50 b5 f8 12 1a 1f cc
-95 f1 98 4c b2 91 c6 97 ef 63 47 60 e9 42 0c 73
-fb 5d 83 90 05 e4 32 e7 c4 36 27 dd 16 f1 ee 62
-d4 cb 91 f2 4b d8 9a 56 ad a6 40 c0 b4 22 82 dd
-4e 2b c7 4f bb 6b 10 62 30 ef 46 d4 55 76 57 a7
-7e 65 40 0c fb 96 92 50 ca d3 2c 56 22 87 03 62
-ba 84 a5 c8 82 68 7b 44 31 f3 57 ff a6 6a cb 8f
-47 03 47 1e 42 f9 bb 61 2f 27 47 76 55 1d 8d cd
-15 45 57 8a 55 c5 ec 05 28 2e 46 23 65 df dd bf
-ba 45 43 e5 8a cb 6c 8f bc 70 fb 00 c5 4a b1 cf
-ea e4 4e 08 eb b4 33 17 5d 85 73 92 00 be 8a 08
-15 77 29 10 da d6 dd 09 4c 9f 87 b7 26 37 5b 0f
-6b 23 9a b8 8e f7 d8 f3 f1 ec 60 b4 86 70 43 61
-f5 29 ce 72 f0 10 c0 8b ec 94 7f 77 49 77 81 1f
-82 2b 12 95 06 51 6a 51 6e 5f 5c 07 10 28 d2 8a
-52 0a a4 3d ed 19 23 89 74 78 70 f3 e0 c3 d5 20
-e3 1a eb 84 b6 20 5d 0b a6 fd 58 36 0b aa a6 9a
-4b 17 9c 82 60 80 ea 6b 8a 85 0b af e9 8a 2a 99
-a6 7a 03 5e 74 d7 50 61 84 56 86 7a ce 16 d5 c3
-a6 f3 c6 6d ef fd a9 20 5b b7 fb 6d cc 9e 73 82
-dc 5f b3 88 27 84 53 92 32 74 6b e9 a1 33 89 ac
-c7 14 95 3a fe f8 29 32 71 23 26 b4 84 41 43 eb
-2e ff b8 df 4f 29 11 42 34 27 f2 78 a3 77 8e c3
-34 a8 d3 13 64 fa da 91 37 10 4d 2f 63 d7 4e d4
-e0 7c b0 fd 36 0e 7d a0 f7 c7 a4 0f 60 ae e6 04
-ed fa 36 bb d7 99 b3 73 04 f5 41 8a 48 6e 96 74
-24 8d a6 e0 58 3f 32 1f 82 8b ce b4 f2 7f e8 fb
-a0 c0 02 0e 3e 8f 58 cd a1 93 ac 61 a9 4d d2 6f
-8c 78 2d 39 4a 8d e3 7c e6 f8 7b 8c ef 7f 6d 86
-3c b9 a9 5e 72 b7 b4 b0 29 6a 71 07 16 ac cf 2a
-e8 09 3d 62 16 47 5a 44 4a a0 27 fe 2a 36 a6 32
-72 90 1b fd 74 38 df e4 b5 29 76 05 46 65 c2 62
-27 4d 42 c5 bd d9 65 7d 11 67 5b e5 57 32 77 28
-e5 30 3c e2 9b 7f af 52 ea 07 00 17 cd 63 1f 1d
-82 fa 47 f3 9a e7 da 41 31 8d 50 d9 ad 1a f3 d7
-44 a0 81 dd ba 4b 41 83 c2 1c 2c 23 7c 45 d3 8e
-7b c2 93 82 bc aa b9 10 8a 2c cf ae a8 6b bd 6f
-3f b6 3d 2c 76 63 3f d3 f4 68 9b 50 4d c9 44 11
-1d 40 3e b1 f2 72 e3 8d f3 f1 28 0c 23 83 f5 a4
-b6 3d da 7a 47 7b 7f 15 62 be de 47 06 3e 67 73
-9b 27 57 a1 85 40 1b e6 72 92 bb 5c c1 f7 34 8a
-c0 de da fe 44 c1 39 23 b7 32 95 47 1f 6e 92 b7
-26 60 33 ff 4b 12 6e 62 89 22 e8 f3 1f 43 8a f0
-41 dc 27 c8 6b 7e 42 a4 48 a0 fe af 6b 69 85 2d
-3c d9 51 42 ad 56 5c c4 a8 e3 a7 18 ba 73 95 03
-a4 1e 4e 0c 37 d5 dc 47 bb 7f 61 6d bd 13 63 44
-8a c3 90 d3 45 e8 c6 80 64 1e f5 be 0b f7 80 13
-83 76 57 83 78 c2 e7 1f e8 75 be 09 5f e2 da 7f
-92 49 92 b6 6a dd 38 76 be cc be d5 56 f2 b0 c4
-5a 62 4d c4 9d 1d 7b 6e 90 b6 16 b7 d5 53 f2 d2
-84 ce 7a a3 72 8d a7 60 9e 23 46 f8 18 bd 6e 88
-b9 10 ef ea 5a 42 5a 7f ce 4b 55 69 f6 da 6d ec
-a7 a8 92 ec 37 9b 1e d8 62 ac ac 62 dc 9b a1 5b
-27 1f 42 6b 9f c8 18 41 37 21 70 ba cb 9d bd f9
-29 ec b0 4a 66 c3 29 18 de 5f e6 a8 c4 1e 16 68
-98 80 9e ac fc 43 4f 6e 98 6c 53 f3 cc 20 9e 40
-f9 dc 4b 8f 15 c4 2e fa 6c e0 69 77 bf fd 58 83
-59 82 df 89 e2 41 ef 42 fe 29 ad dc fa 95 3f 51
-ed 9b e2 67 cc 36 ac d3 08 8e 5f 47 54 96 7b 21
-c6 1a 1c fd 3e 47 b0 ba e3 0b 0a 78 ab 1f 48 d2
-d5 fe 4d 28 d5 d7 d4 54 b4 72 79 48 9f 91 05 67
-cd 71 4b 6f fb 33 9a e4 4c 29 1a ba 4f 6f 7b 0a
-ea e6 68 83 5a c8 30 b0 e4 4b a7 c5 83 69 39 92
-7d a0 44 f6 14 98 3c 18 2c 43 67 da 8f 61 bd 0f
-35 b6 25 f3 8b 09 a8 d2 cc 95 05 c9 81 a7 54 52
-7d 3d 6b f2 ac e2 ac 43 66 e9 fd 62 2f 84 5c 62
-5d d6 79 01 a9 b2 02 3f 3b 3f ff 79 09 f7 d9 97
-ce 43 6d 08 63 80 f7 27 0f 53 ec 3f 38 f4 f7 23
-ba 61 65 36 88 11 ad 1e 1a 54 c7 f9 fa 9d fb 2f
-c6 28 cc 54 6b 0f 8b 49 4c 6a 2c 4d 3c 59 bd a9
-ba 06 80 6f 3b 10 a5 ed 0a 6b 37 5f 88 26 c6 80
-f3 3d c2 d9 2d 0c fd 7a b2 39 0f fd 34 35 cc 73
-6e 92 52 01 e7 06 2a 24 1d 84 f7 0a 35 e2 ab ed
-79 93 ac 62 e0 55 2e 4a 36 2f bc ba ed de be 62
-95 45 c9 38 38 41 a2 e6 52 dc f7 52 3d b8 c0 9b
-1f 68 7f 1b 25 14 44 04 f2 4e 0e 1c 59 6e 26 f0
-6c 7c bf 8e f2 9d 10 0b e0 ab 37 62 2b 00 ae b6
-5e 0f f8 a9 56 6b bd 97 14 02 d5 15 c9 70 44 40
-c4 3b e3 c1 3d de ea b0 d6 a2 b9 af d3 15 c2 a3
-42 2a 1d f1 2d 79 b8 e4 4a 06 9a 19 01 72 93 e5
-38 88 24 be 72 38 f8 89 4d 53 6a ea 11 72 89 96
-48 30 04 b8 a9 5d d7 ec 33 20 01 98 54 95 4b 65
-c5 a9 e1 76 da 26 97 e9 ab 44 14 f3 0b 6c bd f5
-a2 16 4c 3b 41 d1 e2 99 ae 18 72 81 f1 be 53 cd
-83 7d 13 90 8f 61 eb 51 33 05 e6 bf 27 2b 86 6d
-03 0b e8 12 e1 b2 e5 e8 46 ef 71 41 14 94 d7 d5
-5c e8 4e 4c 9b 6f ab 55 c8 42 2c 66 82 d9 9d 21
-5d ec 1b ba df b7 f0 59 f8 cf b7 68 b5 73 b3 ce
-c4 dd 09 ac 02 60 4f 51 a0 32 2a a0 e5 1f e9 50
-67 4a cf b1 3b 25 6c 0e 88 64 24 fd 66 e6 ac 78
-be 61 bf 9f 94 a4 7a 0e 2e eb 66 ed 15 e1 74 98
-a6 07 ba e0 71 4e 5d 38 f1 83 58 00 34 ab d0 30
-99 d1 e5 e8 8a 07 2b f2 87 7d e4 4e 8c de a4 be
-0a 01 0e 64 8a da ce 75 26 df 8c 1f d8 90 2d 5b
-4d a3 1d 34 44 8b 59 a3 cb b0 4b 9d fa 15 27 42
-43 3b 8d 14 67 2a 04 29 9a 2f d7 c6 4b d4 4d 64
-e5 bf c6 41 8b 89 6b 31 66 9b c4 a4 e8 ec ed e4
-70 59 46 44 3e fd 5a 9d 8f 4e 8f 86 95 f8 6e 3d
-e8 1d 7c bd 98 97 f5 11 8d 58 9a 9d 07 ae 94 59
-e3 d6 f8 76 e4 24 da 00 3d f1 00 a3 6c 58 af 67
-29 68 07 ea 90 19 0d 14 38 21 cc ab 7f 8f c4 63
-e1 b6 f4 e8 48 c9 f6 9f 7f bf c2 cd 60 43 de 17
-fd 43 dc 9d 63 53 97 1e c5 c6 a3 d3 15 d4 ac e7
-e9 24 cf 36 cf c8 65 f4 a6 43 30 74 61 98 c8 8e
-41 a7 02 63 71 0a b3 77 07 d0 fe 8d 5f 3a 96 6e
-1b 3e 2e 7a 90 c3 37 03 35 23 08 a5 3a 13 99 88
-93 0e 25 11 d5 91 4b 6d 12 ad 88 b5 a9 fa 11 b8
-a0 77 27 84 66 8b ae a8 5a ce 0d 53 15 b0 b3 3b
-9b 23 7d dc 79 35 91 4e 3d 1f 5c 72 35 ec 74 5d
-91 06 10 be f7 2a a6 4b 32 02 7d 69 85 6b 1d 90
-7d 60 32 87 4a 0a bd 11 dd f1 5a d2 20 52 ae a2
-02 25 a9 35 0b 31 97 4f f6 6c 20 8c ec da 3c b8
-e0 da a7 57 af 02 81 a9 cc 49 78 90 e0 f0 59 9f
-7b fd 86 5e ca e9 57 b7 cd a6 d0 2f b8 b7 55 21
-54 c0 ec 83 53 c8 b5 e6 34 1d 2d d9 21 36 c1 b0
-be 12 d5 b8 7d 91 a9 38 b9 f7 e2 97 96 a8 c0 41
-f8 c7 b5 c6 65 c7 b1 7d c0 d8 38 c6 0b 14 92 f2
-18 08 ec aa 4c 07 cf 18 51 ab e9 cc fe f8 8e 81
-15 aa c2 a5 1e f1 5c 88 6a 02 71 2c 29 28 f1 01
-7a 4c a0 0f b6 41 9d 74 7b 61 93 89 88 49 9d d4
-65 6c 14 9e 34 1d 0a df e1 3b 4c 21 f6 6e 81 a5
-e8 3b 33 08 85 5c d7 0b d5 03 a6 a4 70 4d 67 7b
-93 b5 fd 7f 96 fc 84 a7 c9 42 c0 60 41 33 30 3c
-1d a2 05 3a 0c a4 ad 69 09 b5 75 fe 0f 31 5a 2a
-69 a1 d4 0e 12 b9 00 2c 7b c8 ad 74 f9 91 2d 21
-f0 c6 c7 1b 28 b4 7d 8d 31 4f 5b 86 4a 37 be e8
-7f b9 cc cd 15 79 9f 40 97 04 e8 a0 dc 0e 25 e0
-e1 3b 27 e3 7b 3e 2b 5b 38 49 90 56 fd 36 c4 c8
-cd 7a ee 4a 07 36 70 77 24 a1 20 29 1f 10 67 f4
-05 07 b3 ea 1c bc d7 44 d0 c4 a0 df ae d7 9b a2
-e2 d0 11 b2 72 2f d6 42 5c 56 37 2c 9b 99 67 1c
-f0 94 53 ae 96 84 e8 4f 00 e0 e6 0c 2e 9a a9 43
-5a c9 5b 98 ba 42 56 23 3c f8 2d 3a 99 0c c0 66
-34 01 81 4b 4f 26 86 1e be 9d b4 8f b0 15 42 c7
-3c 27 2f 40 31 e9 a9 fa c8 a2 95 fd cf 5a b7 c9
-6b 41 57 1f 48 73 d6 9d 7c d0 13 63 62 05 b4 b7
-eb 5a 70 a5 a0 0a bb d7 ad 93 01 6e 61 8f c4 a7
-dd 37 25 a5 ab 3f 0b 28 55 c3 82 27 f3 23 27 ef
-ba 70 31 d5 c8 60 d8 57 d2 97 99 3e 8c 2c 0a 7d
-9f 85 65 a1 37 13 b2 87 14 09 ed f3 c3 e9 55 d0
-8c 76 df 64 88 96 35 26 3d 19 0e 83 00 e0 01 67
-8c 45 68 8a ce 16 86 37 98 b1 2d 20 c4 3f d2 7f
-7f 43 03 c9 29 92 8b 02 05 66 a9 b0 67 12 5a 85
-af 12 4a 46 2a 07 83 76 bb 48 ba 0d c0 23 79 c7
-4f 99 31 6c 7a db 3d a6 8a 15 68 29 5f 09 e9 15
-c5 e9 12 05 62 7d 8a eb 91 39 4f 69 da bd a9 df
-d1 53 e3 4c b8 2d ef 09 1c 78 ce 68 78 55 63 45
-ef cb 80 72 cf 13 af 6e 6f 4f c2 09 5b a8 10 7b
-38 65 8b b4 0c 8e 8d a3 ad b8 f4 df 90 49 20 e1
-fc 7a ac 41 fb f0 7f d8 89 f3 d7 60 b3 d7 e9 20
-c5 7b 27 67 14 c8 86 05 fd 59 45 55 a5 45 be c1
-55 89 9f 57 73 83 8b 5d fc d8 66 8f 14 a7 18 81
-37 91 91 4f 5e 14 9a a9 3e a5 4e d3 3b 60 4f 7c
-3c 00 3b ba 2a c2 bd 8c 7a 66 5e ef 7a 96 2a 9e
-bc 0f e6 ed 4e 68 ae 03 46 6b 05 86 71 51 19 51
-c7 c5 b1 85 2b e9 17 64 5a e1 21 d4 7f 7c f5 fa
-1d 81 e0 29 22 bd b9 7a 44 16 48 7e d2 90 49 37
-65 04 18 fa aa f1 49 a5 32 73 a7 05 46 af cd b2
-f2 74 5a 6c 83 5a f7 fb 0e 1e b7 f7 b2 ba e1 78
-d7 a0 ea 27 ef 80 76 3a 22 82 1b f6 d3 9b 0b d3
-93 47 5e 36 44 2a 26 45 17 a5 a7 e9 3d 0b 50 d6
-76 3c ae c6 50 23 58 e3 45 8f 22 cc bb df 54 d4
-88 56 a8 27 d4 97 83 92 80 30 e5 e7 32 81 95 d1
-cf d6 c4 1b ed 91 78 8e e5 49 0c 5e a4 1a 1c ea
-ed 47 36 0a 8a 44 e4 95 c5 60 da a9 8a f9 f7 08
-ab 30 92 01 fe 45 b1 57 cf db 87 1e 53 fa 25 dc
-0c 0a b2 d2 7f a4 29 94 8c b1 1e 63 b2 e8 c3 79
-ed 56 05 3b 49 66 c9 a3 83 c1 dc de 0c 3b e5 a1
-63 10 5a 89 bd 3c f5 d0 ab e2 6f ef c8 de 1d f5
-82 15 0a 16 03 22 25 49 ec cd 88 e6 cb 0a f3 7f
-37 ec a0 cf 57 7f 59 f3 b9 13 a8 c2 7c db 5d 93
-3c a3 cc e5 8d 8d 39 b6 27 e9 c5 6b 30 62 ff 8a
-2a 8d ac 0d 6b 53 a7 d4 85 fd 13 69 5a 3b 4a 9a
-00 8c 17 30 b6 07 d3 35 75 0a ef a7 a0 a1 9e 31
-1a d3 f2 e9 b8 8b 34 16 a7 5a 81 e0 3e 4f 05 13
-d8 5e bb f9 40 29 4f c5 0f 14 d4 30 8a 8c 4d 49
-56 73 6c 51 2e 67 ef 0a 21 a9 e3 7f 32 9a 0b 45
-8d ec 34 32 c8 ea 75 3a a5 7a 15 d6 46 7d f0 ec
-b6 03 5a 57 74 5b 0c 13 e5 25 48 0f e1 6c c7 70
-94 3b b1 82 1c 29 42 30 88 64 31 f9 04 cc 17 fa
-7f 81 8c 75 a1 2e b0 19 7c 01 69 34 1d 2f e6 09
-49 6d cd 4d 43 e7 07 55 77 3a 58 5d d8 6a 2a 2e
-9a 01 aa 67 95 b4 b5 87 31 64 bc 05 7f cd 00 ac
-9b 8a fc 84 86 b8 f7 34 81 53 ff 93 15 44 c6 0f
-ee 85 7e 90 bd 37 74 05 ff d4 32 ae c6 c4 5f 70
-17 0e 03 88 2a b3 3c 3c 30 79 d8 15 5a 0a eb fd
-56 6b c0 81 e5 65 c1 74 7c de 81 fd dd 38 b1 1a
-fc 60 06 44 8e 26 ce ab 8b 93 86 5a 05 c8 78 e8
-d9 d2 64 11 d8 ab df 35 9b 6b 67 c3 bd da be 5e
-24 cd 99 76 ad 91 38 f1 dd 78 89 f5 03 8c a7 07
-af ef 8b 8e 48 81 2f 82 91 82 50 0d 03 78 32 ce
-cf 0e 7b 6b ac f3 1d 40 58 61 cb de 0b 90 8e 6d
-2e 49 f1 c8 52 2e 37 30 39 55 61 7c 3f 25 60 ce
-7c 23 98 08 15 0a fd 7b e6 82 ea 63 c9 2d 8c e4
-ed e4 ad ba 98 d3 69 8f 15 bf e5 f5 ee 17 6e 00
-e6 ee 43 55 84 43 a3 7d 42 eb aa d5 28 5f 8c d1
-95 ca b8 92 48 a3 a8 3d bc 3a d6 82 3f d0 2f 16
-85 14 76 79 48 33 24 ff 78 c0 98 c1 b1 8e 27 40
-83 4d 53 02 e7 54 22 d4 27 87 4e e6 68 42 b3 24
-1b 5c 58 1c 1c 27 f2 a4 07 7f e1 6f d5 a1 24 4c
-68 64 86 8b 4d 6f 88 53 6d 88 3d 99 14 f3 1e 02
-5f 8e e9 d7 61 06 ac 0d 63 f8 de f5 38 4b ef e6
-dd 1e 13 6d 4a f0 d4 14 85 d9 d1 eb 4e f3 a5 b0
-05 0b 42 39 aa d3 24 f1 84 a8 7a 70 3f 27 8c 39
-c0 38 c5 ce ab e5 ce 53 b0 36 fa 9e c8 53 20 74
-2e fd df c8 86 de 55 a7 c0 cc 4b 55 55 34 e7 49
-1d 0c b5 05 d5 40 6c c5 f3 50 e0 88 69 d4 80 fe
-9c 31 aa 8a 85 66 e0 9d f3 95 4b 1b a4 aa 3f da
-2c 4f 0a 72 24 79 64 4b b2 df f4 f2 5d c7 18 f7
-36 0f ae bf 12 ae ba 86 c2 9e 81 f9 26 1e fe 44
-46 84 ed 51 8b 68 f2 b5 65 ae e4 bc f5 de 82 41
-e7 47 11 40 e0 a1 78 5d 5f ed 26 8d 55 79 7d 11
-65 fc a5 b5 70 bd 30 a6 1b c9 0f bb 66 35 a8 78
-89 d9 3c 15 25 09 27 a2 10 df 37 d4 62 1c 5c a9
-f3 08 e3 f6 00 ec 93 32 e2 36 72 76 b2 cb 32 68
-d6 f9 1b f7 07 7c 6b 4d 15 87 e6 8b d7 dc aa 50
-6d 9b d2 6e a4 b7 ac 66 e5 17 47 91 aa 6b 59 4f
-1f 40 8d 39 17 55 92 99 45 05 ff 7b 76 0a 27 a8
-2c 30 ac d8 82 a5 2c 82 4f 2f 6c f8 57 78 41 3d
-3c 1e 7a 28 48 16 06 07 d4 c9 be 55 06 e5 66 e7
-1e 3e 52 4d 15 67 7c 17 da 47 c2 b7 e4 91 8f a4
-b2 d3 d3 c0 1e 6b 8d 21 88 ad 59 07 fa 47 9a 44
-43 84 5f 06 55 f0 ff 74 ad 9c 8b 05 11 47 0a 9a
-db 4e 49 14 5e a4 95 87 a6 14 3b 97 3a 6a fc 2b
-63 63 ce d0 71 59 62 bd 5b 8e 38 0a 46 68 c9 de
-e5 1c dd 64 4a 53 50 37 3b 3f c4 1b 91 b6 92 44
-12 a2 cd 10 5f 85 d6 66 69 67 04 82 8b 5b 16 7b
-b3 27 f1 7c cb cd b2 ed 49 71 a8 36 08 8e 14 97
-c8 26 d0 bc e0 15 6f dd 9b f4 9f ba 90 10 f7 d3
-93 b1 c8 8a 95 b5 65 98 83 e4 c1 42 b5 66 de 9e
-9b aa 5f b6 cc 47 47 a2 90 dd 82 60 da f6 f3 3d
-7a 07 4b 85 6b 5d d0 88 91 62 cd 46 fd b5 e8 da
-07 3b dc 6b ea 67 ef 24 a9 21 c1 3b 99 5d ff a4
-db ee e2 53 5c fc 58 86 91 a7 7d 60 36 3a 0f 15
-63 f4 6a f7 93 36 69 9c 9e f2 34 18 22 bf 68 94
-97 37 2f f0 7e 5b 51 61 72 26 91 5f 7b 38 d7 69
-20 b9 7c 8f ea 2f 18 79 df f1 91 e8 a5 eb 50 0c
-d7 12 ac 8b b9 ac d4 ca 90 34 9f 41 1d cf 88 a8
-24 7a 4c 0b 3e ed f0 ee 66 d0 53 9c 6d 3e 8e 42
-15 51 4e 4f 66 0f fb 42 72 70 82 b1 f8 20 e5 48
-b3 2a 2b e5 ea 1f 58 56 ad 58 13 dc f4 22 cb 72
-6d bb 80 1e 17 64 fd 07 64 33 05 b9 78 a2 92 95
-cf cc 9f 50 d5 a9 f5 d6 22 6c 41 e6 75 35 62 61
-ce 4d 04 0d 21 c8 f8 ac c5 e9 29 01 82 40 ed 59
-15 7b 4b 81 14 26 91 48 1d 58 d5 d5 e7 d3 b7 61
-80 b7 dc 83 de 77 52 ee 7e 32 66 9b b2 2c cd a6
-a2 f6 a7 40 0f b0 8e aa ac f2 e3 3d cd 12 c6 ae
-60 6f 0b e1 5c d3 f1 d0 b0 68 c8 85 09 5e 6e 59
-3d 03 05 55 fe a7 9f 92 4d ab d6 12 d3 85 73 52
-2a 9b 7e 3c 00 dd 40 9a 8c ba d5 01 eb d5 6a 4d
-fc 77 46 80 97 ba 3b 25 3a 15 ef 4a 15 2f a0 e4
-bb f1 1a c0 13 66 2e a4 ea 5d 20 fe 82 38 c4 e4
-13 8c c7 38 45 23 ca b5 65 81 77 60 6b b0 b6 e5
-a0 e4 4d e3 8e 47 ce bb 99 21 ce 29 d5 4f 6f 14
-b2 5f 5e d7 55 5d af 77 45 90 d7 01 e2 9e de 9f
-95 70 20 f5 33 82 39 b7 3d ab 57 f7 f6 e7 a5 a3
-bd 91 ef a8 ff 13 48 6d 4f fc 9a 32 6b 02 d6 3c
-a8 f8 6f ab 26 fc f3 49 09 80 9b 3e b0 38 3a a2
-02 2f 51 37 cf 70 34 5e 26 92 6f f0 5a 19 8e e4
-4b 26 36 72 f0 d5 f4 ae 17 53 88 b1 e2 63 2c 74
-4d 8b 10 0f c7 1c 81 2f 66 3b 35 7f 96 b1 bd 23
-75 70 b6 81 5b f4 2a 6f 56 76 45 94 0b d8 d3 dc
-14 45 aa 8e 82 33 3f 2f be 63 e6 d8 d3 e7 a6 ba
-ee 23 75 95 f5 8d 81 35 98 8d 55 37 61 7a 37 01
-23 1b 7d d3 bc ff 8a a0 9e 40 b2 2d 2a 2b d3 62
-59 0f 9e 92 64 94 72 81 59 a8 76 1e 60 22 5f cc
-b3 3e a2 51 ae 8f 77 ce a6 26 94 f9 24 8a d3 48
-f2 12 08 a7 9a 4b 3c ac 15 d5 05 73 9d 18 76 ae
-65 98 25 bb 79 7e ed 1a d5 e5 56 55 c2 3f 1d 3b
-b5 b0 2c 7a 69 0c 0b cc 70 66 69 6d 32 c8 82 fa
-ef 7d 7e 1f 1d a4 5e 55 15 73 b1 f6 14 81 57 17
-1a 2e 0a 5a a7 ed 51 98 da da bf 50 a1 7a 6c 86
-dd 73 3e c8 54 c9 8d d3 90 dd 7f 7c 71 f9 00 6a
-ce 58 93 85 4d 60 40 b6 c8 5a 40 b6 a2 5c 4d d7
-4e fa 01 3e 69 84 8d 79 78 c9 ed 9e 50 03 b3 b1
-44 4a 1e 20 59 1d bc 24 02 aa 78 4a ba 31 fd fb
-68 8c e5 bf 9d c5 7a 9f 41 29 20 e0 84 f8 50 75
-3d 12 4c b0 57 bb eb 7f ac c5 66 c6 a6 57 69 d9
-82 33 5b 90 53 ea 5e 9f 86 05 aa 14 53 42 df c8
-41 e6 38 f3 f2 a3 e3 6d 91 a8 b4 a4 e0 b2 9a 4e
-82 e3 a4 24 dd cd cf fc b9 40 45 c6 31 d9 08 d5
-c1 0b 45 7a bf 6a b8 e1 10 4d 6f 34 56 5a be c0
-e3 77 28 b7 a5 d3 7c 21 63 47 97 3b dc a6 31 6e
-60 49 45 7a 6f 68 14 45 78 56 3c f7 88 26 2f af
-66 01 fb 6b ed 51 aa d9 ca 34 18 70 8d d0 01 a0
-1f 8c eb 9b 64 fc 9a 6a 2d 87 5e 83 7d cc 6e ed
-fb 51 bf 4c 56 91 1c 6e 85 f9 67 f1 fe d4 ac c8
-df 0e 04 21 f8 8e 8f 31 93 20 79 20 ca eb 3c 31
-0f 15 5f b4 56 95 7f fe 40 c8 db f2 ee a4 05 22
-56 9a 77 ff 67 26 15 49 f2 b8 ff 88 40 01 79 87
-73 bb 98 5a ce 81 aa e3 c1 e6 22 8f df c1 ec 0b
-1c 29 58 91 2d e7 62 8c 18 c2 41 7f 9e 37 92 e3
-d4 fb c2 af 85 41 f5 03 70 dc 84 ed da a6 6d f7
-4c 8f 1f 69 0f 06 ee ed 1b 79 72 d7 1f 30 ef 80
-a5 26 1c e6 67 19 c1 fd 76 4d 7a b9 8d e8 bf 87
-70 13 d4 05 b9 62 05 c8 0f f1 cd 93 7a 09 af 40
-1b 8b 58 6f a7 61 8a 8a 9d 35 eb 85 f5 c5 42 a5
-04 3d d1 1d 91 25 e8 91 aa 2a 08 bd 05 f5 98 af
-d3 b4 ae 48 1a 1b 4b 11 88 e0 33 8b 9f 29 f4 34
-de ab 1a 0f 9d 41 12 12 85 cd 16 7a b7 51 3b 1f
-2b fc 09 5d 92 ae db a8 0b 34 2a 3b 9f 3f 01 d7
-22 6f ad d8 7b d3 84 54 c6 7d d0 d6 3b 70 e2 54
-7c 8a 2a 5f 2f 56 b2 9e 21 f4 fa 53 3b 0d b1 4b
-30 2e 9c 28 32 6e 83 5d 22 ca e0 85 e1 6c dc 75
-c9 a7 cd a2 f3 ed a6 ce 8e 3d 47 29 ac 2f 72 79
-29 94 3f af da a6 f2 ea 18 8f 44 3b 54 80 a8 2b
-94 40 f3 38 df 0d a0 fe 21 5c 24 3b 11 b6 d5 b5
-ce 8f 41 0a 86 89 1d ed 36 07 3c b7 d1 51 c7 33
-42 88 0e 51 53 8a 41 cd 32 b0 46 74 a7 c9 8b 47
-1e 2b 78 ae 76 07 12 42 01 49 a6 de fc 69 a6 4f
-99 1e a1 32 57 2b b8 96 15 b5 cd ec 84 63 7e ac
-a8 33 39 fd 6a 47 81 83 27 6f ff bd fa d9 30 f6
-cc 6c ed 48 67 29 c7 94 8a 72 91 0b b4 f3 74 39
-50 59 7a 87 8c 96 38 0b 6e 48 2f 73 b9 34 ba 80
-1a d9 fa e6 67 2a 78 a0 ee 20 5e f6 8a 65 55 f3
-cf 4c e1 9f 7a 10 b6 1f 95 0d 15 9b 6f f4 cc 1a
-a2 87 c8 51 36 38 8b 2c cd d3 ab 0d 3c 5b e7 a0
-a6 e0 4d 3a 1c c4 7b bb b2 d1 81 86 e1 a1 33 e5
-df d1 86 67 c0 19 70 30 b1 69 e8 ac 66 73 82 d8
-6d 2d 78 c0 5c 4d c0 c0 1e d1 96 b8 31 32 f5 17
-5c 3a cf f1 d1 86 5a 60 13 98 be 2f 4e 59 db 29
-9d 89 dd 49 4e 30 fc a2 1f b1 fb d4 b4 93 75 5b
-e5 8f af f8 65 84 e6 77 ec 04 12 ef e4 a4 fa 6c
-62 5f f5 29 81 de a4 1e ee bd bd 68 0a 89 ba 0c
-e4 eb 73 8e 45 c0 41 c6 78 10 ab 94 3f d1 f6 3a
-41 3a d3 4e ee cd 6d fe e8 73 4d 4c 23 5f 2b ea
-c3 17 49 5d 48 79 61 38 ed 78 1b ca d5 0f 2f da
-ee 60 d9 54 dd a8 c7 ad 7a 81 ff e0 2b 6e ee 78
-47 ca 5f e6 be 74 af ca af e2 47 10 27 ce f7 8f
-09 ea a9 3f d7 4c 63 d7 d2 b7 25 9e 38 3d 68 c1
-62 e8 05 d0 f9 29 9e b6 bd 62 37 ff 31 2e ec 13
-b9 eb 73 59 59 4a 9d 89 94 68 6f 99 d6 19 04 71
-e8 55 d3 87 49 70 ce a9 2c a9 af 47 2c 52 d1 63
-79 4f 81 f0 09 0b 58 5b d7 21 ba 3e 96 4a 96 d1
-ef b3 a3 da 5c ae d4 b6 a0 ed b7 44 53 74 de f6
-58 71 f5 fe 7b 11 b7 be 95 89 3d 67 ad 44 45 12
-c0 64 1b a0 8a 6f 05 9b bf cc 5c 04 4c 04 d1 73
-47 6e a2 4b 32 af af e7 dd f7 1b 49 40 5e a2 d8
-7d 7c 03 68 d9 ae 23 eb 4f ed 6b 90 98 13 a9 46
-79 85 4e 91 ff 10 47 62 19 cb 04 e5 fa 6b fa 3f
-9c 60 0c 60 4b 68 60 5b 93 a5 1f f9 50 23 6d 3a
-05 29 97 1d 22 12 d2 a4 48 f0 ba d9 7e ae 25 6a
-1a 71 9d c0 44 2d 2d 14 0e e7 27 15 e7 5a 68 ab
-b5 81 98 e0 02 b2 b9 85 c8 f8 42 29 74 f5 ef 2c
-3f b2 c5 0c 52 96 a6 0e 8a cb cb 7e 3f 19 bf 7a
-08 25 ee ae 44 53 27 8a a9 54 41 ee 69 f7 5f e4
-72 23 81 d3 8b cf 07 a8 57 9f 2b 79 a6 c6 87 a7
-b4 75 39 ca d4 0b 2c 9f 7c 82 f7 3b 56 ef 13 1f
-f1 88 dd a5 c2 ab 13 8c de 4f d2 8c df 6a 1e 2d
-fe ce f0 f7 b7 8b 1f e7 63 d0 c2 d1 f8 9d a4 51
-f1 b7 da a0 a3 e5 a1 db fe a7 45 49 03 a6 d0 8d
-73 10 9c 42 9e 8c 81 52 23 0b 45 13 b5 cb 7d 33
-52 0d b8 07 d7 69 0d a3 94 8b 52 c3 63 fb d2 7e
-03 e3 59 34 4d 3f 9c e2 b2 c7 b4 22 df 12 4e d7
-6d c3 65 e5 af 82 76 8b ba 9a 95 a1 b4 25 b6 c1
-d4 05 8e 22 42 b7 c8 0c e1 39 28 e8 b1 7e 3f dd
-3c e8 e9 60 25 52 7b ae 96 e2 ee 66 de fd b6 0e
-ea be 5a 1d 44 3f bb 5b f8 63 c8 f0 a2 e4 35 12
-be 76 aa 35 ac e1 25 0d f4 6d c7 43 24 ed 19 df
-b4 db df cd 2c c8 1a dc 9c 6f e8 7a a3 22 72 ab
-0c f4 6d 28 0f 7f 7d bf 3b 94 7e f7 f3 0d d4 6c
-d0 0b e1 43 23 c1 bb 69 42 98 a8 ea f3 c1 88 50
-71 d3 27 ba 41 12 81 cb 13 98 7c 8f bb 5d 00 5a
-42 16 99 25 01 8c 39 5b 88 d9 96 c8 a3 ab 93 b2
-7b e1 71 81 6c a2 3a f2 3a 09 51 bc d4 cc 1e 7a
-b9 6e eb e5 5f bf 2f 0d 0b 1d d4 df da 06 69 67
-93 b5 6b 21 05 10 b8 f6 5f 16 6f ab 66 6a 40 99
-fe a1 f7 79 d3 d4 e5 34 c0 c5 cb dd 68 f7 c7 33
-47 53 6b 8f 00 f4 f4 53 cf 9c 92 dc 7a 01 97 cf
-04 5d 8b b7 e3 b5 b3 54 03 6b a4 2e 80 99 09 de
-8a b9 a9 8b 88 11 f4 49 14 5c 94 8d a5 af e6 36
-4a 0d 79 1d ae 02 87 f2 55 d9 33 2c b3 8e 9a 43
-02 6c 87 6b f6 f1 13 78 ef 5a 46 c6 a9 ca a7 a7
-5d f8 b0 a3 9d 97 a6 e8 da d6 09 ee a8 32 24 aa
-5e 6b 2c 4f 90 6d d9 d2 a1 9d a4 72 18 15 85 19
-08 ab bf 0b 2a c8 c3 e0 0c 7f 57 20 b5 42 9c b0
-39 80 71 95 40 73 40 83 87 8c 62 ca e9 48 7a 36
-c0 f3 8c 7b d2 42 5f cf fe 57 a9 e9 e8 5c fa ff
-88 e2 32 5a 7f b0 76 34 3d 59 6f 6c 44 50 bc 3b
-18 d8 40 d3 2b 50 b2 a3 ee 74 ab fb 28 61 0d 4e
-93 9b 4a b3 3c 8e 49 40 0a a0 f2 e6 cb 15 5c 78
-c7 fe 25 11 d6 d2 09 2a 1f cd 00 39 cf 6a 37 0e
-62 6b 9c 66 e6 91 80 9c bb 81 33 9e 7a da 13 cd
-c9 52 90 6d 97 75 95 82 02 4e c1 6a 3b f3 10 4b
-e1 6e 00 88 e9 e5 ee 1b df 66 5e 42 a8 e9 f9 f2
-b3 bd cb df f0 2a bb 6a 9f 28 eb 82 71 5f d0 4d
-34 0a d0 ee 65 0f 64 24 78 f8 2b 2a 74 0f d9 fa
-a7 4f 55 39 0b 67 df 5f d1 f2 c9 62 ed 40 08 49
-00 73 f4 2c bf d4 3f a3 69 f5 e9 5d c9 2c b7 46
-ec f5 ae 09 ba c2 73 60 ed fe 73 b6 17 f0 d0 72
-c2 62 7a 01 ff e5 81 9e 24 e2 f2 b8 4c 49 30 94
-89 d1 20 f6 29 b7 73 1b 49 b3 55 7a 0f 3d 06 f1
-63 66 37 f7 51 e2 6c 4b b9 b2 64 b5 c2 b6 b6 27
-86 f1 ea 53 ca ef 07 68 d1 36 a8 bb ce 2c 79 68
-e6 93 1c a8 ab e2 38 7a b7 de c5 a9 af 32 a8 90
-ea 47 2d e7 62 16 43 ae 35 78 4b c3 7c 93 ab 79
-b1 70 7e 76 55 49 34 22 a3 a0 d4 91 ff 22 49 09
-52 29 a5 f0 e6 ca 18 fd 4e 6f 74 1d 8f 97 33 38
-45 da 30 f1 e1 ed 27 cf 96 85 60 2c 8d 99 99 9c
-fc cd 38 28 37 b4 14 35 0e db 2c f7 8f fc 36 ce
-93 12 8f b4 a3 33 a2 ea b4 a8 e6 6a 54 4c f6 ef
-0d 69 a7 b9 61 6f d6 4d 54 68 6d 87 d5 d8 65 63
-a8 6a d1 59 47 e7 f3 dc a8 85 d2 18 84 db a1 13
-7f 1c 1e 80 3a 54 de 34 97 e5 95 41 99 35 22 ad
-7f 9a f8 b9 24 34 13 63 af b0 c6 90 ab cf 33 ce
-ca 3f d6 94 62 6a 5d d7 8c c4 a2 11 86 fa 41 3c
-9f ef df ff 5d a0 a7 5f 24 1a cd 8c 02 a7 52 57
-e4 6e 50 27 71 65 ea ef 7a 3c 4d eb a9 49 40 e5
-13 ce 63 d4 7a 0c e5 ec e0 e9 04 ee 46 6b 62 3a
-4d 47 f5 f2 22 b7 b5 b8 1e 25 0e 63 77 ca 41 01
-41 39 a8 61 80 40 21 ca c3 5f 5e 64 8e 35 c8 b2
-ff 67 1d c2 2b 87 44 7a 17 2b 0c d0 36 92 cb a4
-4f 01 c7 57 48 9c 95 3e 1b 99 5f e6 d9 0a 34 ba
-01 ca 2a 54 92 64 47 1a 59 90 f3 f5 2a 18 ff d8
-3f 3c cc 22 eb ed 37 0b 8a 5e 5b e4 2c ae a8 26
-7f 03 4c 54 14 fe f0 ee 2b 0c eb 0a c9 18 b4 26
-6f 8e cd 16 be 03 42 8c 6a 69 4c fd db c1 e6 cc
-81 ee 5a 7a 76 63 ad d9 10 cc 0f d3 c4 54 a9 14
-e1 3f ad 95 0e de 43 3d a6 75 9d f0 ad 98 e4 5e
-6c 8b ab c1 08 0a 33 88 b3 29 bf 76 4f eb 5f e5
-4d 45 d3 44 20 9c d7 ea 7d ae 4c 55 53 6b 85 bf
-18 3b 01 e6 ed 80 e2 1e 01 d6 8e b4 6c df cb 17
-88 8e 1c b2 cc 32 87 2d f1 2b 3b aa 45 ed 0c 5a
-97 b6 ca 4d d0 a0 cb 5f 7b de b4 de b1 12 49 35
-c8 aa e0 72 b4 35 9c e0 7b d7 90 17 05 7a c1 a5
-22 52 c6 dd 77 e7 3c 98 ec 23 29 9d 4f d2 d6 32
-7f 8d f8 3a ef a0 30 2a 9e c7 34 95 1b e3 88 95
-7d 44 e5 58 cd d6 76 7d 1f 56 10 d7 b9 79 c8 fa
-bb b9 61 ff 68 44 f7 3c 64 f8 a0 60 f4 d1 79 e8
-8f 20 e1 de a4 b5 32 3e 9c 25 cd 61 61 d8 55 8c
-64 0e 6e 5c 0c 68 1f 8e 11 62 6f 26 39 7f 34 90
-77 35 dc b9 52 0e 43 16 cb 52 97 00 c1 86 26 91
-5a 06 1b 06 fd 10 6d 61 c2 a2 96 ed ec 26 86 94
-57 b3 98 a0 52 7d 46 24 55 da cd 40 5a b1 d9 1e
-be 45 88 7a 3a cd c4 0b 52 79 82 b3 57 03 e9 58
-81 21 fa c5 ba 87 0e 8d 26 78 7d 48 f6 68 f6 f1
-d7 23 aa f2 22 f4 4a e7 c0 52 0e ba 1a 0b 2d cb
-73 42 4d 4b a9 83 f4 2e 54 9d 26 84 ee 82 5c e3
-67 37 b7 1a 4c f2 f9 d2 ea d8 cb 36 b6 4b d8 df
-f3 2a c8 aa 17 2d 2d fe 6d 4b 7d 65 28 1d bc 04
-4a 7b 3a 5b 67 95 41 9d 11 5e 45 d9 5e 45 e6 72
-14 1c 57 e7 6a 0f ce 7c fe 4c 85 ba e2 47 48 51
-93 96 f9 84 82 c2 0f c2 69 88 fc 11 a5 ab ea ca
-4a ff 56 65 46 43 c6 35 ad 7b cc 25 ba 53 36 74
-4c 96 04 61 96 d5 26 47 16 c3 6b ef a0 0c de 21
-9e 69 d3 9f 94 83 47 21 0f 25 06 39 f1 49 48 c9
-8e 05 01 14 5e b5 c7 e9 a3 2e f5 13 58 e0 05 d7
-c9 cc 56 89 0f 2f c2 4d 28 24 eb 4f d6 ad e6 09
-8e 02 8a 4e 97 c2 3d c0 a2 5b 08 04 9c de 06 0d
-b6 ff ec 9c df 12 77 d0 84 3e c8 86 e6 96 f5 e3
-8c b1 6a 97 f5 f4 7e 47 89 9b 63 3c e2 c7 6a af
-e9 85 93 c1 3c 29 a4 e4 60 a6 34 05 e3 f1 b7 3f
-51 cb e6 7d 23 9f a8 5e 18 14 28 83 af c5 96 43
-81 1a bc ab 91 a5 3e 9b df 2b c8 7e 3a b0 4f 5c
-fe 84 e5 75 dc 03 f2 24 06 87 41 77 fc c4 c9 80
-ef 99 03 fe c6 c3 7f 59 87 0e 02 2b b7 6d 91 f1
-05 20 da ab 73 f4 a9 08 0c 77 c7 2a 16 52 79 88
-8d f1 87 1b 69 23 ea b2 70 a1 f4 a6 0c 4f c9 43
-45 9d e8 e0 90 db 14 fc ac 63 f2 06 c8 ad 73 bf
-8a 5b e3 50 3c eb 50 76 f4 82 7a 3c ef e4 28 6a
-17 d9 d2 b6 e1 0f 78 68 03 d2 66 cc 13 6e d6 86
-c8 6c 77 b8 94 1e 53 b1 8f 9c db a2 df fa fa da
-b7 7a 06 5e bd 61 79 25 3f 79 2b 8a d1 a2 bb 6a
-8a b9 f3 42 29 43 4c f0 7c 1b 70 b2 2b b6 1c d0
-77 2c 63 6a 19 ac 72 7d 2e a6 f8 ad f9 c6 a4 b6
-95 65 a2 c2 c0 9f b4 8c 26 2e 70 24 28 da 9f db
-57 20 c1 aa e3 38 3e ed e0 33 c7 a3 18 18 0f 70
-b0 4c fe f6 e4 64 9e 31 fc 1d 5e ef 6b fb da d6
-e4 2e 13 e1 1a 27 10 10 1e b5 4e 34 a4 b0 c1 fc
-81 07 e7 7e 50 ce e4 2a c8 f2 7c f1 ce 18 60 61
-24 22 7a 35 91 48 c8 58 22 5f 4a 26 a7 69 d4 46
-d9 24 57 d6 a2 a5 fa 25 44 c6 6d 67 bd 8a 51 13
-8d 04 1d 99 b3 c2 cb e0 06 47 fc 58 ca 08 ab d5
-c7 91 99 91 50 af 1e af 2b ee ae c8 78 e7 b0 a1
-46 f2 10 41 9a 28 bf 4a 49 52 99 4c c3 43 9b 01
-d0 e5 25 b1 cc fb 28 4b 3f 2f 6f 47 49 c1 37 8c
-7d 76 68 5a 04 81 b5 7d 9f ba f2 29 41 6f b0 dd
-d0 e8 8f 45 69 65 dd c9 55 3f 5c f0 a4 c3 a1 93
-ef a1 fa 67 ed 30 9a 0c c9 26 aa e2 4a 54 8c 25
-0d b0 11 b1 ce 98 59 4f d7 19 c3 40 4c 49 96 10
-bb 05 a5 d7 b1 e3 ad 80 ca 1a 87 79 3d 6c d6 d4
-1a e6 83 1e dc 33 39 be e4 09 6d 46 14 da bd 53
-e5 30 b2 1d e6 d4 bf 07 0e d0 79 a6 43 12 5f 26
-c7 09 2a 02 f1 42 85 08 99 24 3a a9 8b dd d2 c7
-45 40 a4 00 e3 c1 2c c6 d9 57 ec 76 94 93 c3 f4
-84 f3 75 07 25 40 36 4c 2a 8a 80 9e a0 98 b1 b5
-5e 60 ed 6d f5 a0 ce 82 13 3c 23 06 2d ab c3 b8
-39 d3 f9 c0 c5 51 a4 92 72 a3 6a 63 bb e7 19 b4
-ce cf 3e d9 a6 48 89 6c f0 bd ac f8 b2 f6 38 66
-85 59 ca 45 bd 36 de 20 53 03 9f c7 37 c3 27 b6
-8f 58 7e 2e 36 9d 20 38 6f 19 9b 13 16 8d 5e eb
-44 3b ec 8e 9d b8 ff 98 e9 f2 f3 3c 71 67 71 ff
-a9 c0 aa 03 ff 5e 9f 97 50 39 29 aa 2f da e4 4b
-78 76 d6 1a 24 26 6c 7e 9f 44 79 67 b9 59 95 fd
-1c c0 e3 21 76 4e 86 00 81 72 d8 cb fd e6 68 fa
-4b 46 34 d7 11 79 47 49 53 f4 d1 f5 2f 85 72 5b
-07 42 3e 95 c5 48 ec 5d 6e 81 72 25 b1 c6 18 1b
-8a a7 af e2 f3 0e 96 99 77 6d 11 26 e6 2f 34 6e
-f7 e5 bd eb 2d 9a f7 81 4c e3 6d 10 8e df 0c 5d
-18 da 47 ce 90 c0 d9 80 84 38 8a c6 61 1b e8 4e
-ee 12 6b c6 78 a1 6a 93 f3 9c 1f 48 46 e3 36 eb
-4f 32 59 a1 51 e4 f8 61 dd 93 77 35 13 95 34 3c
-4f 99 06 33 bd b8 69 34 59 0a 65 89 3b 16 c4 4d
-27 a6 08 d1 3b e2 38 e4 ca 8a 17 12 31 41 93 3d
-cb dc 14 42 a0 bc e0 1a 9a 3d 56 c3 e3 e6 e4 cb
-f0 da 2b 8d 94 a7 63 6f 54 a8 fa d9 34 6c 87 52
-8b 5d 97 6e cb 85 ec fd f2 76 de e9 40 5a d6 62
-45 98 9c 75 54 3f 11 71 41 ba 67 97 34 a6 85 39
-b5 58 fa 61 a9 7f 83 9d 92 c6 a9 20 c4 a6 23 04
-08 98 dd 38 f9 91 9a 4e f9 42 4d 57 9a 0f 47 4b
-82 f1 c9 1b b0 74 15 ad 02 42 60 39 52 99 3f c8
-0b 48 f8 46 e5 8d 7d 30 84 1f 30 7b a6 2a 5b 53
-71 29 a7 30 0b 04 0a 2e 83 c2 c2 0a 1e 93 b6 c2
-ca 2e fc 16 38 56 ff a6 08 8d 25 11 02 69 f6 d0
-25 67 14 ff 65 31 35 e6 ef f3 d2 02 6c d3 c0 f1
-aa be be 9d 20 18 13 2b e3 32 e9 75 4e 31 36 4d
-a1 e8 4f f3 9b f2 1e 9e be aa 98 b5 f7 17 5f 8f
-d5 13 2f 0e 56 8a c6 0a d6 43 a1 f9 20 3e 70 57
-59 c1 ed 0b d3 84 b4 cb 3a b0 06 20 85 dd ab a2
-c8 cc ed 6e 0b a6 eb d5 0b 5f f1 c0 94 13 43 b6
-0d d5 7f f6 e4 cf 2d 4f 01 60 07 ac a1 75 b4 e2
-8e 4c cd 08 93 ec 68 61 92 67 d7 95 5e c9 b3 2a
-f4 31 f8 be 47 52 2b ca 94 77 25 4d 55 39 4b 58
-28 f3 95 7b 6c c0 da 3c 84 52 ed 3c 97 d4 24 0e
-55 91 73 1d 55 61 4c 2c 24 33 b2 2c 5c 04 4d 87
-d8 79 dc 18 8a 6f 97 6e 60 0d 93 d2 06 91 83 25
-9e d1 2d 03 dc 70 6c cb 22 91 cf 61 00 15 ba 9f
-00 1f b6 22 2d c1 2d ad 59 45 3f fb 73 b1 18 63
-a1 3d 6a 1a d9 16 81 63 c7 2d 75 63 56 d2 a6 5c
-ff b3 67 f2 0e ba bc 7b 44 ac 51 73 29 35 e8 51
-02 99 3b 3c 7d db 3a c0 5d 90 cb 8f c6 01 3b 39
-36 1f cd e2 b7 f1 52 27 25 5f 7f d8 17 63 e4 91
-d4 1c 2c f8 5d 3d e6 f4 2f 08 02 fe 33 73 4e fb
-51 23 93 11 78 81 d9 4d f7 fe bc f9 98 58 ad 4e
-6b cb 29 ce 32 fe 9a e0 b9 71 ac 36 5f 00 66 9f
-72 4a c5 dd b4 9e 4d be 6d a9 cb 16 52 3b 1d 67
-46 a1 80 0e ce 09 cd 25 c5 f6 74 dd f3 0e fd 4e
-c3 60 33 8a 6e cd cf 26 cd dd 58 c0 46 25 55 7e
-b4 76 9f 65 92 e6 00 3d 9c dd 6f 12 87 c2 e0 57
-ac a7 9d 2d 92 8b 36 52 55 83 13 04 14 c3 a7 32
-3e 2c a3 82 fd e9 60 fc 8c 88 a6 5b a7 c6 11 f8
-9d 12 ab 57 34 eb 34 fe 48 b9 ea bb ed b8 1a 84
-05 e5 dc 37 14 8f fe b6 2d 87 1d 0c 58 e8 55 7f
-1f ad 99 47 9f 7b cf db cd 16 85 fd 7c c0 b4 98
-34 f6 e0 ad f6 7f 38 8f 51 7f 66 60 85 81 46 fc
-79 e8 13 7b 94 2b f6 2c 8c 45 ae 4a 2e 05 c4 d2
-55 98 33 9f 52 ec f6 15 55 2d bd 33 d5 06 1a 07
-07 b5 80 5e 01 9b 37 fe ae a8 00 0d b4 b4 83 aa
-c3 79 2c d7 df fc c1 73 cc 7b 17 7c a9 27 06 d7
-58 60 a2 60 b0 4b 18 32 24 ec 74 6a 96 da 19 a6
-ee df eb ab 5e 56 17 d3 46 61 85 80 db 74 37 5a
-2d d4 98 28 ec 91 f7 ea c3 ae e6 27 71 7f 1c dc
-ca 6f 17 79 32 08 5b ef 45 e5 58 c9 85 07 e7 05
-be 13 4f d2 8a 80 d4 e2 74 de 14 2c 9c 1a 0f 81
-0c 27 b1 1d b4 ff b6 16 e7 f7 1b 73 dd 9c 94 ae
-5c 1b be 01 15 94 23 70 84 b2 ef e5 46 a5 f6 bf
-aa b7 1b b5 2b 8a 50 d8 81 3d f8 88 ed eb 9b 60
-52 7a 05 c4 f7 84 32 02 36 06 dd 41 08 70 48 e5
-e1 35 1d f7 f0 5a 10 02 99 b6 2f 30 92 c6 01 95
-14 79 55 a4 ae 8c dc 39 dd 9a c0 cc 7d 81 8a f2
-2f 4c f2 7f ee b3 ed c1 42 ff ba 5c 85 20 8a 7c
-f6 53 98 7b 0d 0d aa fe be e2 d2 c8 87 21 70 90
-eb 76 81 3e 8b 9a f7 9d 1e 87 96 64 23 c2 04 70
-6e ec 31 1f 37 33 ad ba 73 69 f1 02 35 57 16 9b
-c6 1b e3 ae 15 66 b2 8b ce 8d 5b 61 fd cb 1c d0
-cb 40 46 7d 47 c0 bb 62 1f 6f 6b e5 97 57 5a c9
-d7 56 c9 2f cd 01 dc 84 45 61 da 92 ac d0 4a be
-21 02 92 d0 4b 29 97 71 b3 e0 b2 26 16 b9 b1 0f
-82 17 42 a9 88 2c 9e 90 b9 81 af 84 23 62 f3 7e
-02 eb 06 4d 9f 9a aa 36 08 11 d4 f5 6b 3f de 8b
-68 8b c7 1a de 53 31 9f 75 87 30 fb dd d5 f7 91
-ca 45 6f 98 92 9e 17 03 3b d8 23 79 9e ec d7 d6
-c8 8e fd eb a9 c5 1c bb ab e6 6d b5 b5 4e 2b b2
-f1 6f 55 d3 76 5b 18 cf 3c 41 a5 1b 33 b9 41 3f
-ac 83 97 e2 9b 4d 78 28 59 e0 2c d5 1a 7f 74 c3
-13 92 3e b0 c7 f5 80 23 1c 7d 11 bc 90 5c 38 c2
-71 bf 09 34 2f bf fe d5 70 bb f8 b0 e0 e9 c8 1b
-2f 77 20 d4 14 4c 44 a9 85 4b 86 d9 0e 75 59 7a
-8f a3 a4 3c c4 12 6f 8e 44 ed 3f 1b e6 b4 08 3c
-21 91 4b 46 15 fe e4 0b a0 20 aa ef fa f2 74 3b
-70 8a 51 cb 43 5c bc 3a 38 91 6b 0f 3c d3 13 fd
-ee e8 c7 45 d7 e5 e2 21 74 e7 e0 61 ef b6 f0 0e
-c2 74 4c 2b 6a 19 c0 d7 f4 2b ba 13 cb 05 12 5f
-e7 19 05 6b d6 f7 89 d9 dd 2a ea 7c 52 5e 89 fe
-a4 2d ba 2c 4a c4 55 09 8b 33 2e 42 8a aa 80 44
-b7 d8 cb 40 ea e6 b5 83 36 fc 8a eb a1 16 92 c8
-88 55 c5 ec 17 4e 5a cf da 0a 80 cc 45 07 17 17
-a2 d0 84 96 d8 24 f7 44 12 60 b1 17 fb 07 ba d9
-7c 87 ce 60 11 e0 eb bf 4a a3 37 a8 37 c5 57 56
-d9 99 64 e3 af f9 b7 88 24 87 31 d9 ac 4f 9f d2
-38 36 bf 4d 07 9a 11 3c 75 f4 e6 14 f6 3c 15 e7
-bb 04 b5 43 e7 e2 cd bb dd 5d af be 1e d3 19 7a
-46 b4 d9 30 ba 88 a4 d6 2c 0d 0c fd 84 d5 6c c1
-2e 47 0c 9b c6 07 45 79 ef 12 62 cd e2 ad e0 63
-0e a8 50 e8 9e 0f 1b d9 51 4a 39 b0 3a ee 05 83
-5b 5c b7 2e 8b f4 26 72 58 ee 67 be 88 12 be 70
-ed 82 fb 28 72 f0 d1 3b 53 7e ef ee 8c 20 e8 56
-c3 e4 96 43 71 ab e2 c1 3e 0a c2 f7 52 e7 de bb
-53 2d c3 77 9b a6 10 c0 da 44 5c dc 89 14 53 44
-e5 e7 9d 21 33 ad 82 17 b4 72 13 f4 1a 23 05 df
-22 86 0a 3f 56 f6 ca 17 9c 60 fd 0d 98 01 62 f6
-45 c4 c8 2c 51 08 56 ca 02 27 25 f2 0a 9f 8c c8
-9a e8 d3 5d ef 58 6f 00 79 1a 01 43 75 a8 94 72
-a1 f8 1c 67 92 0e 11 f8 28 f4 95 81 79 e1 58 45
-86 74 9f 1a dd dc e8 5f 60 df 9c 5f 75 0a c7 5f
-84 d8 3b 6e da 3e e9 46 e6 62 73 cc 7f fb d8 13
-71 a5 d9 16 a9 a3 9e 59 21 e4 5f a8 f3 db 37 8d
-38 de 32 34 1a 5b 9e 72 03 1d b4 fa 47 a8 ab c2
-3d 69 c4 8d 74 c7 fa 67 75 f8 9c a0 85 ad d9 9c
-34 df f2 1e 8c 9c 54 0b 5d 19 9d 19 49 e8 7f ce
-50 d4 ba b6 49 d6 24 a8 9a 37 7e 8f cf c1 7f b2
-7f de 62 5a f7 4a 11 b0 58 47 58 b1 b0 da 14 01
-53 bd b6 27 0a 4c 07 72 a2 6e 51 11 b3 03 0e 34
-7b 21 4d 51 f8 3c c1 6e b5 9a 50 f0 c0 fe 91 3b
-29 cd 3c 05 4f 99 10 6c 3a 70 b7 54 70 51 f3 cb
-ec db b2 98 0a c3 16 ff 76 5b 33 fe 11 9f 9a 02
-4a f9 fd 3e 06 63 cf a7 5f 6e 84 2c 7a b3 c2 a5
-60 a9 35 8f 82 45 16 a3 c8 df 90 07 80 1a 39 9d
-a0 63 85 d1 0e 8b 2c f1 4d 92 c4 4d 80 9e bb d4
-2c b4 36 f0 01 a0 b5 1f 70 ab be 15 90 7c 00 38
-4a 53 d3 0e 31 b4 c6 11 f1 cb d7 a2 6a c7 e4 05
-63 27 20 0e 2d 01 5f 4c 28 31 7e 5b 2b 52 16 d6
-81 60 7a ae 59 0e af b5 8c ad 4b 3c a9 b0 5e ab
-1e 68 de 06 6c fa 10 cb b7 19 0d 18 6e 38 01 4d
-da b7 c2 a3 88 f1 9c 7e 8f d5 10 79 c6 26 af e4
-e5 da 21 24 81 87 ad 49 12 d3 25 f1 08 67 5c 8f
-41 8c ff f9 6c 53 1c 6c 60 59 a4 94 67 4d a2 2d
-9b ad 05 1e ff c2 c3 6e f1 31 67 a1 9a ca 18 e9
-95 7c dc ac 05 44 9d 16 ad 18 f0 93 63 09 4d 8c
-5c 10 78 a3 24 ba 73 6d 8c 75 c8 f0 71 c8 6c 44
-76 92 17 50 13 44 f4 fd 64 5c 74 33 a1 08 e0 85
-8f e3 ef a5 b4 06 13 c0 02 d5 9f 3b 46 02 fe 3f
-27 fe 0c 9a d6 70 fe 1e 7a 99 c9 3b 44 ba 3e 6e
-c5 11 d0 07 06 3c 43 6c d8 d7 d9 c7 60 57 ae 9e
-4c bc 6b 2f 96 25 9b 79 41 c8 2a 34 c2 63 dc 8d
-06 06 da 0f 82 b1 70 95 c9 fc d8 77 1f b7 00 a3
-52 58 8f 9f a3 08 8b 59 c4 ee 12 d0 a6 c0 f1 60
-c1 5a 22 6e 6e 93 8e d2 02 be 81 f5 ea 8a 1d 31
-80 2c 4d 27 4b 29 50 53 cd 06 0d d0 59 cd 19 28
-24 15 d6 78 25 b5 af 68 97 00 ca 64 80 d8 72 8f
-cf 85 d9 9b 48 7e d8 7f 6c 37 d1 a4 2a 67 b6 9b
-48 75 40 d7 e1 de 10 6a 29 b9 e7 ed ff 1c 0c 0f
-00 97 56 df c5 79 f6 54 ff e7 8d cc a0 ed 1f 86
-2b 7b a4 14 c9 63 e6 82 75 99 49 68 1e 2f 6d ab
-d4 95 4e 75 a3 29 40 dc d5 e1 17 09 a1 78 ee f4
-49 21 e0 91 d4 9b 70 c1 dd 65 1a 8b 6e ae 6d 1d
-a1 e5 3c 6e dc d2 6d 5b 56 e8 5c 0f 6d 7b ae 8e
-b4 ce 9e 66 56 03 01 7a 11 0b a7 bf fd 9d 40 8c
-17 e8 ad 76 da f7 6c 39 45 c1 42 fb 8f d8 92 15
-f2 8d ac 67 65 3d 3f 69 40 b3 1c 78 5f e0 fd 7f
-d1 43 03 5e 93 31 3d a9 23 84 39 e3 18 47 69 75
-a7 ff 71 a1 37 2f e9 f3 6c f4 d4 40 fc 30 51 d6
-08 6f f0 ce 17 fb 8d 11 3a c4 89 0c 71 9b dc ab
-0e d4 39 b5 a7 33 48 d7 fa 5a 67 83 b1 73 b3 04
-d8 da 4b 54 35 c0 b7 07 f5 0e 27 4d e3 76 39 9f
-07 ed 22 fd 1a d5 8f 26 dd 37 1c 8a fa 01 c1 b3
-0a 87 be d2 b4 02 d3 90 1a 59 e4 ac 6a e2 d6 2f
-c4 3e 2a 3c cb 62 d0 0e ca 88 37 e9 fa f4 65 eb
-81 ba ba df 80 23 e8 b5 30 76 14 b2 05 61 41 3a
-8a 43 04 56 02 f1 b7 31 b1 26 62 eb 8b b2 64 82
-10 e6 d5 29 e3 20 b7 b5 ec 49 3e 84 2a 59 1e 76
-92 6d 7e 43 32 0a 47 91 3c 79 8f 93 92 c1 f7 fa
-62 6a c1 e7 02 64 f9 54 7b 79 78 4e ed 01 19 c2
-81 77 17 79 f2 e7 38 85 02 51 2a 68 91 8d 6d a3
-d1 d6 11 bc 3e 67 57 8c 96 18 0e b7 40 3d 84 d7
-fa 09 0f 61 6b fa df 58 66 50 ec 31 cf a5 9c d2
-2a e1 74 06 85 f9 4d bb 8b 1c a6 89 d2 0c 2c ea
-47 8a 45 74 af 0e 95 3f 66 5c 51 b8 51 6c f1 35
-6a 29 4a d4 c8 00 3a 61 18 b2 cd ff 66 89 bd 9b
-11 b8 0e fd 80 c6 f5 46 33 24 7a 0f e3 62 cc c3
-24 91 0c d9 e7 da 65 51 0e 5e 77 e8 0b d8 32 4e
-9a c5 9e 9d 13 93 55 e6 23 9c b1 be 01 57 aa 0a
-c0 4b b2 26 19 e5 fe 60 32 9c dd 48 d4 bc 4c 54
-79 f1 74 2c f4 6e 21 49 b1 e9 cf b8 f6 ff 26 3d
-ac 87 56 05 03 99 cb f0 ef 9a 5e a4 af 28 39 5f
-ce 35 0b a7 85 5d 73 0e e4 2f 4b 43 dc 87 a7 9b
-55 5d 57 3f ac 2d 77 b0 6f 4a 1f 93 e2 ce 7f e7
-05 6c 2b a9 37 92 6e e8 00 3d 20 c2 83 9e 1b fc
-50 1c 25 56 c1 a4 71 a1 0c 8b 25 fc f9 2a 42 42
-39 7a 58 89 bd 68 fe bf 99 6d e1 de 69 fb b8 a9
-1a c8 e0 dd ff 41 0c dd 4f e1 31 68 61 76 cf d4
-78 35 14 2b ec 17 55 44 78 1d e3 c9 9e 27 dd 3f
-08 80 e2 53 84 0a d4 21 ca 76 4f 68 6d 68 d8 71
-e5 53 2f 2d 17 80 ce 2f 65 50 0a 0f af b7 43 32
-f0 b4 5f 7a 87 43 59 cc 41 7a 5d 7b 45 8c 01 6e
-4f 5d 7f 5d 4a 2b f6 e2 a4 33 22 a3 81 d0 7f e7
-0f 30 44 02 08 9b 0f 00 7e 17 1b b3 41 56 22 73
-34 b4 f6 de 31 84 8e 4b 6e 67 b8 00 dd 31 c8 28
-5b 72 f5 28 79 16 c1 7c e3 1e 29 38 28 e5 74 85
-e7 cf e5 f7 f9 86 63 75 6f e2 01 ed 84 f0 bf 3c
-da 50 f9 92 d9 b1 cc 7f 68 e4 b7 73 5d 4b 75 11
-d6 e5 8f 2f b0 12 dc ff 03 3d 3f 46 7c 67 3e 5c
-f7 d0 51 b2 fd 62 35 23 89 66 d8 a3 03 c0 4e a8
-f5 df d8 2d 25 c4 18 6e 4c 78 59 13 bf 55 c6 21
-96 03 6d 9a 22 fc 7d 32 ca 57 c3 d3 75 f6 12 fb
-97 ff c8 1f 54 a5 cb 19 a7 93 1e f4 f6 52 d5 d2
-cb e6 39 f4 33 99 bb 55 d1 8d eb 4d 2e 44 d9 11
-72 e9 88 cb cd 4b 62 e2 06 d9 96 0a a6 b3 1a 76
-6d 1f 79 1d ae 23 cc d1 f5 b0 55 7c 5f 4b 3d af
-8e 94 13 b2 5e 46 53 30 1f 53 3a 30 28 3d 15 34
-f1 f3 84 1c f9 4d a0 1c be c7 47 e7 cf f3 ef b5
-95 0b 07 14 41 ab ef 74 9e d6 89 21 3d 67 0d 28
-0f 07 08 2d 62 c8 79 22 de d6 fa 03 6d 06 a2 62
-76 63 7c 03 ff 2e da 09 92 ed d6 74 73 33 24 af
-cf 7f 7f 1c f1 7f 85 84 92 aa 60 1a 37 c5 54 9d
-4c 44 00 24 de 51 4a 54 d6 b5 69 d1 ec 2a 4a 5d
-63 a3 99 f8 ca 63 4f 15 c2 cd e2 8d 2e 1d ae 34
-82 82 99 76 93 c1 48 15 98 20 14 47 c2 4e 12 a8
-d6 50 bc b8 21 0f 8d ef b0 b2 94 25 98 20 69 11
-4d c2 a9 30 78 a3 cc 70 d2 a1 ae e0 df fc bc 94
-60 ad 23 14 07 30 bc 22 d1 86 83 8e b6 17 1b 11
-90 f9 18 d5 8b 1f c5 2b 4a 33 94 b6 3c fc 2d 04
-79 18 90 cf b1 a0 7c d2 eb 4a 48 13 fd 95 95 7c
-fb 95 ed d1 d7 cf 0d 34 4d d4 59 da 0d 61 2a da
-c2 0f 9d a7 c1 6b c6 09 a3 08 30 c0 81 f3 fa 19
-cb 22 8e b7 de 37 77 30 bb 6c 46 5a d1 21 45 5c
-37 36 e4 34 c6 e9 84 f5 a9 d4 fa a2 9d 82 35 30
-4a 16 2f 07 c6 ea 2a 37 6d 36 c3 fb 97 ca bc 37
-c2 0e 78 48 8b 55 0f 02 7b 33 5c ad eb b2 e6 e7
-bd 03 9a 54 59 dc 8e 28 75 00 81 69 df a6 3b c8
-3d a9 46 cc 45 b2 06 9f 07 ea 71 e6 d2 ec 26 8d
-e8 16 86 d4 4a 9b 04 55 56 81 de 0c 08 e9 f5 35
-37 44 ba de 2b 27 bc 66 0a dc fd d6 6b c2 c6 10
-21 19 8e b2 97 38 fc 8f 94 8b ce 77 a2 01 1c 50
-65 84 3a b7 24 e5 71 1a 70 41 5f 02 f5 a4 92 e1
-33 e1 ba 30 70 a1 9a df 13 81 af fc 8a 88 4a ef
-ee 17 08 33 97 30 e7 12 51 1b 84 08 aa bf a1 41
-9c ec 36 e4 76 d5 e0 cd cb db 17 c3 81 db b9 9b
-6c 66 93 33 b2 28 47 8b a9 28 c4 5a 50 9b 24 a5
-87 13 b0 4e 51 c1 c6 88 39 e4 40 28 d8 e4 36 9a
-4e 1c c2 53 ac 8b d9 7a e2 94 87 e0 f9 3c 9a b2
-d1 39 3e 7f e0 26 c7 e4 52 7f 59 18 9a 2d 62 c5
-11 05 5a 6a e9 7b 24 38 7c 80 0a 65 60 6a 8b 5d
-5f a4 e6 14 2b 82 9c 77 f3 2a ea 1b a6 a4 02 31
-f8 7b fd 95 ba ce d0 aa 2a 58 5f ea 87 d5 ae a8
-00 33 2b f1 da 94 0a 38 2e 6e 4a 38 c3 4a 6a ee
-76 1c 28 83 93 76 15 7e d9 1d 22 8d e0 98 f8 ad
-d7 57 62 1c f8 b6 1c 9b 0c 79 98 6c 91 20 2d 8f
-e5 08 8e bf 3f e0 6d af 2b f9 19 4a d5 78 24 5d
-5d 36 55 95 2c e3 fd d0 fa 9d 86 7b 66 b4 d0 2d
-1d 30 55 22 c2 ae d4 48 32 47 30 f9 50 6d e1 69
-b4 9a ff 10 0f b1 30 88 d9 6e 53 c3 b3 d5 67 2b
-d6 10 42 b6 57 30 38 1e 63 47 ca 9c 3e 65 ff 55
-9b ac 6d 0b a0 c6 76 96 79 74 8f 8f 16 41 12 0b
-48 36 de 2c 36 e6 59 61 b5 c9 b9 24 b5 90 ed 98
-78 f7 0e 7d e0 78 a2 f2 6b aa 2e c7 c9 de 1e d0
-51 69 8e 84 b8 59 27 cc 22 8d 72 e2 e5 95 b6 66
-03 c2 98 85 38 a1 58 59 d4 d5 71 76 4b 1f e4 a1
-1d e2 92 4b cb 5f 98 f8 8c 21 ef 3a 8a 2b 17 ac
-95 22 42 fb c9 43 dd 63 d1 e1 01 37 af 53 20 71
-b9 dc 33 96 82 45 e8 22 de 1b 3f c9 de fe 2c d0
-e7 35 88 ab 5c e9 12 2b 6b e9 26 ad 9b 1d 54 18
-6c 94 66 66 00 e9 17 98 fa 4f 93 e9 5a ab b3 ea
-ad 31 e1 ef d5 2b 43 e7 6a 6e 8b c7 28 4b 4c a9
-29 3b e6 45 82 34 63 d1 5d 1c 7c 50 0b 40 69 c7
-3a 15 76 9f a1 00 6b d0 0f a4 e1 4a fc 38 00 4e
-44 70 d9 29 f2 ab 54 86 97 6c 87 87 5b d2 f8 ca
-d5 7d 8f f1 3c 23 71 5c 71 9b 84 19 21 43 bb 07
-16 79 78 27 a2 99 32 e5 9f f4 4e 01 75 1c 2e c0
-a9 06 c0 65 31 5b 51 27 85 a7 d6 f3 eb fe 40 ff
-cc ea c0 4f 1f 80 28 39 19 c7 b0 4c 8e 7c 2a f1
-e3 80 47 7f cd cb ca 68 be bd 3c e1 85 2b 89 89
-77 e3 18 5c 1f 45 8e 42 19 8d 02 7b 0e 08 a0 40
-32 e6 89 e9 0e 50 88 91 81 d6 cd 69 be 39 ab 85
-72 5e 2b f9 9b 60 64 e5 de 38 a8 d6 cd 8f 92 a0
-34 2c 71 00 36 a7 4e 7c 65 c9 30 df 00 05 bd ef
-a5 6e e7 ce 53 88 ab cd ca 3e bf 7c d8 ed 8f e6
-ca ee d6 1f 06 3a 22 93 40 8e 60 af 23 28 e9 2b
-a2 73 63 67 6a 18 94 09 55 80 05 72 0b 6f a7 ea
-65 85 b4 17 1a c2 3a cf aa a7 78 0c ac cf 1c 78
-71 13 9e 28 4c f5 28 08 4d 16 38 da 30 b7 9f 3a
-10 90 ec 19 d3 0c ee 49 24 2b 0d 51 43 7b 31 1a
-d4 b2 93 e0 d2 cd cb 82 b5 3b 6d 7a 8e ed 28 c7
-4a 73 ba 7e 6f c5 f4 b4 b4 6f 39 9e 83 72 88 26
-ad f4 10 79 0e e4 15 02 3f f9 e3 1f 8e 13 dc d8
-39 71 fa db 3c 5a 8e d4 c6 74 e0 22 b4 8f 21 29
-78 80 5f 8f f1 60 af d9 b8 6b ff 81 a3 62 18 2f
-76 13 ee e2 08 48 f9 6a 90 68 aa 37 d5 83 f3 31
-25 91 92 5a 11 6a bf 93 01 98 2b db e3 42 3b 98
-cf 52 02 d2 0d 54 85 38 1d 66 88 5a 00 e8 16 39
-fd a7 42 1d eb 99 0c b3 73 93 52 8c 16 34 ad 42
-15 e4 2a ef ab de 41 f7 2f 10 c0 34 33 f7 d9 f6
-dc f2 b2 43 50 19 ef 73 4f 4a a5 e9 5d dc 3f c3
-2a 7d 44 ac 40 c5 a9 c7 4c b7 55 ef 72 5a e9 84
-f2 6d f6 fd d6 69 d1 cb 65 6b 71 5c db 96 37 74
-32 e5
-source 0, (fast, slow) entropy: (0, 0)
-source 1, (fast, slow) entropy: (58, 47588)
-Processed input: 73842 octets
- sha256: fec4c0767434a8a3 22d6d5d0c9f49c42 988ce8c159b1a806 29d51aa40c2e99aa
-New seed file: 87213a8a863a91f9 0e776c01e0d7c3a8 6b2ecf9977b06da5 34f3df8375918ac9
-Generated output: 10208558 octets
- sha256: 06ca66b204a92939 e75e09e11922153e a2391000e0686da4 c7d27afb37a4630f
diff --git a/tools/.c-style b/tools/.c-style
deleted file mode 100644
index 1112b4b1..00000000
--- a/tools/.c-style
+++ /dev/null
@@ -1 +0,0 @@
-"gnu"
diff --git a/tools/.gdbinit b/tools/.gdbinit
deleted file mode 100644
index 1eac29b9..00000000
--- a/tools/.gdbinit
+++ /dev/null
@@ -1 +0,0 @@
-set env LD_LIBRARY_PATH=../.lib
diff --git a/tools/.gitignore b/tools/.gitignore
deleted file mode 100644
index b9366085..00000000
--- a/tools/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-/*.d
-/Makefile
-/nettle-hash
-/nettle-lfib-stream
-/pkcs1-conv
-/sexp-conv
-/nettle-pbkdf2
diff --git a/x86/sha1-compress.nlms b/x86/sha1-compress.nlms
deleted file mode 100644
index 0f0ec49f..00000000
--- a/x86/sha1-compress.nlms
+++ /dev/null
@@ -1,1684 +0,0 @@
-/* sha1 compression function */
-/* !!! arch x86_32 */
-/* !!! signature ppn */
-/* !!! count 0 mod 80 */
-
-/* Run with loopmix -f -s -m -i -b sha1-f1-noexpand.nlms */
-
-changequote(<,>)dnl
-
-define(<SWAP>, <
- mov OFFSET($1)(T2), $2
- bswap $2
- mov $2, OFFSET($1) (DATA)
->)dnl
-
-dnl ROUND_F1(a, b, c, d, e, i)
-define(<ROUND_F1>, <
- mov OFFSET(eval($6 % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 2) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 8) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 13) % 16)) (DATA), T1
- rol <$>1, T1
- mov T1, OFFSET(eval($6 % 16)) (DATA)
- mov $4, T2
- xor $3, T2
- and $2, T2
- xor $4, T2
- lea K1VALUE (T1, T2), T2
- rol <$>30, $2
- mov $1, T1
- rol <$>5, T1
- add T1, $5
- add T2, $5
->)
-
-dnl ROUND_F1_NOEXP(a, b, c, d, e, i)
-define(<ROUND_F1_NOEXP>, <
- mov $4, T2
- xor $3, T2
- mov $1, T1
- and $2, T2
- add OFFSET($6) (DATA), $5
- xor $4, T2
- add T2, $5
- rol <$>30, $2
- rol <$>5, T1
- lea K1VALUE (T1, $5), $5
->)
-
-dnl ROUND_F2(a, b, c, d, e, i, k)
-define(<ROUND_F2>, <
- mov OFFSET(eval($6 % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 2) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 8) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 13) % 16)) (DATA), T1
- rol <$>1, T1
- mov T1, OFFSET(eval($6 % 16)) (DATA)
- mov $4, T2
- xor $3, T2
- xor $2, T2
- lea $7 (T1, T2), T2
- rol <$>30, $2
- mov $1, T1
- rol <$>5, T1
- add T1, $5
- add T2, $5
->)
-
-dnl ROUND_F3(a, b, c, d, e, i)
-define(<ROUND_F3>, <
- mov OFFSET(eval($6 % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 2) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 8) % 16)) (DATA), T1
- xor OFFSET(eval(($6 + 13) % 16)) (DATA), T1
- rol <$>1, T1
- mov T1, OFFSET(eval($6 % 16)) (DATA)
- mov $4, T2
- and $3, T2
- lea K3VALUE (T1, T2), T1
- mov $4, T2
- xor $3, T2
- and $2, T2
- add T1, $5
- rol <$>30, $2
- mov $1, T1
- rol <$>5, T1
- add T1, $5
- add T2, $5
->)
-
-dnl Loop body, expanded for the loop
-dnl mov 88(%esp), T2
-dnl
-dnl SWAP( 0, %eax) SWAP( 1, %ebx) SWAP( 2, %ecx) SWAP( 3, %edx)
-dnl SWAP( 4, %eax) SWAP( 5, %ebx) SWAP( 6, %ecx) SWAP( 7, %edx)
-dnl SWAP( 8, %eax) SWAP( 9, %ebx) SWAP(10, %ecx) SWAP(11, %edx)
-dnl SWAP(12, %eax) SWAP(13, %ebx) SWAP(14, %ecx) SWAP(15, %edx)
-dnl
-dnl mov 84(%esp),T1
-dnl mov (T1), SA
-dnl mov 4(T1), SB
-dnl mov 8(T1), SC
-dnl mov 12(T1), SD
-dnl mov 16(T1), SE
-dnl
-dnl ROUND_F1_NOEXP(SA, SB, SC, SD, SE, 0)
-dnl ROUND_F1_NOEXP(SE, SA, SB, SC, SD, 1)
-dnl ROUND_F1_NOEXP(SD, SE, SA, SB, SC, 2)
-dnl ROUND_F1_NOEXP(SC, SD, SE, SA, SB, 3)
-dnl ROUND_F1_NOEXP(SB, SC, SD, SE, SA, 4)
-dnl
-dnl ROUND_F1_NOEXP(SA, SB, SC, SD, SE, 5)
-dnl ROUND_F1_NOEXP(SE, SA, SB, SC, SD, 6)
-dnl ROUND_F1_NOEXP(SD, SE, SA, SB, SC, 7)
-dnl ROUND_F1_NOEXP(SC, SD, SE, SA, SB, 8)
-dnl ROUND_F1_NOEXP(SB, SC, SD, SE, SA, 9)
-dnl
-dnl ROUND_F1_NOEXP(SA, SB, SC, SD, SE, 10)
-dnl ROUND_F1_NOEXP(SE, SA, SB, SC, SD, 11)
-dnl ROUND_F1_NOEXP(SD, SE, SA, SB, SC, 12)
-dnl ROUND_F1_NOEXP(SC, SD, SE, SA, SB, 13)
-dnl ROUND_F1_NOEXP(SB, SC, SD, SE, SA, 14)
-dnl
-dnl ROUND_F1_NOEXP(SA, SB, SC, SD, SE, 15)
-dnl ROUND_F1(SE, SA, SB, SC, SD, 16)
-dnl ROUND_F1(SD, SE, SA, SB, SC, 17)
-dnl ROUND_F1(SC, SD, SE, SA, SB, 18)
-dnl ROUND_F1(SB, SC, SD, SE, SA, 19)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 20, K2VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 21, K2VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 22, K2VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 23, K2VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 24, K2VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 25, K2VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 26, K2VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 27, K2VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 28, K2VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 29, K2VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 30, K2VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 31, K2VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 32, K2VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 33, K2VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 34, K2VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 35, K2VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 36, K2VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 37, K2VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 38, K2VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 39, K2VALUE)
-dnl
-dnl ROUND_F3(SA, SB, SC, SD, SE, 40)
-dnl ROUND_F3(SE, SA, SB, SC, SD, 41)
-dnl ROUND_F3(SD, SE, SA, SB, SC, 42)
-dnl ROUND_F3(SC, SD, SE, SA, SB, 43)
-dnl ROUND_F3(SB, SC, SD, SE, SA, 44)
-dnl
-dnl ROUND_F3(SA, SB, SC, SD, SE, 45)
-dnl ROUND_F3(SE, SA, SB, SC, SD, 46)
-dnl ROUND_F3(SD, SE, SA, SB, SC, 47)
-dnl ROUND_F3(SC, SD, SE, SA, SB, 48)
-dnl ROUND_F3(SB, SC, SD, SE, SA, 49)
-dnl
-dnl ROUND_F3(SA, SB, SC, SD, SE, 50)
-dnl ROUND_F3(SE, SA, SB, SC, SD, 51)
-dnl ROUND_F3(SD, SE, SA, SB, SC, 52)
-dnl ROUND_F3(SC, SD, SE, SA, SB, 53)
-dnl ROUND_F3(SB, SC, SD, SE, SA, 54)
-dnl
-dnl ROUND_F3(SA, SB, SC, SD, SE, 55)
-dnl ROUND_F3(SE, SA, SB, SC, SD, 56)
-dnl ROUND_F3(SD, SE, SA, SB, SC, 57)
-dnl ROUND_F3(SC, SD, SE, SA, SB, 58)
-dnl ROUND_F3(SB, SC, SD, SE, SA, 59)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 60, K4VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 61, K4VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 62, K4VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 63, K4VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 64, K4VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 65, K4VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 66, K4VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 67, K4VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 68, K4VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 69, K4VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 70, K4VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 71, K4VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 72, K4VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 73, K4VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 74, K4VALUE)
-dnl
-dnl ROUND_F2(SA, SB, SC, SD, SE, 75, K4VALUE)
-dnl ROUND_F2(SE, SA, SB, SC, SD, 76, K4VALUE)
-dnl ROUND_F2(SD, SE, SA, SB, SC, 77, K4VALUE)
-dnl ROUND_F2(SC, SD, SE, SA, SB, 78, K4VALUE)
-dnl ROUND_F2(SB, SC, SD, SE, SA, 79, K4VALUE)
-
-define(<SA>,<%eax>)
-define(<SB>,<%ebx>)
-define(<SC>,<%ecx>)
-define(<SD>,<%edx>)
-define(<SE>,<%ebp>)
-define(<DATA>,<%esp>)
-define(<T1>,<%edi>)
-define(<T2>,<%esi>)
-define(<COUNT>, <92(%esp)>)
-
-define(<K1VALUE>, <0x5A827999>)
-define(<K2VALUE>, <0x6ED9EBA1>)
-define(<K3VALUE>, <0x8F1BBCDC>)
-define(<K4VALUE>, <0xCA62C1D6>)
-
-dnl Expands to 4*i, or to the empty string if i is zero
-define(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
-
-.text
-.p2align 4,15
-.globl loop_entry
-loop_entry:
- push %ebx
- push %ebp
- push %esi
- push %edi
-
- sub $64, %esp
-
- cmp $0,COUNT
- jz loop_end
-.align 32
-loop_begin:
-
- mov 88(%esp), T2
-
-
- mov OFFSET(0)(T2), %eax
- bswap %eax
- mov %eax, OFFSET(0) (DATA)
-
- mov OFFSET(1)(T2), %ebx
- bswap %ebx
- mov %ebx, OFFSET(1) (DATA)
-
- mov OFFSET(2)(T2), %ecx
- bswap %ecx
- mov %ecx, OFFSET(2) (DATA)
-
- mov OFFSET(3)(T2), %edx
- bswap %edx
- mov %edx, OFFSET(3) (DATA)
-
-
- mov OFFSET(4)(T2), %eax
- bswap %eax
- mov %eax, OFFSET(4) (DATA)
-
- mov OFFSET(5)(T2), %ebx
- bswap %ebx
- mov %ebx, OFFSET(5) (DATA)
-
- mov OFFSET(6)(T2), %ecx
- bswap %ecx
- mov %ecx, OFFSET(6) (DATA)
-
- mov OFFSET(7)(T2), %edx
- bswap %edx
- mov %edx, OFFSET(7) (DATA)
-
-
- mov OFFSET(8)(T2), %eax
- bswap %eax
- mov %eax, OFFSET(8) (DATA)
-
- mov OFFSET(9)(T2), %ebx
- bswap %ebx
- mov %ebx, OFFSET(9) (DATA)
-
- mov OFFSET(10)(T2), %ecx
- bswap %ecx
- mov %ecx, OFFSET(10) (DATA)
-
- mov OFFSET(11)(T2), %edx
- bswap %edx
- mov %edx, OFFSET(11) (DATA)
-
-
- mov OFFSET(12)(T2), %eax
- bswap %eax
- mov %eax, OFFSET(12) (DATA)
-
- mov OFFSET(13)(T2), %ebx
- bswap %ebx
- mov %ebx, OFFSET(13) (DATA)
-
- mov OFFSET(14)(T2), %ecx
- bswap %ecx
- mov %ecx, OFFSET(14) (DATA)
-
- mov OFFSET(15)(T2), %edx
- bswap %edx
- mov %edx, OFFSET(15) (DATA)
-
-
- mov 84(%esp),T1
- mov (T1), SA
- mov 4(T1), SB
- mov 8(T1), SC
- mov 12(T1), SD
- mov 16(T1), SE
-
-
- mov SD, T2
- xor SC, T2
- mov SA, T1
- and SB, T2
- add OFFSET(0) (DATA), SE
- xor SD, T2
- add T2, SE
- rol $30, SB
- rol $5, T1
- lea K1VALUE (T1, SE), SE
-
-
- mov SC, T2
- xor SB, T2
- mov SE, T1
- and SA, T2
- add OFFSET(1) (DATA), SD
- xor SC, T2
- add T2, SD
- rol $30, SA
- rol $5, T1
- lea K1VALUE (T1, SD), SD
-
-
- mov SB, T2
- xor SA, T2
- mov SD, T1
- and SE, T2
- add OFFSET(2) (DATA), SC
- xor SB, T2
- add T2, SC
- rol $30, SE
- rol $5, T1
- lea K1VALUE (T1, SC), SC
-
-
- mov SA, T2
- xor SE, T2
- mov SC, T1
- and SD, T2
- add OFFSET(3) (DATA), SB
- xor SA, T2
- add T2, SB
- rol $30, SD
- rol $5, T1
- lea K1VALUE (T1, SB), SB
-
-
- mov SE, T2
- xor SD, T2
- mov SB, T1
- and SC, T2
- add OFFSET(4) (DATA), SA
- xor SE, T2
- add T2, SA
- rol $30, SC
- rol $5, T1
- lea K1VALUE (T1, SA), SA
-
-
-
- mov SD, T2
- xor SC, T2
- mov SA, T1
- and SB, T2
- add OFFSET(5) (DATA), SE
- xor SD, T2
- add T2, SE
- rol $30, SB
- rol $5, T1
- lea K1VALUE (T1, SE), SE
-
-
- mov SC, T2
- xor SB, T2
- mov SE, T1
- and SA, T2
- add OFFSET(6) (DATA), SD
- xor SC, T2
- add T2, SD
- rol $30, SA
- rol $5, T1
- lea K1VALUE (T1, SD), SD
-
-
- mov SB, T2
- xor SA, T2
- mov SD, T1
- and SE, T2
- add OFFSET(7) (DATA), SC
- xor SB, T2
- add T2, SC
- rol $30, SE
- rol $5, T1
- lea K1VALUE (T1, SC), SC
-
-
- mov SA, T2
- xor SE, T2
- mov SC, T1
- and SD, T2
- add OFFSET(8) (DATA), SB
- xor SA, T2
- add T2, SB
- rol $30, SD
- rol $5, T1
- lea K1VALUE (T1, SB), SB
-
-
- mov SE, T2
- xor SD, T2
- mov SB, T1
- and SC, T2
- add OFFSET(9) (DATA), SA
- xor SE, T2
- add T2, SA
- rol $30, SC
- rol $5, T1
- lea K1VALUE (T1, SA), SA
-
-
-
- mov SD, T2
- xor SC, T2
- mov SA, T1
- and SB, T2
- add OFFSET(10) (DATA), SE
- xor SD, T2
- add T2, SE
- rol $30, SB
- rol $5, T1
- lea K1VALUE (T1, SE), SE
-
-
- mov SC, T2
- xor SB, T2
- mov SE, T1
- and SA, T2
- add OFFSET(11) (DATA), SD
- xor SC, T2
- add T2, SD
- rol $30, SA
- rol $5, T1
- lea K1VALUE (T1, SD), SD
-
-
- mov SB, T2
- xor SA, T2
- mov SD, T1
- and SE, T2
- add OFFSET(12) (DATA), SC
- xor SB, T2
- add T2, SC
- rol $30, SE
- rol $5, T1
- lea K1VALUE (T1, SC), SC
-
-
- mov SA, T2
- xor SE, T2
- mov SC, T1
- and SD, T2
- add OFFSET(13) (DATA), SB
- xor SA, T2
- add T2, SB
- rol $30, SD
- rol $5, T1
- lea K1VALUE (T1, SB), SB
-
-
- mov SE, T2
- xor SD, T2
- mov SB, T1
- and SC, T2
- add OFFSET(14) (DATA), SA
- xor SE, T2
- add T2, SA
- rol $30, SC
- rol $5, T1
- lea K1VALUE (T1, SA), SA
-
-
-
- mov SD, T2
- xor SC, T2
- mov SA, T1
- and SB, T2
- add OFFSET(15) (DATA), SE
- xor SD, T2
- add T2, SE
- rol $30, SB
- rol $5, T1
- lea K1VALUE (T1, SE), SE
-
-
- mov OFFSET(0) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(13) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(0) (DATA)
- mov SC, T2
- xor SB, T2
- and SA, T2
- xor SC, T2
- lea K1VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(1) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(14) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(1) (DATA)
- mov SB, T2
- xor SA, T2
- and SE, T2
- xor SB, T2
- lea K1VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(2) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(15) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(2) (DATA)
- mov SA, T2
- xor SE, T2
- and SD, T2
- xor SA, T2
- lea K1VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(3) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(0) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(3) (DATA)
- mov SE, T2
- xor SD, T2
- and SC, T2
- xor SE, T2
- lea K1VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(4) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(1) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(4) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(5) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(2) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(5) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(6) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(3) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(6) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(7) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(4) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(7) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(8) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(5) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(8) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(9) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(6) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(9) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(10) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(7) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(10) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(11) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(8) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(11) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(12) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(9) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(12) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(13) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(10) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(13) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(14) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(11) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(14) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(15) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(12) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(15) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(0) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(13) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(0) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(1) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(14) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(1) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(2) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(15) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(2) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(3) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(0) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(3) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(4) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(1) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(4) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(5) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(2) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(5) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(6) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(3) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(6) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(7) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(4) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(7) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K2VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(8) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(5) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(8) (DATA)
- mov SD, T2
- and SC, T2
- lea K3VALUE (T1, T2), T1
- mov SD, T2
- xor SC, T2
- and SB, T2
- add T1, SE
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(9) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(6) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(9) (DATA)
- mov SC, T2
- and SB, T2
- lea K3VALUE (T1, T2), T1
- mov SC, T2
- xor SB, T2
- and SA, T2
- add T1, SD
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(10) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(7) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(10) (DATA)
- mov SB, T2
- and SA, T2
- lea K3VALUE (T1, T2), T1
- mov SB, T2
- xor SA, T2
- and SE, T2
- add T1, SC
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(11) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(8) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(11) (DATA)
- mov SA, T2
- and SE, T2
- lea K3VALUE (T1, T2), T1
- mov SA, T2
- xor SE, T2
- and SD, T2
- add T1, SB
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(12) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(9) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(12) (DATA)
- mov SE, T2
- and SD, T2
- lea K3VALUE (T1, T2), T1
- mov SE, T2
- xor SD, T2
- and SC, T2
- add T1, SA
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(13) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(10) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(13) (DATA)
- mov SD, T2
- and SC, T2
- lea K3VALUE (T1, T2), T1
- mov SD, T2
- xor SC, T2
- and SB, T2
- add T1, SE
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(14) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(11) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(14) (DATA)
- mov SC, T2
- and SB, T2
- lea K3VALUE (T1, T2), T1
- mov SC, T2
- xor SB, T2
- and SA, T2
- add T1, SD
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(15) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(12) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(15) (DATA)
- mov SB, T2
- and SA, T2
- lea K3VALUE (T1, T2), T1
- mov SB, T2
- xor SA, T2
- and SE, T2
- add T1, SC
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(0) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(13) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(0) (DATA)
- mov SA, T2
- and SE, T2
- lea K3VALUE (T1, T2), T1
- mov SA, T2
- xor SE, T2
- and SD, T2
- add T1, SB
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(1) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(14) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(1) (DATA)
- mov SE, T2
- and SD, T2
- lea K3VALUE (T1, T2), T1
- mov SE, T2
- xor SD, T2
- and SC, T2
- add T1, SA
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(2) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(15) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(2) (DATA)
- mov SD, T2
- and SC, T2
- lea K3VALUE (T1, T2), T1
- mov SD, T2
- xor SC, T2
- and SB, T2
- add T1, SE
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(3) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(0) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(3) (DATA)
- mov SC, T2
- and SB, T2
- lea K3VALUE (T1, T2), T1
- mov SC, T2
- xor SB, T2
- and SA, T2
- add T1, SD
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(4) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(1) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(4) (DATA)
- mov SB, T2
- and SA, T2
- lea K3VALUE (T1, T2), T1
- mov SB, T2
- xor SA, T2
- and SE, T2
- add T1, SC
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(5) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(2) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(5) (DATA)
- mov SA, T2
- and SE, T2
- lea K3VALUE (T1, T2), T1
- mov SA, T2
- xor SE, T2
- and SD, T2
- add T1, SB
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(6) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(3) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(6) (DATA)
- mov SE, T2
- and SD, T2
- lea K3VALUE (T1, T2), T1
- mov SE, T2
- xor SD, T2
- and SC, T2
- add T1, SA
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(7) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(4) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(7) (DATA)
- mov SD, T2
- and SC, T2
- lea K3VALUE (T1, T2), T1
- mov SD, T2
- xor SC, T2
- and SB, T2
- add T1, SE
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(8) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(5) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(8) (DATA)
- mov SC, T2
- and SB, T2
- lea K3VALUE (T1, T2), T1
- mov SC, T2
- xor SB, T2
- and SA, T2
- add T1, SD
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(9) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(6) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(9) (DATA)
- mov SB, T2
- and SA, T2
- lea K3VALUE (T1, T2), T1
- mov SB, T2
- xor SA, T2
- and SE, T2
- add T1, SC
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(10) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(7) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(10) (DATA)
- mov SA, T2
- and SE, T2
- lea K3VALUE (T1, T2), T1
- mov SA, T2
- xor SE, T2
- and SD, T2
- add T1, SB
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(11) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(8) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(11) (DATA)
- mov SE, T2
- and SD, T2
- lea K3VALUE (T1, T2), T1
- mov SE, T2
- xor SD, T2
- and SC, T2
- add T1, SA
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(12) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(9) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(12) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(13) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(10) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(13) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(14) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(11) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(14) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(15) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(12) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(15) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(0) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(13) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(0) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(1) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(14) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(1) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(2) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(15) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(2) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(3) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(0) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(3) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(4) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(1) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(4) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(5) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(2) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(5) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(6) (DATA), T1
- xor OFFSET(8) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(3) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(6) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(7) (DATA), T1
- xor OFFSET(9) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(4) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(7) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(8) (DATA), T1
- xor OFFSET(10) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(5) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(8) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(9) (DATA), T1
- xor OFFSET(11) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(6) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(9) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(10) (DATA), T1
- xor OFFSET(12) (DATA), T1
- xor OFFSET(2) (DATA), T1
- xor OFFSET(7) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(10) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
-
- mov OFFSET(11) (DATA), T1
- xor OFFSET(13) (DATA), T1
- xor OFFSET(3) (DATA), T1
- xor OFFSET(8) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(11) (DATA)
- mov SD, T2
- xor SC, T2
- xor SB, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SB
- mov SA, T1
- rol $5, T1
- add T1, SE
- add T2, SE
-
-
- mov OFFSET(12) (DATA), T1
- xor OFFSET(14) (DATA), T1
- xor OFFSET(4) (DATA), T1
- xor OFFSET(9) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(12) (DATA)
- mov SC, T2
- xor SB, T2
- xor SA, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SA
- mov SE, T1
- rol $5, T1
- add T1, SD
- add T2, SD
-
-
- mov OFFSET(13) (DATA), T1
- xor OFFSET(15) (DATA), T1
- xor OFFSET(5) (DATA), T1
- xor OFFSET(10) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(13) (DATA)
- mov SB, T2
- xor SA, T2
- xor SE, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SE
- mov SD, T1
- rol $5, T1
- add T1, SC
- add T2, SC
-
-
- mov OFFSET(14) (DATA), T1
- xor OFFSET(0) (DATA), T1
- xor OFFSET(6) (DATA), T1
- xor OFFSET(11) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(14) (DATA)
- mov SA, T2
- xor SE, T2
- xor SD, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SD
- mov SC, T1
- rol $5, T1
- add T1, SB
- add T2, SB
-
-
- mov OFFSET(15) (DATA), T1
- xor OFFSET(1) (DATA), T1
- xor OFFSET(7) (DATA), T1
- xor OFFSET(12) (DATA), T1
- rol $1, T1
- mov T1, OFFSET(15) (DATA)
- mov SE, T2
- xor SD, T2
- xor SC, T2
- lea K4VALUE (T1, T2), T2
- rol $30, SC
- mov SB, T1
- rol $5, T1
- add T1, SA
- add T2, SA
-
-
- sub $80, COUNT
- jnz loop_begin
-
-loop_end:
- add $64, %esp
- pop %edi
- pop %esi
- pop %ebp
- pop %ebx
- ret
-
diff --git a/x86/sha1-f1-noexp.nlms b/x86/sha1-f1-noexp.nlms
deleted file mode 100644
index ea82bbc3..00000000
--- a/x86/sha1-f1-noexp.nlms
+++ /dev/null
@@ -1,76 +0,0 @@
-/* The f1 phase of sha1, without expansion */
-/* !!! arch x86_32 */
-/* !!! signature n */
-/* !!! count 0 mod 5 */
-
-/* Run with loopmix -f -s -m -i -b sha1-f1-noexpand.nlms */
-
-changequote(<,>)dnl
-
-/* Current version can be loop-mixed down to 29 cycles. */
-define(<SA>,<%eax>)
-define(<SB>,<%ebx>)
-define(<SC>,<%ecx>)
-define(<SD>,<%edx>)
-define(<SE>,<%ebp>)
-define(<DATA>,<%esp>)
-define(<T1>,<%edi>)
-define(<T2>,<%esi>)
-dnl define(<KVALUE>,<%esi>)
-define(<COUNT>, <84(%esp)>)
-
-define(<K1VALUE>, <0x5A827999>)
-
-dnl Expands to 4*i, or to the empty string if i is zero
-define(<OFFSET>, <ifelse($1,0,,eval(4*$1))>)
-
-dnl The F1 round sets
-dnl
-dnl e += (a <<< 5) + (d ^ (b & (c ^ d))) + k + w
-dnl
-dnl Access inputs in order d, c, b, a, to give maximum time to
-dnl have values ready.
-
-dnl Current version can be loopmixed down to just over 4 cycles.
-define(<ROUND_F1_NOEXP>, <
- mov $4, T2
- xor $3, T2
- and $2, T2
- xor $4, T2
- rol <$>30, $2
- mov $1, T1
- rol <$>5, T1
- add OFFSET($6) (DATA), $5
- add T2, $5
- lea K1VALUE (T1, $5), $5
->)
-
-.text
-.p2align 4,15
-.globl loop_entry
-loop_entry:
- push %ebx
- push %ebp
- push %esi
- push %edi
-
- sub $64, %esp
-
-.align 32
-loop_begin:
- ROUND_F1_NOEXP(SA, SB, SC, SD, SE, 20)
- ROUND_F1_NOEXP(SE, SA, SB, SC, SD, 21)
- ROUND_F1_NOEXP(SD, SE, SA, SB, SC, 22)
- ROUND_F1_NOEXP(SC, SD, SE, SA, SB, 23)
- ROUND_F1_NOEXP(SB, SC, SD, SE, SA, 24)
- sub $5, COUNT
- jnz loop_begin
-
-loop_end:
- add $64, %esp
- pop %edi
- pop %esi
- pop %ebp
- pop %ebx
- ret
-
diff --git a/x86/sha1-f2.nlms b/x86/sha1-f2.nlms
deleted file mode 100644
index 34e66073..00000000
--- a/x86/sha1-f2.nlms
+++ /dev/null
@@ -1,81 +0,0 @@
-/* The f2 phase of sha1 */
-/* !!! arch x86_32 */
-/* !!! signature n */
-/* !!! count 0 mod 5 */
-
-/* Run with loopmix -f -s -m -i sha1-f2.nlms */
-
-/* Current version can be loop-mixed down to 31 cycles. */
-define(`SA',`%eax')
-define(`SB',`%ebx')
-define(`SC',`%ecx')
-define(`SD',`%edx')
-define(`SE',`%ebp')
-define(`DATA',`%esp')
-define(`TMP',`%edi')
-define(`TMP2',`%esi')
-dnl define(`KVALUE',`%esi')
-define(`TMP3',`%esi')
-define(`COUNT', `84(%esp)')
-
-define(<K2VALUE>, <<$>0x6ED9EBA1>)
-
-dnl Expands to 4*i, or to the empty string if i is zero
-define(`OFFSET', `ifelse($1,0,,eval(4*$1))')
-
-dnl The F2 round sets
-dnl
-dnl e += (a <<< 5) + (b ^ c ^ d) + k + w
-dnl
-dnl Access inputs in order d, c, b, a, to give maximum time to
-dnl have values ready.
-
-dnl ROUND(a, b, c, d, e, i)
-define(`ROUND', `
- mov OFFSET(eval($6 % 16)) (DATA), TMP
- xor OFFSET(eval(($6 + 2) % 16)) (DATA), TMP
- mov $4, TMP2
- xor $3, TMP2
- xor OFFSET(eval(($6 + 8) % 16)) (DATA), TMP
- xor OFFSET(eval(($6 + 13) % 16)) (DATA), TMP
- rol `$'1, TMP
- mov TMP, OFFSET(eval($6 % 16)) (DATA)
- xor $2, TMP2
- lea K2VALUE(TMP, $5), TMP
- add TMP2, TMP
- rol `$'30, $2
- mov $1, TMP3
- rol `$'5, TMP3
- add TMP3, $5
- add TMP, $5
-')
-
-.text
-.p2align 4,15
-.globl loop_entry
-loop_entry:
- push %ebx
- push %ebp
- push %esi
- push %edi
-
- sub $64, %esp
-
-.align 32
-loop_begin:
- ROUND(SA, SB, SC, SD, SE, 20)
- ROUND(SE, SA, SB, SC, SD, 21)
- ROUND(SD, SE, SA, SB, SC, 22)
- ROUND(SC, SD, SE, SA, SB, 23)
- ROUND(SB, SC, SD, SE, SA, 24)
- sub $5, COUNT
- jnz loop_begin
-
-loop_end:
- add $64, %esp
- pop %edi
- pop %esi
- pop %ebp
- pop %ebx
- ret
-