publickeyinfo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package publickeyinfo provides en: structure of the public key representation in the asn.1, methods for this structure

and the decoding function from DER

ru: структуру представления публичного ключа в asn.1, методы для этой структуры

и функцию декодирования из DER

asn.1 - Abstract Syntax Notation One (ASN. 1) is a standard interface description language for defining data structures that can be serialized and deserialized in a cross-platform way. It is broadly used in telecommunications and computer networking, and especially in cryptography. https://en.wikipedia.org/wiki/ASN.1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Raw       asn1.RawContent
	Algorithm pkix.AlgorithmIdentifier
	PublicKey asn1.BitString
}

Container - asn.1 Certificate PublicKey structure RFC5280

func DecodeDER

func DecodeDER(der containers.DER) (*Container, error)

func (*Container) GetAlgorithm

func (pki *Container) GetAlgorithm() (publickeyalgorithm.PublicKeyAlgorithm, error)

func (*Container) GetHashFunction

func (pki *Container) GetHashFunction() (hashOid.Function, error)

func (*Container) GetPublicKey

func (pki *Container) GetPublicKey() (*gost3410.PublicKey, error)

Jump to

Keyboard shortcuts

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