APIdia Launch Partner
Top Description Methods
sun.security.provider

public Interface EntropySource


An interface of a source of entropy input.
Since
9

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the byte array containing entropy
getEntropy
(int
minimum entropy required, in bytes
minEntropy
,
int
minimum length of output, in bytes
minLength
,
int
maximum length of output, in bytes
maxLength
,
boolean
whether prediction resistance is required
pr
)

Returns a byte array containing entropy.

Method Detail

getEntropyback to summary
public byte[] getEntropy(int minEntropy, int minLength, int maxLength, boolean pr)

Returns a byte array containing entropy.

This maps to the Get_entropy_input function defined in Section 9 of NIST SP 800-90Ar1.

Parameters
minEntropy:int

minimum entropy required, in bytes

minLength:int

minimum length of output, in bytes

maxLength:int

maximum length of output, in bytes

pr:boolean

whether prediction resistance is required

Returns:byte[]

the byte array containing entropy