java.lang.Object | |
↳ | javax.crypto.MacSpi |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new
MacSpi
instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Clones this
MacSpi
instance.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Computes the digest of this MAC based on the data previously specified in
engineUpdate(byte)
calls.
|
||||||||||
|
Returns the length of this MAC (in bytes).
|
||||||||||
|
Initializes this
MacSpi
instance with the specified key and
algorithm parameters.
|
||||||||||
|
Resets this
MacSpi
instance to its initial state.
|
||||||||||
|
Updates this
MacSpi
instance with the data from the specified
buffer
input
from the specified
offset
and length
len
.
|
||||||||||
|
Updates this
MacSpi
instance with the specified byte.
|
||||||||||
|
Updates this
MacSpi
instance with the data from the specified
buffer, starting at
position()
, including the next
remaining()
bytes.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Clones this
MacSpi
instance.
CloneNotSupportedException | if cloning is not supported. |
---|
Computes the digest of this MAC based on the data previously specified in
engineUpdate(byte)
calls.
This
MacSpi
instance is reverted to its initial state and
can be used to start the next MAC computation with the same parameters or
initialized with different parameters.
Returns the length of this MAC (in bytes).
Initializes this
MacSpi
instance with the specified key and
algorithm parameters.
key | the key to initialize this algorithm. |
---|---|
params | the parameters for this algorithm. |
InvalidKeyException |
if the specified key cannot be used to initialize this
algorithm, or it is
null
.
|
---|---|
InvalidAlgorithmParameterException | if the specified parameters cannot be used to initialize this algorithm. |
Resets this
MacSpi
instance to its initial state.
This
MacSpi
instance is reverted to its initial state and can be
used to start the next MAC computation with the same parameters or
initialized with different parameters.
Updates this
MacSpi
instance with the data from the specified
buffer
input
from the specified
offset
and length
len
.
input | the buffer. |
---|---|
offset | the offset in the buffer. |
len | the length of the data in the buffer. |
Updates this
MacSpi
instance with the specified byte.
input | the byte. |
---|
Updates this
MacSpi
instance with the data from the specified
buffer, starting at
position()
, including the next
remaining()
bytes.
input | the buffer. |
---|