Skip to content

Commit 73e638d

Browse files
author
gefeili
committed
Rename as Counter
1 parent bf6d41f commit 73e638d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/org/bouncycastle/crypto/engines/AEADBaseEngine.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected static class State
121121
protected AADOperator aadOperator;
122122
protected DataOperator dataOperator;
123123
//Only AsconAEAD128 uses this counter;
124-
protected DecryptionFailureCounter decryptionFailureCounter = null;
124+
protected Counter decryptionFailureCounter = null;
125125

126126
@Override
127127
public String getAlgorithmName()
@@ -707,7 +707,7 @@ public void reset()
707707
}
708708
}
709709

710-
protected static class DecryptionFailureCounter
710+
protected static class Counter
711711
{
712712
private int n;
713713
private int[] counter;

core/src/main/java/org/bouncycastle/crypto/engines/AsconAEAD128.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public AsconAEAD128()
2828
dsep = -9223372036854775808L; //0x80L << 56
2929
macSizeLowerBound = 4;
3030
setInnerMembers(ProcessingBufferType.Immediate, AADOperatorType.Default, DataOperatorType.Default);
31-
decryptionFailureCounter = new DecryptionFailureCounter();
31+
decryptionFailureCounter = new Counter();
3232
}
3333

3434
protected long pad(int i)

0 commit comments

Comments
 (0)