Match slot ID's to keystore aliases

This commit is contained in:
Alexander Bakker 2018-02-10 17:20:41 +01:00
parent c24b691a26
commit 576f908e01
13 changed files with 143 additions and 51 deletions

View file

@ -120,7 +120,7 @@ public class CryptoUtils {
return generateRandomBytes(CRYPTO_NONCE_SIZE);
}
private static byte[] generateRandomBytes(int length) {
public static byte[] generateRandomBytes(int length) {
SecureRandom random = new SecureRandom();
byte[] data = new byte[length];
random.nextBytes(data);