sm4

package
v0.0.0-...-c7fa3b2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

// Copyright 2017 cetc-30. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.

// Package china crypto algorithm implements the sm2, sm3, sm4 algorithms

Index

Constants

View Source
const (
	ENC cryptMode = iota
	DEC
)
View Source
const BlockSize = 16

Variables

This section is empty.

Functions

func NewCipher

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

Types

type KeySizeError

type KeySizeError int

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