blob: a906e35b7dcdb7a639249171b6ddccd2c46542f3 [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_pss.proto
package rsa_ssa_pss_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 RsaSsaPssParams struct {
// Hash function used in computing hash of the signing message
// (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
// Required.
SigHash common_go_proto.HashType `protobuf:"varint,1,opt,name=sig_hash,json=sigHash,proto3,enum=google.crypto.tink.HashType" json:"sig_hash,omitempty"`
// Hash function used in MGF1 (a mask generation function based on a
// hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
// Required.
Mgf1Hash common_go_proto.HashType `protobuf:"varint,2,opt,name=mgf1_hash,json=mgf1Hash,proto3,enum=google.crypto.tink.HashType" json:"mgf1_hash,omitempty"`
// Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
// Required.
SaltLength int32 `protobuf:"varint,3,opt,name=salt_length,json=saltLength,proto3" json:"salt_length,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RsaSsaPssParams) Reset() { *m = RsaSsaPssParams{} }
func (m *RsaSsaPssParams) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPssParams) ProtoMessage() {}
func (*RsaSsaPssParams) Descriptor() ([]byte, []int) {
return fileDescriptor_aacfb9eade71ca83, []int{0}
}
func (m *RsaSsaPssParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPssParams.Unmarshal(m, b)
}
func (m *RsaSsaPssParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPssParams.Marshal(b, m, deterministic)
}
func (m *RsaSsaPssParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPssParams.Merge(m, src)
}
func (m *RsaSsaPssParams) XXX_Size() int {
return xxx_messageInfo_RsaSsaPssParams.Size(m)
}
func (m *RsaSsaPssParams) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPssParams.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPssParams proto.InternalMessageInfo
func (m *RsaSsaPssParams) GetSigHash() common_go_proto.HashType {
if m != nil {
return m.SigHash
}
return common_go_proto.HashType_UNKNOWN_HASH
}
func (m *RsaSsaPssParams) GetMgf1Hash() common_go_proto.HashType {
if m != nil {
return m.Mgf1Hash
}
return common_go_proto.HashType_UNKNOWN_HASH
}
func (m *RsaSsaPssParams) GetSaltLength() int32 {
if m != nil {
return m.SaltLength
}
return 0
}
// key_type: type.googleapis.com/google.crypto.tink.RsaSsaPssPublicKey
type RsaSsaPssPublicKey struct {
// Required.
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// Required.
Params *RsaSsaPssParams `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 *RsaSsaPssPublicKey) Reset() { *m = RsaSsaPssPublicKey{} }
func (m *RsaSsaPssPublicKey) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPssPublicKey) ProtoMessage() {}
func (*RsaSsaPssPublicKey) Descriptor() ([]byte, []int) {
return fileDescriptor_aacfb9eade71ca83, []int{1}
}
func (m *RsaSsaPssPublicKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPssPublicKey.Unmarshal(m, b)
}
func (m *RsaSsaPssPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPssPublicKey.Marshal(b, m, deterministic)
}
func (m *RsaSsaPssPublicKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPssPublicKey.Merge(m, src)
}
func (m *RsaSsaPssPublicKey) XXX_Size() int {
return xxx_messageInfo_RsaSsaPssPublicKey.Size(m)
}
func (m *RsaSsaPssPublicKey) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPssPublicKey.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPssPublicKey proto.InternalMessageInfo
func (m *RsaSsaPssPublicKey) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *RsaSsaPssPublicKey) GetParams() *RsaSsaPssParams {
if m != nil {
return m.Params
}
return nil
}
func (m *RsaSsaPssPublicKey) GetN() []byte {
if m != nil {
return m.N
}
return nil
}
func (m *RsaSsaPssPublicKey) GetE() []byte {
if m != nil {
return m.E
}
return nil
}
// key_type: type.googleapis.com/google.crypto.tink.RsaSsaPssPrivateKey
type RsaSsaPssPrivateKey struct {
// Required.
Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// Required.
PublicKey *RsaSsaPssPublicKey `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 *RsaSsaPssPrivateKey) Reset() { *m = RsaSsaPssPrivateKey{} }
func (m *RsaSsaPssPrivateKey) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPssPrivateKey) ProtoMessage() {}
func (*RsaSsaPssPrivateKey) Descriptor() ([]byte, []int) {
return fileDescriptor_aacfb9eade71ca83, []int{2}
}
func (m *RsaSsaPssPrivateKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPssPrivateKey.Unmarshal(m, b)
}
func (m *RsaSsaPssPrivateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPssPrivateKey.Marshal(b, m, deterministic)
}
func (m *RsaSsaPssPrivateKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPssPrivateKey.Merge(m, src)
}
func (m *RsaSsaPssPrivateKey) XXX_Size() int {
return xxx_messageInfo_RsaSsaPssPrivateKey.Size(m)
}
func (m *RsaSsaPssPrivateKey) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPssPrivateKey.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPssPrivateKey proto.InternalMessageInfo
func (m *RsaSsaPssPrivateKey) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *RsaSsaPssPrivateKey) GetPublicKey() *RsaSsaPssPublicKey {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetD() []byte {
if m != nil {
return m.D
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetP() []byte {
if m != nil {
return m.P
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetQ() []byte {
if m != nil {
return m.Q
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetDp() []byte {
if m != nil {
return m.Dp
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetDq() []byte {
if m != nil {
return m.Dq
}
return nil
}
func (m *RsaSsaPssPrivateKey) GetCrt() []byte {
if m != nil {
return m.Crt
}
return nil
}
type RsaSsaPssKeyFormat struct {
// Required.
Params *RsaSsaPssParams `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 *RsaSsaPssKeyFormat) Reset() { *m = RsaSsaPssKeyFormat{} }
func (m *RsaSsaPssKeyFormat) String() string { return proto.CompactTextString(m) }
func (*RsaSsaPssKeyFormat) ProtoMessage() {}
func (*RsaSsaPssKeyFormat) Descriptor() ([]byte, []int) {
return fileDescriptor_aacfb9eade71ca83, []int{3}
}
func (m *RsaSsaPssKeyFormat) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RsaSsaPssKeyFormat.Unmarshal(m, b)
}
func (m *RsaSsaPssKeyFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RsaSsaPssKeyFormat.Marshal(b, m, deterministic)
}
func (m *RsaSsaPssKeyFormat) XXX_Merge(src proto.Message) {
xxx_messageInfo_RsaSsaPssKeyFormat.Merge(m, src)
}
func (m *RsaSsaPssKeyFormat) XXX_Size() int {
return xxx_messageInfo_RsaSsaPssKeyFormat.Size(m)
}
func (m *RsaSsaPssKeyFormat) XXX_DiscardUnknown() {
xxx_messageInfo_RsaSsaPssKeyFormat.DiscardUnknown(m)
}
var xxx_messageInfo_RsaSsaPssKeyFormat proto.InternalMessageInfo
func (m *RsaSsaPssKeyFormat) GetParams() *RsaSsaPssParams {
if m != nil {
return m.Params
}
return nil
}
func (m *RsaSsaPssKeyFormat) GetModulusSizeInBits() uint32 {
if m != nil {
return m.ModulusSizeInBits
}
return 0
}
func (m *RsaSsaPssKeyFormat) GetPublicExponent() []byte {
if m != nil {
return m.PublicExponent
}
return nil
}
func init() {
proto.RegisterType((*RsaSsaPssParams)(nil), "google.crypto.tink.RsaSsaPssParams")
proto.RegisterType((*RsaSsaPssPublicKey)(nil), "google.crypto.tink.RsaSsaPssPublicKey")
proto.RegisterType((*RsaSsaPssPrivateKey)(nil), "google.crypto.tink.RsaSsaPssPrivateKey")
proto.RegisterType((*RsaSsaPssKeyFormat)(nil), "google.crypto.tink.RsaSsaPssKeyFormat")
}
func init() {
proto.RegisterFile("proto/rsa_ssa_pss.proto", fileDescriptor_aacfb9eade71ca83)
}
var fileDescriptor_aacfb9eade71ca83 = []byte{
// 450 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x41, 0x6f, 0xd3, 0x30,
0x18, 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