DsaWithNoneSignature
insteadpublic final class EntrustRawDSAPKCS11 extends EntrustDSA
This class expects its input to be already hashed with SHA-1. It is not expected that the Raw DSA algorithm will be heavily used by application developers; it is mainly for internal purposes.
This class supports private keys of type TokenDSAPrivateKey.
Use the "Raw" DSA signature like any other signature algorithm, but supply the hashed data to the update() methods instead of the original data to be signed. You can call all of the update methods in any combination, but when you call sign() or verify() exactly 20 bytes must have been passed during the updates. This is necessary because DSA was specifically designed for the 160 bit hashes of SHA-1.
Signature.getInstance("RawDSA") to create a raw DSA
Signature object. To use private keys that reside on a PKCS#11
token device, applications should invoke
Signature.initSign(tokenPrivateKey), which initializes the
Signature object with a TokenDSAPrivateKey.Signature,
TokenDSAPrivateKeyEntrustDSA.Raw| Constructor and Description |
|---|
EntrustRawDSAPKCS11()
Deprecated.
|
engineGetParameter, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineSign, engineUpdate, engineUpdate, engineVerify, getDigest, RStoASN1, RStoASN1clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify