| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/ec/curve448/point_448.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | typedef struct { | - |
| 2 | gf a, b, c; | - |
| 3 | } niels_s, niels_t[1]; | - |
| 4 | typedef struct { | - |
| 5 | niels_t n; | - |
| 6 | gf z; | - |
| 7 | } pniels_t[1]; | - |
| 8 | - | |
| 9 | - | |
| 10 | struct curve448_precomputed_s { | - |
| 11 | niels_t table[5 << (5 - 1)]; | - |
| 12 | }; | - |
| 13 | typedef struct curve448_point_s { | - |
| 14 | gf x, y, z, t; | - |
| 15 | } curve448_point_t[1]; | - |
| 16 | - | |
| 17 | - | |
| 18 | struct curve448_precomputed_s; | - |
| 19 | - | |
| 20 | - | |
| 21 | typedef struct curve448_precomputed_s curve448_precomputed_s; | - |
| 22 | - | |
| 23 | - | |
| 24 | typedef struct curve448_scalar_s { | - |
| 25 | c448_word_t limb[((446-1)/64 +1)]; | - |
| 26 | } curve448_scalar_t[1]; | - |
| 27 | - | |
| 28 | - | |
| 29 | extern const curve448_scalar_t curve448_scalar_one; | - |
| 30 | - | |
| 31 | - | |
| 32 | extern const curve448_scalar_t curve448_scalar_zero; | - |
| 33 | - | |
| 34 | - | |
| 35 | extern const curve448_point_t curve448_point_identity; | - |
| 36 | - | |
| 37 | - | |
| 38 | extern const struct curve448_precomputed_s *curve448_precomputed_base; | - |
| 39 | extern const niels_t *curve448_wnaf_base; | - |
| 40 | c448_error_t curve448_scalar_decode(curve448_scalar_t out, | - |
| 41 | const unsigned char ser[56]); | - |
| 42 | void curve448_scalar_decode_long(curve448_scalar_t out, | - |
| 43 | const unsigned char *ser, size_t ser_len); | - |
| 44 | - | |
| 45 | - | |
| 46 | - | |
| 47 | - | |
| 48 | - | |
| 49 | - | |
| 50 | - | |
| 51 | void curve448_scalar_encode(unsigned char ser[56], | - |
| 52 | const curve448_scalar_t s); | - |
| 53 | void curve448_scalar_add(curve448_scalar_t out, | - |
| 54 | const curve448_scalar_t a, const curve448_scalar_t b); | - |
| 55 | - | |
| 56 | - | |
| 57 | - | |
| 58 | - | |
| 59 | - | |
| 60 | - | |
| 61 | - | |
| 62 | void curve448_scalar_sub(curve448_scalar_t out, | - |
| 63 | const curve448_scalar_t a, const curve448_scalar_t b); | - |
| 64 | void curve448_scalar_mul(curve448_scalar_t out, | - |
| 65 | const curve448_scalar_t a, const curve448_scalar_t b); | - |
| 66 | - | |
| 67 | - | |
| 68 | - | |
| 69 | - | |
| 70 | - | |
| 71 | - | |
| 72 | - | |
| 73 | void curve448_scalar_halve(curve448_scalar_t out, const curve448_scalar_t a); | - |
| 74 | static inline void curve448_scalar_copy(curve448_scalar_t out, | - |
| 75 | const curve448_scalar_t a) | - |
| 76 | { | - |
| 77 | *out = *a; | - |
| 78 | } executed 131 times by 2 tests: end of blockExecuted by:
| 131 |
| 79 | static inline void curve448_point_copy(curve448_point_t a, | - |
| 80 | const curve448_point_t b) | - |
| 81 | { | - |
| 82 | *a = *b; | - |
| 83 | } executed 122 times by 2 tests: end of blockExecuted by:
| 122 |
| 84 | c448_bool_t curve448_point_eq(const curve448_point_t a, | - |
| 85 | const curve448_point_t b); | - |
| 86 | void curve448_point_double(curve448_point_t two_a, const curve448_point_t a); | - |
| 87 | c448_error_t x448_int(uint8_t out[56], | - |
| 88 | const uint8_t base[56], | - |
| 89 | const uint8_t scalar[56]); | - |
| 90 | void curve448_point_mul_by_ratio_and_encode_like_x448( | - |
| 91 | uint8_t out[56], | - |
| 92 | const curve448_point_t p); | - |
| 93 | void x448_derive_public_key(uint8_t out[56], | - |
| 94 | const uint8_t scalar[56]); | - |
| 95 | void curve448_precomputed_scalarmul(curve448_point_t scaled, | - |
| 96 | const curve448_precomputed_s * base, | - |
| 97 | const curve448_scalar_t scalar); | - |
| 98 | void curve448_base_double_scalarmul_non_secret(curve448_point_t combo, | - |
| 99 | const curve448_scalar_t scalar1, | - |
| 100 | const curve448_point_t base2, | - |
| 101 | const curve448_scalar_t scalar2); | - |
| 102 | c448_bool_t curve448_point_valid(const curve448_point_t to_test); | - |
| 103 | - | |
| 104 | - | |
| 105 | void curve448_scalar_destroy(curve448_scalar_t scalar); | - |
| 106 | - | |
| 107 | - | |
| 108 | void curve448_point_destroy(curve448_point_t point); | - |
| Switch to Source code | Preprocessed file |