aes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CbcCmd = &cmd.Command{
	Name:  "aes-cbc",
	Run:   runCbc,
	Brief: "Encrypt/Decrypt using AES-CBC",

	Usage: `Usage: pocryp aes-cbc [-bin] [-e/-d] -key/-key-file -iv [-in INPUT] [-out OUTPUT]

Encrypt/Decrypt INPUT to OUTPUT using AES-CBC.

If -in is not specified, stdin will be read.
If -out is not specified, the output will be printed to stdout.
`,
}
View Source
var CmacGenerateCmd = &cmd.Command{
	Name:  "aes-cmac-generate",
	Run:   runCmacGenerate,
	Brief: "Generate MAC using AES-CMAC",

	Usage: `Usage: pocryp aes-cmac-generate [-bin] -key|-key-file [-in INPUT] [-out OUTPUT]

Generate MAC using AES-CMAC.

If -in is not specified, stdin will be read.
If -out is not specified, the output will be printed to stdout.
`,
}
View Source
var CmacVerifyCmd = &cmd.Command{
	Name:  "aes-cmac-verify",
	Run:   runCmacVerify,
	Brief: "Verify MAC using AES-CMAC",

	Usage: `Usage: pocryp aes-cmac-verify -key|-key-file -in MESSAGE -mac MAC

Verify MAC using AES-CMAC.

If -in is not specified, stdin will be read.
`,
}
View Source
var EcbCmd = &cmd.Command{
	Name:  "aes-ecb",
	Run:   runEcb,
	Brief: "Encrypt/Decrypt using AES-ECB",

	Usage: `Usage: pocryp aes-ecb [-bin] [-e/-d] -key|-key-file [-in INPUT] [-out OUTPUT]

Encrypt/Decrypt INPUT to OUTPUT using AES-ECB.

If -in is not specified, stdin will be read.
If -out is not specified, the output will be printed to stdout.
`,
}
View Source
var GcmCmd = &cmd.Command{
	Name:  "aes-gcm",
	Run:   runGcm,
	Brief: "Encrypt/Decrypt using AES-GCM",

	Usage: `Usage: pocryp aes-gcm [-bin] [-e/-d] -key|-key-file -iv -aad [-in INPUT] [-out OUTPUT]

Encrypt/Decrypt INPUT to OUTPUT using AES-GCM.

If -in is not specified, stdin will be read.
If -out is not specified, the output will be printed to stdout.
`,
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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