Package org.conscrypt
Class OpenSSLRandom
- java.lang.Object
-
- java.security.SecureRandomSpi
-
- org.conscrypt.OpenSSLRandom
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public final class OpenSSLRandom extends java.security.SecureRandomSpi implements java.io.Serializable
ImplementsSecureRandom
using BoringSSL's RAND interface.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description OpenSSLRandom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
engineGenerateSeed(int numBytes)
protected void
engineNextBytes(byte[] bytes)
protected void
engineSetSeed(byte[] seed)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
engineSetSeed
protected void engineSetSeed(byte[] seed)
- Specified by:
engineSetSeed
in classjava.security.SecureRandomSpi
-
engineNextBytes
protected void engineNextBytes(byte[] bytes)
- Specified by:
engineNextBytes
in classjava.security.SecureRandomSpi
-
engineGenerateSeed
protected byte[] engineGenerateSeed(int numBytes)
- Specified by:
engineGenerateSeed
in classjava.security.SecureRandomSpi
-
-