Lines Matching defs:num
103 int i,j,k,num=0,r= -1;
110 num=BN_num_bytes(rsa->n);
111 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
120 i=RSA_padding_add_PKCS1_type_2(buf,num,from,flen);
124 i=RSA_padding_add_PKCS1_OAEP(buf,num,from,flen,NULL,0);
128 i=RSA_padding_add_SSLv23(buf,num,from,flen);
131 i=RSA_padding_add_none(buf,num,from,flen);
139 if (BN_bin2bn(buf,num,&f) == NULL) goto err;
178 i=BN_bn2bin(&ret,&(to[num-j]));
179 for (k=0; k<(num-i); k++)
182 r=num;
189 OPENSSL_cleanse(buf,num);
253 int i,j,k,num=0,r= -1;
263 num=BN_num_bytes(rsa->n);
264 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
273 i=RSA_padding_add_PKCS1_type_1(buf,num,from,flen);
276 i=RSA_padding_add_none(buf,num,from,flen);
285 if (BN_bin2bn(buf,num,&f) == NULL) goto err;
346 i=BN_bn2bin(&ret,&(to[num-j]));
347 for (k=0; k<(num-i); k++)
350 r=num;
359 OPENSSL_cleanse(buf,num);
369 int j,num=0,r= -1;
381 num=BN_num_bytes(rsa->n);
383 if ((buf=(unsigned char *)OPENSSL_malloc(num)) == NULL)
391 if (flen > num)
463 r=RSA_padding_check_PKCS1_type_2(to,num,buf,j,num);
467 r=RSA_padding_check_PKCS1_OAEP(to,num,buf,j,num,NULL,0);
471 r=RSA_padding_check_SSLv23(to,num,buf,j,num);
474 r=RSA_padding_check_none(to,num,buf,j,num);
491 OPENSSL_cleanse(buf,num);
502 int i,num=0,r= -1;
512 num=BN_num_bytes(rsa->n);
513 buf=(unsigned char *)OPENSSL_malloc(num);
522 if (flen > num)
570 r=RSA_padding_check_PKCS1_type_1(to,num,buf,i,num);
573 r=RSA_padding_check_none(to,num,buf,i,num);
588 OPENSSL_cleanse(buf,num);