Lines Matching refs:k
56 EC_KEY *k; member
114 EC_KEY_free(pecdhctx->k); in ecdh_init()
115 pecdhctx->k = vecdh; in ecdh_init()
161 || !ecdh_match_params(pecdhctx->k, vecdh)) in ecdh_set_peer()
183 EC_KEY_free(pecdhctx->k); in ecdh_freectx()
209 dstctx->k= NULL; in ecdh_dupctx()
216 if (srcctx->k != NULL && !EC_KEY_up_ref(srcctx->k)) in ecdh_dupctx()
219 dstctx->k = srcctx->k; in ecdh_dupctx()
392 mode = EC_KEY_get_flags(pectx->k) & EC_FLAG_COFACTOR_ECDH ? 1 : 0; in ecdh_get_ctx_params()
458 size_t ecdh_size(const EC_KEY *k) in ecdh_size() argument
463 if (k == NULL in ecdh_size()
464 || (group = EC_KEY_get0_group(k)) == NULL) in ecdh_size()
489 if (pecdhctx->k == NULL || pecdhctx->peerk == NULL) { in ecdh_plain_derive()
494 ecdhsize = ecdh_size(pecdhctx->k); in ecdh_plain_derive()
500 if ((group = EC_KEY_get0_group(pecdhctx->k)) == NULL in ecdh_plain_derive()
525 (EC_KEY_get_flags(pecdhctx->k) & EC_FLAG_COFACTOR_ECDH) ? 1 : 0; in ecdh_plain_derive()
529 if ((privk = EC_KEY_dup(pecdhctx->k)) == NULL) in ecdh_plain_derive()
541 privk = pecdhctx->k; in ecdh_plain_derive()
573 if (privk != pecdhctx->k) in ecdh_plain_derive()