1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
#pike __REAL_VERSION__ 
#pragma strict_types 
 
//! Base class for AEAD (Authenticated Encryption with Associated Data) 
//! algorithms. 
//! 
//! AEAD algorithms behave like a combination of a @[Cipher] and 
//! a HMAC. 
//! 
//! Note that no actual AEAD algorithm is implemented 
//! in the base class. They are implemented in classes 
//! that inherit this class. 
//! 
//! @seealso 
//!   @[AE] 
 
inherit __builtin.Nettle.AE; 
 
inherit __builtin.Nettle.__Hash; 
 
//! This is the context for a single incrementally updated AEAD cipher. 
//! 
//! Most of the functions here are only prototypes, and need to 
//! be overrided via inherit. 
class State 
{ 
  inherit Cipher::State; 
  inherit __Hash::State; 
 
  protected void create() 
  { 
    /* Needed to block the default implementation in __Hash.State. */ 
  } 
} 
 
//! Calling `() will return a @[State] object. 
State `()() { 
  return State(); 
}