netxduo
NX_CRYPTO_HUGE_NUMBER_STRUCT::nx_crypto_huge_number_data
is only used within netxduo.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
netxduo
NX_CRYPTO_HUGE_NUMBER_STRUCT::nx_crypto_huge_number_data
NX_CRYPTO_HUGE_NUMBER_STRUCT::nx_crypto_huge_number_data field
Syntax
Show:
Summary
Declaration
from
nx_crypto_huge_number.h:118
HN_UBASE
*
nx_crypto_huge_number_data
;
Examples
References
from
examples
Code
Location
Referrer
HN_UBASE
*
nx_crypto_huge_number_data
;
nx_crypto_huge_number.h:118
NX_CRYPTO_HUGE_NUMBER_INITIALIZE_DIGIT
(
&
generator
,
&
generator_value
,
nx_crypto_dh.c:140
_nx_crypto_dh_setup()
modulus
.
nx_crypto_huge_number_data
=
dh_ptr
->
nx_crypto_dh_modulus
;
nx_crypto_dh.c:144
_nx_crypto_dh_setup()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
public_key
,
scratch_buf_ptr
,
dh_ptr
->
nx_crypto_dh_key_size
<
<
1
)
;
nx_crypto_dh.c:161
_nx_crypto_dh_setup()
private_key
.
nx_crypto_huge_number_data
=
dh_ptr
->
nx_crypto_dh_private_key_buffer
;
nx_crypto_dh.c:164
_nx_crypto_dh_setup()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
public_key
,
scratch_buf_ptr
,
key_size
)
;
nx_crypto_dh.c:283
_nx_crypto_dh_compute_secret()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
shared_secret
,
scratch_buf_ptr
,
key_size
<
<
1
)
;
nx_crypto_dh.c:284
_nx_crypto_dh_compute_secret()
modulus
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
dh_ptr
->
nx_crypto_dh_modulus
;
nx_crypto_dh.c:292
_nx_crypto_dh_compute_secret()
private_key
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
dh_ptr
->
nx_crypto_dh_private_key_buffer
;
nx_crypto_dh.c:300
_nx_crypto_dh_compute_secret()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
point
->
nx_crypto_ec_point_x
,
0
)
;
nx_crypto_ec.c:812
_nx_crypto_ec_point_set_infinite()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
point
->
nx_crypto_ec_point_y
,
0
)
;
nx_crypto_ec.c:813
_nx_crypto_ec_point_set_infinite()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
point
->
nx_crypto_ec_point_z
,
0
)
;
nx_crypto_ec.c:817
_nx_crypto_ec_point_set_infinite()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
point
->
nx_crypto_ec_point_z
,
1
)
;
nx_crypto_ec.c:1028
_nx_crypto_ec_point_fp_affine_to_projective()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:1103
_nx_crypto_ec_point_fp_projective_to_affine()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:1104
_nx_crypto_ec_point_fp_projective_to_affine()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
zi
,
scratch
,
buffer_size
)
;
nx_crypto_ec.c:1105
_nx_crypto_ec_point_fp_projective_to_affine()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
point
->
nx_crypto_ec_point_x
,
&
temp2
)
;
nx_crypto_ec.c:1115
_nx_crypto_ec_point_fp_projective_to_affine()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
point
->
nx_crypto_ec_point_y
,
&
temp1
)
;
nx_crypto_ec.c:1121
_nx_crypto_ec_point_fp_projective_to_affine()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
value
,
0
)
;
nx_crypto_ec.c:1201
_nx_crypto_ec_secp192r1_reduce()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
36
)
;
nx_crypto_ec.c:1205
_nx_crypto_ec_secp192r1_reduce()
NX_CRYPTO_EC_SECP192R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1223
_nx_crypto_ec_secp192r1_reduce()
NX_CRYPTO_EC_SECP192R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1229
_nx_crypto_ec_secp192r1_reduce()
NX_CRYPTO_EC_SECP192R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1235
_nx_crypto_ec_secp192r1_reduce()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
value
,
0
)
;
nx_crypto_ec.c:1338
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
36
)
;
nx_crypto_ec.c:1342
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_EC_SECP224R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1360
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_EC_SECP224R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1366
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_EC_SECP224R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1372
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_EC_SECP224R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1378
_nx_crypto_ec_secp224r1_reduce()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
value
,
0
)
;
nx_crypto_ec.c:1482
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
36
)
;
nx_crypto_ec.c:1486
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP_LS1
(
&
temp
,
rev1
,
rev2
,
nx_crypto_ec.c:1504
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP_LS1
(
&
temp
,
rev1
,
rev2
,
nx_crypto_ec.c:1510
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1516
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1522
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1528
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1534
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1540
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_EC_SECP256R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1546
_nx_crypto_ec_secp256r1_reduce()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
value
,
0
)
;
nx_crypto_ec.c:1647
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
52
)
;
nx_crypto_ec.c:1651
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP_LS1
(
&
temp
,
rev1
,
rev2
,
nx_crypto_ec.c:1669
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1679
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1686
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1693
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1700
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1707
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1714
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_EC_SECP384R1_DATA_SETUP
(
&
temp
,
rev1
,
nx_crypto_ec.c:1720
_nx_crypto_ec_secp384r1_reduce()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
value
,
0
)
;
nx_crypto_ec.c:1818
_nx_crypto_ec_secp521r1_reduce()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
66
)
;
nx_crypto_ec.c:1822
_nx_crypto_ec_secp521r1_reduce()
(
value
->
nx_crypto_huge_number_data
[
0
]
<
digit
)
)
)
nx_crypto_ec.c:1992
_nx_crypto_ec_subtract_digit_reduce()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_x
,
nx_crypto_ec.c:2275
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_y
,
nx_crypto_ec.c:2277
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2289
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2290
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp3
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2291
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp4
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2292
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp5
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2293
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_z
,
&
temp3
)
;
nx_crypto_ec.c:2318
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp3
,
&
temp2
)
;
nx_crypto_ec.c:2327
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_x
,
&
temp5
)
;
nx_crypto_ec.c:2332
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_y
,
&
temp3
)
;
nx_crypto_ec.c:2344
_nx_crypto_ec_fp_projective_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2428
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2429
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp3
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2430
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp4
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2431
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp5
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2432
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp4
,
&
projective_point
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2449
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp5
,
&
projective_point
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2450
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_z
,
&
temp5
)
;
nx_crypto_ec.c:2460
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp5
,
&
temp1
)
;
nx_crypto_ec.c:2466
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_x
,
&
temp3
)
;
nx_crypto_ec.c:2469
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
projective_point
->
nx_crypto_ec_point_y
,
&
temp3
)
;
nx_crypto_ec.c:2479
_nx_crypto_ec_fp_projective_double()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
left
->
nx_crypto_ec_point_x
,
nx_crypto_ec.c:2552
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
left
->
nx_crypto_ec_point_y
,
nx_crypto_ec.c:2554
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2567
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2568
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp3
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ec.c:2569
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp3
,
&
left
->
nx_crypto_ec_point_y
)
;
nx_crypto_ec.c:2579
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
,
&
right
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2593
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
,
&
right
->
nx_crypto_ec_point_y
)
;
nx_crypto_ec.c:2596
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp2
,
&
left
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2605
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
left
->
nx_crypto_ec_point_x
,
&
temp1
)
;
nx_crypto_ec.c:2606
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
left
->
nx_crypto_ec_point_y
,
&
temp1
)
;
nx_crypto_ec.c:2612
_nx_crypto_ec_fp_affine_add()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
point
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
nx_crypto_ec.c:2670
_nx_crypto_ec_fp_affine_subtract()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
point
.
nx_crypto_ec_point_x
,
&
right
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2672
_nx_crypto_ec_fp_affine_subtract()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
point
.
nx_crypto_ec_point_y
,
&
curve
->
nx_crypto_ec_field
.
fp
)
;
nx_crypto_ec.c:2673
_nx_crypto_ec_fp_affine_subtract()
digit
=
digit
+
d
->
nx_crypto_huge_number_data
[
i
]
;
nx_crypto_ec.c:2737
_nx_crypto_ec_naf_compute()
value
=
(
(
(
d
->
nx_crypto_huge_number_data
[
i
+
1
]
&
1
)
<
<
1
)
+
digit
)
&
3
;
nx_crypto_ec.c:2759
_nx_crypto_ec_naf_compute()
digit
=
digit
+
d
->
nx_crypto_huge_number_data
[
i
]
;
nx_crypto_ec.c:2778
_nx_crypto_ec_naf_compute()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
projective_point
,
NX_CRYPTO_EC_POINT_PROJECTIVE
,
scratch
,
nx_crypto_ec.c:2888
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
negative_g
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
nx_crypto_ec.c:2890
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
negative_g
.
nx_crypto_ec_point_x
,
&
g
->
nx_crypto_ec_point_x
)
;
nx_crypto_ec.c:2894
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
negative_g
.
nx_crypto_ec_point_y
,
&
curve
->
nx_crypto_ec_field
.
fp
)
;
nx_crypto_ec.c:2895
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
r
->
nx_crypto_ec_point_x
,
nx_crypto_ec.c:2938
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
r
->
nx_crypto_ec_point_y
,
nx_crypto_ec.c:2940
_nx_crypto_ec_fp_projective_multiple()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
projective_point
,
NX_CRYPTO_EC_POINT_PROJECTIVE
,
scratch
,
nx_crypto_ec.c:3024
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
expanded_d
,
scratch
,
expanded_size
)
;
nx_crypto_ec.c:3026
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
expanded_d
,
d
)
;
nx_crypto_ec.c:3029
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_MEMSET
(
&
expanded_d
.
nx_crypto_huge_number_data
[
expanded_d
.
nx_crypto_huge_number_size
]
,
0
,
nx_crypto_ec.c:3030
_nx_crypto_ec_fp_fixed_multiple()
value
=
expanded_d
.
nx_crypto_huge_number_data
[
bit_index
>
>
(
HN_SIZE_SHIFT
+
3
)
]
;
nx_crypto_ec.c:3043
_nx_crypto_ec_fp_fixed_multiple()
value
=
expanded_d
.
nx_crypto_huge_number_data
[
bit_index
>
>
(
HN_SIZE_SHIFT
+
3
)
]
;
nx_crypto_ec.c:3068
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
r
->
nx_crypto_ec_point_x
,
nx_crypto_ec.c:3082
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
r
->
nx_crypto_ec_point_y
,
nx_crypto_ec.c:3084
_nx_crypto_ec_fp_fixed_multiple()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
random_number
,
scratch
,
buffer_size
)
;
nx_crypto_ec.c:3159
_nx_crypto_ec_key_pair_generation_extra()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
modulus
,
scratch
,
buffer_size
)
;
nx_crypto_ec.c:3160
_nx_crypto_ec_key_pair_generation_extra()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
modulus
,
&
curve
->
nx_crypto_ec_n
)
;
nx_crypto_ec.c:3178
_nx_crypto_ec_key_pair_generation_extra()
NX_CRYPTO_HUGE_NUMBER_COPY
(
private_key
,
&
random_number
)
;
nx_crypto_ec.c:3184
_nx_crypto_ec_key_pair_generation_extra()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
public_key
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
nx_crypto_ec.c:3264
_nx_crypto_ec_key_pair_stream_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
private_key
,
scratch
,
private_key_len
)
;
nx_crypto_ec.c:3268
_nx_crypto_ec_key_pair_stream_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
fixed_points
->
nx_crypto_ec_fixed_points_array
[
i
]
,
nx_crypto_ec.c:3396
_nx_crypto_ec_precomputation()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
fixed_points
->
nx_crypto_ec_fixed_points_array_2e
[
i
]
,
nx_crypto_ec.c:3402
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
d
,
scratch_ptr
,
nx_crypto_ec.c:3407
_nx_crypto_ec_precomputation()
NX_CRYPTO_MEMSET
(
d
.
nx_crypto_huge_number_data
,
0
,
d
.
nx_crypto_huge_number_size
<
<
HN_SIZE_SHIFT
)
;
nx_crypto_ec.c:3415
_nx_crypto_ec_precomputation()
d
.
nx_crypto_huge_number_data
[
d
.
nx_crypto_huge_number_size
-
1
]
=
nx_crypto_ec.c:3416
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
-
1
]
.
nx_crypto_ec_point_x
,
nx_crypto_ec.c:3429
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
-
1
]
.
nx_crypto_ec_point_y
,
nx_crypto_ec.c:3431
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
+
j
-
1
]
.
nx_crypto_ec_point_x
,
nx_crypto_ec.c:3437
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
+
j
-
1
]
.
nx_crypto_ec_point_y
,
nx_crypto_ec.c:3439
_nx_crypto_ec_precomputation()
NX_CRYPTO_MEMSET
(
d
.
nx_crypto_huge_number_data
,
0
,
d
.
nx_crypto_huge_number_size
<
<
HN_SIZE_SHIFT
)
;
nx_crypto_ec.c:3450
_nx_crypto_ec_precomputation()
d
.
nx_crypto_huge_number_data
[
d
.
nx_crypto_huge_number_size
-
1
]
=
nx_crypto_ec.c:3451
_nx_crypto_ec_precomputation()
NX_CRYPTO_MEMSET
(
d
.
nx_crypto_huge_number_data
,
0
,
d
.
nx_crypto_huge_number_size
<
<
HN_SIZE_SHIFT
)
;
nx_crypto_ec.c:3456
_nx_crypto_ec_precomputation()
d
.
nx_crypto_huge_number_data
[
d
.
nx_crypto_huge_number_size
-
1
]
=
nx_crypto_ec.c:3457
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
+
j
]
.
nx_crypto_ec_point_x
,
nx_crypto_ec.c:3473
_nx_crypto_ec_precomputation()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
array
[
offset
+
j
]
.
nx_crypto_ec_point_y
,
nx_crypto_ec.c:3475
_nx_crypto_ec_precomputation()
buffer
=
(
HN_UBASE
*
)
value
->
nx_crypto_huge_number_data
;
nx_crypto_ec.c:3607
_nx_crypto_ec_fixed_output()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch2
,
buffer_size
*
2
)
;
nx_crypto_ec.c:4332
_nx_crypto_ec_validate_public_key()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
right
,
scratch2
,
buffer_size
*
2
)
;
nx_crypto_ec.c:4333
_nx_crypto_ec_validate_public_key()
private_key
.
nx_crypto_huge_number_data
=
ecdh_ptr
->
nx_crypto_ecdh_private_key_buffer
;
nx_crypto_ecdh.c:107
_nx_crypto_ecdh_key_pair_import()
private_key
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
ecdh_ptr
->
nx_crypto_ecdh_private_key_buffer
;
nx_crypto_ecdh.c:189
_nx_crypto_ecdh_private_key_export()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
public_key
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch_buf_ptr
,
nx_crypto_ecdh.c:278
_nx_crypto_ecdh_setup()
private_key
.
nx_crypto_huge_number_data
=
ecdh_ptr
->
nx_crypto_ecdh_private_key_buffer
;
nx_crypto_ecdh.c:282
_nx_crypto_ecdh_setup()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
public_key
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch_buf_ptr
,
key_size
)
;
nx_crypto_ecdh.c:404
_nx_crypto_ecdh_compute_secret()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
shared_secret
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch_buf_ptr
,
key_size
)
;
nx_crypto_ecdh.c:405
_nx_crypto_ecdh_compute_secret()
private_key
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
ecdh_ptr
->
nx_crypto_ecdh_private_key_buffer
;
nx_crypto_ecdh.c:425
_nx_crypto_ecdh_compute_secret()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
privkey
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:121
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
z
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:122
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
k
,
scratch
,
buffer_size
+
8
)
;
nx_crypto_ecdsa.c:124
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
ik
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:125
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
buffer_size
*
2
)
;
nx_crypto_ecdsa.c:126
_nx_crypto_ecdsa_sign()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
pt
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:127
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
k
,
&
temp
)
;
nx_crypto_ecdsa.c:172
_nx_crypto_ecdsa_sign()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
r
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:368
_nx_crypto_ecdsa_verify()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
s
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:369
_nx_crypto_ecdsa_verify()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
z
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:370
_nx_crypto_ecdsa_verify()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
w
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:371
_nx_crypto_ecdsa_verify()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
u1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ecdsa.c:372
_nx_crypto_ecdsa_verify()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
u2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ecdsa.c:373
_nx_crypto_ecdsa_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
pubkey
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:374
_nx_crypto_ecdsa_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
pt
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:375
_nx_crypto_ecdsa_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
pt2
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecdsa.c:376
_nx_crypto_ecdsa_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ecjpake
->
nx_crypto_ecjpake_public_x1
,
nx_crypto_ecjpake.c:95
_nx_crypto_ecjpake_init()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ecjpake
->
nx_crypto_ecjpake_public_x2
,
nx_crypto_ecjpake.c:97
_nx_crypto_ecjpake_init()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ecjpake
->
nx_crypto_ecjpake_public_x3
,
nx_crypto_ecjpake.c:99
_nx_crypto_ecjpake_init()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ecjpake
->
nx_crypto_ecjpake_public_x4
,
nx_crypto_ecjpake.c:101
_nx_crypto_ecjpake_init()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
ecjpake
->
nx_crypto_ecjpake_private_x2
,
scratch_ptr
,
buffer_size
)
;
nx_crypto_ecjpake.c:104
_nx_crypto_ecjpake_init()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
private_key
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:180
_nx_crypto_ecjpake_hello_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
r
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:181
_nx_crypto_ecjpake_hello_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
v
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:182
_nx_crypto_ecjpake_hello_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
r
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:349
_nx_crypto_ecjpake_hello_process()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
v
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:350
_nx_crypto_ecjpake_hello_process()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
private_key
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:509
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
r
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:510
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
s
,
scratch
,
nx_crypto_ecjpake.c:511
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ga
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:513
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
public_key
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:514
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
v
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:515
_nx_crypto_ecjpake_key_exchange_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
r
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:647
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
s
,
scratch
,
nx_crypto_ecjpake.c:648
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
ga
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:650
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
public_key
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:651
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
v
,
NX_CRYPTO_EC_POINT_AFFINE
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:652
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
ga
.
nx_crypto_ec_point_x
,
nx_crypto_ecjpake.c:664
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
ga
.
nx_crypto_ec_point_y
,
nx_crypto_ecjpake.c:666
_nx_crypto_ecjpake_key_exchange_process()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
h
,
scratch
,
buffer_size
)
;
nx_crypto_ecjpake.c:1122
_nx_crypto_ecjpake_schnorr_zkp_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ecjpake.c:1123
_nx_crypto_ecjpake_schnorr_zkp_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
buffer_size
<
<
1
)
;
nx_crypto_ecjpake.c:1124
_nx_crypto_ecjpake_schnorr_zkp_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
r
,
&
temp1
)
;
nx_crypto_ecjpake.c:1147
_nx_crypto_ecjpake_schnorr_zkp_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
h
,
scratch
,
nx_crypto_ecjpake.c:1223
_nx_crypto_ecjpake_schnorr_zkp_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
temp1
,
nx_crypto_ecjpake.c:1225
_nx_crypto_ecjpake_schnorr_zkp_verify()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
temp2
,
nx_crypto_ecjpake.c:1228
_nx_crypto_ecjpake_schnorr_zkp_verify()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
g
->
nx_crypto_ec_point_x
,
&
x1
->
nx_crypto_ec_point_x
)
;
nx_crypto_ecjpake.c:1329
_nx_crypto_ecjpake_public_key_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
g
->
nx_crypto_ec_point_y
,
&
x1
->
nx_crypto_ec_point_y
)
;
nx_crypto_ecjpake.c:1330
_nx_crypto_ecjpake_public_key_generate()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
nx_crypto_ecjpake.c:1335
_nx_crypto_ecjpake_public_key_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
private_key
,
&
temp1
)
;
nx_crypto_ecjpake.c:1339
_nx_crypto_ecjpake_public_key_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
temp1
,
nx_crypto_ecjpake.c:1415
_nx_crypto_ecjpake_pre_master_secret_generate()
NX_CRYPTO_EC_POINT_INITIALIZE
(
&
temp2
,
nx_crypto_ecjpake.c:1418
_nx_crypto_ecjpake_pre_master_secret_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
.
nx_crypto_ec_point_x
,
&
x4
->
nx_crypto_ec_point_x
)
;
nx_crypto_ecjpake.c:1425
_nx_crypto_ecjpake_pre_master_secret_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
.
nx_crypto_ec_point_y
,
&
x4
->
nx_crypto_ec_point_y
)
;
nx_crypto_ecjpake.c:1426
_nx_crypto_ecjpake_pre_master_secret_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp2
.
nx_crypto_ec_point_x
,
&
public_key
->
nx_crypto_ec_point_x
)
;
nx_crypto_ecjpake.c:1429
_nx_crypto_ecjpake_pre_master_secret_generate()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp2
.
nx_crypto_ec_point_y
,
&
public_key
->
nx_crypto_ec_point_y
)
;
nx_crypto_ecjpake.c:1430
_nx_crypto_ecjpake_pre_master_secret_generate()
if
(
x
->
nx_crypto_huge_number_data
[
i
]
)
nx_crypto_huge_number.c:93
_nx_crypto_huge_number_is_zero()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
left
,
0
)
;
nx_crypto_huge_number.c:187
_nx_crypto_huge_number_add()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
left
,
0
)
;
nx_crypto_huge_number.c:285
_nx_crypto_huge_number_subtract()
HN_UBASE
*
result_buffer
=
left
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:356
_nx_crypto_huge_number_add_unsigned()
left_buffer
=
right
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:365
_nx_crypto_huge_number_add_unsigned()
right_buffer
=
left
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:366
_nx_crypto_huge_number_add_unsigned()
left_buffer
=
left
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:372
_nx_crypto_huge_number_add_unsigned()
right_buffer
=
right
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:373
_nx_crypto_huge_number_add_unsigned()
HN_UBASE
*
left_buffer
=
left
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:461
_nx_crypto_huge_number_subtract_unsigned()
HN_UBASE
*
right_buffer
=
right
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:462
_nx_crypto_huge_number_subtract_unsigned()
HN_UBASE
*
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:463
_nx_crypto_huge_number_subtract_unsigned()
HN_UBASE
*
buffer
=
value
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:537
_nx_crypto_huge_number_add_digit_unsigned()
HN_UBASE
*
buffer
=
value
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:612
_nx_crypto_huge_number_subtract_digit_unsigned()
HN_UBASE
*
x_buffer
=
x
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:674
_nx_crypto_huge_number_shift_left()
HN_UBASE
*
x_buffer
=
x
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:744
_nx_crypto_huge_number_shift_right()
if
(
val
->
nx_crypto_huge_number_data
[
size
]
!=
0
)
nx_crypto_huge_number.c:818
_nx_crypto_huge_number_adjust_size()
while
(
left_size
&&
(
left
->
nx_crypto_huge_number_data
[
left_size
-
1
]
==
0
)
)
nx_crypto_huge_number.c:999
_nx_crypto_huge_number_compare_unsigned()
while
(
right_size
&&
(
right
->
nx_crypto_huge_number_data
[
right_size
-
1
]
==
0
)
)
nx_crypto_huge_number.c:1003
_nx_crypto_huge_number_compare_unsigned()
if
(
left
->
nx_crypto_huge_number_data
[
i
]
>
right
->
nx_crypto_huge_number_data
[
i
]
)
nx_crypto_huge_number.c:1020
_nx_crypto_huge_number_compare_unsigned()
else
if
(
right
->
nx_crypto_huge_number_data
[
i
]
>
left
->
nx_crypto_huge_number_data
[
i
]
)
nx_crypto_huge_number.c:1024
_nx_crypto_huge_number_compare_unsigned()
left_buffer
=
left
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1100
_nx_crypto_huge_number_multiply()
right_buffer
=
right
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1101
_nx_crypto_huge_number_multiply()
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1107
_nx_crypto_huge_number_multiply()
result
->
nx_crypto_huge_number_data
[
0
]
=
0
;
nx_crypto_huge_number.c:1210
_nx_crypto_huge_number_multiply_digit()
value_buffer
=
value
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1217
_nx_crypto_huge_number_multiply_digit()
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1218
_nx_crypto_huge_number_multiply_digit()
value_buffer
=
value
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1302
_nx_crypto_huge_number_square()
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1303
_nx_crypto_huge_number_square()
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1476
_nx_crypto_huge_number_modulus()
divisor_buffer
=
divisor
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1477
_nx_crypto_huge_number_modulus()
number
->
nx_crypto_huge_number_data
[
0
]
=
0
;
nx_crypto_huge_number.c:1681
_nx_crypto_huge_number_setup()
destination
=
number
->
nx_crypto_huge_number_data
+
num_words
-
1
;
nx_crypto_huge_number.c:1696
_nx_crypto_huge_number_setup()
word
=
number
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:1931
_nx_crypto_huge_number_extract()
word
=
number
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2002
_nx_crypto_huge_number_extract_fixed_size()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
u
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2175
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
v
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2176
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
A
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2177
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
C
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2178
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
u
,
a
)
;
nx_crypto_huge_number.c:2180
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
v
,
p
)
;
nx_crypto_huge_number.c:2181
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
A
,
1
)
;
nx_crypto_huge_number.c:2182
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
C
,
0
)
;
nx_crypto_huge_number.c:2183
_nx_crypto_huge_number_inverse_modulus_prime()
while
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
u
)
)
nx_crypto_huge_number.c:2187
_nx_crypto_huge_number_inverse_modulus_prime()
if
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
A
)
)
nx_crypto_huge_number.c:2190
_nx_crypto_huge_number_inverse_modulus_prime()
while
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
v
)
)
nx_crypto_huge_number.c:2201
_nx_crypto_huge_number_inverse_modulus_prime()
if
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
C
)
)
nx_crypto_huge_number.c:2204
_nx_crypto_huge_number_inverse_modulus_prime()
NX_CRYPTO_HUGE_NUMBER_COPY
(
r
,
&
C
)
;
nx_crypto_huge_number.c:2228
_nx_crypto_huge_number_inverse_modulus_prime()
if
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
m
)
&&
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
a
)
)
nx_crypto_huge_number.c:2302
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
u
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2327
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
v
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2328
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
A
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2329
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
B
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2330
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
C
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2331
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
D
,
scratch
,
buffer_size
)
;
nx_crypto_huge_number.c:2332
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
u
,
m
)
;
nx_crypto_huge_number.c:2334
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
v
,
a
)
;
nx_crypto_huge_number.c:2335
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
A
,
1
)
;
nx_crypto_huge_number.c:2336
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
B
,
0
)
;
nx_crypto_huge_number.c:2337
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
C
,
0
)
;
nx_crypto_huge_number.c:2338
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
&
D
,
1
)
;
nx_crypto_huge_number.c:2339
_nx_crypto_huge_number_inverse_modulus()
while
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
u
)
)
nx_crypto_huge_number.c:2343
_nx_crypto_huge_number_inverse_modulus()
if
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
A
)
&&
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
B
)
)
nx_crypto_huge_number.c:2347
_nx_crypto_huge_number_inverse_modulus()
while
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
v
)
)
nx_crypto_huge_number.c:2361
_nx_crypto_huge_number_inverse_modulus()
if
(
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
C
)
&&
NX_CRYPTO_HUGE_NUMBER_IS_EVEN
(
&
D
)
)
nx_crypto_huge_number.c:2364
_nx_crypto_huge_number_inverse_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
r
,
&
D
)
;
nx_crypto_huge_number.c:2394
_nx_crypto_huge_number_inverse_modulus()
HN_UBASE
*
m_buffer
=
m
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2465
_nx_crypto_huge_number_mont()
HN_UBASE
*
x_buffer
=
x
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2466
_nx_crypto_huge_number_mont()
HN_UBASE
*
y_buffer
=
y
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2467
_nx_crypto_huge_number_mont()
HN_UBASE
*
result_buffer
=
result
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2468
_nx_crypto_huge_number_mont()
NX_CRYPTO_MEMSET
(
result
->
nx_crypto_huge_number_data
,
0
,
(
m_len
+
1
)
*
sizeof
(
HN_UBASE
)
)
;
nx_crypto_huge_number.c:2470
_nx_crypto_huge_number_mont()
radix
.
nx_crypto_huge_number_data
=
radix_buffer
;
nx_crypto_huge_number.c:2636
_nx_crypto_huge_number_mont_power_modulus()
m0
.
nx_crypto_huge_number_data
=
m
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2640
_nx_crypto_huge_number_mont_power_modulus()
mi
.
nx_crypto_huge_number_data
=
mm_buffer
;
nx_crypto_huge_number.c:2644
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
xx
,
scratch
,
m
->
nx_crypto_huge_buffer_size
+
sizeof
(
HN_UBASE
)
)
;
nx_crypto_huge_number.c:2653
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
m
->
nx_crypto_huge_buffer_size
+
sizeof
(
HN_UBASE
)
)
;
nx_crypto_huge_number.c:2654
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE_DIGIT
(
&
digit
,
&
digit_value
,
1
)
;
nx_crypto_huge_number.c:2655
_nx_crypto_huge_number_mont_power_modulus()
val
=
temp
.
nx_crypto_huge_number_data
;
nx_crypto_huge_number.c:2660
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
result
,
&
temp
)
;
nx_crypto_huge_number.c:2672
_nx_crypto_huge_number_mont_power_modulus()
val
=
e
->
nx_crypto_huge_number_data
+
(
exp_size
-
1
)
;
nx_crypto_huge_number.c:2680
_nx_crypto_huge_number_mont_power_modulus()
for
(
;
(
ULONG
)
val
>=
(
ULONG
)
(
e
->
nx_crypto_huge_number_data
)
;
val
--
)
nx_crypto_huge_number.c:2683
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
result
,
&
temp
)
;
nx_crypto_huge_number.c:2718
_nx_crypto_huge_number_mont_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
pi
,
scratch
,
p
->
nx_crypto_huge_buffer_size
)
;
nx_crypto_huge_number.c:2824
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
qi
,
scratch
,
q
->
nx_crypto_huge_buffer_size
)
;
nx_crypto_huge_number.c:2825
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp1
,
scratch
,
m
->
nx_crypto_huge_buffer_size
)
;
nx_crypto_huge_number.c:2834
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp2
,
scratch
,
p
->
nx_crypto_huge_buffer_size
)
;
nx_crypto_huge_number.c:2835
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp3
,
scratch
,
p
->
nx_crypto_huge_buffer_size
)
;
nx_crypto_huge_number.c:2836
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE_DIGIT
(
&
digit
,
&
digit_value
,
1
)
;
nx_crypto_huge_number.c:2837
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
ep
,
e
)
;
nx_crypto_huge_number.c:2842
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
,
p
)
;
nx_crypto_huge_number.c:2843
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
xp
,
x
)
;
nx_crypto_huge_number.c:2849
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
eq
,
e
)
;
nx_crypto_huge_number.c:2866
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
&
temp1
,
q
)
;
nx_crypto_huge_number.c:2867
_nx_crypto_huge_number_crt_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
xq
,
x
)
;
nx_crypto_huge_number.c:2873
_nx_crypto_huge_number_crt_power_modulus()
(
value
->
nx_crypto_huge_number_data
[
0
]
>=
digit
)
)
nx_crypto_huge_number_extended.c:87
_nx_crypto_huge_number_add_digit()
value
->
nx_crypto_huge_number_data
[
0
]
=
digit
-
value
->
nx_crypto_huge_number_data
[
0
]
;
nx_crypto_huge_number_extended.c:99
_nx_crypto_huge_number_add_digit()
(
value
->
nx_crypto_huge_number_data
[
0
]
>=
digit
)
)
nx_crypto_huge_number_extended.c:169
_nx_crypto_huge_number_subtract_digit()
value
->
nx_crypto_huge_number_data
[
0
]
=
digit
-
value
->
nx_crypto_huge_number_data
[
0
]
;
nx_crypto_huge_number_extended.c:181
_nx_crypto_huge_number_subtract_digit()
NX_CRYPTO_HUGE_NUMBER_INITIALIZE
(
&
temp
,
scratch
,
nx_crypto_huge_number_extended.c:261
_nx_crypto_huge_number_power_modulus()
NX_CRYPTO_HUGE_NUMBER_SET_DIGIT
(
result
,
1
)
;
nx_crypto_huge_number_extended.c:265
_nx_crypto_huge_number_power_modulus()
val
=
exponent
->
nx_crypto_huge_number_data
;
nx_crypto_huge_number_extended.c:268
_nx_crypto_huge_number_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
result
,
&
temp
)
;
nx_crypto_huge_number_extended.c:283
_nx_crypto_huge_number_power_modulus()
NX_CRYPTO_HUGE_NUMBER_COPY
(
number
,
&
temp
)
;
nx_crypto_huge_number_extended.c:295
_nx_crypto_huge_number_power_modulus()
modulus_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:106
_nx_crypto_rsa_operation()
input_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:111
_nx_crypto_rsa_operation()
exponent_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:116
_nx_crypto_rsa_operation()
output_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:121
_nx_crypto_rsa_operation()
p_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:137
_nx_crypto_rsa_operation()
q_hn
.
nx_crypto_huge_number_data
=
(
HN_UBASE
*
)
scratch
;
nx_crypto_rsa.c:141
_nx_crypto_rsa_operation()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
NX_CRYPTO_HUGE_NUMBER_STRUCT::nx_crypto_huge_number_data
is written by 39 functions and is read by 51 functions:
_nx_crypto_dh_setup()
_nx_crypto_dh_compute_secret()
_nx_crypto_ec_point_fp_projective_to_affine()
_nx_crypto_ec_secp192r1_reduce()
_nx_crypto_ec_secp224r1_reduce()
_nx_crypto_ec_secp256r1_reduce()
_nx_crypto_ec_secp384r1_reduce()
_nx_crypto_ec_secp521r1_reduce()
_nx_crypto_ec_fp_projective_add()
_nx_crypto_ec_fp_projective_double()
_nx_crypto_ec_fp_affine_add()
_nx_crypto_ec_fp_affine_subtract()
_nx_crypto_ec_fp_projective_multiple()
_nx_crypto_ec_fp_fixed_multiple()
_nx_crypto_ec_key_pair_generation_extra()
_nx_crypto_ec_key_pair_stream_generate()
_nx_crypto_ec_precomputation()
_nx_crypto_ec_validate_public_key()
_nx_crypto_ecdh_key_pair_import()
_nx_crypto_ecdh_private_key_export()
_nx_crypto_ecdh_setup()
_nx_crypto_ecdh_compute_secret()
_nx_crypto_ecdsa_sign()
_nx_crypto_ecdsa_verify()
_nx_crypto_ecjpake_init()
_nx_crypto_ecjpake_hello_generate()
_nx_crypto_ecjpake_hello_process()
_nx_crypto_ecjpake_key_exchange_generate()
_nx_crypto_ecjpake_key_exchange_process()
_nx_crypto_ecjpake_schnorr_zkp_generate()
_nx_crypto_ecjpake_schnorr_zkp_verify()
_nx_crypto_ecjpake_public_key_generate()
_nx_crypto_ecjpake_pre_master_secret_generate()
_nx_crypto_huge_number_inverse_modulus_prime()
_nx_crypto_huge_number_inverse_modulus()
_nx_crypto_huge_number_mont_power_modulus()
_nx_crypto_huge_number_crt_power_modulus()
_nx_crypto_huge_number_power_modulus()
_nx_crypto_rsa_operation()
All items filtered out
NX_CRYPTO_HUGE_NUMBER_STRUCT::nx_crypto_huge_number_data
_nx_crypto_dh_setup()
_nx_crypto_ec_point_set_infinite()
_nx_crypto_ec_point_fp_affine_to_projective()
_nx_crypto_ec_point_fp_projective_to_affine()
_nx_crypto_ec_secp192r1_reduce()
_nx_crypto_ec_secp224r1_reduce()
_nx_crypto_ec_secp256r1_reduce()
_nx_crypto_ec_secp384r1_reduce()
_nx_crypto_ec_secp521r1_reduce()
_nx_crypto_ec_subtract_digit_reduce()
_nx_crypto_ec_fp_projective_add()
_nx_crypto_ec_fp_projective_double()
_nx_crypto_ec_fp_affine_add()
_nx_crypto_ec_fp_affine_subtract()
_nx_crypto_ec_naf_compute()
_nx_crypto_ec_fp_projective_multiple()
_nx_crypto_ec_fp_fixed_multiple()
_nx_crypto_ec_key_pair_generation_extra()
_nx_crypto_ec_precomputation()
_nx_crypto_ec_fixed_output()
_nx_crypto_ecdsa_sign()
_nx_crypto_ecjpake_key_exchange_process()
_nx_crypto_ecjpake_schnorr_zkp_generate()
_nx_crypto_ecjpake_public_key_generate()
_nx_crypto_ecjpake_pre_master_secret_generate()
_nx_crypto_huge_number_is_zero()
_nx_crypto_huge_number_add()
_nx_crypto_huge_number_subtract()
_nx_crypto_huge_number_add_unsigned()
_nx_crypto_huge_number_subtract_unsigned()
_nx_crypto_huge_number_add_digit_unsigned()
_nx_crypto_huge_number_subtract_digit_unsigned()
_nx_crypto_huge_number_shift_left()
_nx_crypto_huge_number_shift_right()
_nx_crypto_huge_number_adjust_size()
_nx_crypto_huge_number_compare_unsigned()
_nx_crypto_huge_number_multiply()
_nx_crypto_huge_number_multiply_digit()
_nx_crypto_huge_number_square()
_nx_crypto_huge_number_modulus()
_nx_crypto_huge_number_setup()
_nx_crypto_huge_number_extract()
_nx_crypto_huge_number_extract_fixed_size()
_nx_crypto_huge_number_inverse_modulus_prime()
_nx_crypto_huge_number_inverse_modulus()
_nx_crypto_huge_number_mont()
_nx_crypto_huge_number_mont_power_modulus()
_nx_crypto_huge_number_crt_power_modulus()
_nx_crypto_huge_number_add_digit()
_nx_crypto_huge_number_subtract_digit()
_nx_crypto_huge_number_power_modulus()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out