Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

pack-priv Class JcaNonceGenerator

extends Object
implements TlsNonceGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsNonceGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.digests.SHA512Digest, org.bouncycastle.crypto.prng.SP800SecureRandom, .SP800SecureRandomBuilder, org.bouncycastle.tls.crypto.TlsNonceGenerator

Field Summary

Modifier and TypeField and Description
private final SP800SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv
JcaNonceGenerator(SecureRandom entropySource, byte[] additionalData)

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateNonce(int
the length, in bytes, of the nonce to generate.
size
)

Implements org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Generate a nonce byte[] string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

randomback to summary
private final SP800SecureRandom random

Constructor Detail

JcaNonceGeneratorback to summary
pack-priv JcaNonceGenerator(SecureRandom entropySource, byte[] additionalData)

Method Detail

generateNonceback to summary
public byte[] generateNonce(int size)

Implements org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Doc from org.bouncycastle.tls.crypto.TlsNonceGenerator.generateNonce.

Generate a nonce byte[] string.

Parameters
size:int

the length, in bytes, of the nonce to generate.

Returns:byte[]

the nonce value.