klyn.cryptography.KeyGenerator.initialize
method

    public initialize(sizeBits as Int) as Void throws CryptoException:

Description

Configures the generated key size.

Parameters

Parameter | Description
--- | ---
`sizeBits` | Key size in bits.

Throws

- CryptoException when the size is invalid.

Example

    import klyn.cryptography

    generator = AESKeyGenerator()
    generator.initialize(256)