csp

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 14 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) (*ecdsa.PrivateKey, error)

func LoadPrivateKey

func LoadPrivateKey(keystorePath string) (*ecdsa.PrivateKey, error)

Types

type ECDSASignature

type ECDSASignature struct {
	R, S *big.Int
}

type ECDSASigner

type ECDSASigner struct {
	PrivateKey *ecdsa.PrivateKey
}

func (*ECDSASigner) Public

func (e *ECDSASigner) Public() crypto.PublicKey

func (*ECDSASigner) Sign

func (e *ECDSASigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)

Jump to

Keyboard shortcuts

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