Lines Matching defs:gctx
591 struct xor_gen_ctx *gctx = NULL;
597 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL)
598 gctx->selection = selection;
601 gctx->libctx = (OSSL_LIB_CTX *)provctx;
603 if (!xor_gen_set_params(gctx, params)) {
604 OPENSSL_free(gctx);
607 return gctx;
612 struct xor_gen_ctx *gctx = genctx;
615 if (gctx == NULL)
641 struct xor_gen_ctx *gctx = genctx;
648 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) {
649 if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE, 0) <= 0) {