subtle

package
Version: v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL