mbedTLS
mbedtls_rsa_context::P
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
mbedtls_rsa_context::P
mbedtls_rsa_context::P field
Syntax
Show:
Summary
Declaration
from
rsa.h:96
mbedtls_mpi
MBEDTLS_PRIVATE
(
P
;
Examples
References
from
examples
Code
Location
Referrer
mbedtls_mpi
MBEDTLS_PRIVATE
(
P
)
;
/*!< The first prime factor. */
rsa.h:96
(
P
!=
NULL
&&
(
ret
=
mbedtls_mpi_copy
(
&
ctx
->
P
,
P
)
)
!=
0
)
||
rsa.c:580
mbedtls_rsa_import()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_read_binary
(
&
ctx
->
P
,
P
,
P_len
)
)
;
rsa.c:609
mbedtls_rsa_import_raw()
(
mbedtls_mpi_cmp_int
(
&
ctx
->
P
,
0
)
<=
0
||
rsa.c:668
rsa_check_context()
mbedtls_mpi_get_bit
(
&
ctx
->
P
,
0
)
==
0
||
rsa.c:669
rsa_check_context()
have_P
=
(
mbedtls_mpi_cmp_int
(
&
ctx
->
P
,
0
)
!=
0
)
;
rsa.c:732
mbedtls_rsa_complete()
if
(
(
ret
=
mbedtls_mpi_mul_mpi
(
&
ctx
->
N
,
&
ctx
->
P
,
rsa.c:770
mbedtls_rsa_complete()
&
ctx
->
P
,
&
ctx
->
Q
)
;
rsa.c:784
mbedtls_rsa_complete()
if
(
(
ret
=
mbedtls_rsa_deduce_private_exponent
(
&
ctx
->
P
,
rsa.c:790
mbedtls_rsa_complete()
ret
=
mbedtls_rsa_deduce_crt
(
&
ctx
->
P
,
&
ctx
->
Q
,
&
ctx
->
D
,
rsa.c:805
mbedtls_rsa_complete()
mbedtls_mpi_cmp_int
(
&
ctx
->
P
,
0
)
!=
0
&&
rsa.c:833
mbedtls_rsa_export_raw()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_write_binary
(
&
ctx
->
P
,
P
,
P_len
)
)
;
rsa.c:852
mbedtls_rsa_export_raw()
mbedtls_mpi_cmp_int
(
&
ctx
->
P
,
0
)
!=
0
&&
rsa.c:882
mbedtls_rsa_export()
(
P
!=
NULL
&&
(
ret
=
mbedtls_mpi_copy
(
P
,
&
ctx
->
P
)
)
!=
0
)
||
rsa.c:899
mbedtls_rsa_export()
mbedtls_mpi_cmp_int
(
&
ctx
->
P
,
0
)
!=
0
&&
rsa.c:924
mbedtls_rsa_export_crt()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_gen_prime
(
&
ctx
->
P
,
nbits
>
>
1
,
rsa.c:1085
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_mpi
(
&
H
,
&
ctx
->
P
,
&
ctx
->
Q
)
)
;
rsa.c:1092
mbedtls_rsa_gen_key()
mbedtls_mpi_swap
(
&
ctx
->
P
,
&
ctx
->
Q
)
;
rsa.c:1099
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_int
(
&
ctx
->
P
,
&
ctx
->
P
,
1
)
)
;
rsa.c:1103
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_mul_mpi
(
&
H
,
&
ctx
->
P
,
&
ctx
->
Q
)
)
;
rsa.c:1105
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_gcd
(
&
G
,
&
ctx
->
P
,
&
ctx
->
Q
)
)
;
rsa.c:1114
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_add_int
(
&
ctx
->
P
,
&
ctx
->
P
,
1
)
)
;
rsa.c:1126
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_mul_mpi
(
&
ctx
->
N
,
&
ctx
->
P
,
&
ctx
->
Q
)
)
;
rsa.c:1129
mbedtls_rsa_gen_key()
MBEDTLS_MPI_CHK
(
mbedtls_rsa_deduce_crt
(
&
ctx
->
P
,
&
ctx
->
Q
,
&
ctx
->
D
,
rsa.c:1139
mbedtls_rsa_gen_key()
if
(
mbedtls_rsa_validate_params
(
&
ctx
->
N
,
&
ctx
->
P
,
&
ctx
->
Q
,
rsa.c:1198
mbedtls_rsa_check_privkey()
else
if
(
mbedtls_rsa_validate_crt
(
&
ctx
->
P
,
&
ctx
->
Q
,
&
ctx
->
D
,
rsa.c:1204
mbedtls_rsa_check_privkey()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_sub_int
(
&
P1
,
&
ctx
->
P
,
1
)
)
;
rsa.c:1498
mbedtls_rsa_private()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_exp_mod
(
&
TP
,
&
T
,
&
DP_blind
,
&
ctx
->
P
,
&
ctx
->
RP
)
)
;
rsa.c:1540
mbedtls_rsa_private()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_mod_mpi
(
&
T
,
&
TP
,
&
ctx
->
P
)
)
;
rsa.c:1548
mbedtls_rsa_private()
MBEDTLS_MPI_CHK
(
mbedtls_mpi_copy
(
&
dst
->
P
,
&
src
->
P
)
)
;
rsa.c:2783
mbedtls_rsa_copy()
mbedtls_mpi_free
(
&
ctx
->
P
)
;
rsa.c:2824
mbedtls_rsa_free()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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