types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: BSD-3-Clause-Clear Imports: 2 Imported by: 0

Documentation

Overview

Package types provides shared types for the OpenTDF library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	// RSA keys for OpenTDF format
	RSAPrivateKey *rsa.PrivateKey
	RSAPublicKey  *rsa.PublicKey

	// ECC keys for NanoTDF format
	ECCPrivateKey *ecdsa.PrivateKey
	ECCPublicKey  *ecdsa.PublicKey
}

KeyPair represents a generic key pair for encryption operations.

func (*KeyPair) HasECC

func (kp *KeyPair) HasECC() bool

HasECC returns true if ECC keys are available.

func (*KeyPair) HasRSA

func (kp *KeyPair) HasRSA() bool

HasRSA returns true if RSA keys are available.

Jump to

Keyboard shortcuts

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