Package org.bouncycastle.crypto.engines
Class SM2Engine
- java.lang.Object
-
- org.bouncycastle.crypto.engines.SM2Engine
-
public class SM2Engine extends java.lang.ObjectSM2 public key encryption engine - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSM2Engine.Mode
-
Constructor Summary
Constructors Constructor Description SM2Engine()SM2Engine(Digest digest)SM2Engine(Digest digest, SM2Engine.Mode mode)SM2Engine(SM2Engine.Mode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ECMultipliercreateBasePointMultiplier()intgetOutputSize(int inputLen)voidinit(boolean forEncryption, CipherParameters param)byte[]processBlock(byte[] in, int inOff, int inLen)
-
-
-
Constructor Detail
-
SM2Engine
public SM2Engine()
-
SM2Engine
public SM2Engine(SM2Engine.Mode mode)
-
SM2Engine
public SM2Engine(Digest digest)
-
SM2Engine
public SM2Engine(Digest digest, SM2Engine.Mode mode)
-
-
Method Detail
-
init
public void init(boolean forEncryption, CipherParameters param)
-
processBlock
public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException- Throws:
InvalidCipherTextException
-
getOutputSize
public int getOutputSize(int inputLen)
-
createBasePointMultiplier
protected ECMultiplier createBasePointMultiplier()
-
-