Fixed some key derivation bugs and removed an unnecessary argument.

CryptoComponentImpl needs some unit tests.
This commit is contained in:
akwizgran
2012-03-29 20:11:11 +01:00
parent 15d7fd5796
commit b01b17f2b1
3 changed files with 11 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ public interface CryptoComponent {
byte[][] deriveInitialSecrets(byte[] ourPublicKey, byte[] theirPublicKey,
PrivateKey ourPrivateKey, int invitationCode, boolean initiator);
int deriveConfirmationCode(byte[] secret, boolean initiator);
int deriveConfirmationCode(byte[] secret);
byte[] deriveNextSecret(byte[] secret, int index, long connection);