rsa_ssa_pkcs1_go_proto

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JwtRsaSsaPkcs1Algorithm_name = map[int32]string{
		0: "RS_UNKNOWN",
		1: "RS256",
		2: "RS384",
		3: "RS512",
	}
	JwtRsaSsaPkcs1Algorithm_value = map[string]int32{
		"RS_UNKNOWN": 0,
		"RS256":      1,
		"RS384":      2,
		"RS512":      3,
	}
)

Enum value maps for JwtRsaSsaPkcs1Algorithm.

View Source
var File_third_party_tink_proto_jwt_rsa_ssa_pkcs1_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type JwtRsaSsaPkcs1Algorithm

type JwtRsaSsaPkcs1Algorithm int32

See https://datatracker.ietf.org/doc/html/rfc7518#section-3.3

const (
	JwtRsaSsaPkcs1Algorithm_RS_UNKNOWN JwtRsaSsaPkcs1Algorithm = 0
	JwtRsaSsaPkcs1Algorithm_RS256      JwtRsaSsaPkcs1Algorithm = 1 // RSASSA-PKCS1-v1_5 using SHA-256
	JwtRsaSsaPkcs1Algorithm_RS384      JwtRsaSsaPkcs1Algorithm = 2 // RSASSA-PKCS1-v1_5 using SHA-384
	JwtRsaSsaPkcs1Algorithm_RS512      JwtRsaSsaPkcs1Algorithm = 3 // RSASSA-PKCS1-v1_5 using SHA-512
)

func (JwtRsaSsaPkcs1Algorithm) Descriptor

func (JwtRsaSsaPkcs1Algorithm) Enum

func (JwtRsaSsaPkcs1Algorithm) EnumDescriptor deprecated

