mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
ae4d15de46
commit
ab6c3b3efc
@ -15,6 +15,7 @@ package org.dromara.hutool.crypto.bc;
|
||||
import org.bouncycastle.crypto.BufferedBlockCipher;
|
||||
import org.bouncycastle.crypto.CipherParameters;
|
||||
import org.dromara.hutool.core.lang.Assert;
|
||||
import org.dromara.hutool.core.lang.wrapper.Wrapper;
|
||||
import org.dromara.hutool.crypto.Cipher;
|
||||
import org.dromara.hutool.crypto.CipherMode;
|
||||
import org.dromara.hutool.crypto.CryptoException;
|
||||
@ -24,13 +25,18 @@ import org.dromara.hutool.crypto.CryptoException;
|
||||
*
|
||||
* @author Looly, changhr2013
|
||||
*/
|
||||
public class BCCipher implements Cipher {
|
||||
public class BCCipher implements Cipher, Wrapper<BufferedBlockCipher> {
|
||||
|
||||
/**
|
||||
* {@link BufferedBlockCipher},包含engine、mode、padding
|
||||
*/
|
||||
private final BufferedBlockCipher blockCipher;
|
||||
|
||||
@Override
|
||||
public BufferedBlockCipher getRaw() {
|
||||
return this.blockCipher;
|
||||
}
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user