Class NativeSecureRandomSpi
- java.lang.Object
-
- com.microej.crypto.internal.securerandom.NativeSecureRandomSpi
-
public class NativeSecureRandomSpi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NativeSecureRandomSpi()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidnativeClose(int nativeId)Closes the native resourcestatic voidnativeGenerateSeed(int id, byte[] bytes, int numBytes)static intnativeGetCloseId()Gets the id of the native close function.static intnativeInit()static voidnativeNextBytes(int id, byte[] bytes, int numBytes)static voidnativeSetSeed(int id, byte[] seed, int seedLength)
-
-
-
Method Detail
-
nativeInit
public static int nativeInit() throws ej.sni.NativeException, java.security.NoSuchAlgorithmException- Throws:
ej.sni.NativeExceptionjava.security.NoSuchAlgorithmException
-
nativeSetSeed
public static void nativeSetSeed(int id, byte[] seed, int seedLength) throws java.lang.Exception- Throws:
java.lang.Exception
-
nativeNextBytes
public static void nativeNextBytes(int id, byte[] bytes, int numBytes) throws java.lang.Exception- Throws:
java.lang.Exception
-
nativeGenerateSeed
public static void nativeGenerateSeed(int id, byte[] bytes, int numBytes) throws java.lang.Exception- Throws:
java.lang.Exception
-
nativeClose
public static void nativeClose(int nativeId) throws ej.sni.NativeExceptionCloses the native resource- Parameters:
nativeId- the resource id- Throws:
ej.sni.NativeException
-
nativeGetCloseId
public static int nativeGetCloseId() throws ej.sni.NativeExceptionGets the id of the native close function.- Returns:
- the id of the static native close function
- Throws:
ej.sni.NativeException
-
-