s2n-bignum's bignum_sqr() is not the same as bn_sqr_words() (which only
computes a partial result, unlike the former). This went unnoticed since
bn_sqr() is called directly on amd64, hence bn_sqr_words() is currently
unused.
-/* $OpenBSD: bn_arch.c,v 1.3 2023/02/02 18:39:26 jsing Exp $ */
+/* $OpenBSD: bn_arch.c,v 1.4 2023/02/04 14:00:18 jsing Exp $ */
/*
* Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
*
bignum_sqr_8_16_alt((uint64_t *)rd, (uint64_t *)ad);
}
#endif
-
-#ifdef HAVE_BN_SQR_WORDS
-void
-bn_sqr_words(BN_ULONG *rd, const BN_ULONG *ad, int num)
-{
- bignum_sqr(num, (uint64_t *)rd, num, (uint64_t *)ad);
-}
-#endif
-/* $OpenBSD: bn_arch.h,v 1.10 2023/02/02 18:39:26 jsing Exp $ */
+/* $OpenBSD: bn_arch.h,v 1.11 2023/02/04 14:00:18 jsing Exp $ */
/*
* Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
*
#define HAVE_BN_SQR
#define HAVE_BN_SQR_COMBA4
#define HAVE_BN_SQR_COMBA8
-#define HAVE_BN_SQR_WORDS
#define HAVE_BN_SUB
#define HAVE_BN_SUB_WORDS