pike.git / lib / modules / Crypto.pmod / SHA512.pmod

version» Context lines:

pike.git/lib/modules/Crypto.pmod/SHA512.pmod:1:   #pike __REAL_VERSION__   #pragma strict_types + #require constant(Nettle.SHA512)      //! SHA512 is another hash function specified by NIST, intended as a   //! replacement for @[SHA1], generating larger digests. It outputs hash   //! values of 512 bits, or 64 octets.    - #if constant(Nettle) && constant(Nettle.SHA512) -  +    inherit Nettle.SHA512;    - Standards.ASN1.Types.Identifier asn1_id() + Standards.ASN1.Types.Identifier pkcs_hash_id()   {    return Standards.PKCS.Identifiers.sha512_id;   }    - #else - constant this_program_does_not_exist=1; - #endif + protected constant hmac_jwa_id = "HS512";