klyn.cryptography.KeyGenerator.initialize
method
public initialize(sizeBits as Int) as Void throws CryptoException:
Description

Configures the generated key size.

Parameters
  • sizeBits Key size in bits.
Throws
  • CryptoException when the size is invalid. ```klyn import klyn.cryptography generator = AESKeyGenerator() generator.initialize(256) ```