v30

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HashAlgorithm_name = map[int32]string{
		0: "HASH_ALGORITHM_UNSPECIFIED",
		1: "HASH_ALGORITHM_SHA256",
	}
	HashAlgorithm_value = map[string]int32{
		"HASH_ALGORITHM_UNSPECIFIED": 0,
		"HASH_ALGORITHM_SHA256":      1,
	}
)

Enum value maps for HashAlgorithm.

View Source
var (
	HmacAlgorithm_name = map[int32]string{
		0: "HMAC_ALGORITHM_UNSPECIFIED",
		1: "HMAC_ALGORITHM_HMAC_SHA256",
	}
	HmacAlgorithm_value = map[string]int32{
		"HMAC_ALGORITHM_UNSPECIFIED": 0,
		"HMAC_ALGORITHM_HMAC_SHA256": 1,
	}
)

Enum value maps for HmacAlgorithm.

View Source
var (
	SignatureFormat_name = map[int32]string{
		0: "SIGNATURE_FORMAT_UNSPECIFIED",
		1: "SIGNATURE_FORMAT_RAW",
	}
	SignatureFormat_value = map[string]int32{
		"SIGNATURE_FORMAT_UNSPECIFIED": 0,
		"SIGNATURE_FORMAT_RAW":         1,
	}
)

Enum value maps for SignatureFormat.

View Source
var (
	EncryptionKeySpec_name = map[int32]string{
		0: "ENCRYPTION_KEY_SPEC_UNSPECIFIED",
		1: "ENCRYPTION_KEY_SPEC_EC_P256",
		3: "ENCRYPTION_KEY_SPEC_RSA_2048",
	}
	EncryptionKeySpec_value = map[string]int32{
		"ENCRYPTION_KEY_SPEC_UNSPECIFIED": 0,
		"ENCRYPTION_KEY_SPEC_EC_P256":     1,
		"ENCRYPTION_KEY_SPEC_RSA_2048":    3,
	}
)

Enum value maps for EncryptionKeySpec.

View Source
var (
	KeyPurpose_name = map[int32]string{
		0: "KEY_PURPOSE_UNSPECIFIED",
		1: "KEY_PURPOSE_SIGNING",
		2: "KEY_PURPOSE_ENCRYPTION",
	}
	KeyPurpose_value = map[string]int32{
		"KEY_PURPOSE_UNSPECIFIED": 0,
		"KEY_PURPOSE_SIGNING":     1,
		"KEY_PURPOSE_ENCRYPTION":  2,
	}
)

Enum value maps for KeyPurpose.

View Source
var (
	SigningKeyScheme_name = map[int32]string{
		0: "SIGNING_KEY_SCHEME_UNSPECIFIED",
		1: "SIGNING_KEY_SCHEME_ED25519",
		2: "SIGNING_KEY_SCHEME_EC_DSA_P256",
		3: "SIGNING_KEY_SCHEME_EC_DSA_P384",
	}
	SigningKeyScheme_value = map[string]int32{
		"SIGNING_KEY_SCHEME_UNSPECIFIED": 0,
		"SIGNING_KEY_SCHEME_ED25519":     1,
		"SIGNING_KEY_SCHEME_EC_DSA_P256": 2,
		"SIGNING_KEY_SCHEME_EC_DSA_P384": 3,
	}
)

Enum value maps for SigningKeyScheme.

View Source
var (
	EncryptionAlgorithmSpec_name = map[int32]string{
		0: "ENCRYPTION_ALGORITHM_SPEC_UNSPECIFIED",
		1: "ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128GCM",
		2: "ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128CBC",
		3: "ENCRYPTION_ALGORITHM_SPEC_RSA_OAEP_SHA256",
	}
	EncryptionAlgorithmSpec_value = map[string]int32{
		"ENCRYPTION_ALGORITHM_SPEC_UNSPECIFIED":                      0,
		"ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128GCM": 1,
		"ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128CBC": 2,
		"ENCRYPTION_ALGORITHM_SPEC_RSA_OAEP_SHA256":                  3,
	}
)

Enum value maps for EncryptionAlgorithmSpec.

