krcrypt

package module
v0.0.0-...-a0c8717 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2017 License: MIT Imports: 3 Imported by: 1

README

This library is an implementation of ciphers from Korea Internet Security Agency.
Copyright (c) Damian Gryski <damian@gryski.com>
Licensed under the MIT License

The library includes HIGHT, SEED, and ARIA.

These ciphers are used almost exclusively inside Korea.

For more information on these ciphers, please see: http://seed.kisa.or.kr/kor/main.jsp

TODO:
   SEED-192 and SEED-256 support
   ARIA lookup table implementation

Documentation

Overview

Package krcrypt is an implementation of ciphers from Korea Internet Security Agency.

Copyright (c) Damian Gryski <damian@gryski.com> Licensed under the MIT License

The library includes HIGHT, SEED, and ARIA.

These ciphers are used almost exclusively inside Korea.

For more information on these ciphers, please see: http://seed.kisa.or.kr/kor/main.jsp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARIA

func NewARIA(key []byte) (cipher.Block, error)

NewARIA creates and returns a cipher.Block implementing ARIA. The key argument should be 16/24/32 bytes.

func NewHIGHT

func NewHIGHT(key []byte) (cipher.Block, error)

NewHIGHT creates and returns a new cipher.Block implementing the HIGHT cipher. The key argument should be 16 bytes.

func NewSEED

func NewSEED(key []byte) (cipher.Block, error)

NewSEED creates and returns a new cipher.Block implementing SEED encryption with a particular key. The key argument should be 16 bytes.

Types

type KeySizeError

type KeySizeError int

KeySizeError is returned for invalid key sizes

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL