Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]
(no description)
File Size: | 271 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file lib/tests/fixtures/testable_encryption.php |
encryption_test:: (17 methods):
tearDown()
setUp()
encryption_method_provider()
test_create_key()
test_create_key_openssl()
test_encrypt_and_decrypt_empty()
test_encrypt_nokeys()
test_encrypt_openssl()
test_decrypt_wrongmethod()
test_decrypt_tooshort()
test_decrypt_notbase64()
test_decrypt_nokeys()
test_decrypt_openssl()
test_auto_key_generation()
test_invalid_key()
test_modified_data()
test_encrypt_and_decrypt_realdata()
Class: encryption_test - X-Ref
Test encryption.tearDown() X-Ref |
Clear junk created by tests. |
setUp() X-Ref |
No description |
encryption_method_provider() X-Ref |
Many of the tests work with both encryption methods. return: array[] Array of method options for test |
test_create_key(string $method) X-Ref |
Tests the create_keys and get_key functions. param: string $method Encryption method |
test_create_key_openssl() X-Ref |
Test that we can create keys for legacy {@see encryption::METHOD_OPENSSL} content |
test_encrypt_and_decrypt_empty() X-Ref |
Tests encryption and decryption with empty strings. |
test_encrypt_nokeys(string $method) X-Ref |
Tests encryption when the keys weren't created yet. param: string $method Encryption method |
test_encrypt_openssl() X-Ref |
Test that attempting to encrypt with legacy {@see encryption::METHOD_OPENSSL} method falls back to Sodium |
test_decrypt_wrongmethod() X-Ref |
Tests decryption when the data has a different encryption method |
test_decrypt_tooshort(string $method) X-Ref |
Tests decryption when not enough data is supplied to get the IV and some data. param: string $method Encryption method |
test_decrypt_notbase64(string $method) X-Ref |
Tests decryption when data is not valid base64. param: string $method Encryption method |
test_decrypt_nokeys(string $method) X-Ref |
Tests decryption when the keys weren't created yet. param: string $method Encryption method |
test_decrypt_openssl() X-Ref |
Test that we can decrypt legacy {@see encryption::METHOD_OPENSSL} content |
test_auto_key_generation(string $method) X-Ref |
Test automatic generation of keys when needed. param: string $method Encryption method |
test_invalid_key(string $method) X-Ref |
Checks that invalid key causes failures. param: string $method Encryption method |
test_modified_data(string $method) X-Ref |
Checks that modified data causes failures. param: string $method Encryption method |
test_encrypt_and_decrypt_realdata(string $method) X-Ref |
Tests encryption and decryption for real. param: string $method Encryption method |