[openssl-dev] 转发: 答复: [openssl.org #4231] bug openssl rc4 overflow

hu_jin via RT rt at openssl.org
Wed Jan 13 17:05:29 UTC 2016


I need the x64 system to run the X32 programyour example is x64 system to run the x64 programX64 system running x64 program is correct, but the x64 system running X32 program is wrongcan you help me?------------------------------------------------------------------发件人:Salz, Rich via RT <rt at openssl.org>发送时间:2016年1月14日(星期四) 00:40收件人:hu_jin <hu_jin at microdesktop.com>抄 送:openssl-dev <openssl-dev at openssl.org>主 题:RE: [openssl-dev] 答复: [openssl.org #4231] bug openssl rc4 overflowThere is something unusual in your local environment.; cat a.c#include <string.h>#include <stdio.h>#include<openssl/rc4.h>int main(){    char code[64]={0};    char outbuffer[64];    int codelen = sizeof (code);    RC4_KEY rc4_key;    strcpy(code,"This is secrect");    RC4_set_key(&rc4_key,7,(unsigned char *)"zenraoli");    RC4(&rc4_key,codelen,(unsigned char *)code,outbuffer);    memset(code,0,sizeof(code));    RC4_set_key(&rc4_key,7,(unsigned char *)"zenraoli");    RC4(&rc4_key,codelen,outbuffer,(unsigned char *)code);    printf("|%s|\n", code);    return 0;}; gcc a.c -lcrypto; ./a.out|This is secrect|_______________________________________________openssl-bugs-mod mailing listopenssl-bugs-mod at openssl.orghttps://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod


More information about the openssl-dev mailing list