1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
#pike __REAL_VERSION__ 
#pragma strict_types 
#require constant(Nettle.SHA256) 
 
//! SHA256 is another hash function specified by NIST, intended as a 
//! replacement for @[SHA1], generating larger digests. It outputs hash 
//! values of 256 bits, or 32 octets. 
 
inherit Nettle.SHA256; 
 
Standards.ASN1.Types.Identifier pkcs_hash_id() 
{ 
  return Standards.PKCS.Identifiers.sha256_id; 
} 
 
protected constant hmac_jwa_id = "HS256";