public class Rc5Mac extends PKCS11Mac
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
MAC_ALGORITHM_NAME
The JCA standard name of this signature algorithm.
|
protected iaik.pkcs.pkcs11.Mechanism |
mechanism_
The currently used mechanism (cached).
|
protected javax.crypto.spec.RC5ParameterSpec |
rc5ParameterSpec_
The parameters for the RC5 algorithm.
|
protected boolean |
rc5ParameterSpecChanged_
Indicates that the rc2ParameterSpec_ has been changed.
|
buffer_, currentKeyIsSoftwareKey_, defaultMacLength_, initialized_, key_, keyObject_, params_, pkcs11OperationInitialized_, session_, softwareDelegate_, tokenManager_, updateUsed_, usedMechanismInfos_, usedMechanisms_| Constructor and Description |
|---|
Rc5Mac()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getAlgorithmName()
Get the JCA standard name of this signautre algorithm.
|
protected iaik.pkcs.pkcs11.Mechanism |
getMechanism()
Get the current mechanism of this cipher object.
|
protected int |
pkcs11GetMacLength()
Returns the length of the calculated MAC value in bytes.
|
protected void |
pkcs11Init(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
Initializes this Mac object with given secret key and algorithm parameter specification.
|
checkKeyObject, engineDoFinal, engineGetMacLength, engineInit, engineReset, engineUpdate, engineUpdate, finalize, finalizePkcs11Operation, getUsedMechanismFeatures, initialize, initializePkcs11Operation, initializeSession, initializeSoftwareDelegate, isSupportedBy, pkcs11DoFinal, pkcs11Prepare, pkcs11Reset, pkcs11Update, pkcs11Updateprotected static java.lang.String MAC_ALGORITHM_NAME
protected iaik.pkcs.pkcs11.Mechanism mechanism_
protected javax.crypto.spec.RC5ParameterSpec rc5ParameterSpec_
protected boolean rc5ParameterSpecChanged_
protected java.lang.String getAlgorithmName()
PKCS11MacgetAlgorithmName in class PKCS11Macprotected int pkcs11GetMacLength()
pkcs11GetMacLength in class PKCS11Macprotected void pkcs11Init(java.security.Key key,
java.security.spec.AlgorithmParameterSpec params)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
PKCS11Macpkcs11Init in class PKCS11Mackey - the secret key for initializing this MAC object.params - the algorithm parameter specification.java.security.InvalidKeyException - if the given key cannot be used for initializing this MAC objectjava.security.InvalidAlgorithmParameterException - if the given algorithm parameters do not match to this MAC objectprotected iaik.pkcs.pkcs11.Mechanism getMechanism()
PKCS11MacgetMechanism in class PKCS11MacIAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4