Search in sources :

Example 11 with SharedKey

use of com.quorum.tessera.encryption.SharedKey in project tessera by ConsenSys.

the class KaliumTest method generatingRandomKeyReturnsCorrectSize.

@Test
public void generatingRandomKeyReturnsCorrectSize() {
    final int expectedKeysize = 32;
    final SharedKey key = this.kalium.createSingleKey();
    verify(this.sodium).randombytes(any(byte[].class), eq(expectedKeysize));
}
Also used : SharedKey(com.quorum.tessera.encryption.SharedKey) Test(org.junit.Test)

Aggregations

SharedKey (com.quorum.tessera.encryption.SharedKey)11 Test (org.junit.Test)10 Nonce (com.quorum.tessera.encryption.Nonce)4 KeyPair (com.quorum.tessera.encryption.KeyPair)1