com.google.crypto.tink.proto.HpkeKdf 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.HpkeKdf}
*/
public enum HpkeKdf
implements com.google.protobuf.Internal.EnumLite {
/**
* KDF_UNKNOWN = 0;
*/
KDF_UNKNOWN(0),
/**
* HKDF_SHA256 = 1;
*/
HKDF_SHA256(1),
/**
* HKDF_SHA384 = 2;
*/
HKDF_SHA384(2),
/**
* HKDF_SHA512 = 3;
*/
HKDF_SHA512(3),
UNRECOGNIZED(-1),
;
/**
* KDF_UNKNOWN = 0;
*/
public static final int KDF_UNKNOWN_VALUE = 0;
/**
* HKDF_SHA256 = 1;
*/
public static final int HKDF_SHA256_VALUE = 1;
/**
* HKDF_SHA384 = 2;
*/
public static final int HKDF_SHA384_VALUE = 2;
/**
* HKDF_SHA512 = 3;
*/
public static final int HKDF_SHA512_VALUE = 3;
@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 HpkeKdf valueOf(int value) {
return forNumber(value);
}
public static HpkeKdf forNumber(int value) {
switch (value) {
case 0: return KDF_UNKNOWN;
case 1: return HKDF_SHA256;
case 2: return HKDF_SHA384;
case 3: return HKDF_SHA512;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HpkeKdf> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public HpkeKdf findValueByNumber(int number) {
return HpkeKdf.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return HpkeKdfVerifier.INSTANCE;
}
private static final class HpkeKdfVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new HpkeKdfVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return HpkeKdf.forNumber(number) != null;
}
};
private final int value;
private HpkeKdf(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.crypto.tink.HpkeKdf)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy