pike.git/
lib/
modules/
Crypto.pmod/
SHA512_256.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-12-11
2017-12-11 21:31:18 by Martin Nilsson <nilsson@fastmail.com>
6ac8b641fb5253f08118afc9e3d789c6a1eed473 (
14
lines) (+
14
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Added SHA512/224 and SHA512/256
1:
+
#pike __REAL_VERSION__
+
#pragma strict_types
+
#require constant(Nettle.SHA512_256)
-
+
//! SHA512/256 is another hash function specified by NIST. It is
+
//! similar to @[SHA512] except it uses a different initialization and
+
//! the output is truncated to 256 bits, or 32 octets.
+
+
inherit Nettle.SHA512_256;
+
+
Standards.ASN1.Types.Identifier pkcs_hash_id()
+
{
+
return Standards.PKCS.Identifiers.sha512_256_id;
+
}
Newline at end of file added.