Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.23
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto.signers
Class ISO9796d2Signer

    java.lang.Object
      |
      +--org.bouncycastle.crypto.signers.ISO9796d2Signer

public class ISO9796d2Signer
extends java.lang.Object

ISO9796-2 - mechanism using a hash function.

Field Summary
`static int` | `TRAILER_IMPLICIT`
`static int` | `TRAILER_RIPEMD128`
`static int` | `TRAILER_RIPEMD160`
`static int` | `TRAILER_SHA1`

Constructor Summary
`ISO9796d2Signer(AsymmetricBlockCipher cipher, Digest digest)`
`ISO9796d2Signer(AsymmetricBlockCipher cipher, Digest digest, boolean implicit)`

Method Summary
`byte[]` | `generateSignature()` generate a signature for the loaded message using the key we were initialised with.
`void` | `init(boolean forSigning, CipherParameters param)`
`void` | `reset()` reset the internal state
`void` | `update(byte b)` update the internal digest with the byte b
`void` | `update(byte[] in, int off, int len)` update the internal digest with the byte array in
`boolean` | `verifySignature(byte[] signature)` return true if the signature represents a ISO9796-2 signature for the passed in message.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### TRAILER_IMPLICIT

    public static final int TRAILER_IMPLICIT

See Also:
  Constant Field Values

### TRAILER_RIPEMD160

    public static final int TRAILER_RIPEMD160

See Also:
  Constant Field Values

### TRAILER_RIPEMD128

    public static final int TRAILER_RIPEMD128

See Also:
  Constant Field Values

### TRAILER_SHA1

    public static final int TRAILER_SHA1

See Also:
  Constant Field Values

Constructor Detail

### ISO9796d2Signer

    public ISO9796d2Signer(AsymmetricBlockCipher cipher,
                           Digest digest,
                           boolean implicit)

### ISO9796d2Signer

    public ISO9796d2Signer(AsymmetricBlockCipher cipher,
                           Digest digest)

Method Detail

### init

    public void init(boolean forSigning,
                     CipherParameters param)

### update

    public void update(byte b)

  update the internal digest with the byte b

### update

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

  update the internal digest with the byte array in

### reset

    public void reset()

  reset the internal state

### generateSignature

    public byte[] generateSignature()
                             throws CryptoException

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

    `CryptoException`

### verifySignature

    public boolean verifySignature(byte[] signature)

  return true if the signature represents a ISO9796-2 signature for the passed in message.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography 1.23
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD