Re: [openssl-users] Loading RSA private key from ENGINE

2017-11-16 Thread Ignacio Alamo Corsino
Hello Fabrizio, actually the whole private key and all its components are not loaded with ENGINE_load_private_key. Only a part of them (modulus and public exponent). These components are enough to, for example, make a key/certificate match verification. Once a private key operation is

Re: [openssl-users] confusion with rsa_meth_st in a custom RSA engine

2017-08-24 Thread Ignacio Alamo Corsino
Hello Brett, First, to your comment: "I'm just confused as to at what point in the RSA encryption/decryption process my engine should be invoked at": It really depends on how your hardware performs the operations. I mean, you are right, if you set RSA_FLAG_EXT_PKEY then you only have to

Re: [openssl-users] Understanding RSA_sign and type argument

2017-06-14 Thread Ignacio Alamo Corsino
gs SHA256+RSA » to one of your command lines. Cordialement, Erwann Abalea Le 9 juin 2017 à 09:45, Ignacio Alamo Corsino <nacao2...@hotmail.com<mailto:nacao2...@hotmail.com>> a écrit : Hello everyone, i am having some issues understanding the RSA_sign function: RSA_sign(int type, co

[openssl-users] Understanding RSA_sign and type argument

2017-06-09 Thread Ignacio Alamo Corsino
Hello everyone, i am having some issues understanding the RSA_sign function: RSA_sign(int type, const unsigned char *m, unsigned int m_len, unsigned char *sigret, unsigned int *siglen, RSA *rsa); As far as I know, the signing is a four step process: - Calculate hash with digest algorithm