Documentation ¶
Index ¶
- type DilithiumSigner
- type ExchangeSession
- type ExchangeStatus
- type KeyExchange
- type KyberEncryptor
- func (e *KyberEncryptor) Decrypt(ctx context.Context, privateKey, ciphertext []byte) (sharedSecret []byte, err error)
- func (e *KyberEncryptor) Encrypt(ctx context.Context, publicKey, data []byte) (ciphertext, sharedSecret []byte, err error)
- func (e *KyberEncryptor) GenerateKeyPair(ctx context.Context) (publicKey, privateKey []byte, err error)
- type SPHINCSPlusSigner
- func (s *SPHINCSPlusSigner) GenerateKeyPair(ctx context.Context) (publicKey, privateKey []byte, err error)
- func (s *SPHINCSPlusSigner) Sign(ctx context.Context, privateKey, message []byte) ([]byte, error)
- func (s *SPHINCSPlusSigner) Verify(ctx context.Context, publicKey, message, signature []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DilithiumSigner ¶
type DilithiumSigner struct {
// contains filtered or unexported fields
}
func NewDilithiumSigner ¶
func NewDilithiumSigner(tracer tracing.Tracer) *DilithiumSigner
func (*DilithiumSigner) GenerateKeyPair ¶
func (s *DilithiumSigner) GenerateKeyPair(ctx context.Context) (publicKey, privateKey []byte, err error)
type ExchangeSession ¶
type ExchangeStatus ¶
type ExchangeStatus string
const ( ExchangeStatusInitiated ExchangeStatus = "initiated" ExchangeStatusCompleted ExchangeStatus = "completed" ExchangeStatusFailed ExchangeStatus = "failed" )
type KeyExchange ¶
type KeyExchange struct {
// contains filtered or unexported fields
}
func NewKeyExchange ¶
func NewKeyExchange( metrics *metrics.QuantumStorageMetrics, tracer tracing.Tracer, ) *KeyExchange
func (*KeyExchange) CompleteExchange ¶
func (ke *KeyExchange) CompleteExchange(ctx context.Context, session *ExchangeSession) error
func (*KeyExchange) InitiateExchange ¶
func (ke *KeyExchange) InitiateExchange(ctx context.Context) (*ExchangeSession, error)
type KyberEncryptor ¶
type KyberEncryptor struct {
// contains filtered or unexported fields
}
func NewKyberEncryptor ¶
func NewKyberEncryptor(tracer tracing.Tracer) *KyberEncryptor
func (*KyberEncryptor) GenerateKeyPair ¶
func (e *KyberEncryptor) GenerateKeyPair(ctx context.Context) (publicKey, privateKey []byte, err error)
type SPHINCSPlusSigner ¶
type SPHINCSPlusSigner struct {
// contains filtered or unexported fields
}
func NewSPHINCSPlusSigner ¶
func NewSPHINCSPlusSigner(tracer tracing.Tracer, metrics *metrics.QuantumStorageMetrics) *SPHINCSPlusSigner
func (*SPHINCSPlusSigner) GenerateKeyPair ¶
func (s *SPHINCSPlusSigner) GenerateKeyPair(ctx context.Context) (publicKey, privateKey []byte, err error)
Click to show internal directories.
Click to hide internal directories.