com.google.crypto.tink.proto.HpkeKem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tink-android Show documentation
Show all versions of tink-android Show documentation
Tink is a small cryptographic library that provides a safe, simple, agile and fast way to accomplish some common cryptographic tasks.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/hpke.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
* Protobuf enum {@code google.crypto.tink.HpkeKem}
*/
public enum HpkeKem
implements com.google.protobuf.Internal.EnumLite {
/**
* KEM_UNKNOWN = 0;
*/
KEM_UNKNOWN(0),
/**
* DHKEM_X25519_HKDF_SHA256 = 1;
*/
DHKEM_X25519_HKDF_SHA256(1),
/**
* DHKEM_P256_HKDF_SHA256 = 2;
*/
DHKEM_P256_HKDF_SHA256(2),
/**
* DHKEM_P384_HKDF_SHA384 = 3;
*/
DHKEM_P384_HKDF_SHA384(3),
/**
* DHKEM_P521_HKDF_SHA512 = 4;
*/
DHKEM_P521_HKDF_SHA512(4),
UNRECOGNIZED(-1),
;
/**
* KEM_UNKNOWN = 0;
*/
public static final int KEM_UNKNOWN_VALUE = 0;
/**
* DHKEM_X25519_HKDF_SHA256 = 1;
*/
public static final int DHKEM_X25519_HKDF_SHA256_VALUE = 1;
/**
* DHKEM_P256_HKDF_SHA256 = 2;
*/
public static final int DHKEM_P256_HKDF_SHA256_VALUE = 2;
/**
* DHKEM_P384_HKDF_SHA384 = 3;
*/
public static final int DHKEM_P384_HKDF_SHA384_VALUE = 3;
/**
* DHKEM_P521_HKDF_SHA512 = 4;
*/
public static final int DHKEM_P521_HKDF_SHA512_VALUE = 4;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HpkeKem valueOf(int value) {
return forNumber(value);
}
public static HpkeKem forNumber(int value) {
switch (value) {
case 0: return KEM_UNKNOWN;
case 1: return DHKEM_X25519_HKDF_SHA256;
case 2: return DHKEM_P256_HKDF_SHA256;
case 3: return DHKEM_P384_HKDF_SHA384;
case 4: return DHKEM_P521_HKDF_SHA512;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HpkeKem> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public HpkeKem findValueByNumber(int number) {
return HpkeKem.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return HpkeKemVerifier.INSTANCE;
}
private static final class HpkeKemVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new HpkeKemVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return HpkeKem.forNumber(number) != null;
}
};
private final int value;
private HpkeKem(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.HpkeKem)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy