[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/kotlin/java/security/CryptoPrimitive [Back]  [Original]

CryptoPrimitive  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page