APIdia Launch Partner
Top Fields Constructors Methods
sun.security.provider

public Class HmacDrbg

extends AbstractHashDrbg
Class Inheritance
Imports
javax.crypto.Mac, javax.crypto.spec.SecretKeySpec, java.security.InvalidKeyException, .NoSuchAlgorithmException, .NoSuchProviderException, .SecureRandomParameters, java.util.Arrays, .Collections, .HexFormat, .List

Field Summary

Modifier and TypeField and Description
private byte[]
k

private Mac
private String
private byte[]
v

Inherited from sun.security.provider.AbstractHashDrbg:
outLenseedLen

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
generateAlgorithm(byte[]
the array to be filled in with random bytes.
result
,
byte[] additionalInput)

Implements abstract sun.security.provider.AbstractDrbg.generateAlgorithm.

Generates a user-specified number of random bytes.

protected final synchronized void
hashReseedInternal(List<byte[]> input)

Implements abstract sun.security.provider.AbstractHashDrbg.hashReseedInternal.

Operates on multiple inputs.

protected void
initEngine()

Implements abstract sun.security.provider.AbstractDrbg.initEngine.

This call, used by the constructors, instantiates the digest.

private void
private void
update(List<byte[]> inputs)

Inherited from sun.security.provider.AbstractHashDrbg:
chooseAlgorithmAndStrengthinstantiateAlgorithmreseedAlgorithm

Field Detail

kback to summary
private byte[] k
macback to summary
private Mac mac
macAlgback to summary
private String macAlg
vback to summary
private byte[] v

Constructor Detail

HmacDrbgback to summary
public HmacDrbg(SecureRandomParameters params)
Annotations
@SuppressWarnings:this-escape

Method Detail

generateAlgorithmback to summary
public synchronized void generateAlgorithm(byte[] result, byte[] additionalInput)

Implements abstract sun.security.provider.AbstractDrbg.generateAlgorithm.

Generates a user-specified number of random bytes.

Parameters
result:byte[]

the array to be filled in with random bytes.

Annotations
@Override
hashReseedInternalback to summary
protected final synchronized void hashReseedInternal(List<byte[]> input)

Implements abstract sun.security.provider.AbstractHashDrbg.hashReseedInternal.

Doc from sun.security.provider.AbstractHashDrbg.hashReseedInternal.

Operates on multiple inputs.

Annotations
@Override
initEngineback to summary
protected void initEngine()

Implements abstract sun.security.provider.AbstractDrbg.initEngine.

This call, used by the constructors, instantiates the digest.

Annotations
@Override
statusback to summary
private void status()
updateback to summary
private void update(List<byte[]> inputs)