| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
counter |
protected byte[] |
iv |
BLOCKSIZE, inputLenUpdate, inputOffsetUpdate, inputUpdate, isInitialized, len, opmode, padding, rk, sm4| 构造器和说明 |
|---|
StreamModeBaseCipher() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen) |
int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
byte[] |
engineGetIV() |
AlgorithmParameters |
engineGetParameters() |
void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random) |
void |
engineInit(int opmode,
Key key,
SecureRandom random) |
void |
reset()
reset some parameters after encryption
|
engineGetBlockSize, engineGetOutputSize, engineSetMode, engineSetPadding, engineUpdate, engineUpdate, engineUpdateAAD, initengineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineUpdateAAD, engineWrappublic void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit 在类中 SM4BaseCipherInvalidKeyExceptionpublic void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
public void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
public byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
public int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException,
IllegalBlockSizeException,
BadPaddingException
public byte[] engineGetIV()
engineGetIV 在类中 SM4BaseCipherpublic AlgorithmParameters engineGetParameters()
engineGetParameters 在类中 SM4BaseCipherpublic void reset()
SM4BaseCipherreset 在类中 SM4BaseCipherCopyright © 2024. All rights reserved.