How to use test vector in OPENSSL library RSA-OAEP

248 Views Asked by At

Hello i use this function for cryptography:

int RSA_public_encrypt(int flen, const unsigned char *from,unsigned char *to, RSA *rsa, int padding);

https://www.openssl.org/docs/manmaster/man3/RSA_public_encrypt.html

I set padding RSA_PKCS1_OAEP_PADDING. Problem is when I compile my project: gcc myproject.c -DPKCS_TESTVECT -o test

I use -DPKCS_TESTVECT macro when I compile program, this macro is defined in crypto/rsa/rsa_oaep.c line 67 in OpenSSL library.

I compile my project the macro wasn't recognized and test vectors have not been assigned into my project.

Thanks for answers

0

There are 0 best solutions below