Lines Matching defs:num
104 int i,j,k,num=0,r= -1;
118 num=BN_num_bytes(rsa->n);
119 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
128 i=RSA_padding_add_PKCS1_type_2(buf,num,from,flen);
132 i=RSA_padding_add_PKCS1_OAEP(buf,num,from,flen,NULL,0);
136 i=RSA_padding_add_SSLv23(buf,num,from,flen);
139 i=RSA_padding_add_none(buf,num,from,flen);
147 if (BN_bin2bn(buf,num,&f) == NULL) goto err;
186 i=BN_bn2bin(&ret,&(to[num-j]));
187 for (k=0; k<(num-i); k++)
190 r=num;
197 OPENSSL_cleanse(buf,num);
261 int i,j,k,num=0,r= -1;
271 num=BN_num_bytes(rsa->n);
272 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
281 i=RSA_padding_add_PKCS1_type_1(buf,num,from,flen);
284 i=RSA_padding_add_none(buf,num,from,flen);
293 if (BN_bin2bn(buf,num,&f) == NULL) goto err;
354 i=BN_bn2bin(&ret,&(to[num-j]));
355 for (k=0; k<(num-i); k++)
358 r=num;
367 OPENSSL_cleanse(buf,num);
377 int j,num=0,r= -1;
389 num=BN_num_bytes(rsa->n);
391 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
399 if (flen > num)
471 r=RSA_padding_check_PKCS1_type_2(to,num,buf,j,num);
475 r=RSA_padding_check_PKCS1_OAEP(to,num,buf,j,num,NULL,0);
479 r=RSA_padding_check_SSLv23(to,num,buf,j,num);
482 r=RSA_padding_check_none(to,num,buf,j,num);
499 OPENSSL_cleanse(buf,num);
510 int i,num=0,r= -1;
520 num=BN_num_bytes(rsa->n);
521 buf=(unsigned char *)OPENSSL_malloc(num);
530 if (flen > num)
578 r=RSA_padding_check_PKCS1_type_1(to,num,buf,i,num);
581 r=RSA_padding_check_none(to,num,buf,i,num);
596 OPENSSL_cleanse(buf,num);