Methods Summary |
---|
protected java.lang.Object | engineGetParameter(java.lang.String param)
throw new UnsupportedOperationException("engineSetParameter unsupported");
|
protected void | engineInitSign(java.security.PrivateKey privateKey)
CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
signer.init(true, param);
|
protected void | engineInitVerify(java.security.PublicKey publicKey)
CipherParameters param = RSAUtil.generatePublicKeyParameter((RSAPublicKey)publicKey);
signer.init(false, param);
|
protected void | engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
throw new UnsupportedOperationException("engineSetParameter unsupported");
|
protected void | engineSetParameter(java.lang.String param, java.lang.Object value)
throw new UnsupportedOperationException("engineSetParameter unsupported");
|
protected byte[] | engineSign()
try
{
byte[] sig = signer.generateSignature();
return sig;
}
catch (Exception e)
{
throw new SignatureException(e.toString());
}
|
protected void | engineUpdate(byte b)
signer.update(b);
|
protected void | engineUpdate(byte[] b, int off, int len)
signer.update(b, off, len);
|
protected boolean | engineVerify(byte[] sigBytes)
boolean yes = signer.verifySignature(sigBytes);
return yes;
|