csp

package
v0.0.0-...-15ab7cc Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey(keystorePath string, keyOpts bccsp.KeyGenOpts) (bccsp.Key,
	crypto.Signer, error)

GeneratePrivateKey creates a private key and stores it in keystorePath

func GetECPublicKey

func GetECPublicKey(priv bccsp.Key) (*ecdsa.PublicKey, error)

func GetQSPublicKey

func GetQSPublicKey(priv bccsp.Key) (*oqs.PublicKey, error)

TODO(amelia): It's a bit sad that this (and above) function are required. Feels like we're all doing something wrong.

func LoadPrivateKey

func LoadPrivateKey(keystorePath string) (bccsp.Key, crypto.Signer, error)

LoadPrivateKey loads a private key from file in keystorePath

Types

This section is empty.

Jump to

Keyboard shortcuts

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