public class NativeConstants extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Indicates the requested operation failed.
|
static int |
ERROR_AEAD_AUTH
Indicates an AEAD Authentication failure.
|
static int |
ERROR_INVALID_PARAMETER
Indicates an invalid parameter.
|
static int |
ERROR_OOM
Indicates an OOM occurred on the native memory used by the native implementation.
|
static int |
KEY_TYPE_PRIVATE
Value for
private keys (RSA, EC). |
static int |
KEY_TYPE_PUBLIC
Value for
public keys (RSA, EC). |
static int |
KEY_TYPE_SECRET
Value for
secret keys (AES). |
static int |
SUCCESS
Indicates the requested operation was successful.
|
public static final int ERROR
public static final int ERROR_AEAD_AUTH
This is relevant only for Ciphers using AEAD, like CCM/GCM.
public static final int ERROR_INVALID_PARAMETER
public static final int ERROR_OOM
This library may then attempt to GC and free any crypto-related native resource that are lazily freed and most likely use the same native memory pool before calling the native method again.
public static final int KEY_TYPE_PRIVATE
private keys (RSA, EC).public static final int KEY_TYPE_PUBLIC
public keys (RSA, EC).public static final int KEY_TYPE_SECRET
secret keys (AES).public static final int SUCCESS