Skip to content

Commit 4b65b95

Browse files
committed
Use exact match for ECX group name
1 parent b626507 commit 4b65b95

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/wp_ecx_kmgmt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,7 @@ static int wp_ecx_gen_set_params(wp_EcxGenCtx* ctx, const OSSL_PARAM params[])
12731273
&name)) {
12741274
ok = 0;
12751275
}
1276-
if (ok && (name != NULL) && (XSTRNCMP(name, ctx->name,
1277-
XSTRLEN(name)) != 0)) {
1276+
if (ok && (name != NULL) && (XSTRCMP(name, ctx->name) != 0)) {
12781277
ok = 0;
12791278
}
12801279

src/wp_rsa_kem.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,7 @@ static int wp_rsakem_set_ctx_params(wp_RsaKemCtx* ctx,
539539
ok = 0;
540540
}
541541
if (ok && (op != NULL)) {
542-
if (XSTRNCMP(OSSL_KEM_PARAM_OPERATION_RSASVE, op,
543-
sizeof(OSSL_KEM_PARAM_OPERATION_RSASVE) - 1) == 0) {
542+
if (XSTRCMP(OSSL_KEM_PARAM_OPERATION_RSASVE, op) == 0) {
544543
ctx->op = WP_RSA_KEM_OP_RSASVE;
545544
}
546545
else {

0 commit comments

Comments
 (0)