View Source
var (
	EncryptionKeyScheme_name = map[int32]string{
		0: "ENCRYPTION_KEY_SCHEME_UNSPECIFIED",
		1: "ENCRYPTION_KEY_SCHEME_ECIES_P256_HKDF_HMAC_SHA256_AES128GCM",
		2: "ENCRYPTION_KEY_SCHEME_ECIES_P256_HMAC_SHA256A_ES128CBC",
		3: "ENCRYPTION_KEY_SCHEME_RSA2048_OAEP_SHA256",
	}
	EncryptionKeyScheme_value = map[string]int32{
		"ENCRYPTION_KEY_SCHEME_UNSPECIFIED":                           0,
		"ENCRYPTION_KEY_SCHEME_ECIES_P256_HKDF_HMAC_SHA256_AES128GCM": 1,
		"ENCRYPTION_KEY_SCHEME_ECIES_P256_HMAC_SHA256A_ES128CBC":      2,
		"ENCRYPTION_KEY_SCHEME_RSA2048_OAEP_SHA256":                   3,
	}
)

Enum value maps for EncryptionKeyScheme.

View Source
var (
	SymmetricKeyScheme_name = map[int32]string{
		0: "SYMMETRIC_KEY_SCHEME_UNSPECIFIED",
		1: "SYMMETRIC_KEY_SCHEME_AES128GCM",
	}
	SymmetricKeyScheme_value = map[string]int32{
		"SYMMETRIC_KEY_SCHEME_UNSPECIFIED": 0,
		"SYMMETRIC_KEY_SCHEME_AES128GCM":   1,
	}
)

Enum value maps for SymmetricKeyScheme.

View Source
var (
	CryptoKeyFormat_name = map[int32]string{
		0:     "CRYPTO_KEY_FORMAT_UNSPECIFIED",
		2:     "CRYPTO_KEY_FORMAT_DER",
		3:     "CRYPTO_KEY_FORMAT_RAW",
		10000: "CRYPTO_KEY_FORMAT_SYMBOLIC",
	}
	CryptoKeyFormat_value = map[string]int32{
		"CRYPTO_KEY_FORMAT_UNSPECIFIED": 0,
		"CRYPTO_KEY_FORMAT_DER":         2,
		"CRYPTO_KEY_FORMAT_RAW":         3,
		"CRYPTO_KEY_FORMAT_SYMBOLIC":    10000,
	}
)

Enum value maps for CryptoKeyFormat.

View Source
var (
	PbkdfScheme_name = map[int32]string{
		0: "PBKDF_SCHEME_UNSPECIFIED",
		1: "PBKDF_SCHEME_ARGON2ID_MODE1",
	}
	PbkdfScheme_value = map[string]int32{
		"PBKDF_SCHEME_UNSPECIFIED":    0,
		"PBKDF_SCHEME_ARGON2ID_MODE1": 1,
	}
)

Enum value maps for PbkdfScheme.

View Source
var File_com_digitalasset_canton_crypto_v30_crypto_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CryptoKeyFormat

type CryptoKeyFormat int32
const (
	CryptoKeyFormat_CRYPTO_KEY_FORMAT_UNSPECIFIED CryptoKeyFormat = 0
	CryptoKeyFormat_CRYPTO_KEY_FORMAT_DER         CryptoKeyFormat = 2
	CryptoKeyFormat_CRYPTO_KEY_FORMAT_RAW         CryptoKeyFormat = 3
	CryptoKeyFormat_CRYPTO_KEY_FORMAT_SYMBOLIC    CryptoKeyFormat = 10000
)

func (CryptoKeyFormat) Descriptor

func (CryptoKeyFormat) Enum

func (x CryptoKeyFormat) Enum() *CryptoKeyFormat

func (CryptoKeyFormat) EnumDescriptor deprecated

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

Deprecated: Use CryptoKeyFormat.Descriptor instead.

func (CryptoKeyFormat) Number

func (CryptoKeyFormat) String

func (x CryptoKeyFormat) String() string

func (CryptoKeyFormat) Type

type CryptoKeyPair

type CryptoKeyPair struct {

	// Types that are assignable to Pair:
	//
	//	*CryptoKeyPair_SigningKeyPair
	//	*CryptoKeyPair_EncryptionKeyPair
	Pair isCryptoKeyPair_Pair `protobuf_oneof:"pair"`
	// contains filtered or unexported fields
}

func (*CryptoKeyPair) Descriptor deprecated

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

Deprecated: Use CryptoKeyPair.ProtoReflect.Descriptor instead.

func (*CryptoKeyPair) GetEncryptionKeyPair

func (x *CryptoKeyPair) GetEncryptionKeyPair() *EncryptionKeyPair

func (*CryptoKeyPair) GetPair

func (m *CryptoKeyPair) GetPair() isCryptoKeyPair_Pair

