keyutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package keyutil provides commonly used test functions to generate RSA keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRSAPrivateKey

func ReadRSAPrivateKey(rsaPrivateKeyPEM string) (*rsa.PrivateKey, error)

ReadRSAPrivateKey encrypts a PEM encoding RSA key string and returns the decoded RSA key.

func TestGenerateRSAPrivateKey

func TestGenerateRSAPrivateKey(tb testing.TB) (string, *rsa.PrivateKey)

TestGenerateRsaPrivateKey generates a rsa Key for testing use. It returns the PEM decoded private key string and the rsa.PrivateKey it itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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