Lines Matching refs:size
28 size_t size; in s390x_mod_exp_hw() local
33 size = BN_num_bytes(m); in s390x_mod_exp_hw()
34 buffer = OPENSSL_zalloc(4 * size); in s390x_mod_exp_hw()
38 me.inputdatalength = size; in s390x_mod_exp_hw()
39 me.outputdata = buffer + size; in s390x_mod_exp_hw()
40 me.outputdatalength = size; in s390x_mod_exp_hw()
41 me.b_key = buffer + 2 * size; in s390x_mod_exp_hw()
42 me.n_modulus = buffer + 3 * size; in s390x_mod_exp_hw()
43 if (BN_bn2binpad(a, me.inputdata, size) == -1 in s390x_mod_exp_hw()
44 || BN_bn2binpad(p, me.b_key, size) == -1 in s390x_mod_exp_hw()
45 || BN_bn2binpad(m, me.n_modulus, size) == -1) in s390x_mod_exp_hw()
48 if (BN_bin2bn(me.outputdata, size, r) != NULL) in s390x_mod_exp_hw()
67 OPENSSL_clear_free(buffer, 4 * size); in s390x_mod_exp_hw()
84 size_t size, plen, qlen; in s390x_crt() local
97 size = (plen > qlen ? plen : qlen); in s390x_crt()
98 buffer = OPENSSL_zalloc(9 * size + 24); in s390x_crt()
103 crt.inputdatalength = 2 * size; in s390x_crt()
104 part += 2 * size; in s390x_crt()
106 crt.outputdatalength = 2 * size; in s390x_crt()
107 part += 2 * size; in s390x_crt()
109 part += size + 8; in s390x_crt()
111 part += size; in s390x_crt()
113 part += size + 8; in s390x_crt()
115 part += size; in s390x_crt()
118 || BN_bn2binpad(p, crt.np_prime, size + 8) == -1 in s390x_crt()
119 || BN_bn2binpad(q, crt.nq_prime, size) == -1 in s390x_crt()
120 || BN_bn2binpad(dmp, crt.bp_key, size + 8) == -1 in s390x_crt()
121 || BN_bn2binpad(dmq, crt.bq_key, size) == -1 in s390x_crt()
122 || BN_bn2binpad(iqmp, crt.u_mult_inv, size + 8) == -1) in s390x_crt()
144 OPENSSL_clear_free(buffer, 9 * size + 24); in s390x_crt()