Code example for Signature

Methods: update, verify

0
	} 
 
 
	@Override 
	public boolean estValide(byte[] donnees, byte[] signature) throws SignatureException {
		DSA.update(donnees);
		return DSA.verify(signature);
	} 
 
 
	public void setClePrivee(PrivateKey cle) throws InvalidKeyException{
		clePrivee = cle;
		DSA.initSign(clePrivee);
		 
	} 
	 
	public void setClePublique(PublicKey cle) throws InvalidKeyException{
		clePublique = cle;
		DSA.initVerify(clePublique);
		 
	}