gost_crypto

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

README

go-gost-crypto

Module for reading certificates and private key in DER format with GOST algorithms

Documentation

Overview

* Copyright © 2020-present Artem V. Zaborskiy <ftomza@yandex.ru>. All rights reserved. * * This source code is licensed under the Apache 2.0 license found * in the LICENSE file in the root directory of this source tree.

* Copyright © 2020-present Artem V. Zaborskiy <ftomza@yandex.ru>. All rights reserved. * * This source code is licensed under the Apache 2.0 license found * in the LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerDecode

func DerDecode(data []byte) (*pem.Block, error)

func ParseCertificate

func ParseCertificate(derBytes []byte) ([]byte, error)

func ParsePKCS8PrivateKey

func ParsePKCS8PrivateKey(derBytes []byte) (key *gost3410.PrivateKey, err error)

func ParsePKIXPublicKey

func ParsePKIXPublicKey(derBytes []byte) (pub *gost3410.PublicKey, err error)

func ParsePKIXPublicKeyHash

func ParsePKIXPublicKeyHash(derBytes []byte) (hash hash.Hash, err error)

func Reverse

func Reverse(d []byte)

Types

type GostR34102012PublicKeyParameters

type GostR34102012PublicKeyParameters struct {
	PublicKeyParamSet asn1.ObjectIdentifier
	DigestParamSet    asn1.ObjectIdentifier `asn1:"optional"`
}

type PublicKeyAlgorithm

type PublicKeyAlgorithm int
const (
	UnknownPublicKeyAlgorithm PublicKeyAlgorithm = iota
	GOST
)

func (PublicKeyAlgorithm) String

func (algo PublicKeyAlgorithm) String() string

Jump to

Keyboard shortcuts

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