Searched refs:derivectx (Results 1 – 1 of 1) sorted by relevance
341 void *genctx = NULL, *derivectx = NULL; in xor_encapsulate() local370 derivectx = xor_newctx(pxorctx->provctx); in xor_encapsulate()371 if (derivectx == NULL in xor_encapsulate()372 || !xor_init(derivectx, ourkey, NULL) in xor_encapsulate()373 || !xor_set_peer(derivectx, pxorctx->key) in xor_encapsulate()374 || !xor_derive(derivectx, ss, sslen, XOR_KEY_SIZE)) in xor_encapsulate()382 xor_freectx(derivectx); in xor_encapsulate()397 void *derivectx = NULL; in xor_decapsulate() local417 derivectx = xor_newctx(pxorctx->provctx); in xor_decapsulate()418 if (derivectx == NULL in xor_decapsulate()[all …]