annotate m4/gc-sha256.m4 @ 37162:2da368bd636c

gc: support HMAC-SHA256 and HMAC-SHA512. * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512. * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New functions. (gc_hmac_md5): Use symbolic constant. * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too. (gc_hmac_sha256, gc_hmac_sha512): New functions. * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes. * m4/sha256.m4: Protect against empty expansion. * m4/sha512.m4: Likewise. * lib/hmac-sha256.c: New file. * lib/hmac-sha512.c: Likewise. * m4/gc-hmac-sha256.m4: Likewise. * m4/gc-hmac-sha512.m4: Likewise. * m4/gc-sha256.m4: Likewise. * m4/gc-sha512.m4: Likewise. * modules/crypto/gc-hmac-sha256: Likewise. * modules/crypto/gc-hmac-sha256-tests: Likewise. * modules/crypto/gc-hmac-sha512: Likewise. * modules/crypto/gc-hmac-sha512-tests: Likewise. * modules/crypto/hmac-sha256: Likewise. * modules/crypto/hmac-sha256-tests: Likewise. * modules/crypto/hmac-sha512: Likewise. * modules/crypto/hmac-sha512-tests: Likewise. * tests/test-gc-hmac-sha256.c: Likewise. * tests/test-gc-hmac-sha512.c: Likewise * tests/test-hmac-sha256.c: Likewise. * tests/test-hmac-sha512.c: Likewise
author Simon Josefsson <simon@josefsson.org>
date Mon, 26 Aug 2013 21:31:15 +0200
parents
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37162
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
1 # gc-sha256.m4 serial 1
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
2 dnl Copyright (C) 2005, 2007, 2009-2013 Free Software Foundation, Inc.
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
7 AC_DEFUN([gl_GC_SHA256],
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
8 [
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
9 AC_REQUIRE([gl_GC])
2da368bd636c gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
10 ])