• Anirudh Mangipudi's avatar
    Bug#14211271 ISSUES WITH SSL ON DEBIAN WHEEZY I386 AND KFREEBSD-I386 · 1747a456
    Anirudh Mangipudi authored
    Problem:
    It was reported that on Debian and KFreeBSD platforms, i386 architecture 
    machines certain SSL tests are failing. main.ssl_connect  rpl.rpl_heartbeat_ssl
    rpl.rpl_ssl1 rpl.rpl_ssl main.ssl_cipher, main.func_encrypt were the tests that
     were reportedly failing (crashing). The reason for the crashes are said to be
    due to the assembly code of yaSSL.
    
    Solution:
    There was initially a workaround suggested i.e., to enable 
    -DTAOCRYPT_DISABLE_X86ASM flag which would prevent the crash, but at an expense
     of 4X reduction of speed. Since this was unacceptable, the fix was the 
    functions using assembly, now input variables from the function call using 
    extended inline assembly on GCC instead of relying on direct assembly code.
    1747a456
sha.cpp 31.1 KB