The CFB mode only uses the encryption function; AES_set_decrypt_key() is needed for other modes, such as ECB.
S Thus spake Louis Lam: > Hello, > > I'm trying to use the AES algorithm of 0.9.7beta in my own program. > > For setting the key schedule there are 2 apis: > > AES_set_encrypt_key() > and > AES_set_decrypt_key() > > Initially I used both of the fxns and set the same userkey to 2 different > schedules, one for encrypting and the other for decryption. > > Under the cfb128 mode which i've tried. This didn't work out -- i could not > decrypt the data with the decrypt-schedule. > > If i've used only one of the set key fxns, for example just stick to > AES_set_encrypt_key() with the same userkey, then it can decrypt the data. > > What is the purpose of AES_set_decrypt_key() then in this case..how is it > being used? Under what situation? > > Thank you in advance, > Louis Lam > > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > Development Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] -- Stephen Sprunk "So long as they don't get violent, I want to CCIE #3723 let everyone say what they wish, for I myself have K5SSS always said exactly what pleased me." --Albert Einstein ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]