cryptogolang.org/x/crypto/ssh/internal/bcrypt_pbkdf Index | Files

package bcrypt_pbkdf

import "golang.org/x/crypto/ssh/internal/bcrypt_pbkdf"

Package bcrypt_pbkdf implements bcrypt_pbkdf(3) from OpenBSD.

See https://flak.tedunangst.com/post/bcrypt-pbkdf and https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libutil/bcrypt_pbkdf.c.

Index

Functions

func Key

func Key(password, salt []byte, rounds, keyLen int) ([]byte, error)

Key derives a key from the password, salt and rounds count, returning a []byte of length keyLen that can be used as cryptographic key.

Source Files

bcrypt_pbkdf.go

Version
v0.34.0 (latest)
Published
Feb 22, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.