blob: f3ec0489677974183a4bdb3ba04de35d7eeeb224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.bouncycastle.crypto.tls;
import org.bouncycastle.crypto.CryptoException;
import org.bouncycastle.crypto.Signer;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
public interface TlsSigner {
void init(TlsContext context);
byte[] generateRawSignature(AsymmetricKeyParameter privateKey, byte[] md5AndSha1) throws CryptoException;
boolean verifyRawSignature(byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] md5AndSha1)
throws CryptoException;
Signer createSigner(AsymmetricKeyParameter privateKey);
Signer createVerifyer(AsymmetricKeyParameter publicKey);
boolean isValidPublicKey(AsymmetricKeyParameter publicKey);
}
|