public final class TripleDesCMac extends CMac
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 'DESedeCMac' MAC from the
Entrust cryptographic
service provider. This can be done using the following call:
Mac.getInstance("DESedeCMac", "Entrust");
CMac| Constructor and Description |
|---|
TripleDesCMac()
The constructor; creates a new instance of the DESedeCMac MAC algorithm.
|
engineDoFinal, engineGetMacLength, engineInit, engineReset, engineUpdate, engineUpdatepublic TripleDesCMac()
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
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("DESedeCMac", "Entrust").
java.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingException