Hello,
Under MSVC 6 (Win2k), we obtain the following compile error when compiling cryptlib
v4.2 (mqueue.cpp):
Compiling...
mqueue.cpp
c:\program files\microsoft visual studio\vc98\include\deque(258) : error C2784:
'struct std::random_access_iterator_tag __cdecl std::_Iter_cat(const _Ty *)' : could
not deduce template argument for 'const *' from 'int'
D:\Encryption\crypto42\mqueue.cpp(10) : see reference to function template
instantiation '__thiscall std::deque<unsigned long,class std::allocator<unsigned long>
>::std::deque<unsigned long,class std::allocator<unsigned long> >(int,int)' being
compiled
c:\program files\microsoft visual studio\vc98\include\deque(258) : error C2784: '_C
__cdecl std::_Iter_cat(const struct std::iterator<_C,_Ty,_D> &)' : could not deduce
template argument for 'const struct std::iterator<_C,_Ty,_D> &' from 'int'
D:\Encryption\crypto42\mqueue.cpp(10) : see reference to function template
instantiation '__thiscall std::deque<unsigned long,class std::allocator<unsigned long>
>::std::deque<unsigned long,class std::allocator<unsigned long> >(int,int)' being
compiled.
Apparently it does not like the initialization of m_lengths(1, 0) for MessageQueue.
Compilation is OK after removing the initialization.
Is this a valid workaround?
Thanks.
> -----Original Message-----
> From: David Atkins
> Sent: Friday, October 18, 2002 5:40 PM
> To: '[EMAIL PROTECTED]'
> Subject: compatibility with OpenSSL
>
> Greetings,
> I'm attempting to test compatibility between Crypto++ 4.2 and OpenSSL 0.9.6g, both
> under Win2k. I would like to exchange keys (and the encrypted data) between the
> two.
>
> From Crypto++, I create a DES EDE3 (CBC mode) key using the following:
> ...
> DES_EDE3_Encryption en(key);
> CBC_CTS_Encryptor encryptor(en, iv);
> ....
> then write the key to file using:
> memcpy(&keyStruct->key_iv[0], key, DES_EDE3_KEYSIZE);
> memcpy(&keyStruct->key_iv[(int)DES_EDE3_KEYSIZE], iv,
> DES_EDE3_Encryption::BLOCKSIZE);
> FileSink fs1(payloadFileName);
> fs1.Put((const byte *) &keyResult->key_iv [0], sizeof(keyResult->key_iv));
>
> I am able to encrypt and decrypt messages successfully within Crypto++ with the
> resulting file.
>
> Problem is when using OpenSSL to encrypt messages using the key from Crypto++.
>
> From OpenSSL (the Crypto++ key is in file "crypto_des", plaintext is in
> "smalltext.txt", ciphertext to "des_ssl") :
>
> > openssl enc -in smalltext.txt -e -kfile crypto_des -out des_ssl -des-ede3-cbc
> > -nosalt
>
> No success in decrypting the result (in des_ssl ) within Crypto++.
>
> I am sure this must be a problem with OpenSSL or my usage of it. But has anyone else
> tried this?
>
>
> Regards.
> D Atkins
>
>