func (JwtRsaSsaPkcs1Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use JwtRsaSsaPkcs1Algorithm.Descriptor instead.

func (JwtRsaSsaPkcs1Algorithm) Number

func (JwtRsaSsaPkcs1Algorithm) String

func (x JwtRsaSsaPkcs1Algorithm) String() string

func (JwtRsaSsaPkcs1Algorithm) Type

type JwtRsaSsaPkcs1KeyFormat

type JwtRsaSsaPkcs1KeyFormat struct {
	Version           uint32                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm         JwtRsaSsaPkcs1Algorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtRsaSsaPkcs1Algorithm" json:"algorithm,omitempty"`
	ModulusSizeInBits uint32                  `protobuf:"varint,3,opt,name=modulus_size_in_bits,json=modulusSizeInBits,proto3" json:"modulus_size_in_bits,omitempty"`
	PublicExponent    []byte                  `protobuf:"bytes,4,opt,name=public_exponent,json=publicExponent,proto3" json:"public_exponent,omitempty"`
	// contains filtered or unexported fields
}

func (*JwtRsaSsaPkcs1KeyFormat) Descriptor deprecated

func (*JwtRsaSsaPkcs1KeyFormat) Descriptor() ([]byte, []int)

Deprecated: Use JwtRsaSsaPkcs1KeyFormat.ProtoReflect.Descriptor instead.

func (*JwtRsaSsaPkcs1KeyFormat) GetAlgorithm

func (*JwtRsaSsaPkcs1KeyFormat) GetModulusSizeInBits

func (x *JwtRsaSsaPkcs1KeyFormat) GetModulusSizeInBits() uint32

func (*JwtRsaSsaPkcs1KeyFormat) GetPublicExponent

func (x *JwtRsaSsaPkcs1KeyFormat) GetPublicExponent() []byte

func (*JwtRsaSsaPkcs1KeyFormat) GetVersion

func (x *JwtRsaSsaPkcs1KeyFormat) GetVersion() uint32

func (*JwtRsaSsaPkcs1KeyFormat) ProtoMessage

func (*JwtRsaSsaPkcs1KeyFormat) ProtoMessage()

func (*JwtRsaSsaPkcs1KeyFormat) ProtoReflect

func (x *JwtRsaSsaPkcs1KeyFormat) ProtoReflect() protoreflect.Message

func (*JwtRsaSsaPkcs1KeyFormat) Reset

func (x *JwtRsaSsaPkcs1KeyFormat) Reset()

func (*JwtRsaSsaPkcs1KeyFormat) String

func (x *JwtRsaSsaPkcs1KeyFormat) String() string

type JwtRsaSsaPkcs1PrivateKey

type JwtRsaSsaPkcs1PrivateKey struct {
	Version   uint32                   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	PublicKey *JwtRsaSsaPkcs1PublicKey `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Private exponent.
	// Unsigned big integer in big-endian representation.
	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 big-endian representation.
	P []byte `protobuf:"bytes,4,opt,name=p,proto3" json:"p,omitempty"`
	// The prime factor q of n.
	// Unsigned big integer in big-endian representation.
	Q []byte `protobuf:"bytes,5,opt,name=q,proto3" json:"q,omitempty"`
	// d mod (p - 1).
	// Unsigned big integer in big-endian representation.
	Dp []byte `protobuf:"bytes,6,opt,name=dp,proto3" json:"dp,omitempty"`
	// d mod (q - 1).
	// Unsigned big integer in big-endian representation.
	Dq []byte `protobuf:"bytes,7,opt,name=dq,proto3" json:"dq,omitempty"`
	// Chinese Remainder Theorem coefficient q^(-1) mod p.
	// Unsigned big integer in big-endian representation.
	Crt []byte `protobuf:"bytes,8,opt,name=crt,proto3" json:"crt,omitempty"`
	// contains filtered or unexported fields
}

key_type: type.googleapis.com/google.crypto.tink.RsaSsaPkcs1PrivateKey

func (*JwtRsaSsaPkcs1PrivateKey) Descriptor deprecated

func (*JwtRsaSsaPkcs1PrivateKey) Descriptor() ([]byte, []int)

Deprecated: Use JwtRsaSsaPkcs1PrivateKey.ProtoReflect.Descriptor instead.

func (*JwtRsaSsaPkcs1PrivateKey) GetCrt

func (x *JwtRsaSsaPkcs1PrivateKey) GetCrt() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetD

func (x *JwtRsaSsaPkcs1PrivateKey) GetD() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetDp

func (x *JwtRsaSsaPkcs1PrivateKey) GetDp() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetDq

func (x *JwtRsaSsaPkcs1PrivateKey) GetDq() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetP

func (x *JwtRsaSsaPkcs1PrivateKey) GetP() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetPublicKey

func (*JwtRsaSsaPkcs1PrivateKey) GetQ

func (x *JwtRsaSsaPkcs1PrivateKey) GetQ() []byte

func (*JwtRsaSsaPkcs1PrivateKey) GetVersion

func (x *JwtRsaSsaPkcs1PrivateKey) GetVersion() uint32

func (*JwtRsaSsaPkcs1PrivateKey) ProtoMessage

func (*JwtRsaSsaPkcs1PrivateKey) ProtoMessage()

func (*JwtRsaSsaPkcs1PrivateKey) ProtoReflect

func (x *JwtRsaSsaPkcs1PrivateKey) ProtoReflect() protoreflect.Message

func (*JwtRsaSsaPkcs1PrivateKey) Reset

func (x *JwtRsaSsaPkcs1PrivateKey) Reset()

func (*JwtRsaSsaPkcs1PrivateKey) String

func (x *JwtRsaSsaPkcs1PrivateKey) String() string

type JwtRsaSsaPkcs1PublicKey

type JwtRsaSsaPkcs1PublicKey struct {
	Version   uint32                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Algorithm JwtRsaSsaPkcs1Algorithm `protobuf:"varint,2,opt,name=algorithm,proto3,enum=google.crypto.tink.JwtRsaSsaPkcs1Algorithm" json:"algorithm,omitempty"`
	// Modulus.
	// Unsigned big integer in big-endian representation.
	N []byte `protobuf:"bytes,3,opt,name=n,proto3" json:"n,omitempty"`
	// Public exponent.
	// Unsigned big integer in big-endian representation.
	E         []byte                             `protobuf:"bytes,4,opt,name=e,proto3" json:"e,omitempty"`
	CustomKid *JwtRsaSsaPkcs1PublicKey_CustomKid `protobuf:"bytes,5,opt,name=custom_kid,json=customKid,proto3" json:"custom_kid,omitempty"`
	// contains filtered or unexported fields
}

key_type: type.googleapis.com/google.crypto.tink.JwtRsaSsaPkcs1PublicKey

func (*JwtRsaSsaPkcs1PublicKey) Descriptor deprecated

func (*JwtRsaSsaPkcs1PublicKey) Descriptor() ([]byte, []int)

Deprecated: Use JwtRsaSsaPkcs1PublicKey.ProtoReflect.Descriptor instead.

func (*JwtRsaSsaPkcs1PublicKey) GetAlgorithm

func (*JwtRsaSsaPkcs1PublicKey) GetCustomKid

func (*JwtRsaSsaPkcs1PublicKey) GetE

func (x *JwtRsaSsaPkcs1PublicKey) GetE() []byte

func (*JwtRsaSsaPkcs1PublicKey) GetN

func (x *JwtRsaSsaPkcs1PublicKey) GetN() []byte

func (*JwtRsaSsaPkcs1PublicKey) GetVersion

func (x *JwtRsaSsaPkcs1PublicKey) GetVersion() uint32

func (*JwtRsaSsaPkcs1PublicKey) ProtoMessage

func (*JwtRsaSsaPkcs1PublicKey) ProtoMessage()

func (*JwtRsaSsaPkcs1PublicKey) ProtoReflect

func (x *JwtRsaSsaPkcs1PublicKey) ProtoReflect() protoreflect.Message

func (*JwtRsaSsaPkcs1PublicKey) Reset

func (x *JwtRsaSsaPkcs1PublicKey) Reset()

func (*JwtRsaSsaPkcs1PublicKey) String

func (x *JwtRsaSsaPkcs1PublicKey) String() string

type JwtRsaSsaPkcs1PublicKey_CustomKid

type JwtRsaSsaPkcs1PublicKey_CustomKid struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Optional, custom kid header value to be used with "RAW" keys. "TINK" keys with this value set will be rejected.

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) Descriptor deprecated

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) Descriptor() ([]byte, []int)

Deprecated: Use JwtRsaSsaPkcs1PublicKey_CustomKid.ProtoReflect.Descriptor instead.

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) GetValue

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) ProtoMessage

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) ProtoMessage()

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) ProtoReflect

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) Reset

func (*JwtRsaSsaPkcs1PublicKey_CustomKid) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL