...

Package bcrypt_pbkdf

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

Overview ▾

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.

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.