forked from tropicsquare/ts-spect-fw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
routines_includes.s
114 lines (96 loc) · 4.21 KB
/
routines_includes.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
; ==============================================================================
; file routines_includes.s
; author [email protected]
;
; Copyright © 2023 Tropic Square s.r.o. (https://tropicsquare.com/)
; This work is subject to the license terms of the LICENSE.txt file in the root
; directory of this source tree.
; If a copy of the LICENSE file was not distributed with this work, you can
; obtain one at (https://tropicsquare.com/license).
;
; ==============================================================================
;
; Includes of all source files for Application Firmware
;
; ==============================================================================
; ====================================================
; Field Math
; ====================================================
.include field_math/256/inv_q256.s
.include field_math/256/inv_p256.s
.include field_math/25519/inv_p25519.s
.include field_math/25519/sqrt_p25519.s
; ====================================================
; ECC Math
; ====================================================
; .......... Ed25519 ..........
.include ecc_math/ed25519/point_compress_ed25519.s
.include ecc_math/ed25519/point_decompress_ed25519.s
.include ecc_math/ed25519/point_add_ed25519.s
.include ecc_math/ed25519/point_dbl_ed25519.s
.include ecc_math/ed25519/spm_ed25519_short.s
.include ecc_math/ed25519/spm_ed25519_long.s
.include ecc_math/ed25519/spm_ed25519_full_masked.s
.include ecc_math/ed25519/point_check_ed25519.s
; .......... P256 ..........
.include ecc_math/p256/point_add_p256.s
.include ecc_math/p256/point_dbl_p256.s
.include ecc_math/p256/spm_p256_short.s
.include ecc_math/p256/spm_p256_long.s
.include ecc_math/p256/spm_p256_full_masked.s
.include ecc_math/p256/point_check_p256.s
; .......... Curve25519 ..........
.include ecc_math/curve25519/get_y_curve25519.s
.include ecc_math/curve25519/point_add_curve25519.s
.include ecc_math/curve25519/point_check_curve25519.s
.include ecc_math/curve25519/point_xadd_curve25519.s
.include ecc_math/curve25519/point_xdbl_curve25519.s
.include ecc_math/curve25519/spm_curve25519_long.s
.include ecc_math/curve25519/y_recovery_curve25519.s
; ====================================================
; EdDSA Sequence
; ====================================================
.include eddsa_sequence/eddsa_nonce_load_msg.s
.include eddsa_sequence/eddsa_nonce_shift.s
.include eddsa_sequence/eddsa_set_context.s
.include eddsa_sequence/eddsa_nonce_init.s
.include eddsa_sequence/eddsa_nonce_update.s
.include eddsa_sequence/eddsa_nonce_finish.s
.include eddsa_sequence/eddsa_r_part.s
.include eddsa_sequence/eddsa_e_load_msg.s
.include eddsa_sequence/eddsa_e_pad_mask.s
.include eddsa_sequence/eddsa_e_at_once.s
.include eddsa_sequence/eddsa_e_prep.s
.include eddsa_sequence/eddsa_e_update.s
.include eddsa_sequence/eddsa_e_finish.s
.include eddsa_sequence/eddsa_finish.s
; ====================================================
; ECC Point Generation
; ====================================================
.include ecc_point_generation/compose_exp_tag.s
.include ecc_point_generation/hash_to_field.s
.include ecc_point_generation/map_to_curve_elligator2_curve25519.s
.include ecc_point_generation/point_generate_curve25519.s
.include ecc_point_generation/point_generate_ed25519.s
.include ecc_point_generation/sqrt_ratio_3mod4.s
.include ecc_point_generation/map_to_curve_simple_swu.s
.include ecc_point_generation/point_generate_p256.s
; ====================================================
; ECC Crypto
; ====================================================
.include ecc_crypto/p256_key_setup.s
.include ecc_crypto/ed25519_key_setup.s
.include ecc_crypto/ecdsa_sign.s
.include ecc_crypto/x25519_full_masked.s
; ====================================================
; SPECT Ops
; ====================================================
.include ops/ecc_key_ops.s
.include ops/ecdsa_ops.s
.include ops/x25519_ops.s
.include ops/clear.s
.include ops/debug.s
; ====================================================
; Others
; ====================================================
.include others/tmac_shc_shn.s