[BACK]Return to genrsa.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/genrsa.c between version 1.18 and 1.19

version 1.18, 2021/11/20 18:10:48 version 1.19, 2022/01/14 09:25:42
Line 278 
Line 278 
         BIO *out = NULL;          BIO *out = NULL;
         BIGNUM *bn = NULL;          BIGNUM *bn = NULL;
         RSA *rsa = NULL;          RSA *rsa = NULL;
         const BIGNUM *rsa_e = NULL;  
         char *rsa_e_hex = NULL, *rsa_e_dec = NULL;          char *rsa_e_hex = NULL, *rsa_e_dec = NULL;
   
         if (single_execution) {          if (single_execution) {
Line 342 
Line 341 
             !RSA_generate_key_ex(rsa, num, bn, cb))              !RSA_generate_key_ex(rsa, num, bn, cb))
                 goto err;                  goto err;
   
         RSA_get0_key(rsa, NULL, &rsa_e, NULL);          if ((rsa_e_hex = BN_bn2hex(RSA_get0_e(rsa))) == NULL)
         if ((rsa_e_hex = BN_bn2hex(rsa_e)) == NULL)  
                 goto err;                  goto err;
         if ((rsa_e_dec = BN_bn2dec(rsa_e)) == NULL)          if ((rsa_e_dec = BN_bn2dec(RSA_get0_e(rsa))) == NULL)
                 goto err;                  goto err;
   
         BIO_printf(bio_err, "e is %s (0x%s)\n", rsa_e_hex, rsa_e_dec);          BIO_printf(bio_err, "e is %s (0x%s)\n", rsa_e_hex, rsa_e_dec);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19