Lines Matching defs:ctx
104 void (*tx)(void *ctx, const u8 *addr, unsigned int freq, const u8 *msg,
106 void (*gas_resp_tx)(void *ctx, const u8 *addr, u8 dialog_token,
130 int (*process_conf_obj)(void *ctx, struct dpp_authentication *auth);
362 BN_CTX *ctx;
368 ctx = BN_CTX_new();
371 if (!ctx || !x || !y ||
372 EC_POINT_get_affine_coordinates_GFp(group, point, x, y, ctx) != 1)
387 BN_CTX_free(ctx);
520 BN_CTX *ctx;
525 ctx = BN_CTX_new();
526 if (!ctx) {
539 if (!EC_POINT_set_affine_coordinates_GFp(group, point, x, y, ctx)) {
546 if (!EC_POINT_is_on_curve(group, point, ctx) ||
575 BN_CTX_free(ctx);
616 EVP_PKEY_CTX *ctx;
622 ctx = EVP_PKEY_CTX_new(own, NULL);
623 if (!ctx) {
629 if (EVP_PKEY_derive_init(ctx) != 1) {
635 if (EVP_PKEY_derive_set_peer(ctx, peer) != 1) {
642 if (EVP_PKEY_derive(ctx, NULL, secret_len) != 1) {
665 if (EVP_PKEY_derive(ctx, buf, secret_len) != 1) {
683 if (EVP_PKEY_derive(ctx, secret, secret_len) != 1) {
693 EVP_PKEY_CTX_free(ctx);
1370 BN_CTX *ctx;
1374 ctx = BN_CTX_new();
1376 if (!ctx || !eckey)
1393 NULL, 0, ctx);
1401 der, len, ctx);
1423 BN_CTX_free(ctx);
3079 EVP_PKEY_CTX *ctx = NULL;
3334 EVP_PKEY_CTX_free(ctx);
6832 BN_CTX *ctx;
6842 ctx = BN_CTX_new();
6846 if (!ctx || !point || !x || !y)
6859 ctx) != 1) {
6870 if (!EC_POINT_is_on_curve(group, point, ctx))
6887 BN_CTX_free(ctx);