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 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 |
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 |
randutil
crypto/internal/randutil/randutil.go
|
crypto/internal/randutil/randutil.go |
subtle
Package subtle implements functions that are often useful in cryptographic code but require careful thought to use correctly.
|
Package subtle implements functions that are often useful in cryptographic code but require careful thought to use correctly. |
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 |
kcdsattak
Package kcdsattak implements functions what generate the KCDSA parameters as defined in TTAK.KO-12.0001/R4
|
Package kcdsattak implements functions what generate the KCDSA parameters as defined in TTAK.KO-12.0001/R4 |
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 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.