Extract contact exchange protocol from BT introduction protocol

This commit is contained in:
str4d
2016-02-25 22:01:15 +00:00
parent d7c7a72710
commit 701cfdba48
8 changed files with 317 additions and 6 deletions

View File

@@ -214,7 +214,7 @@ class CryptoComponentImpl implements CryptoComponent {
return new SecretKey(macKdf(master, alice ? BT_A_INVITE : BT_B_INVITE));
}
public byte[] deriveBTSignatureNonce(SecretKey master, boolean alice) {
public byte[] deriveSignatureNonce(SecretKey master, boolean alice) {
return macKdf(master, alice ? BT_A_NONCE : BT_B_NONCE);
}