Movatterモバイル変換


[0]ホーム

URL:


Alert GO-2024-3228: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
Notice  The highest tagged major version isv2.

gitsshkey

package
v0.27.3Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License:AGPL-3.0Imports:18Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcGenerate

func Generate(algoAlgorithm) (privateKeystring, publicKeystring, errerror)

Generate creates a private key in the OpenSSH PEM format and public key inthe authorized key format.

funcMarshalED25519PrivateKey

func MarshalED25519PrivateKey(keyed25519.PrivateKey) ([]byte,error)

Types

typeAlgorithm

type Algorithmstring
const (// AlgorithmEd25519 is the Edwards-curve Digital Signature Algorithm using Curve25519AlgorithmEd25519Algorithm = "ed25519"// AlgorithmECDSA is the Digital Signature Algorithm (DSA) using NIST Elliptic CurveAlgorithmECDSAAlgorithm = "ecdsa"// AlgorithmRSA4096 is the venerable Rivest-Shamir-Adleman algorithm// and creates a key with a fixed size of 4096-bit.AlgorithmRSA4096Algorithm = "rsa4096")

funcParseAlgorithm

func ParseAlgorithm(tstring) (Algorithm,error)

ParseAlgorithm returns a valid Algorithm or error if input is not a valid.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp