Lines Matching refs:vecdh
104 int ecdh_init(void *vpecdhctx, void *vecdh, const OSSL_PARAM params[]) in ecdh_init() argument
110 || vecdh == NULL in ecdh_init()
111 || (EC_KEY_get0_group(vecdh) == NULL) in ecdh_init()
112 || !EC_KEY_up_ref(vecdh)) in ecdh_init()
115 pecdhctx->k = vecdh; in ecdh_init()
125 EC_KEY_get0_group(vecdh), "ECDH Init", 1)) in ecdh_init()
154 int ecdh_set_peer(void *vpecdhctx, void *vecdh) in ecdh_set_peer() argument
160 || vecdh == NULL in ecdh_set_peer()
161 || !ecdh_match_params(pecdhctx->k, vecdh)) in ecdh_set_peer()
166 EC_KEY_get0_group(vecdh), "ECDH Set Peer", in ecdh_set_peer()
170 if (!EC_KEY_up_ref(vecdh)) in ecdh_set_peer()
174 pecdhctx->peerk = vecdh; in ecdh_set_peer()