Re: [openssl.org #1801] [BUGFIX] Segment fault when invoking AES_cbc_encrypt() on x86_64 with short input

2008-12-22 Thread Huang, Ying via RT
On Wed, 2008-12-17 at 22:30 +0800, Andy Polyakov via RT wrote: > > Fix two bugs in .Lcbc_slow_enc_in_place. > > > > - At end of .Lcbc_slow_enc_in_place, %r10 instead of $_len should be > > set to 16. > > - In .Lcbc_slow_enc_in_place, %rdi should be initialized before stosb. > > Thanks. The prob

[openssl.org #1801] [BUGFIX] Segment fault when invoking AES_cbc_encrypt() on x86_64 with short input

2008-12-17 Thread Huang, Ying via RT
Fix two bugs in .Lcbc_slow_enc_in_place. - At end of .Lcbc_slow_enc_in_place, %r10 instead of $_len should be set to 16. - In .Lcbc_slow_enc_in_place, %rdi should be initialized before stosb. Signed-off-by: Huang Ying --- crypto/aes/asm/aes-x86_64.pl |4 +++- 1 file changed, 3 insertions

[openssl.org #1690] BN_GF2m_mod_arr() infinite loop

2008-06-03 Thread Huang, Ying via RT
The following code will make BN_GF2m_mod_arr() into infinite loop. int main(int argc, char *argv[]) { BIGNUM *bn = NULL, *res = NULL, *p = NULL; BN_hex2bn(&bn3, "448692853686179295b477565726f6e5d"); BN_hex2bn(&p, "10087"); res = BN_new