Package org.bouncycastle.crypto.engines
Class SM2Engine
java.lang.Object
org.bouncycastle.crypto.engines.SM2Engine
SM2 public key encryption engine - based on https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSM2Engine
(Digest digest, SM2Engine.Mode mode) SM2Engine
(SM2Engine.Mode mode) -
Method Summary
Modifier and TypeMethodDescriptionprotected ECMultiplier
int
getOutputSize
(int inputLen) void
init
(boolean forEncryption, CipherParameters param) byte[]
processBlock
(byte[] in, int inOff, int inLen)
-
Constructor Details
-
SM2Engine
public SM2Engine() -
SM2Engine
-
SM2Engine
-
SM2Engine
-
-
Method Details
-
init
-
processBlock
- Throws:
InvalidCipherTextException
-
getOutputSize
public int getOutputSize(int inputLen) -
createBasePointMultiplier
-