Save This Page
Home » openjdk-7 » com.sun.crypto » provider » [javadoc | source]
com.sun.crypto.provider
final class: SslMacCore [javadoc | source]
java.lang.Object
   com.sun.crypto.provider.SslMacCore
This file contains the code for the SslMacMD5 and SslMacSHA1 implementations. The SSL 3.0 MAC is a variation of the HMAC algorithm. Note that we don't implement Cloneable as that is not needed for SSL.
Nested Class Summary:
public static final class  SslMacCore.SslMacMD5   
public static final class  SslMacCore.SslMacSHA1   
Constructor:
 SslMacCore(String digestAlgorithm,
    byte[] pad1,
    byte[] pad2) throws NoSuchAlgorithmException 
    Standard constructor, creates a new SslMacCore instance instantiating a MessageDigest of the specified name.
Method from com.sun.crypto.provider.SslMacCore Summary:
doFinal,   getDigestLength,   init,   reset,   update,   update,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.crypto.provider.SslMacCore Detail:
 byte[] doFinal() 
    Completes the Mac computation and resets the Mac for further use, maintaining the secret key that the Mac was initialized with.
 int getDigestLength() 
    Returns the length of the Mac in bytes.
  void init(Key key,
    AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException 
    Initializes the Mac with the given secret key and algorithm parameters.
  void reset() 
    Resets the Mac for further use, maintaining the secret key that the Mac was initialized with.
  void update(byte input) 
    Processes the given byte.
  void update(ByteBuffer input) 
  void update(byte[] input,
    int offset,
    int len) 
    Processes the first len bytes in input, starting at offset.