From 2c0bf004f6e4378577746e0765005e80196f1d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 10 Nov 1996 17:24:33 +0100 Subject: [PATCH] Updated to the new scheme. Rev: src/modules/_Crypto/crypto.doc:1.2 Rev: src/modules/_Crypto/crypto_submodule.doc:1.2 --- src/modules/_Crypto/crypto.doc | 23 ++++++++++------------- src/modules/_Crypto/crypto_submodule.doc | 7 ++++--- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/modules/_Crypto/crypto.doc b/src/modules/_Crypto/crypto.doc index 87888b7f82..a0808409c4 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 0496644d12..f36d023f94 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 */ -- GitLab