Bouncy Castle Cryptography Library 1.86

org.bouncycastle.crypto.engines
Class AEADBaseEngine.DataLimitCounter

java.lang.Object
  extended byorg.bouncycastle.crypto.engines.AEADBaseEngine.DataLimitCounter
Enclosing class:
org.bouncycastle.crypto.engines.AEADBaseEngine

protected static class AEADBaseEngine.DataLimitCounter
extends java.lang.Object

Enforces the AEAD confidentiality / data limit (q) of draft-irtf-cfrg-aead-limits sec. 5/6: it bounds the total bytes processed under one key (nonce + AAD + message), throwing once 2^n is exceeded. Reset only on key change. TODO: currently wired only by AsconAEAD128 (NIST SP 800-232); the other AEADBaseEngine subclasses do not bound per-key data volume.


Constructor Summary
protected AEADBaseEngine.DataLimitCounter()
           
 
Method Summary
 void increment()
           
 void increment(int n)
           
 void init(int n)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AEADBaseEngine.DataLimitCounter

protected AEADBaseEngine.DataLimitCounter()
Method Detail

init

public void init(int n)

increment

public void increment()

increment

public void increment(int n)

reset

public void reset()

Bouncy Castle Cryptography Library 1.86