Documentation ¶
Overview ¶
Package krypto collects cryptographic algorithms designed in Republic of Korea
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHash ¶
func RegisterHash(h KryptoHash, f func() hash.Hash)
RegisterHash registers a function that returns a new instance of the given hash function. This is intended to be called from the init function in packages that implement hash functions.
Types ¶
type KryptoHash ¶
type KryptoHash uint
Hash identifies a cryptographic hash function that is implemented in another package.
const ( HAS160 KryptoHash // import github.com/RyuaNerin/go-krypto/has160 LSH256_224 // import github.com/RyuaNerin/go-krypto/lsh256 LSH256 // import github.com/RyuaNerin/go-krypto/lsh256 LSH512_224 // import github.com/RyuaNerin/go-krypto/lsh512 LSH512_256 // import github.com/RyuaNerin/go-krypto/lsh512 LSH512_384 // import github.com/RyuaNerin/go-krypto/lsh512 LSH512 // import github.com/RyuaNerin/go-krypto/lsh512 )
func (KryptoHash) Available ¶
func (h KryptoHash) Available() bool
Available reports whether the given hash function is linked into the binary.
func (KryptoHash) New ¶
func (h KryptoHash) New() hash.Hash
New returns a new hash.Hash calculating the given hash function. New panics if the hash function is not linked into the binary.
func (KryptoHash) Size ¶
func (h KryptoHash) Size() int
func (KryptoHash) String ¶
func (h KryptoHash) String() string
Directories ¶
Path | Synopsis |
---|---|
Package aria implements ARIA encryption, as defined in KS X 1213-1
|
Package aria implements ARIA encryption, as defined in KS X 1213-1 |
Package cmac implements CMAC(Cipher Message Authentication Code) as defined in NIST SP 800-38B, KS X ISO/IEC 9797-1.
|
Package cmac implements CMAC(Cipher Message Authentication Code) as defined in NIST SP 800-38B, KS X ISO/IEC 9797-1. |
cmd
|
|
drbg implemented deterministic random bit generator as defined in TTAK.KO-12.0331, TTAK.KO-12.0332, TTAK.KO-12.0189/R1, NIST SP 800-90A.
|
drbg implemented deterministic random bit generator as defined in TTAK.KO-12.0331, TTAK.KO-12.0332, TTAK.KO-12.0189/R1, NIST SP 800-90A. |
Package eckcdsa implements the EC-KCDSA(Korean Certificate-based Digital Signature Algorithm using Elliptic Curves) as defined in TTAK.KO-12.0015/R3
|
Package eckcdsa implements the EC-KCDSA(Korean Certificate-based Digital Signature Algorithm using Elliptic Curves) as defined in TTAK.KO-12.0015/R3 |
Pakcage gmac implements a Galois/Counter Mode (GCM) based MAC, as defined in KS X ISO/IEC 9797-3, NIST SP 800-38D.
|
Pakcage gmac implements a Galois/Counter Mode (GCM) based MAC, as defined in KS X ISO/IEC 9797-3, NIST SP 800-38D. |
Package has160 implements HAS-160 encryption, as defined in TTAS.KO-12.0011/R2
|
Package has160 implements HAS-160 encryption, as defined in TTAS.KO-12.0011/R2 |
Package hight implements HIGHT encryption, as defined in TTAS.KO-12.0040/R1
|
Package hight implements HIGHT encryption, as defined in TTAS.KO-12.0040/R1 |
alias
Package alias implements memory aliasing tests.
|
Package alias implements memory aliasing tests. |
golang.org/x/crypto/cryptobyte
Package cryptobyte contains types that help with parsing and constructing length-prefixed, binary messages, including ASN.1 DER.
|
Package cryptobyte contains types that help with parsing and constructing length-prefixed, binary messages, including ASN.1 DER. |
golang.org/x/crypto/cryptobyte/asn1
Package asn1 contains supporting types for parsing and building ASN.1 messages with the cryptobyte package.
|
Package asn1 contains supporting types for parsing and building ASN.1 messages with the cryptobyte package. |
golang.org/x/sys/cpu
Package cpu implements processor feature detection for various CPU architectures.
|
Package cpu implements processor feature detection for various CPU architectures. |
randutil
Package randutil contains internal randomness utilities for various crypto packages.
|
Package randutil contains internal randomness utilities for various crypto packages. |
Package kbkdf implements Key Based Key Derivation Functions, as defined in TTAK.KO-12.0272, TTAK.KO-12.0333, NIST SP 800-108.
|
Package kbkdf implements Key Based Key Derivation Functions, as defined in TTAK.KO-12.0272, TTAK.KO-12.0333, NIST SP 800-108. |
Package kcdsa implements the KCDSA(Korean Certificate-based Digital Signature Algorithm) as defined in TTAK.KO-12.0001/R4
|
Package kcdsa implements the KCDSA(Korean Certificate-based Digital Signature Algorithm) as defined in TTAK.KO-12.0001/R4 |
Package kipher implements standard block cipher modes that can be wrapped around low-level block cipher implementations.
|
Package kipher implements standard block cipher modes that can be wrapped around low-level block cipher implementations. |
Pakcage kx509 supports marshaling and unmarshaling of EC-KCDSA and KCDSA private/public keys.
|
Pakcage kx509 supports marshaling and unmarshaling of EC-KCDSA and KCDSA private/public keys. |
Package lea implements LEA encryption, as defined in TTAK.KO-12.0223
|
Package lea implements LEA encryption, as defined in TTAK.KO-12.0223 |
Package lsh256 implements the LSH-256, LSH-256-224 hash algorithms as defined in KS X 3262
|
Package lsh256 implements the LSH-256, LSH-256-224 hash algorithms as defined in KS X 3262 |
Package lsh512 implements the LSH-512, LSH-384, LSH-512-256, LSH-512-224 hash algorithms as defined in KS X 3262
|
Package lsh512 implements the LSH-512, LSH-384, LSH-512-256, LSH-512-224 hash algorithms as defined in KS X 3262 |
Package pbkdf2 implements HMAC-based Key Derivation Functions, as defined in TTAK.KO-12.0334, NIST SP 800-132, RFC 2898(PKCS #5)
|
Package pbkdf2 implements HMAC-based Key Derivation Functions, as defined in TTAK.KO-12.0334, NIST SP 800-132, RFC 2898(PKCS #5) |
Package seed implements SEED encryption, as defined in TTAS.KO-12.0004/R1
|
Package seed implements SEED encryption, as defined in TTAS.KO-12.0004/R1 |
Click to show internal directories.
Click to hide internal directories.