blob: b966a2a2c8ea031114cb64738ded79e4feb1285e [file] [log] [blame]
// Copyright 2020 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: third_party/tink/proto/rsa_ssa_pkcs1.proto
package rsa_ssa_pkcs1_go_proto
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
common_go_proto "github.com/google/tink/go/proto/common_go_proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type RsaSsaPkcs1Params struct {
// Hash function used in computing hash of the signing message
// (see https://tools.ietf.org/html/rfc8017#section-9.2).
// Required.
HashType common_go_proto.HashType `protobuf:"varint,1,opt,name=hash_type,json=hashType,proto3,enum=google.crypto.tink.HashType" json:"hash_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RsaSsaPkcs1Params) Reset() { *m = RsaSsaPkcs1Params{} }
func (m *RsaSsaPkcs1Params) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPkcs1Params) ProtoMessage() {}
func (*RsaSsaPkcs1Params) Descriptor() ([]byte, []int) {
return fileDescriptor_294a4bbabf091722, []int{0}
}
func (m *RsaSsaPkcs1Params) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPkcs1Params.Unmarshal(m, b)
}
func (m *RsaSsaPkcs1Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPkcs1Params.Marshal(b, m, deterministic)
}
func (m *RsaSsaPkcs1Params) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPkcs1Params.Merge(m, src)
}
func (m *RsaSsaPkcs1Params) XXX_Size() int {
return xxx_messageInfo_RsaSsaPkcs1Params.Size(m)
}
func (m *RsaSsaPkcs1Params) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPkcs1Params.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPkcs1Params proto.InternalMessageInfo
func (m *RsaSsaPkcs1Params) GetHashType() common_go_proto.HashType {
if m != nil {
return m.HashType
}
return common_go_proto.HashType_UNKNOWN_HASH
}
// key_type: type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PublicKey
type RsaSsaPkcs1PublicKey struct {
// Required.
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// Required.
Params *RsaSsaPkcs1Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
// Modulus.
// Unsigned big integer in bigendian representation.
N []byte `protobuf:"bytes,3,opt,name=n,proto3" json:"n,omitempty"`
// Public exponent.
// Unsigned big integer in bigendian representation.
E []byte `protobuf:"bytes,4,opt,name=e,proto3" json:"e,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RsaSsaPkcs1PublicKey) Reset() { *m = RsaSsaPkcs1PublicKey{} }
func (m *RsaSsaPkcs1PublicKey) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPkcs1PublicKey) ProtoMessage() {}
func (*RsaSsaPkcs1PublicKey) Descriptor() ([]byte, []int) {
return fileDescriptor_294a4bbabf091722, []int{1}
}
func (m *RsaSsaPkcs1PublicKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPkcs1PublicKey.Unmarshal(m, b)
}
func (m *RsaSsaPkcs1PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPkcs1PublicKey.Marshal(b, m, deterministic)
}
func (m *RsaSsaPkcs1PublicKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPkcs1PublicKey.Merge(m, src)
}
func (m *RsaSsaPkcs1PublicKey) XXX_Size() int {
return xxx_messageInfo_RsaSsaPkcs1PublicKey.Size(m)
}
func (m *RsaSsaPkcs1PublicKey) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPkcs1PublicKey.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPkcs1PublicKey proto.InternalMessageInfo
func (m *RsaSsaPkcs1PublicKey) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *RsaSsaPkcs1PublicKey) GetParams() *RsaSsaPkcs1Params {
if m != nil {
return m.Params
}
return nil
}
func (m *RsaSsaPkcs1PublicKey) GetN() []byte {
if m != nil {
return m.N
}
return nil
}
func (m *RsaSsaPkcs1PublicKey) GetE() []byte {
if m != nil {
return m.E
}
return nil
}
// key_type: type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PrivateKey
type RsaSsaPkcs1PrivateKey struct {
// Required.
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// Required.
PublicKey *RsaSsaPkcs1PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Private exponent.
// Unsigned big integer in bigendian representation.
// Required.
D []byte `protobuf:"bytes,3,opt,name=d,proto3" json:"d,omitempty"`
// The following parameters are used to optimize RSA signature computation.
// The prime factor p of n.
// Unsigned big integer in bigendian representation.
// Required.
P []byte `protobuf:"bytes,4,opt,name=p,proto3" json:"p,omitempty"`
// The prime factor q of n.
// Unsigned big integer in bigendian representation.
// Required.
Q []byte `protobuf:"bytes,5,opt,name=q,proto3" json:"q,omitempty"`
// d mod (p - 1).
// Unsigned big integer in bigendian representation.
// Required.
Dp []byte `protobuf:"bytes,6,opt,name=dp,proto3" json:"dp,omitempty"`
// d mod (q - 1).
// Unsigned big integer in bigendian representation.
// Required.
Dq []byte `protobuf:"bytes,7,opt,name=dq,proto3" json:"dq,omitempty"`
// Chinese Remainder Theorem coefficient q^(-1) mod p.
// Unsigned big integer in bigendian representation.
// Required.
Crt []byte `protobuf:"bytes,8,opt,name=crt,proto3" json:"crt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RsaSsaPkcs1PrivateKey) Reset() { *m = RsaSsaPkcs1PrivateKey{} }
func (m *RsaSsaPkcs1PrivateKey) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPkcs1PrivateKey) ProtoMessage() {}
func (*RsaSsaPkcs1PrivateKey) Descriptor() ([]byte, []int) {
return fileDescriptor_294a4bbabf091722, []int{2}
}
func (m *RsaSsaPkcs1PrivateKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPkcs1PrivateKey.Unmarshal(m, b)
}
func (m *RsaSsaPkcs1PrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPkcs1PrivateKey.Marshal(b, m, deterministic)
}
func (m *RsaSsaPkcs1PrivateKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPkcs1PrivateKey.Merge(m, src)
}
func (m *RsaSsaPkcs1PrivateKey) XXX_Size() int {
return xxx_messageInfo_RsaSsaPkcs1PrivateKey.Size(m)
}
func (m *RsaSsaPkcs1PrivateKey) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPkcs1PrivateKey.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPkcs1PrivateKey proto.InternalMessageInfo
func (m *RsaSsaPkcs1PrivateKey) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *RsaSsaPkcs1PrivateKey) GetPublicKey() *RsaSsaPkcs1PublicKey {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetD() []byte {
if m != nil {
return m.D
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetP() []byte {
if m != nil {
return m.P
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetQ() []byte {
if m != nil {
return m.Q
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetDp() []byte {
if m != nil {
return m.Dp
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetDq() []byte {
if m != nil {
return m.Dq
}
return nil
}
func (m *RsaSsaPkcs1PrivateKey) GetCrt() []byte {
if m != nil {
return m.Crt
}
return nil
}
type RsaSsaPkcs1KeyFormat struct {
// Required.
Params *RsaSsaPkcs1Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// Required.
ModulusSizeInBits uint32 `protobuf:"varint,2,opt,name=modulus_size_in_bits,json=modulusSizeInBits,proto3" json:"modulus_size_in_bits,omitempty"`
// Required.
PublicExponent []byte `protobuf:"bytes,3,opt,name=public_exponent,json=publicExponent,proto3" json:"public_exponent,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RsaSsaPkcs1KeyFormat) Reset() { *m = RsaSsaPkcs1KeyFormat{} }
func (m *RsaSsaPkcs1KeyFormat) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPkcs1KeyFormat) ProtoMessage() {}
func (*RsaSsaPkcs1KeyFormat) Descriptor() ([]byte, []int) {
return fileDescriptor_294a4bbabf091722, []int{3}
}
func (m *RsaSsaPkcs1KeyFormat) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPkcs1KeyFormat.Unmarshal(m, b)
}
func (m *RsaSsaPkcs1KeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPkcs1KeyFormat.Marshal(b, m, deterministic)
}
func (m *RsaSsaPkcs1KeyFormat) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPkcs1KeyFormat.Merge(m, src)
}
func (m *RsaSsaPkcs1KeyFormat) XXX_Size() int {
return xxx_messageInfo_RsaSsaPkcs1KeyFormat.Size(m)
}
func (m *RsaSsaPkcs1KeyFormat) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPkcs1KeyFormat.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPkcs1KeyFormat proto.InternalMessageInfo
func (m *RsaSsaPkcs1KeyFormat) GetParams() *RsaSsaPkcs1Params {
if m != nil {
return m.Params
}
return nil
}
func (m *RsaSsaPkcs1KeyFormat) GetModulusSizeInBits() uint32 {
if m != nil {
return m.ModulusSizeInBits
}
return 0
}
func (m *RsaSsaPkcs1KeyFormat) GetPublicExponent() []byte {
if m != nil {
return m.PublicExponent
}
return nil
}
func init() {
proto.RegisterType((*RsaSsaPkcs1Params)(nil), "google.crypto.tink.RsaSsaPkcs1Params")
proto.RegisterType((*RsaSsaPkcs1PublicKey)(nil), "google.crypto.tink.RsaSsaPkcs1PublicKey")
proto.RegisterType((*RsaSsaPkcs1PrivateKey)(nil), "google.crypto.tink.RsaSsaPkcs1PrivateKey")
proto.RegisterType((*RsaSsaPkcs1KeyFormat)(nil), "google.crypto.tink.RsaSsaPkcs1KeyFormat")
}
func init() {
proto.RegisterFile("proto/rsa_ssa_pkcs1.proto", fileDescriptor_294a4bbabf091722)
}
var fileDescriptor_294a4bbabf091722 = []byte{
// 421 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xcf, 0x6e, 0xd4, 0x30,
0x10, 0xc6, 0xe5, 0x2d, 0x6c, 0xdb, 0x61, 0xbb, 0x50, 0xab, 0x48, 0x16, 0xea, 0x61, 0xb5, 0x08,
0x11, 0x71, 0x48, 0x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