Hi,
(BI have a question about AES_ctr128_encrypt( ) on Windows platform
(BIn the inside of this function, the 5rd parameter"ivec" is
(Bpassed to AES_encrypt() as it is. So that, I understand
(Bthat "ivec" must be Octet String. and whenever it calls
(BAES_ctr128_encrypt(), ivec increases every one.
(BThe result expected is shown in the following.
(B
$B"#(Bresult to expect
(B---------------------------------------------------------
(B[before encrypt]
(Bivec = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
(B 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
(B[after encrypt]
(Bivec = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
(B 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01};
(B---------------------------------------------------------
(BHowever the result does not become above.
(BThe actual result is shown in the following.
$B"#(Bactual result
(B---------------------------------------------------------
(B[before encrypt]
(Bivec = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
(B 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
(B[after encrypt]
(Bivec = {0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00
(B 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
(B---------------------------------------------------------
(B
(BI think that this cause is based on AES_ctr128_inc().
(BAlthough defined as "L_ENDIAN" on Windows, I think that
(Bit may be the same as Unix.
(B
(BThanks,
(BKan
(B
(B
(B______________________________________________________________________
(BOpenSSL Project http://www.openssl.org
(BDevelopment Mailing List [EMAIL PROTECTED]
(BAutomated List Manager [EMAIL PROTECTED]