September 2002
Intermediate to advanced
416 pages
14h 46m
English
NullMAC
This class
implements a MAC that doesn’t calculate anything.
Instances of this MAC are returned by the
JxtaCryptoSuite class when the class has been
instantiated without specifying a MAC type.
public class NullMAC implements jxta.security.mac.MAC { // Public Constructors public NullMAC(); // Methods Implementing MAC public int encrypt(byte[ ] inbuff, int offset, int inLength, byte[ ] macBuff, int macOffset) throws jxta.security.exceptions.CryptoException public byte getAlgorithm(); // constant default:0 public String getAlgorithmName(); // default:"NullMAC” public int getLength(); // constant default:0 public void init(byte theMode, jxta.security.cipher.Key theKey, byte[ ] privateKey) throws jxta.security.exceptions.CryptoException; public void update(byte[ ] inbuf, int offset, int length) throws jxta.security.exceptions.CryptoException; public boolean verify(byte[ ] inBuff, int inOffset, int inLength, byte[ ] macBuff, int macOffset, int macLength) throws jxta.security.exceptions.CryptoException; // Methods Implementing Description public void clearDebug(); public void setDebug(); }
Read now
Unlock full access