Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcTlsSM2Signer

extends BcTlsSigner
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.crypto.params.ECPrivateKeyParameters, .ParametersWithID, .ParametersWithRandom, org.bouncycastle.crypto.signers.SM2Signer, org.bouncycastle.tls.SignatureAndHashAlgorithm, org.bouncycastle.tls.crypto.TlsStreamSigner, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
protected final byte[]
Inherited from org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner:
cryptoprivateKey

Constructor Summary

AccessConstructor and Description
public
BcTlsSM2Signer(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, byte[] identifier)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

public TlsStreamSigner

Field Detail

identifierback to summary
protected final byte[] identifier

Constructor Detail

BcTlsSM2Signerback to summary
public BcTlsSM2Signer(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, byte[] identifier)

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Parameters
algorithm:SignatureAndHashAlgorithm

the signature algorithm to use.

hash:byte[]

the hash calculated for the signature.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
in case of an exception processing the hash.
getStreamSignerback to summary
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm)

Overrides org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner.getStreamSigner.

Implements org.bouncycastle.tls.crypto.TlsSigner.getStreamSigner.