public class ExternalSha3_256RsaSignature extends ExternalHashSignature
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
MESSAGE_DIGEST_ALGORITHM_NAME
The JCA name of the message digest algorithm.
|
protected static java.lang.String |
SIGNATURE_ALGORITHM_NAME
The JCA standard name of this signature algorithm.
|
messageDigest_
currentKeyIsSoftwareKey_, initialized_, operationState_, pkcs11OperationInitialized_, privateKey_, publicKey_, session_, SIGN, softwareDelegate_, tokenManager_, usedMechanismInfos_, usedMechanisms_, VERIFY
Constructor and Description |
---|
ExternalSha3_256RsaSignature()
Public default constructor to enable instantiation via Class.forName(String).
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAlgorithmName()
Get the JCA standard name of this signature algorithm.
|
protected iaik.pkcs.pkcs11.Mechanism |
getMechanism()
Get the mechanism of this signature object.
|
protected java.lang.String |
getMessageDigestName()
Returns the message digest's name that this object uses to hash the data.
|
protected byte[] |
prepareHash(byte[] rawHash)
Wraps the hash into a DigestInfo object.
|
getMessageDigest, pkcs11InitSign, pkcs11InitVerify, pkcs11Sign, pkcs11Update, pkcs11Update, pkcs11Verify
engineGetParameter, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineSign, engineUpdate, engineUpdate, engineVerify, finalize, finalizePkcs11Operation, getUsedMechanismFeatures, getUsedMechanisms, initializePkcs11Operation, initializeSession, initializeSoftwareDelegate, isSupportedBy, pkcs11GetParameter, pkcs11SetParameter, pkcs11SetParameter
protected static java.lang.String MESSAGE_DIGEST_ALGORITHM_NAME
protected static java.lang.String SIGNATURE_ALGORITHM_NAME
public ExternalSha3_256RsaSignature()
protected java.lang.String getAlgorithmName()
getAlgorithmName
in class PKCS11Signature
protected java.lang.String getMessageDigestName()
getMessageDigestName
in class ExternalHashSignature
protected iaik.pkcs.pkcs11.Mechanism getMechanism()
getMechanism
in class ExternalHashSignature
protected byte[] prepareHash(byte[] rawHash) throws IAIKPkcs11Exception
prepareHash
in class ExternalHashSignature
rawHash
- The raw hash value; i.e. the 32 bytes of a SHA-256 hash.IAIKPkcs11Exception
- If the hash cannot be wrapped for any reason.DigestInfo
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