github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbcrypto/hash_type.go (about)

     1  // Copyright 2018 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  package kbcrypto
     5  
     6  type HashType int
     7  
     8  // OpenPGP hash IDs, taken from http://tools.ietf.org/html/rfc4880#section-9.4
     9  const (
    10  	HashPGPMd5       HashType = 1
    11  	HashPGPSha1      HashType = 2
    12  	HashPGPRipemd160 HashType = 3
    13  	HashPGPSha256    HashType = 8
    14  	HashPGPSha384    HashType = 9
    15  	HashPGPSha512    HashType = 10
    16  	HashPGPSha224    HashType = 11
    17  )