- if( !(dfx.cipher_hd = gcry_cipher_open( dek->algo,
- GCRY_CIPHER_MODE_CFB,
- GCRY_CIPHER_SECURE
- | ((ed->mdc_method || dek->algo >= 100)?
- 0 : GCRY_CIPHER_ENABLE_SYNC) ))
- ) {
- /* we should never get an error here cause we already checked, that
- * the algorithm is available. What about a flag to let the function
- * die in this case? */
- BUG();
- }
-
-
+ dfx.cipher_hd = cipher_open( dek->algo,
+ ed->mdc_method? CIPHER_MODE_CFB
+ : CIPHER_MODE_AUTO_CFB, 1 );