Changeset 10578
- Timestamp:
- 02/22/15 09:52:19 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/reader-conax.c
r10283 r10578 21 21 size >= modbytes && size < 128) 22 22 { 23 bn_mod = BN_new();24 bn_exp = BN_new();25 bn_data = BN_new();26 bn_res = BN_new();27 23 ctx = BN_CTX_new(); 24 28 25 if(ctx == NULL) 29 26 { 30 27 rdr_log_dbg(reader, D_READER, "RSA Error in RSA_CNX"); 31 28 } 29 30 BN_CTX_start(ctx); 31 bn_mod = BN_CTX_get(ctx); 32 bn_exp = BN_CTX_get(ctx); 33 bn_data = BN_CTX_get(ctx); 34 bn_res = BN_CTX_get(ctx); 32 35 33 36 /*RSA first round*/ … … 65 68 if(0 == ret) 66 69 { memcpy(msg, data, n); } 70 BN_CTX_end(ctx); 67 71 BN_CTX_free(ctx); 68 72 }
Note:
See TracChangeset
for help on using the changeset viewer.