x509util

package
v0.0.0-...-29c6822 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: MIT, MIT, MIT Imports: 9 Imported by: 0

Documentation

Overview

package x509 provides utilities for working with x509 types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignatureAlgorithmDetailsForOid

func SignatureAlgorithmDetailsForOid(oid asn1.ObjectIdentifier) (x509.SignatureAlgorithm, crypto.Hash, error)

SignatureAlgorithmDetailsForOid returns a matching SignatureAlgorithm and crypto.Hash function from a provided oid.

func SigningParamsForPublicKey

func SigningParamsForPublicKey(pub interface{}, requestedSigAlgo x509.SignatureAlgorithm) (hashFunc crypto.Hash, sigAlgo pkix.AlgorithmIdentifier, err error)

SigningParamsForPublicKey returns the parameters to use for signing. If requestedSigAlgo is not zero then it overrides the default signature algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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