Skip to content
Snippets Groups Projects
Commit 2c0bf004 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Updated to the new scheme.

Rev: src/modules/_Crypto/crypto.doc:1.2
Rev: src/modules/_Crypto/crypto_submodule.doc:1.2
parent 468e42fc
No related branches found
No related tags found
No related merge requests found
In essence the /precompiled/crypto program will do a restricted inherit
of the sub-module given to create().
string create(program|object); /* Encrypt using this sub-module */
string create(program|object,mixed|void); /* Encrypt using this
sub-module */
int query_block_size(void); /* Returns the size of the crypt block */
int query_key_length(void); /* Returns the minimum key length */
void set_key(string); /* Sets the encryption/decryption key, and
resets the state */
string encrypt(string); /* Encrypt the block with the current key */
string decrypt(string); /* Decrypt the block with the current key */
string ecb_encrypt(string); /* Encrypt the string, using the
Electronic CookBook method */
string ecb_decrypt(string); /* Decrypt the string, using the
Electronic CookBook method */
string cbc_encrypt(string); /* Encrypt the string, using the
Cipher Block Chaining method */
string cbc_decrypt(string); /* Decrypt the string, using the
Cipher Block Chaining method */
\ No newline at end of file
void set_encrypt_key(mixed); /* Sets the encryption key, and resets
the state */
void set_decrypt_key(mixed); /* Sets the decryption key, and resets
the state */
string crypt(string); /* Crypt the block with the current key */
string pad(void); /* Perform the needed padding */
string unpad(string); /* Unpad the string */
string name(void); /* Name of the algorithm */
\ No newline at end of file
......@@ -3,7 +3,8 @@ support encryption/decryption:
int query_block_size(void); /* Returns the size of the crypt block */
int query_key_length(void); /* Returns the minimum key length */
void set_key(string); /* Sets the encryption/decryption key */
string encrypt(string); /* Encrypt the block with the current key */
string decrypt(string); /* Decrypt the block with the current key */
void set_encrypt_key(mixed); /* Sets the encryption key */
void set_decrypt_key(mixed); /* Sets the decryption key */
string crypt_block(string); /* Crypt the blocks with the current key */
string name(void); /* Name of the algorithm */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment