Lines Matching defs:gctx
587 struct xor_gen_ctx *gctx = NULL;
593 if ((gctx = OPENSSL_zalloc(sizeof(*gctx))) != NULL)
594 gctx->selection = selection;
597 gctx->libctx = (OSSL_LIB_CTX *)provctx;
599 if (!xor_gen_set_params(gctx, params)) {
600 OPENSSL_free(gctx);
603 return gctx;
608 struct xor_gen_ctx *gctx = genctx;
611 if (gctx == NULL)
637 struct xor_gen_ctx *gctx = genctx;
644 if ((gctx->selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0) {
645 if (RAND_bytes_ex(gctx->libctx, key->privkey, XOR_KEY_SIZE, 0) <= 0) {