Lines Matching defs:num
167 int i,j,k,num=0,r= -1;
197 num=BN_num_bytes(rsa->n);
198 buf = OPENSSL_malloc(num);
208 i=RSA_padding_add_PKCS1_type_2(buf,num,from,flen);
212 i=RSA_padding_add_PKCS1_OAEP(buf,num,from,flen,NULL,0);
216 i=RSA_padding_add_SSLv23(buf,num,from,flen);
219 i=RSA_padding_add_none(buf,num,from,flen);
227 if (BN_bin2bn(buf,num,f) == NULL) goto err;
244 i=BN_bn2bin(ret,&(to[num-j]));
245 for (k=0; k<(num-i); k++)
248 r=num;
257 OPENSSL_cleanse(buf,num);
358 int i,j,k,num=0,r= -1;
369 num = BN_num_bytes(rsa->n);
370 buf = OPENSSL_malloc(num);
380 i=RSA_padding_add_PKCS1_type_1(buf,num,from,flen);
383 i=RSA_padding_add_X931(buf,num,from,flen);
386 i=RSA_padding_add_none(buf,num,from,flen);
395 if (BN_bin2bn(buf,num,f) == NULL) goto err;
465 i=BN_bn2bin(res,&(to[num-j]));
466 for (k=0; k<(num-i); k++)
469 r=num;
478 OPENSSL_cleanse(buf,num);
488 int j,num=0,r= -1;
500 num = BN_num_bytes(rsa->n);
501 buf = OPENSSL_malloc(num);
510 if (flen > num)
578 r=RSA_padding_check_PKCS1_type_2(to,num,buf,j,num);
582 r=RSA_padding_check_PKCS1_OAEP(to,num,buf,j,num,NULL,0);
586 r=RSA_padding_check_SSLv23(to,num,buf,j,num);
589 r=RSA_padding_check_none(to,num,buf,j,num);
606 OPENSSL_cleanse(buf,num);
617 int i,num=0,r= -1;
648 num=BN_num_bytes(rsa->n);
649 buf = OPENSSL_malloc(num);
658 if (flen > num)
686 r=RSA_padding_check_PKCS1_type_1(to,num,buf,i,num);
689 r=RSA_padding_check_X931(to,num,buf,i,num);
692 r=RSA_padding_check_none(to,num,buf,i,num);
709 OPENSSL_cleanse(buf,num);