Sergei Golubchik
e7620ce4ce
MDEV-8281 aes_decrypt crashes in block_crypt()
...
fix aes_decrypt of yassl to support zero-length input
2015-06-27 09:40:54 +02:00
Sergei Golubchik
0f0092720f
my_aes_encrypt_gcm() and my_aes_decrypt_gcm()
2015-06-02 19:00:23 +02:00
Sergei Golubchik
ebc5e00641
my_aes_get_size()
...
return unsigned, not signed.
return a value large enough for GCM
2015-06-02 19:00:23 +02:00
Sergei Golubchik
5091a4ba75
Merge tag 'mariadb-10.0.19' into 10.1
2015-06-01 15:51:25 +02:00
Sergei Golubchik
8827eb8325
MDEV-8162 func_str crashes on SELECT AES_DECRYPT(AES_ENCRYPT(...)) on line 107
...
encrypting 0 byte string *is* possible
2015-05-15 18:12:02 +02:00
Sergei Golubchik
acd992d4b7
MDEV-8022 Assertion `rc == 0' failed in ma_encrypt on dropping an encrypted Aria table
...
fix encryption of the last partial block
* now really encrypt it, using key and iv
* support the case of very short plaintext (less than one block)
* recommend aes_ctr over aes_cbc, because the former
doesn't have problems with partial blocks
2015-05-13 14:27:17 +02:00
Sergei Golubchik
bea3f30d46
move AES_CTR to its own greatly simplified function
...
* don't use do_crypt() for stream cipher AES_CTR
* rename do_crypt to block_crypt to emphasize its specialization
2015-05-13 14:27:17 +02:00
Sergei Golubchik
4d40a7d133
remove now-empty my_aes.{h,cc}
...
move remaning defines to my_crypt, add MY_ namespace prefix
2015-04-09 18:42:44 +02:00
Sergei Golubchik
bb1b61b312
encryption plugin controls the encryption
...
* no --encryption-algorithm option anymore
* encrypt/decrypt methods in the encryption plugin
* ecnrypt/decrypt methods in the encryption_km service
* file_km plugin has --file-key-management-encryption-algorithm
* debug_km always uses aes_cbc
* example_km changes between aes_cbc and aes_ecb for different key versions
2015-04-09 18:42:43 +02:00
Sergei Golubchik
91f7363e4b
yassl padding
2015-04-08 10:58:46 +02:00
Sergei Golubchik
f444d13a3b
my_aes* functions: support for different key lengths
...
to: different key lengths
2015-04-08 10:58:29 +02:00
Sergei Golubchik
3bbe2057da
yassl support
2015-04-05 13:14:38 +02:00
Sergei Golubchik
2f8d101f9e
unify my_{en|de}crypt_{cbc|ecb|ctr}. no yassl support yet.
2015-04-05 13:14:37 +02:00
Sergei Golubchik
27cc252bb7
simplify my_crypt.cc, remove duplicate code
2015-04-05 13:14:37 +02:00
Sergei Golubchik
f3da18f635
cmake-time detection for EVP_aes_128_ctr()
...
because old openssl versions (e.g. on labrador) don't have it
2015-02-10 10:21:18 +01:00
Monty
d7d589dc01
Push for testing of encryption
2015-02-10 10:21:17 +01:00