Merge branch '763-remove-signature-api' into 'master'

Remove old signature class from API

I decided not to remove the SignatureImpl class, as it's not a trivial wrapper around the Bouncy Castle class, but I moved the interface into briar-core and made it  package-private.

Closes #763

See merge request !424
This commit is contained in:
Torsten Grote
2016-11-18 16:23:01 +00:00
4 changed files with 13 additions and 18 deletions

View File

@@ -1,31 +0,0 @@
package org.briarproject.api.crypto;
import java.security.GeneralSecurityException;
public interface Signature {
/**
* @see {@link java.security.Signature#initSign(java.security.PrivateKey)}
*/
void initSign(PrivateKey k) throws GeneralSecurityException;
/**
* @see {@link java.security.Signature#initVafiry(java.security.PublicKey)}
*/
void initVerify(PublicKey k) throws GeneralSecurityException;
/** @see {@link java.security.Signature#update(byte)} */
void update(byte b);
/** @see {@link java.security.Signature#update(byte[])} */
void update(byte[] b);
/** @see {@link java.security.Signature#update(byte[], int, int)} */
void update(byte[] b, int off, int len);
/** @see {@link java.security.Signature#sign()} */
byte[] sign();
/** @see {@link java.security.Signature#verify(byte[])} */
boolean verify(byte[] signature);
}