Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/ecies_aead_hkdf.proto
package com.google.crypto.tink.proto;
/**
*
* Parameters of KEM (Key Encapsulation Mechanism)
*
*
* Protobuf type {@code google.crypto.tink.EciesHkdfKemParams}
*/
public final class EciesHkdfKemParams extends
com.google.protobuf.GeneratedMessageLite<
EciesHkdfKemParams, EciesHkdfKemParams.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.EciesHkdfKemParams)
EciesHkdfKemParamsOrBuilder {
private EciesHkdfKemParams() {
hkdfSalt_ = com.google.protobuf.ByteString.EMPTY;
}
public static final int CURVE_TYPE_FIELD_NUMBER = 1;
private int curveType_;
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The enum numeric value on the wire for curveType.
*/
@java.lang.Override
public int getCurveTypeValue() {
return curveType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The curveType.
*/
@java.lang.Override
public com.google.crypto.tink.proto.EllipticCurveType getCurveType() {
com.google.crypto.tink.proto.EllipticCurveType result = com.google.crypto.tink.proto.EllipticCurveType.forNumber(curveType_);
return result == null ? com.google.crypto.tink.proto.EllipticCurveType.UNRECOGNIZED : result;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The enum numeric value on the wire for curveType to set.
*/
private void setCurveTypeValue(int value) {
curveType_ = value;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The curveType to set.
*/
private void setCurveType(com.google.crypto.tink.proto.EllipticCurveType value) {
curveType_ = value.getNumber();
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
*/
private void clearCurveType() {
curveType_ = 0;
}
public static final int HKDF_HASH_TYPE_FIELD_NUMBER = 2;
private int hkdfHashType_;
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The enum numeric value on the wire for hkdfHashType.
*/
@java.lang.Override
public int getHkdfHashTypeValue() {
return hkdfHashType_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The hkdfHashType.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getHkdfHashType() {
com.google.crypto.tink.proto.HashType result = com.google.crypto.tink.proto.HashType.forNumber(hkdfHashType_);
return result == null ? com.google.crypto.tink.proto.HashType.UNRECOGNIZED : result;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The enum numeric value on the wire for hkdfHashType to set.
*/
private void setHkdfHashTypeValue(int value) {
hkdfHashType_ = value;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The hkdfHashType to set.
*/
private void setHkdfHashType(com.google.crypto.tink.proto.HashType value) {
hkdfHashType_ = value.getNumber();
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
*/
private void clearHkdfHashType() {
hkdfHashType_ = 0;
}
public static final int HKDF_SALT_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString hkdfSalt_;
/**
*
* Parameters of KEM (Key Encapsulation Mechanism)
*
*
* Protobuf type {@code google.crypto.tink.EciesHkdfKemParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.EciesHkdfKemParams, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.EciesHkdfKemParams)
com.google.crypto.tink.proto.EciesHkdfKemParamsOrBuilder {
// Construct using com.google.crypto.tink.proto.EciesHkdfKemParams.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return The enum numeric value on the wire for curveType.
*/
@java.lang.Override
public int getCurveTypeValue() {
return instance.getCurveTypeValue();
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The curveType to set.
* @return This builder for chaining.
*/
public Builder setCurveTypeValue(int value) {
copyOnWrite();
instance.setCurveTypeValue(value);
return this;
}
/**
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @param value The enum numeric value on the wire for curveType to set.
* @return This builder for chaining.
*/
public Builder setCurveType(com.google.crypto.tink.proto.EllipticCurveType value) {
copyOnWrite();
instance.setCurveType(value);
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.EllipticCurveType curve_type = 1;
* @return This builder for chaining.
*/
public Builder clearCurveType() {
copyOnWrite();
instance.clearCurveType();
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return The enum numeric value on the wire for hkdfHashType.
*/
@java.lang.Override
public int getHkdfHashTypeValue() {
return instance.getHkdfHashTypeValue();
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The hkdfHashType to set.
* @return This builder for chaining.
*/
public Builder setHkdfHashTypeValue(int value) {
copyOnWrite();
instance.setHkdfHashTypeValue(value);
return this;
}
/**
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @param value The enum numeric value on the wire for hkdfHashType to set.
* @return This builder for chaining.
*/
public Builder setHkdfHashType(com.google.crypto.tink.proto.HashType value) {
copyOnWrite();
instance.setHkdfHashType(value);
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.HashType hkdf_hash_type = 2;
* @return This builder for chaining.
*/
public Builder clearHkdfHashType() {
copyOnWrite();
instance.clearHkdfHashType();
return this;
}
/**
*