public class SM4Cipher extends CipherSpi
| 限定符和类型 | 字段和说明 |
|---|---|
private int |
BLOCK_SIZE |
private SM4BaseCipher |
cipher |
| 构造器和说明 |
|---|
SM4Cipher() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected int |
engineGetBlockSize() |
protected byte[] |
engineGetIV() |
protected int |
engineGetOutputSize(int inputLen) |
protected AlgorithmParameters |
engineGetParameters() |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
SecureRandom random) |
protected void |
engineSetMode(String mode) |
protected void |
engineSetPadding(String padding) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected void |
engineUpdateAAD(byte[] src,
int offset,
int len) |
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineUpdateAAD, engineWrapprivate SM4BaseCipher cipher
private final int BLOCK_SIZE
protected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode 在类中 CipherSpiNoSuchAlgorithmExceptionprotected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding 在类中 CipherSpiNoSuchPaddingExceptionprotected int engineGetBlockSize()
engineGetBlockSize 在类中 CipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize 在类中 CipherSpiprotected byte[] engineGetIV()
engineGetIV 在类中 CipherSpiprotected AlgorithmParameters engineGetParameters()
engineGetParameters 在类中 CipherSpiprotected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit 在类中 CipherSpiInvalidKeyExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
protected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
protected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate 在类中 CipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException
engineUpdate 在类中 CipherSpiShortBufferExceptionprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
protected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException,
IllegalBlockSizeException,
BadPaddingException
protected void engineUpdateAAD(byte[] src,
int offset,
int len)
engineUpdateAAD 在类中 CipherSpiCopyright © 2024. All rights reserved.