Added in API level 24

CryptoPrimitive

class CryptoPrimitive
kotlin.Any
   ↳ kotlin.Enum<java.security.CryptoPrimitive>
   ↳ java.security.CryptoPrimitive

An enumeration of cryptographic primitives.

Summary

Enum values

Symmetric primitive: block cipher

Asymmetric primitive: key agreement and key distribution

Asymmetric primitive: key encapsulation mechanism

Symmetric primitive: key wrap

Symmetric primitive: message authentication code

Hash function

Asymmetric primitive: public key encryption

Cryptographic random number generator

Asymmetric primitive: signature scheme

Symmetric primitive: stream cipher

Enum values

BLOCK_CIPHER

Added in API level 24
enum val BLOCK_CIPHER : CryptoPrimitive

Symmetric primitive: block cipher

KEY_AGREEMENT

Added in API level 24
enum val KEY_AGREEMENT : CryptoPrimitive

Asymmetric primitive: key agreement and key distribution

KEY_ENCAPSULATION

Added in API level 24
enum val KEY_ENCAPSULATION : CryptoPrimitive

Asymmetric primitive: key encapsulation mechanism

KEY_WRAP

Added in API level 24
enum val KEY_WRAP : CryptoPrimitive

Symmetric primitive: key wrap

MAC

Added in API level 24
enum val MAC : CryptoPrimitive

Symmetric primitive: message authentication code

MESSAGE_DIGEST

Added in API level 24
enum val MESSAGE_DIGEST : CryptoPrimitive

Hash function

PUBLIC_KEY_ENCRYPTION

Added in API level 24
enum val PUBLIC_KEY_ENCRYPTION : CryptoPrimitive

Asymmetric primitive: public key encryption

SECURE_RANDOM

Added in API level 24
enum val SECURE_RANDOM : CryptoPrimitive

Cryptographic random number generator

SIGNATURE

Added in API level 24
enum val SIGNATURE : CryptoPrimitive

Asymmetric primitive: signature scheme

STREAM_CIPHER

Added in API level 24
enum val STREAM_CIPHER : CryptoPrimitive

Symmetric primitive: stream cipher