CryptoPrimitive

  • CryptoPrimitive is an enumeration in Java that defines various cryptographic primitives.

  • It includes primitives for symmetric and asymmetric cryptography, hashing, and random number generation.

  • This enum inherits methods from java.lang.Enum and java.lang.Object for object comparison and manipulation.

  • Each enum value represents a specific cryptographic function, such as block cipher, key agreement, or signature.

  • Developers can use CryptoPrimitive to specify the type of cryptographic operation being performed.

public final enum CryptoPrimitive extends Enum<CryptoPrimitive>

An enumeration of cryptographic primitives.

Inherited Method Summary

Enum Values

public static final CryptoPrimitive BLOCK_CIPHER

Symmetric primitive: block cipher

public static final CryptoPrimitive KEY_AGREEMENT

Asymmetric primitive: key agreement and key distribution

public static final CryptoPrimitive KEY_ENCAPSULATION

Asymmetric primitive: key encapsulation mechanism

public static final CryptoPrimitive KEY_WRAP

Symmetric primitive: key wrap

public static final CryptoPrimitive MAC

Symmetric primitive: message authentication code

public static final CryptoPrimitive MESSAGE_DIGEST

Hash function

public static final CryptoPrimitive PUBLIC_KEY_ENCRYPTION

Asymmetric primitive: public key encryption

public static final CryptoPrimitive SECURE_RANDOM

Cryptographic random number generator

public static final CryptoPrimitive SIGNATURE

Asymmetric primitive: signature scheme

public static final CryptoPrimitive STREAM_CIPHER

Symmetric primitive: stream cipher