public class SkeinMac extends Object implements org.bouncycastle.crypto.Mac
| Constructor and Description |
|---|
SkeinMac() |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff) |
String |
getAlgorithmName() |
int |
getMacSize() |
void |
init(org.bouncycastle.crypto.CipherParameters params) |
void |
reset() |
void |
update(byte in) |
void |
update(byte[] in,
int inOff,
int len) |
void |
updateBits(byte[] in,
int inOff,
int len)
Update the MAC with a message bit string.
|
public void init(org.bouncycastle.crypto.CipherParameters params)
throws IllegalArgumentException
init in interface org.bouncycastle.crypto.MacIllegalArgumentExceptionpublic String getAlgorithmName()
getAlgorithmName in interface org.bouncycastle.crypto.Macpublic int getMacSize()
getMacSize in interface org.bouncycastle.crypto.Macpublic void update(byte in)
throws IllegalStateException
update in interface org.bouncycastle.crypto.MacIllegalStateExceptionpublic void updateBits(byte[] in,
int inOff,
int len)
throws org.bouncycastle.crypto.DataLengthException,
IllegalStateException
in - The byte array that holds the bit string. The array must be big
enough to hold all bits.inOff - Offset into byte array where the data starts, must be a byte number
(not a bit number).len - Number of bits to hash.org.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionpublic void update(byte[] in,
int inOff,
int len)
throws org.bouncycastle.crypto.DataLengthException,
IllegalStateException
update in interface org.bouncycastle.crypto.Macorg.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionpublic int doFinal(byte[] out,
int outOff)
throws org.bouncycastle.crypto.DataLengthException,
IllegalStateException
doFinal in interface org.bouncycastle.crypto.Macorg.bouncycastle.crypto.DataLengthExceptionIllegalStateExceptionpublic void reset()
reset in interface org.bouncycastle.crypto.MacCopyright © 2015. All rights reserved.