Commit dd2b3f6d authored by unknown's avatar unknown

Clean up AES_DECRYPT() explanation.

parent 1b04af82
...@@ -33003,11 +33003,10 @@ As AES is a block level algorithm, padding is used to encode uneven length ...@@ -33003,11 +33003,10 @@ As AES is a block level algorithm, padding is used to encode uneven length
strings and so the result string length may be calculated as strings and so the result string length may be calculated as
16*(trunc(string_length/16)+1). 16*(trunc(string_length/16)+1).
@c FIX arjen 2002-06-21 Peter: this sentence makes no sense at all! If @code{AES_DECRYPT()} detects invalid data or incorrect padding, it will
If the string has an incorrect length or contains invalid data for this will return @code{NULL}. However, it is possible for @code{AES_DECRYPT()}
key, @code{AES_DECRYPT()} will return @code{NULL}, therefore you can't to return a non-@code{NULL} value (possibly garbage) if the input data or
rely on this to much, @code{AES_DECRYPT()} has some change to return the key was invalid.
a non-@code{NULL} value even for an invalid key.
You can use the AES functions to store data in an encrypted form by You can use the AES functions to store data in an encrypted form by
modifying your queries: modifying your queries:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment