public abstract class ECGKeyExchange
extends java.lang.Object
Constructor and Description |
---|
ECGKeyExchange() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
signatureEquals(byte[] sig1,
byte[] sig2)
Verifies if two signatures are exactly equal using a byte-level
comparison of the values.
|
static byte[] |
signPubKey(Digest digest,
byte[] encodedPubKey,
APrioriInfo sharedInfo,
boolean isInitiator) |
static boolean |
verifyPubKey(Digest digest,
byte[] signedPubKey,
APrioriInfo sharedInfo,
boolean isInitiator) |
public static byte[] signPubKey(Digest digest, byte[] encodedPubKey, APrioriInfo sharedInfo, boolean isInitiator) throws DataLengthException
DataLengthException
public static boolean verifyPubKey(Digest digest, byte[] signedPubKey, APrioriInfo sharedInfo, boolean isInitiator) throws DataLengthException
DataLengthException
private static boolean signatureEquals(byte[] sig1, byte[] sig2)
sig1
- The first signature to comparesig2
- The second signature to compare