Mercurial > hg > octave-nkf > gnulib-hg
annotate m4/gc-sha512.m4 @ 17482:b1c70949ba69
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 |
rev | line source |
---|---|
17482
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
1 # gc-sha512.m4 serial 1 |
b1c70949ba69
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. |
b1c70949ba69
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 |
b1c70949ba69
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, |
b1c70949ba69
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. |
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
6 |
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_GC_SHA512], |
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
8 [ |
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
9 AC_REQUIRE([gl_GC]) |
b1c70949ba69
gc: support HMAC-SHA256 and HMAC-SHA512.
Simon Josefsson <simon@josefsson.org>
parents:
diff
changeset
|
10 ]) |