Lines Matching full:goto
96 if (ctx == NULL) goto err;
102 if (r3 == NULL) goto err;
108 if(!rsa->n && ((rsa->n=BN_new()) == NULL)) goto err;
109 if(!rsa->d && ((rsa->d=BN_new()) == NULL)) goto err;
110 if(!rsa->e && ((rsa->e=BN_new()) == NULL)) goto err;
111 if(!rsa->p && ((rsa->p=BN_new()) == NULL)) goto err;
112 if(!rsa->q && ((rsa->q=BN_new()) == NULL)) goto err;
113 if(!rsa->dmp1 && ((rsa->dmp1=BN_new()) == NULL)) goto err;
114 if(!rsa->dmq1 && ((rsa->dmq1=BN_new()) == NULL)) goto err;
115 if(!rsa->iqmp && ((rsa->iqmp=BN_new()) == NULL)) goto err;
123 goto err;
124 if (!BN_sub(r2,rsa->p,BN_value_one())) goto err;
125 if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err;
128 goto err;
131 goto err;
141 goto err;
147 goto err;
149 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err;
150 if (!BN_gcd(r1,r2,rsa->e,ctx)) goto err;
154 goto err;
157 goto err;
166 if (!BN_mul(rsa->n,rsa->p,rsa->q,ctx)) goto err;
169 if (!BN_sub(r1,rsa->p,BN_value_one())) goto err; /* p-1 */
170 if (!BN_sub(r2,rsa->q,BN_value_one())) goto err; /* q-1 */
171 if (!BN_mul(r0,r1,r2,ctx)) goto err; /* (p-1)(q-1) */
179 if (!BN_mod_inverse(rsa->d,rsa->e,pr0,ctx)) goto err; /* d */
191 if (!BN_mod(rsa->dmp1,d,r1,ctx)) goto err;
194 if (!BN_mod(rsa->dmq1,d,r2,ctx)) goto err;
204 if (!BN_mod_inverse(rsa->iqmp,rsa->q,p,ctx)) goto err;