This is the authenticated-encryption Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 03:22:03 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
authenticated-encryption
Authenticated-Encryption functions
Koga Kazuo
MIT
# Authenticated-Encryption
A implementation of Authenticated Encryption
## Usage
Encrypt
“‘
(aead::authenticated-encrypt plain-text-as-bytes :secret secret-bytes)
;=> encrypted-bytes
“‘
Decrypt
“‘
(aead::authenticated-decrypt encrypted-bytes :secret secret-bytes)
;=> plain-text-as-bytes
; or raise authenticated-decrypt-error condition
“‘
## Installation
## Cite
* https://en.wikipedia.org/wiki/Authenticated_encryption
* https://csrc.nist.gov/csrc/media/projects/block-cipher-techniques/documents/bcm/proposed-modes/eax/eax-spec.pdf
0.1.0
ironclad
(system).
src
(module).
Modules are listed depth-first from the system components tree.
authenticated-encryption/src
authenticated-encryption
(system).
authenticated-encryption.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
authenticated-encryption/authenticated-encryption.asd
authenticated-encryption/src/authenticated-encryption.lisp
authenticated-encryption/authenticated-encryption.asd
authenticated-encryption
(system).
authenticated-encryption/src/authenticated-encryption.lisp
src
(module).
authenticated-decrypt
(function).
authenticated-decrypt-error
(condition).
authenticated-encrypt
(function).
invalid-block-length-error
(condition).
invalid-cipher-error
(condition).
invalid-data-length-error
(condition).
invalid-header-error
(condition).
invalid-signature-error
(condition).
make-header
(function).
make-nonce
(function).
pkcs7-padding
(function).
Packages are listed by definition order.
authenticated-encryption
aead
common-lisp
.
authenticated-decrypt
(function).
authenticated-decrypt-error
(condition).
authenticated-encrypt
(function).
invalid-block-length-error
(condition).
invalid-cipher-error
(condition).
invalid-data-length-error
(condition).
invalid-header-error
(condition).
invalid-signature-error
(condition).
make-header
(function).
make-nonce
(function).
pkcs7-padding
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Decrypt message with secret key
ENCRYPTED and SECRET must be array of (unsigned-byte 8).
Returns the decrypted bytes.
Conditions:
authenticated-decrypt-error when invalid encrypted bytes
Encrypt the message with secret key
MESSAGE and SECRET must be array of (unsigned-byte 8).
NONCE will generate per evaluate if nil (default).
CIPHER-NAME accepts only :AES (default) for now.
Returns the encrypted bytes.
Encrypted Bytes Format are:
Header (2 byte) +
Nonce (16 byte) +
Encrypted Message (with PKCS#7 padding) +
Tag (16 byte)
(16 = AES block size)
simple-error
.
Jump to: | A F M P |
---|
Jump to: | A F M P |
---|
Jump to: | A C F I M P S |
---|
Jump to: | A C F I M P S |
---|