cifrado

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

cifrado

cifrado

cifrado

cifrado

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(crypted, key []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(origData, key []byte) ([]byte, error)

func ECCDecrypt

func ECCDecrypt(ct []byte, prk ecies.PrivateKey) ([]byte, error)

func ECCEncrypt

func ECCEncrypt(pt []byte, puk ecies.PublicKey) ([]byte, error)

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

func RsaDecrypt

func RsaDecrypt(ciphertext []byte) ([]byte, error)

descifrar

func RsaEncrypt

func RsaEncrypt(origData []byte) ([]byte, error)

cifrado

Types

type AES

type AES struct {
}

AES

type Cifrado

type Cifrado interface {
	Encriptar() ([]byte, error)
	Desencriptar() ([]byte, error)
}

Cifrado

type ECC

type ECC struct {
}

ECC

type RSA

type RSA struct {
}

RSA

Jump to

Keyboard shortcuts

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