org.bouncycastle.jcajce.provider.asymmetric.ec
Class GMCipherSpi
java.lang.Object
|
+--javax.crypto.CipherSpi
|
+--org.bouncycastle.jcajce.provider.asymmetric.ec.GMCipherSpi
- Direct Known Subclasses:
- GMCipherSpi.SM2, GMCipherSpi.SM2withBlake2b, GMCipherSpi.SM2withBlake2s, GMCipherSpi.SM2withMD5, GMCipherSpi.SM2withRMD, GMCipherSpi.SM2withSha1, GMCipherSpi.SM2withSha224, GMCipherSpi.SM2withSha256, GMCipherSpi.SM2withSha384, GMCipherSpi.SM2withSha512, GMCipherSpi.SM2withWhirlpool
- public class GMCipherSpi
- extends javax.crypto.CipherSpi
Method Summary |
byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
|
int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
|
int |
engineGetBlockSize()
|
byte[] |
engineGetIV()
|
int |
engineGetKeySize(java.security.Key key)
|
int |
engineGetOutputSize(int inputLen)
|
java.security.AlgorithmParameters |
engineGetParameters()
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec engineSpec,
java.security.SecureRandom random)
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
|
void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
|
void |
engineSetMode(java.lang.String mode)
|
void |
engineSetPadding(java.lang.String padding)
|
byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen)
|
int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
|
Methods inherited from class javax.crypto.CipherSpi |
engineUnwrap, engineWrap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GMCipherSpi
public GMCipherSpi(SM2Engine engine)
engineGetBlockSize
public int engineGetBlockSize()
- Overrides:
engineGetBlockSize
in class javax.crypto.CipherSpi
engineGetKeySize
public int engineGetKeySize(java.security.Key key)
- Overrides:
engineGetKeySize
in class javax.crypto.CipherSpi
engineGetIV
public byte[] engineGetIV()
- Overrides:
engineGetIV
in class javax.crypto.CipherSpi
engineGetParameters
public java.security.AlgorithmParameters engineGetParameters()
- Overrides:
engineGetParameters
in class javax.crypto.CipherSpi
engineSetMode
public void engineSetMode(java.lang.String mode)
throws java.security.NoSuchAlgorithmException
- Overrides:
engineSetMode
in class javax.crypto.CipherSpi
engineGetOutputSize
public int engineGetOutputSize(int inputLen)
- Overrides:
engineGetOutputSize
in class javax.crypto.CipherSpi
engineSetPadding
public void engineSetPadding(java.lang.String padding)
throws javax.crypto.NoSuchPaddingException
- Overrides:
engineSetPadding
in class javax.crypto.CipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec engineSpec,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException,
java.security.InvalidKeyException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineInit
public void engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
- Overrides:
engineInit
in class javax.crypto.CipherSpi
engineUpdate
public byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
- Overrides:
engineUpdate
in class javax.crypto.CipherSpi
engineUpdate
public int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
- Overrides:
engineUpdate
in class javax.crypto.CipherSpi
engineDoFinal
public byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Overrides:
engineDoFinal
in class javax.crypto.CipherSpi
engineDoFinal
public int engineDoFinal(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
- Overrides:
engineDoFinal
in class javax.crypto.CipherSpi