|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.SignatureSpi | +--java.security.Signature | +--iaik.security.rsa.RSAPkcs1Signature | +--iaik.security.rsa.RSASignature | +--iaik.security.rsa.RipeMd128RSASignature
This class implements the RSA PKCS#1v1.5 digital signature algorithm (RSASSA-PKCS1-v1_5) using RipeMd128 as message digest algorithm.
The RipeMd128 hash algorithm is described at http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html, the PKCS#1v1.5 RSA signature algorithm is described in PKCS#1.
An application wishing to sign some message or to verify some signature using the "Ripemd128 with RSA" algorithm, generally has to perform three steps:
getInstance
method, e.g.
Signature sig = Signature.getInstance("RipeMd128withRSA");
sig.initSign(rsaPrivateKey);
sig.initVerify(rsaPublicKey);
sign
method returning the signature as
byte array. Otherwise, if the Signature object has been initialized for
verifying, first the data to be verified is supplied to the Signature object,
and subsequently the signature is verified by calling the verify
method, supplied with the byte array holding the corresponding signature value:
sig.update(data); byte[] signature = sig.sign();
sig.update(data); System.out.println("Signature " + (sig.verify(signature) ? "correct!" : "not correct!"));
RipeMd128
,
RSASignature
,
Signature
Fields inherited from class iaik.security.rsa.RSASignature |
hash |
Fields inherited from class java.security.Signature |
SIGN, state, UNINITIALIZED, VERIFY |
Fields inherited from class java.security.SignatureSpi |
appRandom |
Constructor Summary | |
RipeMd128RSASignature()
Default Constructor. |
Methods inherited from class iaik.security.rsa.RSASignature |
engineGetParameter, engineInitSign, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineSign, engineUpdate, engineUpdate, engineVerify |
Methods inherited from class java.security.Signature |
clone, getAlgorithm, getInstance, getInstance, getParameter, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, verify |
Methods inherited from class java.security.SignatureSpi |
engineSign |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RipeMd128RSASignature()
Applications do not call this constructor. They shall use one of the
getInstance
methods of the java.security.Signature
class for obtaining a RipeMd128RSASignature object.
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |