/*
- * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
- * Licensed under the OpenSSL license (the "License"). You may not use
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
#include "internal/numbers.h"
#include "testutil.h"
#include "bn_prime.h"
-#include "internal/bn_int.h"
+#include "crypto/bn.h"
static BN_CTX *ctx;
for (i = 1; i < NUMPRIMES; i++) {
prime_t p = primes[i];
- if (p > 3 && p <= 751)
- BN_mul_word(b, p);
+ if (p > 3 && p <= 751 && !BN_mul_word(b, p))
+ goto err;
if (p > 751)
break;
}