Lines Matching refs:rsa_in
102 unsigned char *rsa_in = NULL, *rsa_out = NULL, pad;
269 rsa_in = OPENSSL_malloc(keysize * 2);
271 if (!rsa_in || !rsa_out) {
278 rsa_inlen = BIO_read(in, rsa_in, keysize * 2);
287 ctmp = rsa_in[i];
288 rsa_in[i] = rsa_in[rsa_inlen - 1 - i];
289 rsa_in[rsa_inlen - 1 - i] = ctmp;
295 rsa_outlen = RSA_public_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
300 RSA_private_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
304 rsa_outlen = RSA_public_encrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
309 RSA_private_decrypt(rsa_inlen, rsa_in, rsa_out, rsa, pad);
332 if (rsa_in)
333 OPENSSL_free(rsa_in);