Top Inners Constructors Methods
org.bouncycastle.openpgp.operator.bc

pack-priv Class BcImplProvider

extends Object
Class Inheritance
Imports
org.bouncycastle.bcpg.HashAlgorithmTags, .PublicKeyAlgorithmTags, .SymmetricKeyAlgorithmTags, org.bouncycastle.crypto.AsymmetricBlockCipher, .BlockCipher, .CipherParameters, .CryptoException, .DataLengthException, .Digest, .Signer, .Wrapper, org.bouncycastle.crypto.digests.MD2Digest, .MD5Digest, .RIPEMD160Digest, .SHA1Digest, .SHA224Digest, .SHA256Digest, .SHA384Digest, .SHA3Digest, .SHA512Digest, .TigerDigest, org.bouncycastle.crypto.encodings.PKCS1Encoding, org.bouncycastle.crypto.engines.AESEngine, .BlowfishEngine, .CAST5Engine, .CamelliaEngine, .DESEngine, .DESedeEngine, .ElGamalEngine, .IDEAEngine, .RFC3394WrapEngine, .RSABlindedEngine, .TwofishEngine, org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters, .Ed25519PublicKeyParameters, org.bouncycastle.crypto.signers.DSADigestSigner, .DSASigner, .ECDSASigner, .Ed25519Signer, .Ed448Signer, .RSADigestSigner, org.bouncycastle.openpgp.PGPException, .PGPPublicKey, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static BlockCipher
createBlockCipher(int encAlgorithm)

pack-priv static Digest
createDigest(int algorithm)

pack-priv static AsymmetricBlockCipher
createPublicKeyCipher(int encAlgorithm)

pack-priv static Signer
createSigner(int keyAlgorithm, int hashAlgorithm, CipherParameters keyParam)

pack-priv static Wrapper
createWrapper(int encAlgorithm)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BcImplProviderback to summary
pack-priv BcImplProvider()

Method Detail

createBlockCipherback to summary
pack-priv static BlockCipher createBlockCipher(int encAlgorithm) throws PGPException
createDigestback to summary
pack-priv static Digest createDigest(int algorithm) throws PGPException
createPublicKeyCipherback to summary
pack-priv static AsymmetricBlockCipher createPublicKeyCipher(int encAlgorithm) throws PGPException
createSignerback to summary
pack-priv static Signer createSigner(int keyAlgorithm, int hashAlgorithm, CipherParameters keyParam) throws PGPException
createWrapperback to summary
pack-priv static Wrapper createWrapper(int encAlgorithm) throws PGPException
org.bouncycastle.openpgp.operator.bc back to summary

private Class BcImplProvider.EdDsaSigner

extends Object
implements Signer
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.openpgp.operator.bc.BcImplProvider.EdDsaSigner
All Implemented Interfaces
org.bouncycastle.crypto.Signer

Field Summary

Modifier and TypeField and Description
private final byte[]
private final Digest
private final Signer

Constructor Summary

AccessConstructor and Description
pack-priv
EdDsaSigner(Signer signer, Digest digest)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

generate a signature for the message we've been loaded with using the key we were initialised with.

public void
init(boolean
true if for signing, false otherwise
forSigning
,
CipherParameters
necessary parameters.
param
)

Implements org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.

public void
reset()

Implements org.bouncycastle.crypto.Signer.reset.

reset the internal state

public void
update(byte b)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

public void
update(byte[] in, int off, int len)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

public boolean
verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digBufback to summary
private final byte[] digBuf
digestback to summary
private final Digest digest
signerback to summary
private final Signer signer

Constructor Detail

EdDsaSignerback to summary
pack-priv EdDsaSigner(Signer signer, Digest digest)

Method Detail

generateSignatureback to summary
public byte[] generateSignature() throws CryptoException, DataLengthException

Implements org.bouncycastle.crypto.Signer.generateSignature.

Doc from org.bouncycastle.crypto.Signer.generateSignature.

generate a signature for the message we've been loaded with using the key we were initialised with.

initback to summary
public void init(boolean forSigning, CipherParameters param)

Implements org.bouncycastle.crypto.Signer.init.

Doc from org.bouncycastle.crypto.Signer.init.

Initialise the signer for signing or verification.

Parameters
forSigning:boolean

true if for signing, false otherwise

param:CipherParameters

necessary parameters.

resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Signer.reset.

Doc from org.bouncycastle.crypto.Signer.reset.

reset the internal state

updateback to summary
public void update(byte b)

Implements org.bouncycastle.crypto.Signer.update.

Doc from org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

updateback to summary
public void update(byte[] in, int off, int len)

Implements org.bouncycastle.crypto.Signer.update.

Doc from org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

verifySignatureback to summary
public boolean verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

Doc from org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.