Namespace: go.std.crypto
v1.0Contents
Summary
Provides a low-level interface to the crypto package.
Package crypto collects common cryptographic constants.
Index
- *Hash
- BLAKE2b_256
- BLAKE2b_384
- BLAKE2b_512
- BLAKE2s_256
- Decrypter
- DecrypterOpts
- Hash
- MD4
- MD5
- MD5SHA1
- PrivateKey
- PublicKey
- RIPEMD160
- SHA1
- SHA224
- SHA256
- SHA384
- SHA3_224
- SHA3_256
- SHA3_384
- SHA3_512
- SHA512
- SHA512_224
- SHA512_256
- Signer
- SignerOpts
- arrayOfDecrypter
- arrayOfDecrypterOpts
- arrayOfHash
- arrayOfPrivateKey
- arrayOfPublicKey
- arrayOfSigner
- arrayOfSignerOpts
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
BLAKE2b_256
GoObject v1.0import golang.org/x/crypto/blake2b
-
BLAKE2b_384
GoObject v1.0import golang.org/x/crypto/blake2b
-
BLAKE2b_512
GoObject v1.0import golang.org/x/crypto/blake2b
-
BLAKE2s_256
GoObject v1.0import golang.org/x/crypto/blake2s
-
MD4
GoObject v1.0import golang.org/x/crypto/md4
-
MD5
GoObject v1.0import crypto/md5
-
MD5SHA1
GoObject v1.0no implementation; MD5+SHA1 used for TLS RSA
-
RIPEMD160
GoObject v1.0import golang.org/x/crypto/ripemd160
-
SHA1
GoObject v1.0import crypto/sha1
-
SHA224
GoObject v1.0import crypto/sha256
-
SHA256
GoObject v1.0import crypto/sha256
-
SHA384
GoObject v1.0import crypto/sha512
-
SHA3_224
GoObject v1.0import golang.org/x/crypto/sha3
-
SHA3_256
GoObject v1.0import golang.org/x/crypto/sha3
-
SHA3_384
GoObject v1.0import golang.org/x/crypto/sha3
-
SHA3_512
GoObject v1.0import golang.org/x/crypto/sha3
-
SHA512
GoObject v1.0import crypto/sha512
-
SHA512_224
GoObject v1.0import crypto/sha512
-
SHA512_256
GoObject v1.0import crypto/sha512
Functions, Macros, and Special Forms
-
(None.)
Types
-
*Hash
Concrete Type v1.0Hash identifies a cryptographic hash function that is implemented in another
package.
-
Decrypter
Abstract Type v1.0Decrypter is an interface for an opaque private key that can be used for
asymmetric decryption operations. An example would be an RSA key
kept in a hardware module.
-
Decrypt
Method for Decrypter v1.0([rand msg opts])
-
Public
Method for Decrypter v1.0([])
-
DecrypterOpts
Abstract Type v1.0 -
Hash
Concrete Type v1.0Hash identifies a cryptographic hash function that is implemented in another
package.
-
Available
Receiver for Hash v1.0([])
Available reports whether the given hash function is linked into the binary.
-
HashFunc
Receiver for Hash v1.0([])
HashFunc simply returns the value of h so that Hash implements SignerOpts.
-
New
Receiver for Hash v1.0([])
New returns a new hash.Hash calculating the given hash function. New panics
if the hash function is not linked into the binary.
-
Size
Receiver for Hash v1.0([])
Size returns the length, in bytes, of a digest resulting from the given hash
function. It doesn't require that the hash function in question be linked
into the program.
-
String
Receiver for Hash v1.0([])
-
PrivateKey
Abstract Type v1.0PrivateKey represents a private key using an unspecified algorithm.
Although this type is an empty interface for backwards compatibility reasons,
all private key types in the standard library implement the following interface
interface{
Public() crypto.PublicKey
Equal(x crypto.PrivateKey) bool
}
as well as purpose-specific interfaces such as Signer and Decrypter, which
can be used for increased type safety within applications.
-
PublicKey
Abstract Type v1.0PublicKey represents a public key using an unspecified algorithm.
Although this type is an empty interface for backwards compatibility reasons,
all public key types in the standard library implement the following interface
interface{
Equal(x crypto.PublicKey) bool
}
which can be used for increased type safety within applications.
-
Signer
Abstract Type v1.0Signer is an interface for an opaque private key that can be used for
signing operations. For example, an RSA key kept in a hardware module.
-
Public
Method for Signer v1.0([])
-
Sign
Method for Signer v1.0([rand digest opts])
-
SignerOpts
Abstract Type v1.0SignerOpts contains options for signing with a Signer.
-
HashFunc
Method for SignerOpts v1.0([])
-
arrayOfDecrypter
Concrete Type v1.0Decrypter is an interface for an opaque private key that can be used for
asymmetric decryption operations. An example would be an RSA key
kept in a hardware module.
-
arrayOfDecrypterOpts
Concrete Type v1.0 -
arrayOfHash
Concrete Type v1.0Hash identifies a cryptographic hash function that is implemented in another
package.
-
arrayOfPrivateKey
Concrete Type v1.0PrivateKey represents a private key using an unspecified algorithm.
Although this type is an empty interface for backwards compatibility reasons,
all private key types in the standard library implement the following interface
interface{
Public() crypto.PublicKey
Equal(x crypto.PrivateKey) bool
}
as well as purpose-specific interfaces such as Signer and Decrypter, which
can be used for increased type safety within applications.
-
arrayOfPublicKey
Concrete Type v1.0PublicKey represents a public key using an unspecified algorithm.
Although this type is an empty interface for backwards compatibility reasons,
all public key types in the standard library implement the following interface
interface{
Equal(x crypto.PublicKey) bool
}
which can be used for increased type safety within applications.
-
arrayOfSigner
Concrete Type v1.0Signer is an interface for an opaque private key that can be used for
signing operations. For example, an RSA key kept in a hardware module.
-
arrayOfSignerOpts
Concrete Type v1.0SignerOpts contains options for signing with a Signer.