On Aug 12, 10:55 am, jad0111 <[email protected]> wrote: > well my question is so basic,i am new to crypto++. I am doing simple > encryption and decryption of file and from the follwing link i used the > code:http://stackoverflow.com/questions/3141860/aes-ctr-256-encryption-mod... > So,when i used #include<openssl/aes.h> library same as on link then (red > line below #include means cannot include this library) it gives error but > include like #include<aes.h> then there is no include error but it gives > error like : > > c:\sample\sample.cpp(33): error C2146: syntax error : missing ';' before > identifier 'key' > 1>c:\sample\sample.cpp(33): error C4430: missing type specifier - int > assumed. Note: C++ does not support default-int > 1>c:\sample\sample.cpp(33): error C4430: missing type specifier - int > assumed. Note: C++ does not support default-int > 1>c:\sample\sample.cpp(36): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > 1>c:\sample\sample.cpp(37): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > 1>c:\sample\sample.cpp(57): error C3861: 'AES_set_encrypt_key': identifier > not found > 1>c:\sample\sample.cpp(62): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > 1>c:\sample\sample.cpp(63): error C3861: 'AES_ctr128_encrypt': identifier > not found > 1>c:\sample\sample.cpp(65): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > 1>c:\sample\sample.cpp(82): error C3861: 'AES_set_encrypt_key': identifier > not found > 1>c:\sample\sample.cpp(87): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > 1>c:\sample\sample.cpp(88): error C3861: 'AES_ctr128_encrypt': identifier > not found > 1>c:\sample\sample.cpp(90): error C2065: 'AES_BLOCK_SIZE' : undeclared > identifier > > and first error of key is due to > > AES_KEY key; > > and AES_KEY and AES_BLOCK_SIZE is also red lined and give above error > > so why is this error coming when i hav include library "aes.h"? Try openssl-users at http://www.openssl.org/support/community.html. Crypto++ is a different library.
Jeff -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
