public final class DesMac extends SymmetricCipherMac
By default, this algorithm produces a 64 bit MAC, however, the MAC size can be configured via algorithm parameters; the allowed MAC sizes are 16 bits to 64 bits, in 8 bit increments. The following algorithm parameter specifications are supported:
An instance of this algorithm can be obtained using the Java Cryptography
Architecture (JCA), by requesting a 'DESMac' MAC from the
Entrust cryptographic
service provider. This can be done using the following call:
Mac.getInstance("DESMac", "Entrust");SymmetricCipherMac| Constructor and Description |
|---|
DesMac()
The constructor; creates a new instance of the DESMac MAC algorithm.
|
engineDoFinal, engineGetMacLength, engineInit, engineReset, engineUpdate, engineUpdatepublic DesMac()
Applications should never use this constructor, instead the MAC algorithm
should be requested from the appropriate JCA/JCE cryptographic service
provider as follows: Mac.getInstance("DESMac", "Entrust").