ecdsa

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package ecdsa implements ECDSA operations as described in the specifications at §23 (https://www.w3.org/TR/WebCryptoAPI/#ecdsa).

Index

Constants

View Source
const (
	P256 string = "P-256"
	P384 string = "P-384"
	P521 string = "P-521"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoKey

type CryptoKey struct {
	// contains filtered or unexported fields
}

CryptoKey represents an ECDSA cryptography key.

func (*CryptoKey) Algorithm

func (c *CryptoKey) Algorithm() webcrypto.KeyAlgorithm

func (*CryptoKey) Extractable

func (c *CryptoKey) Extractable() bool

func (*CryptoKey) Type

func (c *CryptoKey) Type() webcrypto.KeyType

func (*CryptoKey) Usages

func (c *CryptoKey) Usages() []webcrypto.KeyUsage

type KeyAlgorithm

type KeyAlgorithm struct {
	// contains filtered or unexported fields
}

KeyAlgorithm is the implementation of the dictionary specificationn at §23.5 (https://www.w3.org/TR/WebCryptoAPI/#dfn-EcKeyAlgorithm)

func (*KeyAlgorithm) Name

func (k *KeyAlgorithm) Name() string

func (*KeyAlgorithm) NamedCurve

func (k *KeyAlgorithm) NamedCurve() string

type KeyGenParams

type KeyGenParams struct {
	NamedCurve string
}

type KeyImportParams

type KeyImportParams struct {
	NamedCurve string
}

type Params

type Params struct {
	Hash string
}

Jump to

Keyboard shortcuts

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