diff --git a/nettle-meta.h b/nettle-meta.h index 068456cf95b8ffb303e017400801446db1d60fce..96353088ae01e69eec6eb3a98643e5a11d63cf2a 100644 --- a/nettle-meta.h +++ b/nettle-meta.h @@ -137,6 +137,7 @@ extern const struct nettle_hash nettle_md2; extern const struct nettle_hash nettle_md4; extern const struct nettle_hash nettle_md5; extern const struct nettle_hash nettle_sha1; +extern const struct nettle_hash nettle_sha224; extern const struct nettle_hash nettle_sha256; extern const struct nettle_hash nettle_sha384; extern const struct nettle_hash nettle_sha512; diff --git a/sha224-meta.c b/sha224-meta.c new file mode 100644 index 0000000000000000000000000000000000000000..a8bbafcc3bb8cc7d4bf23fc7ab828727bbf3965b --- /dev/null +++ b/sha224-meta.c @@ -0,0 +1,32 @@ +/* sha224-meta.c */ + +/* nettle, low-level cryptographics library + * + * Copyright (C) 2002, 2010 Niels Möller + * + * The nettle library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or (at your + * option) any later version. + * + * The nettle library 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 Lesser General Public + * License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with the nettle library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + +#if HAVE_CONFIG_H +# include "config.h" +#endif + +#include "nettle-meta.h" + +#include "sha.h" + +const struct nettle_hash nettle_sha224 += _NETTLE_HASH(sha224, SHA224);