Lines Matching refs:rsa_in
101 unsigned char *rsa_in = NULL, *rsa_out = NULL, pad;
248 rsa_in = OPENSSL_malloc(keysize * 2);
252 rsa_inlen = BIO_read(in, rsa_in, keysize * 2);
261 ctmp = rsa_in[i];
262 rsa_in[i] = rsa_in[rsa_inlen - 1 - i];
263 rsa_in[rsa_inlen - 1 - i] = ctmp;
269 rsa_outlen = RSA_public_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
273 rsa_outlen = RSA_private_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
277 rsa_outlen = RSA_public_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
281 rsa_outlen = RSA_private_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
302 if(rsa_in) OPENSSL_free(rsa_in);