comparison rsa.c @ 216:ea9277442ef2

* move RSA_BLINDING to options.h
author Matt Johnston <matt@ucc.asn.au>
date Fri, 08 Jul 2005 13:19:10 +0000
parents 65585699d980
children c5d3ef11155f
comparison
equal deleted inserted replaced
208:1a52846ec11f 216:ea9277442ef2
273 273
274 rsa_pad_em(key, data, len, &rsa_tmp1); 274 rsa_pad_em(key, data, len, &rsa_tmp1);
275 275
276 /* the actual signing of the padded data */ 276 /* the actual signing of the padded data */
277 277
278 #define RSA_BLINDING
279 #ifdef RSA_BLINDING 278 #ifdef RSA_BLINDING
280 279
281 /* With blinding, s = (r^(-1))((em)*r^e)^d mod n */ 280 /* With blinding, s = (r^(-1))((em)*r^e)^d mod n */
282 281
283 /* generate the r blinding value */ 282 /* generate the r blinding value */