Bouncy Castle Cryptography Library 1.86

org.bouncycastle.crypto.engines
Class AEADBaseEngine.DecryptionFailureCounter

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

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

Enforces the AEAD integrity limit (v) of draft-irtf-cfrg-aead-limits sec. 5/6: it bounds the number of failed decryptions (forgery attempts) permitted under one key, with the bound derived from the authentication-tag length (a shorter tag lowers the limit). Reset only on key change. TODO: currently wired only by AsconAEAD128 (NIST SP 800-232); the other AEADBaseEngine subclasses neither count nor bound forgery attempts.


Constructor Summary
protected AEADBaseEngine.DecryptionFailureCounter()
           
 
Method Summary
 boolean increment()
           
 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.DecryptionFailureCounter

protected AEADBaseEngine.DecryptionFailureCounter()
Method Detail

init

public void init(int n)

increment

public boolean increment()

reset

public void reset()

Bouncy Castle Cryptography Library 1.86