From 2b674678437b3755b9565d24317e1efaa957c165 Mon Sep 17 00:00:00 2001 From: "Antoine FERRON [BitLogiK]" Date: Tue, 26 Jan 2021 18:47:45 +0100 Subject: [PATCH] Avoid same name as an attribute --- src/fr/anssi/smartpgp/CmacSignature.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fr/anssi/smartpgp/CmacSignature.java b/src/fr/anssi/smartpgp/CmacSignature.java index 9e8e5f8..2359dd4 100644 --- a/src/fr/anssi/smartpgp/CmacSignature.java +++ b/src/fr/anssi/smartpgp/CmacSignature.java @@ -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);