OpenCoverage

f_impl.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/ec/curve448/arch_32/f_impl.h
Switch to Source codePreprocessed file
LineSourceCount
1void gf_add_RAW(gf out, const gf a, const gf b)-
2{-
3 unsigned int i;-
4-
5 for (i = 0; i < (64/sizeof(word_t))
i < (64/sizeof(word_t))Description
TRUEevaluated 29955008 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 1872188 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
; i++)
1872188-29955008
6 out->limb[i] = a->limb[i] + b->limb[i];
executed 29955008 times by 2 tests: out->limb[i] = a->limb[i] + b->limb[i];
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
29955008
7}
executed 1872188 times by 2 tests: end of block
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
1872188
8-
9void gf_sub_RAW(gf out, const gf a, const gf b)-
10{-
11 unsigned int i;-
12-
13 for (i = 0; i < (64/sizeof(word_t))
i < (64/sizeof(word_t))Description
TRUEevaluated 30166672 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 1885417 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
; i++)
1885417-30166672
14 out->limb[i] = a->limb[i] - b->limb[i];
executed 30166672 times by 2 tests: out->limb[i] = a->limb[i] - b->limb[i];
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
30166672
15}
executed 1885417 times by 2 tests: end of block
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
1885417
16-
17void gf_bias(gf a, int amt)-
18{-
19 unsigned int i;-
20 uint32_t co1 = ((1 << 28) - 1) * amt, co2 = co1 - amt;-
21-
22 for (i = 0; i < (64/sizeof(word_t))
i < (64/sizeof(word_t))Description
TRUEevaluated 30166672 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 1885417 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
; i++)
1885417-30166672
23 a->limb[i] += (
(i == (64/sizeof(word_t)) / 2)Description
TRUEevaluated 1885417 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 28281255 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
i == (64/sizeof(word_t)) / 2)
(i == (64/sizeof(word_t)) / 2)Description
TRUEevaluated 1885417 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 28281255 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
? co2 : co1;
executed 30166672 times by 2 tests: a->limb[i] += (i == (64/sizeof(word_t)) / 2) ? co2 : co1;
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
1885417-30166672
24}
executed 1885417 times by 2 tests: end of block
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
1885417
25-
26void gf_weak_reduce(gf a)-
27{-
28 uint32_t mask = (1 << 28) - 1;-
29 uint32_t tmp = a->limb[(64/sizeof(word_t)) - 1] >> 28;-
30 unsigned int i;-
31-
32 a->limb[(64/sizeof(word_t)) / 2] += tmp;-
33 for (i = (64/sizeof(word_t)) - 1; i > 0
i > 0Description
TRUEevaluated 28340205 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
FALSEevaluated 1889347 times by 2 tests
Evaluated by:
  • curve448_internal_test
  • libcrypto.so.1.1
; i--)
1889347-28340205
34 a->limb[i] = (a->limb[i] & mask) + (a->limb[i - 1] >> 28);
executed 28340205 times by 2 tests: a->limb[i] = (a->limb[i] & mask) + (a->limb[i - 1] >> 28);
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
28340205
35 a->limb[0] = (a->limb[0] & mask) + tmp;-
36}
executed 1889347 times by 2 tests: end of block
Executed by:
  • curve448_internal_test
  • libcrypto.so.1.1
1889347
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2