Search code examples
mysqllinuxencryptionaesopensuse

Compile mysql for AES 256bits


According to mysql document

"Encoding with a 128-bit key length is used, but you can extend it up to 256 bits by modifying the source."

But they didn't seem to provide instruction where to change. Anyone experience with this situation? which source file should change?

Note: I use these steps to compile.


Solution

  • I found little help from mysql mailing list

    file include/my_aes.h

    #define AES_KEY_LENGTH 128 /* must be 128 192 or 256 */
    

    as I'm using OpenSuSe 11.1 need to have following tools

    sudo zypper install gcc gcc-c++ ncurses-devel
    

    then just compile it by this instruction - here

    Credit to LenZ and tripanel.net