Kotlin accessor
This commit is contained in:
parent
0195ef3dc8
commit
c2ea674989
|
@ -87,7 +87,7 @@ internal class CryptoManagement(val logger: KLogger,
|
||||||
if (privateKeyBytes == null || publicKeyBytes == null) {
|
if (privateKeyBytes == null || publicKeyBytes == null) {
|
||||||
try {
|
try {
|
||||||
// seed our RNG based off of this and create our ECC keys
|
// seed our RNG based off of this and create our ECC keys
|
||||||
val seedBytes = Entropy.get("There are no ECC keys for the ${type.simpleName} yet")
|
val seedBytes = Entropy["There are no ECC keys for the ${type.simpleName} yet"]
|
||||||
logger.info("Now generating ECC ($curve25519) keys. Please wait!")
|
logger.info("Now generating ECC ($curve25519) keys. Please wait!")
|
||||||
|
|
||||||
secureRandom.nextBytes(seedBytes)
|
secureRandom.nextBytes(seedBytes)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user