diff --git a/src/modules/_Crypto/crypto.doc b/src/modules/_Crypto/crypto.doc index 87888b7f8238f09144f10ba54dfb2ab7753e3699..a0808409c43e342334f932e1ebb787a6db581743 100644 --- a/src/modules/_Crypto/crypto.doc +++ b/src/modules/_Crypto/crypto.doc @@ -1,18 +1,15 @@ 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 diff --git a/src/modules/_Crypto/crypto_submodule.doc b/src/modules/_Crypto/crypto_submodule.doc index 0496644d12d8392f3471c73bec70bf8c67b67628..f36d023f947b32834ed4d35d68d2004a09ba357d 100644 --- a/src/modules/_Crypto/crypto_submodule.doc +++ b/src/modules/_Crypto/crypto_submodule.doc @@ -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 */