func (*CryptoKeyPair) GetSigningKeyPair

func (x *CryptoKeyPair) GetSigningKeyPair() *SigningKeyPair

func (*CryptoKeyPair) ProtoMessage

func (*CryptoKeyPair) ProtoMessage()

func (*CryptoKeyPair) ProtoReflect

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

func (*CryptoKeyPair) Reset

func (x *CryptoKeyPair) Reset()

func (*CryptoKeyPair) String

func (x *CryptoKeyPair) String() string

type CryptoKeyPair_EncryptionKeyPair

type CryptoKeyPair_EncryptionKeyPair struct {
	EncryptionKeyPair *EncryptionKeyPair `protobuf:"bytes,2,opt,name=encryption_key_pair,json=encryptionKeyPair,proto3,oneof"`
}

type CryptoKeyPair_SigningKeyPair

type CryptoKeyPair_SigningKeyPair struct {
	SigningKeyPair *SigningKeyPair `protobuf:"bytes,1,opt,name=signing_key_pair,json=signingKeyPair,proto3,oneof"`
}

type EncryptionAlgorithmSpec

type EncryptionAlgorithmSpec int32
const (
	EncryptionAlgorithmSpec_ENCRYPTION_ALGORITHM_SPEC_UNSPECIFIED                      EncryptionAlgorithmSpec = 0
	EncryptionAlgorithmSpec_ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128GCM EncryptionAlgorithmSpec = 1
	EncryptionAlgorithmSpec_ENCRYPTION_ALGORITHM_SPEC_ECIES_HKDF_HMAC_SHA256_AES128CBC EncryptionAlgorithmSpec = 2
	EncryptionAlgorithmSpec_ENCRYPTION_ALGORITHM_SPEC_RSA_OAEP_SHA256                  EncryptionAlgorithmSpec = 3
)

func (EncryptionAlgorithmSpec) Descriptor

func (EncryptionAlgorithmSpec) Enum

func (EncryptionAlgorithmSpec) EnumDescriptor deprecated

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

Deprecated: Use EncryptionAlgorithmSpec.Descriptor instead.

func (EncryptionAlgorithmSpec) Number

func (EncryptionAlgorithmSpec) String

func (x EncryptionAlgorithmSpec) String() string

func (EncryptionAlgorithmSpec) Type

type EncryptionKeyPair

type EncryptionKeyPair struct {
	PublicKey  *EncryptionPublicKey  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey *EncryptionPrivateKey `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptionKeyPair) Descriptor deprecated

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

Deprecated: Use EncryptionKeyPair.ProtoReflect.Descriptor instead.

func (*EncryptionKeyPair) GetPrivateKey

func (x *EncryptionKeyPair) GetPrivateKey() *EncryptionPrivateKey

func (*EncryptionKeyPair) GetPublicKey

func (x *EncryptionKeyPair) GetPublicKey() *EncryptionPublicKey

func (*EncryptionKeyPair) ProtoMessage

func (*EncryptionKeyPair) ProtoMessage()

func (*EncryptionKeyPair) ProtoReflect

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

func (*EncryptionKeyPair) Reset

func (x *EncryptionKeyPair) Reset()

func (*EncryptionKeyPair) String

func (x *EncryptionKeyPair) String() string

type EncryptionKeyScheme

type EncryptionKeyScheme int32
const (
	EncryptionKeyScheme_ENCRYPTION_KEY_SCHEME_UNSPECIFIED                           EncryptionKeyScheme = 0
	EncryptionKeyScheme_ENCRYPTION_KEY_SCHEME_ECIES_P256_HKDF_HMAC_SHA256_AES128GCM EncryptionKeyScheme = 1
	EncryptionKeyScheme_ENCRYPTION_KEY_SCHEME_ECIES_P256_HMAC_SHA256A_ES128CBC      EncryptionKeyScheme = 2
	EncryptionKeyScheme_ENCRYPTION_KEY_SCHEME_RSA2048_OAEP_SHA256                   EncryptionKeyScheme = 3
)

func (EncryptionKeyScheme) Descriptor

func (EncryptionKeyScheme) Enum

func (EncryptionKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use EncryptionKeyScheme.Descriptor instead.

func (EncryptionKeyScheme) Number

func (EncryptionKeyScheme) String

func (x EncryptionKeyScheme) String() string

func (EncryptionKeyScheme) Type

type EncryptionKeySpec

type EncryptionKeySpec int32
const (
	EncryptionKeySpec_ENCRYPTION_KEY_SPEC_UNSPECIFIED EncryptionKeySpec = 0
	EncryptionKeySpec_ENCRYPTION_KEY_SPEC_EC_P256     EncryptionKeySpec = 1
	EncryptionKeySpec_ENCRYPTION_KEY_SPEC_RSA_2048    EncryptionKeySpec = 3
)

func (EncryptionKeySpec) Descriptor

func (EncryptionKeySpec) Enum

func (EncryptionKeySpec) EnumDescriptor deprecated

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

Deprecated: Use EncryptionKeySpec.Descriptor instead.

func (EncryptionKeySpec) Number

func (EncryptionKeySpec) String

func (x EncryptionKeySpec) String() string

func (EncryptionKeySpec) Type

type EncryptionPrivateKey

type EncryptionPrivateKey struct {
	Id         string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format     CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.CryptoKeyFormat" json:"format,omitempty"`
	PrivateKey []byte          `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Deprecated: Marked as deprecated in com/digitalasset/canton/crypto/v30/crypto.proto.
	Scheme  EncryptionKeyScheme `` /* 126-byte string literal not displayed */
	KeySpec EncryptionKeySpec   `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EncryptionPrivateKey) Descriptor deprecated

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

Deprecated: Use EncryptionPrivateKey.ProtoReflect.Descriptor instead.

func (*EncryptionPrivateKey) GetFormat

func (x *EncryptionPrivateKey) GetFormat() CryptoKeyFormat

func (*EncryptionPrivateKey) GetId

func (x *EncryptionPrivateKey) GetId() string

func (*EncryptionPrivateKey) GetKeySpec

func (x *EncryptionPrivateKey) GetKeySpec() EncryptionKeySpec

func (*EncryptionPrivateKey) GetPrivateKey

func (x *EncryptionPrivateKey) GetPrivateKey() []byte

func (*EncryptionPrivateKey) GetScheme deprecated

Deprecated: Marked as deprecated in com/digitalasset/canton/crypto/v30/crypto.proto.

func (*EncryptionPrivateKey) ProtoMessage

func (*EncryptionPrivateKey) ProtoMessage()

func (*EncryptionPrivateKey) ProtoReflect

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

func (*EncryptionPrivateKey) Reset

func (x *EncryptionPrivateKey) Reset()

func (*EncryptionPrivateKey) String

func (x *EncryptionPrivateKey) String() string

type EncryptionPublicKey

type EncryptionPublicKey struct {
	Format    CryptoKeyFormat `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.CryptoKeyFormat" json:"format,omitempty"`
	PublicKey []byte          `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Deprecated: Marked as deprecated in com/digitalasset/canton/crypto/v30/crypto.proto.
	Scheme  EncryptionKeyScheme `` /* 126-byte string literal not displayed */
	KeySpec EncryptionKeySpec   `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EncryptionPublicKey) Descriptor deprecated

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

Deprecated: Use EncryptionPublicKey.ProtoReflect.Descriptor instead.

func (*EncryptionPublicKey) GetFormat

func (x *EncryptionPublicKey) GetFormat() CryptoKeyFormat

func (*EncryptionPublicKey) GetKeySpec

func (x *EncryptionPublicKey) GetKeySpec() EncryptionKeySpec

func (*EncryptionPublicKey) GetPublicKey

func (x *EncryptionPublicKey) GetPublicKey() []byte

func (*EncryptionPublicKey) GetScheme deprecated

Deprecated: Marked as deprecated in com/digitalasset/canton/crypto/v30/crypto.proto.

func (*EncryptionPublicKey) ProtoMessage

func (*EncryptionPublicKey) ProtoMessage()

func (*EncryptionPublicKey) ProtoReflect

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

func (*EncryptionPublicKey) Reset

func (x *EncryptionPublicKey) Reset()

func (*EncryptionPublicKey) String

func (x *EncryptionPublicKey) String() string

type HashAlgorithm

type HashAlgorithm int32
const (
	HashAlgorithm_HASH_ALGORITHM_UNSPECIFIED HashAlgorithm = 0
	HashAlgorithm_HASH_ALGORITHM_SHA256      HashAlgorithm = 1
)

func (HashAlgorithm) Descriptor

func (HashAlgorithm) Enum

func (x HashAlgorithm) Enum() *HashAlgorithm

