• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 5079590438

25 May 2023 12:28PM UTC coverage: 92.228% (+0.5%) from 91.723%
5079590438

Pull #3502

github

Pull Request #3502: Apply clang-format to the codebase

75589 of 81959 relevant lines covered (92.23%)

12139530.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/src/fuzzer/bn_sqr.cpp
1
/*
2
* (C) 2015,2016 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6

7
#include "fuzzers.h"
8

9
#include <botan/bigint.h>
10
#include <botan/numthry.h>
11

12
void fuzz(const uint8_t in[], size_t len) {
1,000✔
13
   if(len > 8192 / 8)
1,000✔
14
      return;
×
15

16
   Botan::BigInt x = Botan::BigInt::decode(in, len);
1,000✔
17

18
   Botan::BigInt x_sqr = square(x);
1,000✔
19
   Botan::BigInt x_mul = x * x;
1,000✔
20

21
   FUZZER_ASSERT_EQUAL(x_sqr, x_mul);
1,000✔
22
}
2,998✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc