type crypto.Hash
59 uses
crypto (current package)
crypto.go#L16: type Hash uint
crypto.go#L19: func (h Hash) HashFunc() Hash {
crypto.go#L23: func (h Hash) String() string {
crypto.go#L69: MD4 Hash = 1 + iota // import golang.org/x/crypto/md4
crypto.go#L116: func (h Hash) Size() int {
crypto.go#L127: func (h Hash) New() hash.Hash {
crypto.go#L138: func (h Hash) Available() bool {
crypto.go#L145: func RegisterHash(h Hash, f func() hash.Hash) {
crypto.go#L206: HashFunc() Hash
crypto/ed25519
ed25519.go#L108: case hash == crypto.Hash(0) && context != "": // Ed25519ctx
ed25519.go#L115: case hash == crypto.Hash(0): // Ed25519
ed25519.go#L126: Hash crypto.Hash
ed25519.go#L134: func (o *Options) HashFunc() crypto.Hash { return o.Hash }
ed25519.go#L295: case opts.Hash == crypto.Hash(0) && opts.Context != "": // Ed25519ctx
ed25519.go#L303: case opts.Hash == crypto.Hash(0): // Ed25519
crypto/internal/boring
notboring.go#L101: func SignRSAPKCS1v15(priv *PrivateKeyRSA, h crypto.Hash, hashed []byte) ([]byte, error) {
notboring.go#L104: func SignRSAPSS(priv *PrivateKeyRSA, h crypto.Hash, hashed []byte, saltLen int) ([]byte, error) {
notboring.go#L107: func VerifyRSAPKCS1v15(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte) error {
notboring.go#L110: func VerifyRSAPSS(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte, saltLen int) error {
crypto/internal/hpke
hpke.go#L26: hash crypto.Hash
hpke.go#L64: hash crypto.Hash
crypto/rsa
pkcs1v15.go#L265: var hashPrefixes = map[crypto.Hash][]byte{
pkcs1v15.go#L288: func SignPKCS1v15(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
pkcs1v15.go#L307: func pkcs1v15ConstructEM(pub *PublicKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
pkcs1v15.go#L345: func VerifyPKCS1v15(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte) error {
pss.go#L210: func signPSSWithSalt(priv *PrivateKey, hash crypto.Hash, hashed, salt []byte) ([]byte, error) {
pss.go#L266: Hash crypto.Hash
pss.go#L270: func (opts *PSSOptions) HashFunc() crypto.Hash {
pss.go#L292: func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) {
pss.go#L344: func VerifyPSS(pub *PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *PSSOptions) error {
rsa.go#L76: Hash crypto.Hash
rsa.go#L80: MGFHash crypto.Hash
crypto/sha512
sha512.go#L88: function crypto.Hash
crypto/tls
auth.go#L22: func verifyHandshakeSignature(sigType uint8, pubkey crypto.PublicKey, hashFunc crypto.Hash, signed, sig []byte) error {
auth.go#L81: func signedMessage(sigHash crypto.Hash, context string, transcript hash.Hash) []byte {
auth.go#L98: func typeAndHashFromSignatureScheme(signatureAlgorithm SignatureScheme) (sigType uint8, hash crypto.Hash, err error) {
auth.go#L131: func legacyTypeAndHashFromPublicKey(pub crypto.PublicKey) (sigType uint8, hash crypto.Hash, err error) {
cipher_suites.go#L198: hash crypto.Hash
common.go#L206: var directSigning crypto.Hash = 0
handshake_client.go#L789: var sigHash crypto.Hash
handshake_server.go#L721: var sigHash crypto.Hash
handshake_server_tls13.go#L437: func cloneHash(in hash.Hash, h crypto.Hash) hash.Hash {
key_agreement.go#L132: func hashForServerKeyExchange(sigType uint8, hashFunc crypto.Hash, version uint16, slices ...[]byte) []byte {
key_agreement.go#L207: var sigHash crypto.Hash
key_agreement.go#L322: var sigHash crypto.Hash
prf.go#L88: func prfAndHashForVersion(version uint16, suite *cipherSuite) (func(result, secret, label, seed []byte), crypto.Hash) {
prf.go#L91: return prf10, crypto.Hash(0)
prf.go#L227: func (h finishedHash) hashForClientCertificate(sigType uint8, hashAlg crypto.Hash) []byte {
crypto/x509
x509.go#L244: func (algo SignatureAlgorithm) hashFunc() crypto.Hash {
x509.go#L250: return crypto.Hash(0)
x509.go#L367: hash crypto.Hash
x509.go#L385: {PureEd25519, "Ed25519", oidSignatureEd25519, emptyRawValue, Ed25519, crypto.Hash(0) /* no pre-hashing */, false},
x509.go#L895: var hashType crypto.Hash
x509.go#L907: case crypto.Hash(0):
github.com/golang-jwt/jwt/v5
ecdsa.go#L20: Hash crypto.Hash
ed25519.go#L73: sig, err := ed25519Key.Sign(rand.Reader, []byte(signingString), crypto.Hash(0))
hmac.go#L13: Hash crypto.Hash
rsa.go#L13: Hash crypto.Hash
 |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |