public class SM2PeersafeSigner extends Object implements org.bouncycastle.crypto.Signer, org.bouncycastle.math.ec.ECConstants
| 构造器和说明 |
|---|
SM2PeersafeSigner() |
SM2PeersafeSigner(org.bouncycastle.crypto.Digest digest) |
SM2PeersafeSigner(org.bouncycastle.crypto.signers.DSAEncoding encoding) |
SM2PeersafeSigner(org.bouncycastle.crypto.signers.DSAEncoding encoding,
org.bouncycastle.crypto.Digest digest) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected BigInteger |
calculateE(BigInteger n,
byte[] message) |
protected org.bouncycastle.math.ec.ECMultiplier |
createBasePointMultiplier() |
byte[] |
generateSignature() |
void |
init(boolean forSigning,
org.bouncycastle.crypto.CipherParameters param) |
void |
reset() |
void |
update(byte b) |
void |
update(byte[] in,
int off,
int len) |
boolean |
verifySignature(byte[] signature) |
public SM2PeersafeSigner()
public SM2PeersafeSigner(org.bouncycastle.crypto.Digest digest)
public SM2PeersafeSigner(org.bouncycastle.crypto.signers.DSAEncoding encoding)
public SM2PeersafeSigner(org.bouncycastle.crypto.signers.DSAEncoding encoding,
org.bouncycastle.crypto.Digest digest)
public void init(boolean forSigning,
org.bouncycastle.crypto.CipherParameters param)
init 在接口中 org.bouncycastle.crypto.Signerpublic void update(byte b)
update 在接口中 org.bouncycastle.crypto.Signerpublic void update(byte[] in,
int off,
int len)
update 在接口中 org.bouncycastle.crypto.Signerpublic boolean verifySignature(byte[] signature)
verifySignature 在接口中 org.bouncycastle.crypto.Signerpublic void reset()
reset 在接口中 org.bouncycastle.crypto.Signerpublic byte[] generateSignature()
throws org.bouncycastle.crypto.CryptoException
generateSignature 在接口中 org.bouncycastle.crypto.Signerorg.bouncycastle.crypto.CryptoExceptionprotected org.bouncycastle.math.ec.ECMultiplier createBasePointMultiplier()
protected BigInteger calculateE(BigInteger n, byte[] message)
Copyright © 2021. All rights reserved.