func (HashAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use HashAlgorithm.Descriptor instead.

func (HashAlgorithm) Number

func (HashAlgorithm) String

func (x HashAlgorithm) String() string

func (HashAlgorithm) Type

type Hmac

type Hmac struct {
	Algorithm HmacAlgorithm `` /* 126-byte string literal not displayed */
	Hmac      []byte        `protobuf:"bytes,2,opt,name=hmac,proto3" json:"hmac,omitempty"`
	// contains filtered or unexported fields
}

func (*Hmac) Descriptor deprecated

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

Deprecated: Use Hmac.ProtoReflect.Descriptor instead.

func (*Hmac) GetAlgorithm

func (x *Hmac) GetAlgorithm() HmacAlgorithm

func (*Hmac) GetHmac

func (x *Hmac) GetHmac() []byte

func (*Hmac) ProtoMessage

func (*Hmac) ProtoMessage()

func (*Hmac) ProtoReflect

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

func (*Hmac) Reset

func (x *Hmac) Reset()

func (*Hmac) String

func (x *Hmac) String() string

type HmacAlgorithm

type HmacAlgorithm int32
const (
	HmacAlgorithm_HMAC_ALGORITHM_UNSPECIFIED HmacAlgorithm = 0
	HmacAlgorithm_HMAC_ALGORITHM_HMAC_SHA256 HmacAlgorithm = 1
)

func (HmacAlgorithm) Descriptor

func (HmacAlgorithm) Enum

func (x HmacAlgorithm) Enum() *HmacAlgorithm

func (HmacAlgorithm) EnumDescriptor deprecated

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

Deprecated: Use HmacAlgorithm.Descriptor instead.

func (HmacAlgorithm) Number

func (HmacAlgorithm) String

func (x HmacAlgorithm) String() string

func (HmacAlgorithm) Type

type KeyPurpose

type KeyPurpose int32
const (
	KeyPurpose_KEY_PURPOSE_UNSPECIFIED KeyPurpose = 0
	KeyPurpose_KEY_PURPOSE_SIGNING     KeyPurpose = 1
	KeyPurpose_KEY_PURPOSE_ENCRYPTION  KeyPurpose = 2
)

func (KeyPurpose) Descriptor

func (KeyPurpose) Descriptor() protoreflect.EnumDescriptor

func (KeyPurpose) Enum

func (x KeyPurpose) Enum() *KeyPurpose

func (KeyPurpose) EnumDescriptor deprecated

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

Deprecated: Use KeyPurpose.Descriptor instead.

func (KeyPurpose) Number

func (x KeyPurpose) Number() protoreflect.EnumNumber

func (KeyPurpose) String

func (x KeyPurpose) String() string

func (KeyPurpose) Type

type PasswordBasedEncrypted

type PasswordBasedEncrypted struct {
	Ciphertext         []byte             `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	SymmetricKeyScheme SymmetricKeyScheme `` /* 177-byte string literal not displayed */
	PbkdfScheme        PbkdfScheme        `` /* 147-byte string literal not displayed */
	Salt               []byte             `protobuf:"bytes,4,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswordBasedEncrypted) Descriptor deprecated

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

Deprecated: Use PasswordBasedEncrypted.ProtoReflect.Descriptor instead.

func (*PasswordBasedEncrypted) GetCiphertext

func (x *PasswordBasedEncrypted) GetCiphertext() []byte

func (*PasswordBasedEncrypted) GetPbkdfScheme

func (x *PasswordBasedEncrypted) GetPbkdfScheme() PbkdfScheme

func (*PasswordBasedEncrypted) GetSalt

func (x *PasswordBasedEncrypted) GetSalt() []byte

func (*PasswordBasedEncrypted) GetSymmetricKeyScheme

func (x *PasswordBasedEncrypted) GetSymmetricKeyScheme() SymmetricKeyScheme

func (*PasswordBasedEncrypted) ProtoMessage

func (*PasswordBasedEncrypted) ProtoMessage()

func (*PasswordBasedEncrypted) ProtoReflect

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

func (*PasswordBasedEncrypted) Reset

func (x *PasswordBasedEncrypted) Reset()

func (*PasswordBasedEncrypted) String

func (x *PasswordBasedEncrypted) String() string

type PbkdfScheme

type PbkdfScheme int32
const (
	PbkdfScheme_PBKDF_SCHEME_UNSPECIFIED    PbkdfScheme = 0
	PbkdfScheme_PBKDF_SCHEME_ARGON2ID_MODE1 PbkdfScheme = 1
)

func (PbkdfScheme) Descriptor

func (PbkdfScheme) Enum

func (x PbkdfScheme) Enum() *PbkdfScheme

func (PbkdfScheme) EnumDescriptor deprecated

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

Deprecated: Use PbkdfScheme.Descriptor instead.

func (PbkdfScheme) Number

func (x PbkdfScheme) Number() protoreflect.EnumNumber

func (PbkdfScheme) String

func (x PbkdfScheme) String() string

func (PbkdfScheme) Type

type PrivateKey

type PrivateKey struct {

	// Types that are assignable to Key:
	//
	//	*PrivateKey_SigningPrivateKey
	//	*PrivateKey_EncryptionPrivateKey
	Key isPrivateKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

func (*PrivateKey) Descriptor deprecated

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

Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.

func (*PrivateKey) GetEncryptionPrivateKey

func (x *PrivateKey) GetEncryptionPrivateKey() *EncryptionPrivateKey

func (*PrivateKey) GetKey

func (m *PrivateKey) GetKey() isPrivateKey_Key

func (*PrivateKey) GetSigningPrivateKey

func (x *PrivateKey) GetSigningPrivateKey() *SigningPrivateKey

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) ProtoReflect

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

func (*PrivateKey) Reset

func (x *PrivateKey) Reset()

func (*PrivateKey) String

func (x *PrivateKey) String() string

type PrivateKey_EncryptionPrivateKey

type PrivateKey_EncryptionPrivateKey struct {
	EncryptionPrivateKey *EncryptionPrivateKey `protobuf:"bytes,2,opt,name=encryption_private_key,json=encryptionPrivateKey,proto3,oneof"`
}

type PrivateKey_SigningPrivateKey

type PrivateKey_SigningPrivateKey struct {
	SigningPrivateKey *SigningPrivateKey `protobuf:"bytes,1,opt,name=signing_private_key,json=signingPrivateKey,proto3,oneof"`
}

type PublicKey

type PublicKey struct {

	// Types that are assignable to Key:
	//
	//	*PublicKey_SigningPublicKey
	//	*PublicKey_EncryptionPublicKey
	Key isPublicKey_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

func (*PublicKey) Descriptor deprecated

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetEncryptionPublicKey

func (x *PublicKey) GetEncryptionPublicKey() *EncryptionPublicKey

func (*PublicKey) GetKey

func (m *PublicKey) GetKey() isPublicKey_Key

func (*PublicKey) GetSigningPublicKey

func (x *PublicKey) GetSigningPublicKey() *SigningPublicKey

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

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

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

type PublicKeyWithName

type PublicKeyWithName struct {
	PublicKey *PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Name      string     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicKeyWithName) Descriptor deprecated

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

Deprecated: Use PublicKeyWithName.ProtoReflect.Descriptor instead.

func (*PublicKeyWithName) GetName

func (x *PublicKeyWithName) GetName() string

func (*PublicKeyWithName) GetPublicKey

func (x *PublicKeyWithName) GetPublicKey() *PublicKey

func (*PublicKeyWithName) ProtoMessage

func (*PublicKeyWithName) ProtoMessage()

func (*PublicKeyWithName) ProtoReflect

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

func (*PublicKeyWithName) Reset

func (x *PublicKeyWithName) Reset()

func (*PublicKeyWithName) String

func (x *PublicKeyWithName) String() string

type PublicKey_EncryptionPublicKey

type PublicKey_EncryptionPublicKey struct {
	EncryptionPublicKey *EncryptionPublicKey `protobuf:"bytes,2,opt,name=encryption_public_key,json=encryptionPublicKey,proto3,oneof"`
}

type PublicKey_SigningPublicKey

type PublicKey_SigningPublicKey struct {
	SigningPublicKey *SigningPublicKey `protobuf:"bytes,1,opt,name=signing_public_key,json=signingPublicKey,proto3,oneof"`
}

type RequiredEncryptionSpecs

type RequiredEncryptionSpecs struct {
	Algorithms []EncryptionAlgorithmSpec `` /* 145-byte string literal not displayed */
	Keys       []EncryptionKeySpec       `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RequiredEncryptionSpecs) Descriptor deprecated

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

Deprecated: Use RequiredEncryptionSpecs.ProtoReflect.Descriptor instead.

func (*RequiredEncryptionSpecs) GetAlgorithms

func (x *RequiredEncryptionSpecs) GetAlgorithms() []EncryptionAlgorithmSpec

func (*RequiredEncryptionSpecs) GetKeys

func (*RequiredEncryptionSpecs) ProtoMessage

func (*RequiredEncryptionSpecs) ProtoMessage()

func (*RequiredEncryptionSpecs) ProtoReflect

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

func (*RequiredEncryptionSpecs) Reset

func (x *RequiredEncryptionSpecs) Reset()

func (*RequiredEncryptionSpecs) String

func (x *RequiredEncryptionSpecs) String() string

type Salt

type Salt struct {

	// Types that are assignable to Algorithm:
	//
	//	*Salt_Hmac
	Algorithm isSalt_Algorithm `protobuf_oneof:"algorithm"`
	Salt      []byte           `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"`
	// contains filtered or unexported fields
}

func (*Salt) Descriptor deprecated

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

Deprecated: Use Salt.ProtoReflect.Descriptor instead.

func (*Salt) GetAlgorithm

func (m *Salt) GetAlgorithm() isSalt_Algorithm

func (*Salt) GetHmac

func (x *Salt) GetHmac() HmacAlgorithm

func (*Salt) GetSalt

func (x *Salt) GetSalt() []byte

func (*Salt) ProtoMessage

func (*Salt) ProtoMessage()

func (*Salt) ProtoReflect

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

func (*Salt) Reset

func (x *Salt) Reset()

func (*Salt) String

func (x *Salt) String() string

type Salt_Hmac

type Salt_Hmac struct {
	Hmac HmacAlgorithm `protobuf:"varint,1,opt,name=hmac,proto3,enum=com.digitalasset.canton.crypto.v30.HmacAlgorithm,oneof"`
}

type Signature

type Signature struct {
	Format    SignatureFormat `protobuf:"varint,1,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.SignatureFormat" json:"format,omitempty"`
	Signature []byte          `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	SignedBy  string          `protobuf:"bytes,3,opt,name=signed_by,json=signedBy,proto3" json:"signed_by,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetFormat

func (x *Signature) GetFormat() SignatureFormat

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) GetSignedBy

func (x *Signature) GetSignedBy() string

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type SignatureFormat

type SignatureFormat int32
const (
	SignatureFormat_SIGNATURE_FORMAT_UNSPECIFIED SignatureFormat = 0
	SignatureFormat_SIGNATURE_FORMAT_RAW         SignatureFormat = 1
)

func (SignatureFormat) Descriptor

func (SignatureFormat) Enum

func (x SignatureFormat) Enum() *SignatureFormat

func (SignatureFormat) EnumDescriptor deprecated

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

Deprecated: Use SignatureFormat.Descriptor instead.

func (SignatureFormat) Number

func (SignatureFormat) String

func (x SignatureFormat) String() string

func (SignatureFormat) Type

type SigningKeyPair

type SigningKeyPair struct {
	PublicKey  *SigningPublicKey  `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	PrivateKey *SigningPrivateKey `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningKeyPair) Descriptor deprecated

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

Deprecated: Use SigningKeyPair.ProtoReflect.Descriptor instead.

func (*SigningKeyPair) GetPrivateKey

func (x *SigningKeyPair) GetPrivateKey() *SigningPrivateKey

func (*SigningKeyPair) GetPublicKey

func (x *SigningKeyPair) GetPublicKey() *SigningPublicKey

func (*SigningKeyPair) ProtoMessage

func (*SigningKeyPair) ProtoMessage()

func (*SigningKeyPair) ProtoReflect

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

func (*SigningKeyPair) Reset

func (x *SigningKeyPair) Reset()

func (*SigningKeyPair) String

func (x *SigningKeyPair) String() string

type SigningKeyScheme

type SigningKeyScheme int32
const (
	SigningKeyScheme_SIGNING_KEY_SCHEME_UNSPECIFIED SigningKeyScheme = 0
	SigningKeyScheme_SIGNING_KEY_SCHEME_ED25519     SigningKeyScheme = 1
	SigningKeyScheme_SIGNING_KEY_SCHEME_EC_DSA_P256 SigningKeyScheme = 2
	SigningKeyScheme_SIGNING_KEY_SCHEME_EC_DSA_P384 SigningKeyScheme = 3
)

func (SigningKeyScheme) Descriptor

func (SigningKeyScheme) Enum

func (SigningKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use SigningKeyScheme.Descriptor instead.

func (SigningKeyScheme) Number

func (SigningKeyScheme) String

func (x SigningKeyScheme) String() string

func (SigningKeyScheme) Type

type SigningPrivateKey

type SigningPrivateKey struct {
	Id         string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Format     CryptoKeyFormat  `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.CryptoKeyFormat" json:"format,omitempty"`
	PrivateKey []byte           `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	Scheme     SigningKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v30.SigningKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningPrivateKey) Descriptor deprecated

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

Deprecated: Use SigningPrivateKey.ProtoReflect.Descriptor instead.

func (*SigningPrivateKey) GetFormat

func (x *SigningPrivateKey) GetFormat() CryptoKeyFormat

func (*SigningPrivateKey) GetId

func (x *SigningPrivateKey) GetId() string

func (*SigningPrivateKey) GetPrivateKey

func (x *SigningPrivateKey) GetPrivateKey() []byte

func (*SigningPrivateKey) GetScheme

func (x *SigningPrivateKey) GetScheme() SigningKeyScheme

func (*SigningPrivateKey) ProtoMessage

func (*SigningPrivateKey) ProtoMessage()

func (*SigningPrivateKey) ProtoReflect

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

func (*SigningPrivateKey) Reset

func (x *SigningPrivateKey) Reset()

func (*SigningPrivateKey) String

func (x *SigningPrivateKey) String() string

type SigningPublicKey

type SigningPublicKey struct {
	Format    CryptoKeyFormat  `protobuf:"varint,2,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.CryptoKeyFormat" json:"format,omitempty"`
	PublicKey []byte           `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Scheme    SigningKeyScheme `protobuf:"varint,4,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v30.SigningKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SigningPublicKey) Descriptor deprecated

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

Deprecated: Use SigningPublicKey.ProtoReflect.Descriptor instead.

func (*SigningPublicKey) GetFormat

func (x *SigningPublicKey) GetFormat() CryptoKeyFormat

func (*SigningPublicKey) GetPublicKey

func (x *SigningPublicKey) GetPublicKey() []byte

func (*SigningPublicKey) GetScheme

func (x *SigningPublicKey) GetScheme() SigningKeyScheme

func (*SigningPublicKey) ProtoMessage

func (*SigningPublicKey) ProtoMessage()

func (*SigningPublicKey) ProtoReflect

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

func (*SigningPublicKey) Reset

func (x *SigningPublicKey) Reset()

func (*SigningPublicKey) String

func (x *SigningPublicKey) String() string

type SymmetricKey

type SymmetricKey struct {
	Format CryptoKeyFormat    `protobuf:"varint,1,opt,name=format,proto3,enum=com.digitalasset.canton.crypto.v30.CryptoKeyFormat" json:"format,omitempty"`
	Key    []byte             `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Scheme SymmetricKeyScheme `protobuf:"varint,3,opt,name=scheme,proto3,enum=com.digitalasset.canton.crypto.v30.SymmetricKeyScheme" json:"scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*SymmetricKey) Descriptor deprecated

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

Deprecated: Use SymmetricKey.ProtoReflect.Descriptor instead.

func (*SymmetricKey) GetFormat

func (x *SymmetricKey) GetFormat() CryptoKeyFormat

func (*SymmetricKey) GetKey

func (x *SymmetricKey) GetKey() []byte

func (*SymmetricKey) GetScheme

func (x *SymmetricKey) GetScheme() SymmetricKeyScheme

func (*SymmetricKey) ProtoMessage

func (*SymmetricKey) ProtoMessage()

func (*SymmetricKey) ProtoReflect

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

func (*SymmetricKey) Reset

func (x *SymmetricKey) Reset()

func (*SymmetricKey) String

func (x *SymmetricKey) String() string

type SymmetricKeyScheme

type SymmetricKeyScheme int32
const (
	SymmetricKeyScheme_SYMMETRIC_KEY_SCHEME_UNSPECIFIED SymmetricKeyScheme = 0
	SymmetricKeyScheme_SYMMETRIC_KEY_SCHEME_AES128GCM   SymmetricKeyScheme = 1
)

func (SymmetricKeyScheme) Descriptor

func (SymmetricKeyScheme) Enum

func (SymmetricKeyScheme) EnumDescriptor deprecated

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

Deprecated: Use SymmetricKeyScheme.Descriptor instead.

func (SymmetricKeyScheme) Number

func (SymmetricKeyScheme) String

func (x SymmetricKeyScheme) String() string

func (SymmetricKeyScheme) Type

Jump to

Keyboard shortcuts

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