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 ¶
- func DerDecode(data []byte) (*pem.Block, error)
- func ParseCertificate(derBytes []byte) ([]byte, error)
- func ParsePKCS8PrivateKey(derBytes []byte) (key *gost3410.PrivateKey, err error)
- func ParsePKIXPublicKey(derBytes []byte) (pub *gost3410.PublicKey, err error)
- func ParsePKIXPublicKeyHash(derBytes []byte) (hash hash.Hash, err error)
- func Reverse(d []byte)
- type GostR34102012PublicKeyParameters
- type PublicKeyAlgorithm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCertificate ¶
func ParsePKCS8PrivateKey ¶
func ParsePKCS8PrivateKey(derBytes []byte) (key *gost3410.PrivateKey, err error)
func ParsePKIXPublicKey ¶
func ParsePKIXPublicKeyHash ¶
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
Click to show internal directories.
Click to hide internal directories.