Skip to content

Commit

Permalink
Avoid same name as an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
bitlogik authored and af-anssi committed Jan 10, 2022
1 parent 41603d7 commit 2b67467
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fr/anssi/smartpgp/CmacSignature.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ private final void initBlock() {
Util.arrayFillNonAtomic(bytes, (short)0, (short)bytes.length, (byte)0);
}

protected final void init(final CmacKey key) {
if((key == null) || !key.isInitialized()) {
protected final void init(final CmacKey keyInit) {
if((keyInit == null) || !keyInit.isInitialized()) {
CryptoException.throwIt(CryptoException.UNINITIALIZED_KEY);
return;
}

this.key = key;
this.key = keyInit;

cipher.init(key.key, Cipher.MODE_ENCRYPT);

Expand Down

0 comments on commit 2b67467

Please sign in to comment.