Home
last modified time | relevance | path

Searched refs:LTC_NULL (Results 1 – 25 of 33) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_verify_hash.c39 if ((err = mp_init_multi(&w, &v, &u1, &u2, LTC_NULL)) != CRYPT_OK) { in dsa_verify_hash_raw()
75 mp_clear_multi(w, v, u1, u2, LTC_NULL); in dsa_verify_hash_raw()
101 if ((err = mp_init_multi(&r, &s, LTC_NULL)) != CRYPT_OK) { in dsa_verify_hash()
122 mp_clear_multi(r, s, LTC_NULL); in dsa_verify_hash()
A Ddsa_sign_hash.c54 …if ((err = mp_init_multi(&k, &kinv, &tmp, LTC_NULL)) != CRYPT_OK) { goto ERRBUF;… in dsa_sign_hash_raw()
92 mp_clear_multi(k, kinv, tmp, LTC_NULL); in dsa_sign_hash_raw()
124 if (mp_init_multi(&r, &s, LTC_NULL) != CRYPT_OK) { in dsa_sign_hash()
138 mp_clear_multi(r, s, LTC_NULL); in dsa_sign_hash()
A Ddsa_encrypt_key.c53 if ((err = mp_init_multi(&g_pub, &g_priv, LTC_NULL)) != CRYPT_OK) { in dsa_encrypt_key()
66 mp_clear_multi(g_pub, g_priv, LTC_NULL); in dsa_encrypt_key()
114 mp_clear_multi(g_pub, g_priv, LTC_NULL); in dsa_encrypt_key()
A Ddsa_free.c19 mp_cleanup_multi(&key->y, &key->x, &key->q, &key->g, &key->p, LTC_NULL); in dsa_free()
A Ddsa_set_pqg_dsaparam.c28 err = mp_init_multi(&key->p, &key->g, &key->q, &key->x, &key->y, LTC_NULL); in dsa_set_pqg_dsaparam()
A Ddsa_verify_key.c65 if ((err = mp_init_multi(&tmp1, &tmp2, LTC_NULL)) != CRYPT_OK) { return err; } in dsa_int_validate_pqg()
87 mp_clear_multi(tmp2, tmp1, LTC_NULL); in dsa_int_validate_pqg()
A Ddsa_generate_pqg.c111 err = mp_init_multi(&t2L1, &t2N1, &t2q, &t2seedlen, &U, &W, &X, &c, &h, &e, &seedinc, LTC_NULL); in s_dsa_make_params()
190 mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, LTC_NULL); in s_dsa_make_params()
216 if ((err = mp_init_multi(&key->p, &key->g, &key->q, &key->x, &key->y, LTC_NULL)) != CRYPT_OK) { in dsa_generate_pqg()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_is_point_at_infinity.c30 if ((err = mp_init_multi(&x3, &y2, LTC_NULL)) != CRYPT_OK) goto done; in ltc_ecc_is_point_at_infinity()
48 mp_clear_multi(x3, y2, LTC_NULL); in ltc_ecc_is_point_at_infinity()
A Dltc_ecc_points.c25 &p->x, &p->y, &p->z, LTC_NULL) != CRYPT_OK) { in ltc_ecc_new_point()
39 …mp_clear_multi(p->x, p->y, p->z, LTC_NULL); /* note: p->z may be NULL but that's ok with this func… in ltc_ecc_del_point()
A Dltc_ecc_is_point.c24 if ((err = mp_init_multi(&t1, &t2, LTC_NULL)) != CRYPT_OK) return err; in ltc_ecc_is_point()
58 mp_clear_multi(t1, t2, LTC_NULL); in ltc_ecc_is_point()
A Dltc_ecc_map.c33 if ((err = mp_init_multi(&t1, &t2, LTC_NULL)) != CRYPT_OK) { in ltc_ecc_map()
58 mp_clear_multi(t1, t2, LTC_NULL); in ltc_ecc_map()
A Dltc_ecc_import_point.c15 if (mp_init_multi(&t1, &t2, LTC_NULL) != CRYPT_OK) { in ltc_ecc_import_point()
57 mp_clear_multi(t1, t2, LTC_NULL); in ltc_ecc_import_point()
A Decc_verify_hash.c45 if ((err = mp_init_multi(&r, &s, &v, &w, &u1, &u2, &e, &a_plus3, LTC_NULL)) != CRYPT_OK) { in ecc_verify_hash_ex()
69 … LTC_ASN1_EOL, 0UL, LTC_NULL)) != CRYPT_OK) { goto error; } in ecc_verify_hash_ex()
166 …if ((err = mp_init_multi(&mu, &ma, LTC_NULL)) != CRYPT_OK) … in ecc_verify_hash_ex()
201 mp_clear_multi(r, s, v, w, u1, u2, e, a_plus3, LTC_NULL); in ecc_verify_hash_ex()
A Decc_recover_key.c49 …multi(&r, &s, &v, &w, &t1, &t2, &u1, &u2, &v1, &v2, &e, &x, &y, &a_plus3, LTC_NULL)) != CRYPT_OK) { in ecc_recover_key()
75 … LTC_ASN1_EOL, 0UL, LTC_NULL)) != CRYPT_OK) { goto error; } in ecc_recover_key()
217 …if ((err = mp_init_multi(&mu, &ma, LTC_NULL)) != CRYPT_OK) … in ecc_recover_key()
255 mp_clear_multi(a_plus3, y, x, e, v2, v1, u2, u1, t2, t1, w, v, s, r, LTC_NULL); in ecc_recover_key()
A Decc_import_x509.c43 if ((err = mp_init_multi(&prime, &order, &a, &b, &gx, &gy, LTC_NULL)) != CRYPT_OK) { in s_ecc_import_x509_with_curve()
82 mp_clear_multi(prime, order, a, b, gx, gy, LTC_NULL); in s_ecc_import_x509_with_curve()
A Decc_import_openssl.c52 if ((err = mp_init_multi(&prime, &order, &a, &b, &gx, &gy, LTC_NULL)) != CRYPT_OK) { in s_ecc_import_private_with_curve()
98 mp_clear_multi(prime, order, a, b, gx, gy, LTC_NULL); in s_ecc_import_private_with_curve()
A Dltc_ecc_projective_add_point.c34 if ((err = mp_init_multi(&t1, &t2, &x, &y, &z, LTC_NULL)) != CRYPT_OK) { in ltc_ecc_projective_add_point()
55 mp_clear_multi(t1, t2, x, y, z, LTC_NULL); in ltc_ecc_projective_add_point()
193 mp_clear_multi(t1, t2, x, y, z, LTC_NULL); in ltc_ecc_projective_add_point()
A Decc_import_pkcs8.c63 err = mp_init_multi(&a, &b, &gx, &gy, LTC_NULL); in ecc_import_pkcs8()
180 mp_clear_multi(a, b, gx, gy, LTC_NULL); in ecc_import_pkcs8()
A Decc_sign_hash.c49 if ((err = mp_init_multi(&r, &s, &e, &b, LTC_NULL)) != CRYPT_OK) { in ecc_sign_hash_ex()
177 mp_clear_multi(r, s, e, b, LTC_NULL); in ecc_sign_hash_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_free.c15 mp_cleanup_multi(&key->prime, &key->base, &key->y, &key->x, LTC_NULL); in dh_free()
A Ddh_set.c29 if ((err = mp_init_multi(&key->x, &key->y, &key->base, &key->prime, LTC_NULL)) != CRYPT_OK) { in dh_set_pg()
61 if ((err = mp_init_multi(&key->x, &key->y, &key->base, &key->prime, LTC_NULL)) != CRYPT_OK) { in dh_set_pg_groupsize()
A Ddh_set_pg_dhparam.c27 if ((err = mp_init_multi(&key->x, &key->y, &key->base, &key->prime, LTC_NULL)) != CRYPT_OK) { in dh_set_pg_dhparam()
A Ddh_import.c25 if ((err = mp_init_multi(&key->x, &key->y, &key->base, &key->prime, LTC_NULL)) != CRYPT_OK) { in dh_import()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_key.c90 …mp_init_multi(&key->e, &key->d, &key->N, &key->dQ, &key->dP, &key->qP, &key->p, &key->q, LTC_NULL); in rsa_init()
100 …cleanup_multi(&key->q, &key->p, &key->qP, &key->dP, &key->dQ, &key->N, &key->d, &key->e, LTC_NULL); in rsa_free()
A Drsa_make_key.c25 if ((err = mp_init_multi(&p, &q, &tmp1, &tmp2, LTC_NULL)) != CRYPT_OK) { in s_rsa_make_key()
79 mp_clear_multi(tmp2, tmp1, q, p, LTC_NULL); in s_rsa_make_key()

Completed in 17 milliseconds

12