This commit is contained in:
Looly 2024-01-08 18:06:56 +08:00
parent 1097968126
commit 8455f76110
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class JceCipher implements Cipher, Wrapper<javax.crypto.Cipher> {
* @param cipher {@link javax.crypto.Cipher}
*/
public JceCipher(final javax.crypto.Cipher cipher) {
this.cipher = cipher;
this.cipher = Assert.notNull(cipher);
}
@Override

View File

@ -38,7 +38,7 @@ public class BCCipher implements Cipher, Wrapper<BufferedBlockCipher> {
* @param blockCipher {@link BufferedBlockCipher}
*/
public BCCipher(final BufferedBlockCipher blockCipher) {
this.blockCipher = blockCipher;
this.blockCipher = Assert.notNull(blockCipher);
}
@Override