com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey 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/rsa_ssa_pkcs1.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
*
* key_type: type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PrivateKey
*
*
* Protobuf type {@code google.crypto.tink.RsaSsaPkcs1PrivateKey}
*/
public final class RsaSsaPkcs1PrivateKey extends
com.google.protobuf.GeneratedMessageLite<
RsaSsaPkcs1PrivateKey, RsaSsaPkcs1PrivateKey.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.RsaSsaPkcs1PrivateKey)
RsaSsaPkcs1PrivateKeyOrBuilder {
private RsaSsaPkcs1PrivateKey() {
d_ = com.google.protobuf.ByteString.EMPTY;
p_ = com.google.protobuf.ByteString.EMPTY;
q_ = com.google.protobuf.ByteString.EMPTY;
dp_ = com.google.protobuf.ByteString.EMPTY;
dq_ = com.google.protobuf.ByteString.EMPTY;
crt_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
private int version_;
/**
*
* Required.
*
*
* uint32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return version_;
}
/**
*
* Required.
*
*
* uint32 version = 1;
* @param value The version to set.
*/
private void setVersion(int value) {
version_ = value;
}
/**
*
* Required.
*
*
* uint32 version = 1;
*/
private void clearVersion() {
version_ = 0;
}
public static final int PUBLIC_KEY_FIELD_NUMBER = 2;
private com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey publicKey_;
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
@java.lang.Override
public boolean hasPublicKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey getPublicKey() {
return publicKey_ == null ? com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey.getDefaultInstance() : publicKey_;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
private void setPublicKey(com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey value) {
value.getClass();
publicKey_ = value;
bitField0_ |= 0x00000001;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergePublicKey(com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey value) {
value.getClass();
if (publicKey_ != null &&
publicKey_ != com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey.getDefaultInstance()) {
publicKey_ =
com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey.newBuilder(publicKey_).mergeFrom(value).buildPartial();
} else {
publicKey_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
private void clearPublicKey() { publicKey_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int D_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString d_;
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return d_;
}
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
* @param value The d to set.
*/
private void setD(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
d_ = value;
}
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
*/
private void clearD() {
d_ = getDefaultInstance().getD();
}
public static final int P_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString p_;
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
* @return The p.
*/
@java.lang.Override
public com.google.protobuf.ByteString getP() {
return p_;
}
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
* @param value The p to set.
*/
private void setP(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
p_ = value;
}
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
*/
private void clearP() {
p_ = getDefaultInstance().getP();
}
public static final int Q_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString q_;
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
* @return The q.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQ() {
return q_;
}
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
* @param value The q to set.
*/
private void setQ(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
q_ = value;
}
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
*/
private void clearQ() {
q_ = getDefaultInstance().getQ();
}
public static final int DP_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString dp_;
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
* @return The dp.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDp() {
return dp_;
}
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
* @param value The dp to set.
*/
private void setDp(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
dp_ = value;
}
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
*/
private void clearDp() {
dp_ = getDefaultInstance().getDp();
}
public static final int DQ_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString dq_;
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
* @return The dq.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDq() {
return dq_;
}
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
* @param value The dq to set.
*/
private void setDq(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
dq_ = value;
}
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
*/
private void clearDq() {
dq_ = getDefaultInstance().getDq();
}
public static final int CRT_FIELD_NUMBER = 8;
private com.google.protobuf.ByteString crt_;
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
* @return The crt.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCrt() {
return crt_;
}
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
* @param value The crt to set.
*/
private void setCrt(com.google.protobuf.ByteString value) {
java.lang.Class> valueClass = value.getClass();
crt_ = value;
}
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
*/
private void clearCrt() {
crt_ = getDefaultInstance().getCrt();
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* key_type: type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PrivateKey
*
*
* Protobuf type {@code google.crypto.tink.RsaSsaPkcs1PrivateKey}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.RsaSsaPkcs1PrivateKey)
com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKeyOrBuilder {
// Construct using com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Required.
*
*
* uint32 version = 1;
* @return The version.
*/
@java.lang.Override
public int getVersion() {
return instance.getVersion();
}
/**
*
* Required.
*
*
* uint32 version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(int value) {
copyOnWrite();
instance.setVersion(value);
return this;
}
/**
*
* Required.
*
*
* uint32 version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
copyOnWrite();
instance.clearVersion();
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
@java.lang.Override
public boolean hasPublicKey() {
return instance.hasPublicKey();
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
@java.lang.Override
public com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey getPublicKey() {
return instance.getPublicKey();
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
public Builder setPublicKey(com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey value) {
copyOnWrite();
instance.setPublicKey(value);
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
public Builder setPublicKey(
com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey.Builder builderForValue) {
copyOnWrite();
instance.setPublicKey(builderForValue.build());
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
public Builder mergePublicKey(com.google.crypto.tink.proto.RsaSsaPkcs1PublicKey value) {
copyOnWrite();
instance.mergePublicKey(value);
return this;
}
/**
*
* Required.
*
*
* .google.crypto.tink.RsaSsaPkcs1PublicKey public_key = 2;
*/
public Builder clearPublicKey() { copyOnWrite();
instance.clearPublicKey();
return this;
}
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
* @return The d.
*/
@java.lang.Override
public com.google.protobuf.ByteString getD() {
return instance.getD();
}
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
* @param value The d to set.
* @return This builder for chaining.
*/
public Builder setD(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setD(value);
return this;
}
/**
*
* Private exponent.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes d = 3;
* @return This builder for chaining.
*/
public Builder clearD() {
copyOnWrite();
instance.clearD();
return this;
}
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
* @return The p.
*/
@java.lang.Override
public com.google.protobuf.ByteString getP() {
return instance.getP();
}
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
* @param value The p to set.
* @return This builder for chaining.
*/
public Builder setP(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setP(value);
return this;
}
/**
*
* The following parameters are used to optimize RSA signature computation.
* The prime factor p of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes p = 4;
* @return This builder for chaining.
*/
public Builder clearP() {
copyOnWrite();
instance.clearP();
return this;
}
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
* @return The q.
*/
@java.lang.Override
public com.google.protobuf.ByteString getQ() {
return instance.getQ();
}
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
* @param value The q to set.
* @return This builder for chaining.
*/
public Builder setQ(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setQ(value);
return this;
}
/**
*
* The prime factor q of n.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes q = 5;
* @return This builder for chaining.
*/
public Builder clearQ() {
copyOnWrite();
instance.clearQ();
return this;
}
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
* @return The dp.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDp() {
return instance.getDp();
}
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
* @param value The dp to set.
* @return This builder for chaining.
*/
public Builder setDp(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDp(value);
return this;
}
/**
*
* d mod (p - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dp = 6;
* @return This builder for chaining.
*/
public Builder clearDp() {
copyOnWrite();
instance.clearDp();
return this;
}
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
* @return The dq.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDq() {
return instance.getDq();
}
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
* @param value The dq to set.
* @return This builder for chaining.
*/
public Builder setDq(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDq(value);
return this;
}
/**
*
* d mod (q - 1).
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes dq = 7;
* @return This builder for chaining.
*/
public Builder clearDq() {
copyOnWrite();
instance.clearDq();
return this;
}
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
* @return The crt.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCrt() {
return instance.getCrt();
}
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
* @param value The crt to set.
* @return This builder for chaining.
*/
public Builder setCrt(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCrt(value);
return this;
}
/**
*
* Chinese Remainder Theorem coefficient q^(-1) mod p.
* Unsigned big integer in bigendian representation.
* Required.
*
*
* bytes crt = 8;
* @return This builder for chaining.
*/
public Builder clearCrt() {
copyOnWrite();
instance.clearCrt();
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.RsaSsaPkcs1PrivateKey)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"version_",
"publicKey_",
"d_",
"p_",
"q_",
"dp_",
"dq_",
"crt_",
};
java.lang.String info =
"\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\u000b\u0002\u1009\u0000\u0003" +
"\n\u0004\n\u0005\n\u0006\n\u0007\n\b\n";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.crypto.tink.RsaSsaPkcs1PrivateKey)
private static final com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey DEFAULT_INSTANCE;
static {
RsaSsaPkcs1PrivateKey defaultInstance = new RsaSsaPkcs1PrivateKey();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
RsaSsaPkcs1PrivateKey.class, defaultInstance);
}
public static com.google.crypto.tink.proto.RsaSsaPkcs1PrivateKey getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy