Lines Matching refs:rsa_in
101 unsigned char *rsa_in = NULL, *rsa_out = NULL, pad;
260 rsa_in = OPENSSL_malloc(keysize * 2);
264 rsa_inlen = BIO_read(in, rsa_in, keysize * 2);
273 ctmp = rsa_in[i];
274 rsa_in[i] = rsa_in[rsa_inlen - 1 - i];
275 rsa_in[rsa_inlen - 1 - i] = ctmp;
281 rsa_outlen = RSA_public_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
285 rsa_outlen = RSA_private_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
289 rsa_outlen = RSA_public_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
293 rsa_outlen = RSA_private_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
314 if(rsa_in) OPENSSL_free(rsa_in);