• Adam Langley's avatar
    crypto: add package. · e308d559
    Adam Langley authored
    The crypto package is added as a common place to store identifiers for
    hash functions. At the moment, the rsa package has an enumeration of
    hash functions and knowledge of their digest lengths. This is an
    unfortunate coupling and other high level crypto packages tend to need
    to duplicate this enumeration and knowledge (i.e. openpgp).
    
    crypto pulls this code out into a common location.
    
    It would also make sense to add similar support for ciphers to crypto,
    but the problem there isn't as acute that isn't done in this change.
    
    R=bradfitzgo, r, rsc
    CC=golang-dev
    https://golang.org/cl/4080046
    e308d559
Name
Last commit
Last update
..
aes Loading commit data...
block Loading commit data...
blowfish Loading commit data...
cast5 Loading commit data...
cipher Loading commit data...
dsa Loading commit data...
elliptic Loading commit data...
hmac Loading commit data...
md4 Loading commit data...
md5 Loading commit data...
ocsp Loading commit data...
openpgp Loading commit data...
rand Loading commit data...
rc4 Loading commit data...
ripemd160 Loading commit data...
rsa Loading commit data...
sha1 Loading commit data...
sha256 Loading commit data...
sha512 Loading commit data...
subtle Loading commit data...
tls Loading commit data...
twofish Loading commit data...
x509 Loading commit data...
xtea Loading commit data...
Makefile Loading commit data...
crypto.go Loading commit data...