diff options
Diffstat (limited to 'src/regress/lib/libcrypto')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mul_div.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mul_div.c b/src/regress/lib/libcrypto/bn/bn_mul_div.c index 625d5e318e..dbad01004e 100644 --- a/src/regress/lib/libcrypto/bn/bn_mul_div.c +++ b/src/regress/lib/libcrypto/bn/bn_mul_div.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_mul_div.c,v 1.7 2023/06/21 07:18:10 jsing Exp $ */ | 1 | /* $OpenBSD: bn_mul_div.c,v 1.8 2025/08/12 10:29:35 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -233,6 +233,13 @@ struct benchmark benchmarks[] = { | |||
| 233 | .b_bits = 256, | 233 | .b_bits = 256, |
| 234 | }, | 234 | }, |
| 235 | { | 235 | { |
| 236 | .desc = "BN_mul (384 bit x 384 bit)", | ||
| 237 | .setup = benchmark_bn_mul_setup, | ||
| 238 | .run_once = benchmark_bn_mul_run_once, | ||
| 239 | .a_bits = 384, | ||
| 240 | .b_bits = 384, | ||
| 241 | }, | ||
| 242 | { | ||
| 236 | .desc = "BN_mul (512 bit x 512 bit)", | 243 | .desc = "BN_mul (512 bit x 512 bit)", |
| 237 | .setup = benchmark_bn_mul_setup, | 244 | .setup = benchmark_bn_mul_setup, |
| 238 | .run_once = benchmark_bn_mul_run_once, | 245 | .run_once = benchmark_bn_mul_run_once, |
| @@ -294,6 +301,12 @@ struct benchmark benchmarks[] = { | |||
| 294 | .a_bits = 256, | 301 | .a_bits = 256, |
| 295 | }, | 302 | }, |
| 296 | { | 303 | { |
| 304 | .desc = "BN_sqr (384 bit)", | ||
| 305 | .setup = benchmark_bn_sqr_setup, | ||
| 306 | .run_once = benchmark_bn_sqr_run_once, | ||
| 307 | .a_bits = 384, | ||
| 308 | }, | ||
| 309 | { | ||
| 297 | .desc = "BN_sqr (512 bit)", | 310 | .desc = "BN_sqr (512 bit)", |
| 298 | .setup = benchmark_bn_sqr_setup, | 311 | .setup = benchmark_bn_sqr_setup, |
| 299 | .run_once = benchmark_bn_sqr_run_once, | 312 | .run_once = benchmark_bn_sqr_run_once, |
