[openssl-users] EVP_EncryptInit_ex() with EVP__idea_* in FIPS mode

jonetsu jonetsu at teksavvy.com
Fri Mar 13 14:44:31 UTC 2015


Hello,

Using fips_hmac.c and the do_crypt() example, compiling
EVP_EncryptInit_ex() with EVP__idea_* in FIPS mode yields:


fips_hmac.c:58:2: warning: passing argument 2 of
‘EVP_EncryptInit_ex’ makes pointer from integer without a cast
[enabled by default]

  EVP_EncryptInit_ex(&ctx, EVP_idea_cbc(), NULL, key, iv);
  ^

/usr/include/openssl/evp.h:582:5: note: expected ‘const struct
EVP_CIPHER *’ but argument is of type ‘int’

 int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER
 *cipher, ENGINE *impl,


Others I've tried so far such as EVP_aes_256_cbc(), EVP_rc4(),
EVP_cast5_ecb(), EVP_aes_192_cbc, EVP_bf_cbc() compiles fine
without warning (I've thrown some non-FIPS in there only for
trying).

Regards.







More information about the openssl-users mailing list