public abstract class KeyStoreConstants extends Object
KeyStore.SystemCapability.Security#KEYSTORE_PROVIDER| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
CRYPTO_PARAMETER_BLOCK_MODE |
Indicates the block cipher mode used for encryption.
|
static int |
CRYPTO_PARAMETER_DIGEST |
Indicates the digest algorithm used for encryption.
|
static int |
CRYPTO_PARAMETER_ENCRYPT_PADDING |
Indicates the padding mode used for encryption.
|
static int |
CRYPTO_PARAMETER_SIGNATURE_PADDING |
Indicates the padding mode used for signing.
|
static String |
DIGEST_ALGORITHM_MD5 |
Indicates the MD5 digest algorithm.
|
static String |
DIGEST_ALGORITHM_NONE |
Indicates the digest mode
NONE. |
static String |
DIGEST_ALGORITHM_SHA1 |
Indicates the SHA-1 digest algorithm.
|
static String |
DIGEST_ALGORITHM_SHA224 |
Indicates the SHA-224 digest algorithm.
|
static String |
DIGEST_ALGORITHM_SHA256 |
Indicates the SHA-256 digest algorithm.
|
static String |
DIGEST_ALGORITHM_SHA384 |
Indicates the SHA-384 digest algorithm.
|
static String |
DIGEST_ALGORITHM_SHA512 |
Indicates the SHA-512 digest algorithm.
|
static int |
FLAG_KEY_ACCESSIBLE_NEED_DEVICE_UNLOCK |
Indicates whether the device needs to be unlocked to allow key access.
|
static int |
FLAG_KEY_ACCESSIBLE_NEED_RANDOMIZED_ENCRYPTION |
Indicates whether to apply randomized encryption for key access.
|
static int |
FLAG_KEY_ACCESSIBLE_NEEDED_USER_AUTH |
Indicates whether user authorization is required for key access.
|
static String |
NONE_ENCRYPTION_PADDING |
Uses encryption with no padding.
|
static String |
OPTIMAL_ASYMMETRIC_ENCRYPTION_PADDING |
Uses RSA encryption with OAEPPadding.
|
static String |
PKCS1_ENCRYPTION_PADDING |
Uses encryption with PKCS1Padding.
|
static String |
PKCS1_SIGNATURE_PADDING |
Uses RSA signing with PKCS1 padding.
|
static String |
PKCS7_ENCRYPTION_PADDING |
Uses encryption with PKCS7Padding.
|
static String |
PROBABILISTIC_SIGNATURE_PADDING |
Uses RSA signing with PSS padding.
|
static int |
PURPOSE_CAN_DECRYPT |
Indicates that the key is used for decryption.
|
static int |
PURPOSE_CAN_ENCRYPT |
Indicates that the key is used for encryption.
|
static int |
PURPOSE_CAN_SIGN |
Indicates that the key is used for signing.
|
static int |
PURPOSE_CAN_VERIFY |
Indicates that the key is used for signature verification.
|
static int |
PURPOSE_CAN_WRAP |
Indicates to wrap the key material.
|
static String |
SEC_BLOCK_MODE_CBC |
Indicates the CBC mode, which is not recommended due to its low security.
|
static String |
SEC_BLOCK_MODE_CTR |
Indicates the CTR block cipher mode.
|
static String |
SEC_BLOCK_MODE_ECB |
Indicates the ECB mode, which is not recommended due to its low security.
|
static String |
SEC_BLOCK_MODE_GCM |
Indicates the GCM block cipher mode.
|
static String |
SEC_KEY_ALGORITHM_AES |
Indicates the AES algorithm.
|
static String |
SEC_KEY_ALGORITHM_EC |
Indicates the EC algorithm.
|
static String |
SEC_KEY_ALGORITHM_HMAC_SHA1 |
Indicates the HMAC algorithm that uses SHA1 to generate hash values.
|
static String |
SEC_KEY_ALGORITHM_HMAC_SHA224 |
Indicates the HMAC algorithm that uses SHA224 to generate hash values.
|
static String |
SEC_KEY_ALGORITHM_HMAC_SHA256 |
Indicates the HMAC algorithm that uses SHA256 to generate hash values.
|
static String |
SEC_KEY_ALGORITHM_HMAC_SHA384 |
Indicates the HMAC algorithm that uses SHA384 to generate hash values.
|
static String |
SEC_KEY_ALGORITHM_HMAC_SHA512 |
Indicates the HMAC algorithm that uses SHA512 to generate hash values.
|
static String |
SEC_KEY_ALGORITHM_RSA |
Indicates the RSA algorithm.
|
static int |
SEC_KEY_SOURCE_GENERATED |
Indicates that the key was generated by HarmonyKeyStore.
|
static int |
SEC_KEY_SOURCE_IMPORTED |
Indicates that the key was imported to HarmonyKeyStore.
|
static int |
SEC_KEY_SOURCE_UNKNOWN |
Indicates that the source of the key is unknown.
|
public static final int CRYPTO_PARAMETER_BLOCK_MODE
public static final int CRYPTO_PARAMETER_DIGEST
public static final int CRYPTO_PARAMETER_ENCRYPT_PADDING
public static final int CRYPTO_PARAMETER_SIGNATURE_PADDING
public static final String DIGEST_ALGORITHM_MD5
public static final String DIGEST_ALGORITHM_NONE
NONE.public static final String DIGEST_ALGORITHM_SHA1
public static final String DIGEST_ALGORITHM_SHA224
public static final String DIGEST_ALGORITHM_SHA256
public static final String DIGEST_ALGORITHM_SHA384
public static final String DIGEST_ALGORITHM_SHA512
public static final int FLAG_KEY_ACCESSIBLE_NEEDED_USER_AUTH
public static final int FLAG_KEY_ACCESSIBLE_NEED_DEVICE_UNLOCK
public static final int FLAG_KEY_ACCESSIBLE_NEED_RANDOMIZED_ENCRYPTION
public static final String NONE_ENCRYPTION_PADDING
public static final String OPTIMAL_ASYMMETRIC_ENCRYPTION_PADDING
public static final String PKCS1_ENCRYPTION_PADDING
public static final String PKCS1_SIGNATURE_PADDING
public static final String PKCS7_ENCRYPTION_PADDING
public static final String PROBABILISTIC_SIGNATURE_PADDING
public static final int PURPOSE_CAN_DECRYPT
public static final int PURPOSE_CAN_ENCRYPT
public static final int PURPOSE_CAN_SIGN
public static final int PURPOSE_CAN_VERIFY
public static final int PURPOSE_CAN_WRAP
public static final String SEC_BLOCK_MODE_CBC
public static final String SEC_BLOCK_MODE_CTR
public static final String SEC_BLOCK_MODE_ECB
public static final String SEC_BLOCK_MODE_GCM
public static final String SEC_KEY_ALGORITHM_AES
public static final String SEC_KEY_ALGORITHM_EC
public static final String SEC_KEY_ALGORITHM_HMAC_SHA1
public static final String SEC_KEY_ALGORITHM_HMAC_SHA224
public static final String SEC_KEY_ALGORITHM_HMAC_SHA256
public static final String SEC_KEY_ALGORITHM_HMAC_SHA384
public static final String SEC_KEY_ALGORITHM_HMAC_SHA512
public static final String SEC_KEY_ALGORITHM_RSA
public static final int SEC_KEY_SOURCE_GENERATED
public static final int SEC_KEY_SOURCE_IMPORTED
public static final int SEC_KEY_SOURCE_UNKNOWN