subtle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package subtle contains subtly insecure methods not recommended for casual use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptWithoutIntegrity

func DecryptWithoutIntegrity(key, input, iv []byte) ([]byte, error)

DecryptWithoutIntegrity decrypts data encrypted with AES-CTR.

func DeriveKey

func DeriveKey(password string, salt []byte, N int) ([]byte, error)

DeriveKey derives a key from a password using scrypt. N should be set to the highest power of 2 you can derive within 100 milliseconds.

func EncryptWithoutIntegrity

func EncryptWithoutIntegrity(key, input, iv []byte) (output []byte, err error)

EncryptWithoutIntegrity encrypts data with AES-CTR. Note: this encryption mode is not secure when stored/sent on an untrusted medium.

Types

This section is empty.

Jump to

Keyboard shortcuts

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