Advanced Encryption Standard (AES)
== Description ==
Encrypt/Decrypt texts using the AES algorithm (also known as Rijndael) in
@emph{Counter} mode.
== Synopsis ==
=== Server & Client ===
(sha1sum obj)
(sha1sum-string string)
=== Requirements ===
Client code using //AES// facilities needs to load the scripts
++aes.js++ **and** ++sha1.js++. Hence, documents using //AES// must
include in their header, the following statement:
( :include "sha1" "aes")
== Server & Client Definitions ==
=== ++(aes-ctr-encrypt obj password (nbits 128))++ ===
aes-ctr-encrypt
aes-ctr-encrypt
^ arguments ^ type ^ description ^
| obj | _ | The text to be encrypted. |
| password | _ | The password, a string. |
| nbits | _ | The key length (128, 192, or 256). |
The function ++aes-ctr-encrypt++ encrypts a text that can be decrypted
using the ++aes-ctr-decrypt++ function. On the client-side this
function can only be passed //strings// arguments. On the server-side,
it can be passed //string//, //input ports//, or //mmap// (memory
mapped area).
=== ++(aes-ctr-encrypt-string string)++ ===
aes-ctr-encrypt-string
aes-ctr-encrypt-string
^ arguments ^ type ^ description ^
| string | string | The string for which the chesum is computed. |
| password | _ | The password, a string. |
| nbits | _ | The key length (128, 192, or 256). |
Encrypt the text contained in the characters string //string//.
=== ++(aes-ctr-decrypt obj password (nbits 128))++ ===
aes-ctr-decrypt
aes-ctr-decrypt
^ arguments ^ type ^ description ^
| obj | _ | The text to be decrypted. |
| password | _ | The password, a string. |
| nbits | _ | The key length (128, 192, or 256). |
The function ++aes-ctr-decrypt++ decrypts a text that can be decrypted
using the ++aes-ctr-decrypt++ function. On the client-side this
function can only be passed //strings// arguments. On the server-side,
it can be passed //string//, //input ports//, or //mmap// (memory
mapped area).
=== ++(aes-ctr-decrypt-string string)++ ===
aes-ctr-decrypt-string
aes-ctr-decrypt-string
^ arguments ^ type ^ description ^
| string | string | The string for which the chesum is computed. |
| password | _ | The password, a string. |
| nbits | _ | The key length (128, 192, or 256). |
Decrypt the text contained in the characters string //string//.
== See also ==
aes-ctr-decrypt