...

Package ssh

import "crypto/internal/fips140/ssh"
Overview
Index

Overview ▾

Package ssh implements the SSH KDF as specified in RFC 4253, Section 7.2 and allowed by SP 800-135 Revision 1.

func Keys

func Keys[Hash fips140.Hash](hash func() Hash, d Direction,
    K, H, sessionID []byte,
    ivKeyLen, keyLen, macKeyLen int,
) (ivKey, key, macKey []byte)

type Direction

type Direction struct {
    // contains filtered or unexported fields
}
var ServerKeys, ClientKeys Direction