Re: Problem compiling EVP_aes_128_gcm()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 I viewed the file and the definition exists.
I also checked that I'm picking the correct version.

My problem is this line : EVP_EncryptInit_ex(&_ctx, EVP_aes_128_gcm(), NULL, NULL, NULL);

I also tried to change the code to this two lines : 
EVP_CIPHER *EVP evp_gcm = EVP_aes_128_gcm();
EVP_EncryptInit_ex(&_ctx, evp_gcm, NULL, NULL, NULL);

After the change I got this error : expected initializer before ‘evp_gcm’

What am I doing wrong?

On 3 May 2017 at 12:07, Matt Caswell <matt@xxxxxxxxxxx> wrote:


On 03/05/17 09:43, Lior Koskas wrote:
> Hi,
>
> I'm using EVP_aes_128_gcm and have problem with compiling it with
> OpenSSL 1.1.0 (earlier versions are compiling).
> Although I included <openssl/evp.h> I got this error : error:
> ‘EVP_aes_128_gcm’ was not declared in this scope.
>
> I'm using CentOS 7.3.
>
> Which file I need to include in order to compile EVP_aes_128_gcm ?

It's still declared in evp.h:

const EVP_CIPHER *EVP_aes_128_gcm(void);

Perhaps you are not picking up the version of evp.h that you think you are?

Matt

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



--
Lior           Koskas
Software Engineer
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux