NextBytes

class NextBytes : SecureRandomParameters
kotlin.Any
   ↳ java.security.DrbgParameters.NextBytes

DRBG parameters for random bits generation. It is used in SecureRandom#nextBytes(byte[], SecureRandomParameters).

Summary

Public methods
ByteArray!

Returns the requested additional input.

Boolean

Returns whether prediction resistance is requested.

Int

Returns the security strength requested in bits.

Public methods

getAdditionalInput

fun getAdditionalInput(): ByteArray!

Returns the requested additional input.

Return
ByteArray! the requested additional input, null if not requested. A new byte array is returned each time this method is called.

getPredictionResistance

fun getPredictionResistance(): Boolean

Returns whether prediction resistance is requested.

Return
Boolean whether prediction resistance is requested

getStrength

fun getStrength(): Int

Returns the security strength requested in bits.

Return
Int the strength requested, or -1 if the effective strength should be used.