Re: [openssl-users] Chinese remainder algorithm

2018-08-20 Thread Jan Bilek
you already have CRT components. > > What is the function that complained about missing d? > > Thanks, > Thulasi. > > On 31 July 2018 at 16:19, Jan Bilek wrote: > > Hi all, > > > > I need to reconstruct public and private keys for data signing operation > >

[openssl-users] Chinese remainder algorithm

2018-07-31 Thread Jan Bilek
Hi all, I need to reconstruct public and private keys for data signing operation from p, q, dmp1, dmq1 and iqmp. When I fill values in as per below then OpenSSL complains about missing d. RSA* pkey = RSA_new(); pkey->n = NULL; pkey->e = NULL; pkey->d = NULL; pkey->p= BN_b

[openssl-users] Generating unsigned RSA Public Key with openssl

2018-03-24 Thread Jan Bilek
Hi, Following code is simplified to demonstrate plain RSA public key with the OpenSSL library: RSA_ptr rsa(RSA_new(), ::RSA_free); BN_ptr bn(BN_new(), ::BN_free); BN_set_word(bn.get(), RSA_F4); //65535 RSA_generate_key_ex(rsa.get(), 320, bn.get(), NULL); BIO * keybio = BIO_ne