1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
#pike __REAL_VERSION__ 
 
//! SHA1 is a hash function specified by NIST (The U.S. National 
//! Institute for Standards and Technology). It outputs hash values of 
//! 160 bits, or 20 octets. 
 
#if constant(Nettle.SHA1_Info) 
 
// NOTE: Depends on the order of INIT invocations. 
inherit Nettle.SHA1_Info; 
inherit .Hash; 
 
.HashState `()() { return Nettle.SHA1_State(); } 
 
#endif