-/* $OpenBSD: bn_test.c,v 1.12 2023/04/07 22:32:59 tb Exp $ */
+/* $OpenBSD: bn_test.c,v 1.13 2023/04/07 22:36:38 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
{
BIGNUM *a, *b, *c;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
static void
BIGNUM *a, *b;
BN_ULONG r, rmod, s = 0;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
BN_RECP_CTX *recp = NULL;
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
BN_RECP_CTX_free(recp);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
goto err;
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
BN_MONT_CTX *mont = NULL;
BIGNUM *a, *b, *c, *d, *A, *B, *n;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
BN_MONT_CTX_free(mont);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
/*
BIGNUM *b, *n, *c;
BN_MONT_CTX *mont = NULL;
int len;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
goto err;
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
BN_MONT_CTX_free(mont);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
#ifndef OPENSSL_NO_EC2M
{
BIGNUM *a, *b, *c;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1, 0 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
int p0[] = { 163, 7, 6, 3, 0, -1 };
int p1[] = { 193, 15, 0, -1 };
int i, j, s = 0, t;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
goto err;
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
#endif
BN_GENCB *cb = NULL;
int i;
int legendre, kronecker;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
putc('\n', stderr);
- rc = 1;
+ ret = 1;
err:
BN_GENCB_free(cb);
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
BIGNUM *a, *p, *r;
BN_GENCB *cb = NULL;
int i, j;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
putc('\n', stderr);
}
- rc = 1;
+ ret = 1;
err:
BN_GENCB_free(cb);
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
CHECK_GOTO(bn_copy(a, b));
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c, *d, *e;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
{
BIGNUM *a, *b, *c;
int i;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
CHECK_GOTO(bn_copy(a, b));
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
- return rc;
+ return ret;
}
int
BN_MONT_CTX *mont_ctx = NULL;
BIGNUM *p, *x, *y, *r, *r2;
int size;
- int rc = 0;
+ int ret = 0;
BN_CTX_start(ctx);
CHECK_GOTO(p = BN_CTX_get(ctx));
}
}
- rc = 1;
+ ret = 1;
err:
BN_CTX_end(ctx);
BN_MONT_CTX_free(mont_ctx);
- return rc;
+ return ret;
}