Add unit tests for static key derivation.

This commit is contained in:
akwizgran
2019-04-10 15:18:26 +01:00
parent d5ac2c9ead
commit fccf735a89
6 changed files with 389 additions and 173 deletions

View File

@@ -33,14 +33,14 @@ public interface TransportCrypto {
* @param alice whether the keys are for use by Alice or Bob.
*/
StaticTransportKeys deriveStaticTransportKeys(TransportId t,
SecretKey rootKey, boolean alice, long timePeriod);
SecretKey rootKey, long timePeriod, boolean alice);
/**
* Updates the given static transport keys to the given time period. If
* the keys are for the given period or any later period they are not
* updated.
*/
StaticTransportKeys updateTransportKeys(StaticTransportKeys k,
StaticTransportKeys updateStaticTransportKeys(StaticTransportKeys k,
long timePeriod);
/**