Bouncy Castle Cryptography 1.47

org.bouncycastle.jcajce.provider.symmetric.util
Class BaseMac

java.lang.Object
  extended by javax.crypto.MacSpi
      extended by org.bouncycastle.jcajce.provider.symmetric.util.BaseMac
All Implemented Interfaces:
PBE
Direct Known Subclasses:
AES.AESCMAC, BaseMac.DES, BaseMac.DES64, BaseMac.DES9797Alg3, BaseMac.DES9797Alg3with7816d4, BaseMac.DESCFB8, BaseMac.GOST28147, BaseMac.MD2, BaseMac.MD4, BaseMac.MD5, BaseMac.OldSHA384, BaseMac.OldSHA512, BaseMac.PBEWithRIPEMD160, BaseMac.PBEWithSHA, BaseMac.PBEWithTiger, BaseMac.RC2, BaseMac.RC2CFB8, BaseMac.RIPEMD128, BaseMac.RIPEMD160, BaseMac.SHA1, BaseMac.SHA224, BaseMac.SHA256, BaseMac.SHA384, BaseMac.SHA512, BaseMac.Tiger, DES.CBCMAC, DES.CMAC, DES.DES64, DES.DES64with7816d4, DES.DESCFB8, DESede.CBCMAC, DESede.CMAC, DESede.DESede64, DESede.DESede64with7816d4, DESede.DESedeCFB8, GOST28147.Mac, IDEA.CFB8Mac, IDEA.Mac, RC2.CBCMAC, RC2.CFB8MAC, RC5.CFB8Mac32, RC5.Mac32, Skipjack.Mac, Skipjack.MacCFB8, VMPC.Mac

public class BaseMac
extends javax.crypto.MacSpi
implements PBE


Nested Class Summary
static class BaseMac.DES
          DES
static class BaseMac.DES64
          DES 64 bit MAC
static class BaseMac.DES9797Alg3
          DES9797Alg3
static class BaseMac.DES9797Alg3with7816d4
          DES9797Alg3with7816-4Padding
static class BaseMac.DESCFB8
          DES
static class BaseMac.GOST28147
          GOST28147
static class BaseMac.MD2
          MD2 HMac
static class BaseMac.MD4
          MD4 HMac
static class BaseMac.MD5
          MD5 HMac
static class BaseMac.OldSHA384
           
static class BaseMac.OldSHA512
          SHA-512 HMac
static class BaseMac.PBEWithRIPEMD160
          PBEWithHmacRIPEMD160
static class BaseMac.PBEWithSHA
          PBEWithHmacSHA
static class BaseMac.PBEWithTiger
          PBEWithHmacTiger
static class BaseMac.RC2
          RC2
static class BaseMac.RC2CFB8
          RC2CFB8
static class BaseMac.RIPEMD128
          RIPEMD128 HMac
static class BaseMac.RIPEMD160
          RIPEMD160 HMac
static class BaseMac.SHA1
          SHA1 HMac
static class BaseMac.SHA224
          SHA-224 HMac
static class BaseMac.SHA256
          SHA-256 HMac
static class BaseMac.SHA384
          SHA-384 HMac
static class BaseMac.SHA512
          SHA-512 HMac
static class BaseMac.Tiger
          Tiger HMac
 
Nested classes/interfaces inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE
PBE.Util
 
Field Summary
 
Fields inherited from interface org.bouncycastle.jcajce.provider.symmetric.util.PBE
MD2, MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S2, RIPEMD160, SHA1, SHA256, TIGER
 
Constructor Summary
protected BaseMac(Mac macEngine)
           
protected BaseMac(Mac macEngine, int pbeType, int pbeHash, int keySize)
           
 
Method Summary
protected  byte[] engineDoFinal()
           
protected  int engineGetMacLength()
           
protected  void engineInit(java.security.Key key, java.security.spec.AlgorithmParameterSpec params)
           
protected  void engineReset()
           
protected  void engineUpdate(byte input)
           
protected  void engineUpdate(byte[] input, int offset, int len)
           
 
Methods inherited from class javax.crypto.MacSpi
clone, engineUpdate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMac

protected BaseMac(Mac macEngine)

BaseMac

protected BaseMac(Mac macEngine,
                  int pbeType,
                  int pbeHash,
                  int keySize)
Method Detail

engineInit

protected void engineInit(java.security.Key key,
                          java.security.spec.AlgorithmParameterSpec params)
                   throws java.security.InvalidKeyException,
                          java.security.InvalidAlgorithmParameterException
Specified by:
engineInit in class javax.crypto.MacSpi
Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException

engineGetMacLength

protected int engineGetMacLength()
Specified by:
engineGetMacLength in class javax.crypto.MacSpi

engineReset

protected void engineReset()
Specified by:
engineReset in class javax.crypto.MacSpi

engineUpdate

protected void engineUpdate(byte input)
Specified by:
engineUpdate in class javax.crypto.MacSpi

engineUpdate

protected void engineUpdate(byte[] input,
                            int offset,
                            int len)
Specified by:
engineUpdate in class javax.crypto.MacSpi

engineDoFinal

protected byte[] engineDoFinal()
Specified by:
engineDoFinal in class javax.crypto.MacSpi

Bouncy Castle Cryptography 1.47