public class Rc2Mac 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.RC2ParameterSpec |
rc2ParameterSpec_
The parameters for the RC2 algorithm.
|
protected boolean |
rc2ParameterSpecChanged_
Indicates that the rc2ParameterSpec_ has been changed.
|
buffer_, currentKeyIsSoftwareKey_, defaultMacLength_, initialized_, key_, keyObject_, params_, pkcs11OperationInitialized_, session_, softwareDelegate_, tokenManager_, updateUsed_, usedMechanismInfos_, usedMechanisms_
Constructor and Description |
---|
Rc2Mac()
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 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, pkcs11GetMacLength, pkcs11Prepare, pkcs11Reset, pkcs11Update, pkcs11Update
protected static java.lang.String MAC_ALGORITHM_NAME
protected javax.crypto.spec.RC2ParameterSpec rc2ParameterSpec_
protected boolean rc2ParameterSpecChanged_
protected iaik.pkcs.pkcs11.Mechanism mechanism_
protected java.lang.String getAlgorithmName()
PKCS11Mac
getAlgorithmName
in class PKCS11Mac
protected void pkcs11Init(java.security.Key key, java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
PKCS11Mac
pkcs11Init
in class PKCS11Mac
key
- 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()
PKCS11Mac
getMechanism
in class PKCS11Mac
IAIK 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