mbedTLS
mbedtls_mpi::s
is only used within mbedTLS.
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
mbedTLS
mbedtls_mpi::s
mbedtls_mpi::s field
integer sign
Syntax
Show:
Summary
Declaration
from
bignum.h:187
int
s
;
Examples
References
from
examples
Code
Location
Referrer
int
s
;
/*!< integer sign */
bignum.h:187
if
(
X
->
s
==
1
&&
*
*
p
&
0x80
)
asn1write.c:150
mbedtls_asn1_write_mpi()
X
->
s
=
1
;
bignum.c:93
mbedtls_mpi_init()
X
->
s
=
1
;
bignum.c:112
mbedtls_mpi_free()
X
->
s
=
Y
->
s
;
bignum.c:212
mbedtls_mpi_copy()
X
->
s
=
X
->
s
*
(
1
-
assign
)
+
Y
->
s
*
assign
;
bignum.c:261
mbedtls_mpi_safe_cond_assign()
s
=
X
->
s
;
bignum.c:296
mbedtls_mpi_safe_cond_swap()
X
->
s
=
X
->
s
*
(
1
-
swap
)
+
Y
->
s
*
swap
;
bignum.c:297
mbedtls_mpi_safe_cond_swap()
Y
->
s
=
Y
->
s
*
(
1
-
swap
)
+
s
*
swap
;
bignum.c:298
mbedtls_mpi_safe_cond_swap()
X
->
s
=
(
z
<
0
)
?
-
1
:
1
;
bignum.c:324
mbedtls_mpi_lset()
X
->
s
=
-
1
;
bignum.c:488
mbedtls_mpi_read_string()
X
->
s
=
-
1
;
bignum.c:504
mbedtls_mpi_read_string()
if
(
X
->
s
==
1
)
bignum.c:511
mbedtls_mpi_read_string()
if
(
X
->
s
==
-
1
)
bignum.c:609
mbedtls_mpi_write_string()
if
(
T
.
s
==
-
1
)
bignum.c:639
mbedtls_mpi_write_string()
T
.
s
=
1
;
bignum.c:640
mbedtls_mpi_write_string()
if
(
i
>
j
)
return
(
X
->
s
)
;
bignum.c:1054
mbedtls_mpi_cmp_mpi()
if
(
j
>
i
)
return
(
-
Y
->
s
)
;
bignum.c:1055
mbedtls_mpi_cmp_mpi()
if
(
X
->
s
>
0
&&
Y
->
s
<
0
)
return
(
1
)
;
bignum.c:1057
mbedtls_mpi_cmp_mpi()
if
(
Y
->
s
>
0
&&
X
->
s
<
0
)
return
(
-
1
)
;
bignum.c:1058
mbedtls_mpi_cmp_mpi()
if
(
X
->
p
[
i
-
1
]
>
Y
->
p
[
i
-
1
]
)
return
(
X
->
s
)
;
bignum.c:1062
mbedtls_mpi_cmp_mpi()
if
(
X
->
p
[
i
-
1
]
<
Y
->
p
[
i
-
1
]
)
return
(
-
X
->
s
)
;
bignum.c:1063
mbedtls_mpi_cmp_mpi()
Y
.
s
=
(
z
<
0
)
?
-
1
:
1
;
bignum.c:1079
mbedtls_mpi_cmp_int()
X
->
s
=
1
;
bignum.c:1109
mbedtls_mpi_add_abs()
X
->
s
=
1
;
bignum.c:1195
mbedtls_mpi_sub_abs()
s
=
A
->
s
;
bignum.c:1222
mbedtls_mpi_add_mpi()
if
(
A
->
s
*
B
->
s
<
0
)
bignum.c:1223
mbedtls_mpi_add_mpi()
X
->
s
=
s
;
bignum.c:1228
mbedtls_mpi_add_mpi()
X
->
s
=
-
s
;
bignum.c:1233
mbedtls_mpi_add_mpi()
X
->
s
=
s
;
bignum.c:1239
mbedtls_mpi_add_mpi()
s
=
A
->
s
;
bignum.c:1257
mbedtls_mpi_sub_mpi()
if
(
A
->
s
*
B
->
s
>
0
)
bignum.c:1258
mbedtls_mpi_sub_mpi()
X
->
s
=
s
;
bignum.c:1263
mbedtls_mpi_sub_mpi()
X
->
s
=
-
s
;
bignum.c:1268
mbedtls_mpi_sub_mpi()
X
->
s
=
s
;
bignum.c:1274
mbedtls_mpi_sub_mpi()
_B
.
s
=
(
b
<
0
)
?
-
1
:
1
;
bignum.c:1293
mbedtls_mpi_add_int()
_B
.
s
=
(
b
<
0
)
?
-
1
:
1
;
bignum.c:1311
mbedtls_mpi_sub_int()
X
->
s
=
A
->
s
*
B
->
s
;
bignum.c:1421
mbedtls_mpi_mul_mpi()
_B
.
s
=
1
;
bignum.c:1440
mbedtls_mpi_mul_int()
X
.
s
=
Y
.
s
=
1
;
bignum.c:1571
mbedtls_mpi_div_mpi()
Q
->
s
=
A
->
s
*
B
->
s
;
bignum.c:1641
mbedtls_mpi_div_mpi()
X
.
s
=
A
->
s
;
bignum.c:1647
mbedtls_mpi_div_mpi()
R
->
s
=
1
;
bignum.c:1651
mbedtls_mpi_div_mpi()
_B
.
s
=
(
b
<
0
)
?
-
1
:
1
;
bignum.c:1674
mbedtls_mpi_div_int()
if
(
A
->
s
<
0
&&
y
!=
0
)
bignum.c:1758
mbedtls_mpi_mod_int()
U
.
n
=
U
.
s
=
(
int
)
z
;
bignum.c:1835
mpi_montred()
neg
=
(
A
->
s
==
-
1
)
;
bignum.c:1893
mbedtls_mpi_exp_mod()
Apos
.
s
=
1
;
bignum.c:1897
mbedtls_mpi_exp_mod()
X
->
s
=
-
1
;
bignum.c:2041
mbedtls_mpi_exp_mod()
TA
.
s
=
TB
.
s
=
1
;
bignum.c:2085
mbedtls_mpi_gcd()
if
(
(
N
->
s
<
0
&&
mbedtls_mpi_cmp_int
(
N
,
0
)
!=
0
)
||
ecp.c:1010
ecp_modp()
while
(
N
->
s
<
0
&&
mbedtls_mpi_cmp_int
(
N
,
0
)
!=
0
)
ecp.c:1019
ecp_modp()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
U
,
&
P
->
X
,
&
S
)
)
;
MOD_SUB
(
U
)
;
ecp.c:1284
ecp_double_jac()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
T
,
&
T
,
&
S
)
)
;
MOD_SUB
(
T
)
;
ecp.c:1317
ecp_double_jac()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
T
,
&
T
,
&
S
)
)
;
MOD_SUB
(
T
)
;
ecp.c:1318
ecp_double_jac()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
S
,
&
S
,
&
T
)
)
;
MOD_SUB
(
S
)
;
ecp.c:1321
ecp_double_jac()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
S
,
&
S
,
&
U
)
)
;
MOD_SUB
(
S
)
;
ecp.c:1323
ecp_double_jac()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
T1
,
&
T1
,
&
P
->
X
)
)
;
MOD_SUB
(
T1
)
;
ecp.c:1394
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
T2
,
&
T2
,
&
P
->
Y
)
)
;
MOD_SUB
(
T2
)
;
ecp.c:1395
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
X
,
&
X
,
&
T1
)
)
;
MOD_SUB
(
X
)
;
ecp.c:1418
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
X
,
&
X
,
&
T4
)
)
;
MOD_SUB
(
X
)
;
ecp.c:1419
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
T3
,
&
T3
,
&
X
)
)
;
MOD_SUB
(
T3
)
;
ecp.c:1420
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
Y
,
&
T3
,
&
T4
)
)
;
MOD_SUB
(
Y
)
;
ecp.c:1423
ecp_add_mixed()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_int
(
&
RHS
,
&
RHS
,
3
)
)
;
MOD_SUB
(
RHS
)
;
ecp.c:2430
ecp_check_pubkey_sw()
X
->
s
=
1
;
ecp_curves.c:565
ecp_mpi_load()
X
->
s
=
1
;
ecp_curves.c:576
ecp_mpi_set1()
N
->
s
=
-
1
;
ecp_curves.c:1044
fix_negative()
INIT
(
256
)
;
ecp_curves.c:1078
ecp_mod_p256()
INIT
(
384
)
;
ecp_curves.c:1115
ecp_mod_p384()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mbedtls_mpi::s
is written by 27 functions and is read by 17 functions:
mbedtls_mpi_init()
mbedtls_mpi_free()
mbedtls_mpi_copy()
mbedtls_mpi_safe_cond_assign()
mbedtls_mpi_safe_cond_swap()
mbedtls_mpi_lset()
mbedtls_mpi_read_string()
mbedtls_mpi_write_string()
mbedtls_mpi_cmp_int()
mbedtls_mpi_add_abs()
mbedtls_mpi_sub_abs()
mbedtls_mpi_add_mpi()
mbedtls_mpi_sub_mpi()
mbedtls_mpi_add_int()
mbedtls_mpi_sub_int()
mbedtls_mpi_mul_mpi()
mbedtls_mpi_mul_int()
mbedtls_mpi_div_mpi()
mbedtls_mpi_div_int()
mpi_montred()
mbedtls_mpi_exp_mod()
mbedtls_mpi_gcd()
ecp_mpi_load()
ecp_mpi_set1()
fix_negative()
ecp_mod_p256()
ecp_mod_p384()
All items filtered out
mbedtls_mpi::s
mbedtls_asn1_write_mpi()
mbedtls_mpi_copy()
mbedtls_mpi_safe_cond_assign()
mbedtls_mpi_safe_cond_swap()
mbedtls_mpi_read_string()
mbedtls_mpi_write_string()
mbedtls_mpi_cmp_mpi()
mbedtls_mpi_add_mpi()
mbedtls_mpi_sub_mpi()
mbedtls_mpi_mul_mpi()
mbedtls_mpi_div_mpi()
mbedtls_mpi_mod_int()
mbedtls_mpi_exp_mod()
ecp_modp()
ecp_double_jac()
ecp_add_mixed()
ecp_check_pubkey_sw()
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