| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/ |
| H A D | bignum.h | 186 typedef struct mbedtls_mpi struct 193 mbedtls_mpi; argument 205 void mbedtls_mpi_init( mbedtls_mpi *X ); 206 void mbedtls_mpi_init_mempool( mbedtls_mpi *X ); 215 void mbedtls_mpi_free( mbedtls_mpi *X ); 230 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ); 247 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ); 262 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 270 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 296 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); [all …]
|
| H A D | rsa_internal.h | 97 int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E, 98 mbedtls_mpi const *D, 99 mbedtls_mpi *P, mbedtls_mpi *Q ); 122 int mbedtls_rsa_deduce_private_exponent( mbedtls_mpi const *P, 123 mbedtls_mpi const *Q, 124 mbedtls_mpi const *E, 125 mbedtls_mpi *D ); 148 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, 149 const mbedtls_mpi *D, mbedtls_mpi *DP, 150 mbedtls_mpi *DQ, mbedtls_mpi *QP ); [all …]
|
| H A D | rsa.h | 105 mbedtls_mpi N; /*!< The public modulus. */ 106 mbedtls_mpi E; /*!< The public exponent. */ 108 mbedtls_mpi D; /*!< The private exponent. */ 109 mbedtls_mpi P; /*!< The first prime factor. */ 110 mbedtls_mpi Q; /*!< The second prime factor. */ 112 mbedtls_mpi DP; /*!< <code>D % (P - 1)</code>. */ 113 mbedtls_mpi DQ; /*!< <code>D % (Q - 1)</code>. */ 114 mbedtls_mpi QP; /*!< <code>1 / (Q % P)</code>. */ 116 mbedtls_mpi RN; /*!< cached <code>R^2 mod N</code>. */ 118 mbedtls_mpi RP; /*!< cached <code>R^2 mod P</code>. */ [all …]
|
| H A D | ecp.h | 137 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */ 138 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */ 139 mbedtls_mpi Z; /*!< The Z coordinate of the ECP point. */ 187 mbedtls_mpi P; /*!< The prime modulus of the base field. */ 188 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For 190 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation. 193 mbedtls_mpi N; /*!< The order of \p G. */ 199 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction 346 mbedtls_mpi d; /*!< our secret value */ 869 const mbedtls_mpi *m, const mbedtls_ecp_point *P, [all …]
|
| H A D | dhm.h | 105 mbedtls_mpi P; /*!< The prime modulus. */ 106 mbedtls_mpi G; /*!< The generator. */ 107 mbedtls_mpi X; /*!< Our secret value. */ 108 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */ 109 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */ 110 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */ 111 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */ 112 mbedtls_mpi Vi; /*!< The blinding value. */ 113 mbedtls_mpi Vf; /*!< The unblinding value. */ 114 mbedtls_mpi pX; /*!< The previous \c X. */ [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/ |
| H A D | bignum.h | 186 typedef struct mbedtls_mpi struct 193 mbedtls_mpi; typedef 205 void mbedtls_mpi_init( mbedtls_mpi *X ); 206 void mbedtls_mpi_init_mempool( mbedtls_mpi *X ); 215 void mbedtls_mpi_free( mbedtls_mpi *X ); 230 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ); 247 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ); 262 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 270 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 296 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); [all …]
|
| H A D | rsa_internal.h | 97 int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E, 98 mbedtls_mpi const *D, 99 mbedtls_mpi *P, mbedtls_mpi *Q ); 122 int mbedtls_rsa_deduce_private_exponent( mbedtls_mpi const *P, 123 mbedtls_mpi const *Q, 124 mbedtls_mpi const *E, 125 mbedtls_mpi *D ); 148 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, 149 const mbedtls_mpi *D, mbedtls_mpi *DP, 150 mbedtls_mpi *DQ, mbedtls_mpi *QP ); [all …]
|
| H A D | rsa.h | 105 mbedtls_mpi N; /*!< The public modulus. */ 106 mbedtls_mpi E; /*!< The public exponent. */ 108 mbedtls_mpi D; /*!< The private exponent. */ 109 mbedtls_mpi P; /*!< The first prime factor. */ 110 mbedtls_mpi Q; /*!< The second prime factor. */ 112 mbedtls_mpi DP; /*!< <code>D % (P - 1)</code>. */ 113 mbedtls_mpi DQ; /*!< <code>D % (Q - 1)</code>. */ 114 mbedtls_mpi QP; /*!< <code>1 / (Q % P)</code>. */ 116 mbedtls_mpi RN; /*!< cached <code>R^2 mod N</code>. */ 118 mbedtls_mpi RP; /*!< cached <code>R^2 mod P</code>. */ [all …]
|
| H A D | ecp.h | 137 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */ 138 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */ 139 mbedtls_mpi Z; /*!< The Z coordinate of the ECP point. */ 187 mbedtls_mpi P; /*!< The prime modulus of the base field. */ 188 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For 190 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation. 193 mbedtls_mpi N; /*!< The order of \p G. */ 199 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction 346 mbedtls_mpi d; /*!< our secret value */ 869 const mbedtls_mpi *m, const mbedtls_ecp_point *P, [all …]
|
| H A D | dhm.h | 105 mbedtls_mpi P; /*!< The prime modulus. */ 106 mbedtls_mpi G; /*!< The generator. */ 107 mbedtls_mpi X; /*!< Our secret value. */ 108 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */ 109 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */ 110 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */ 111 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */ 112 mbedtls_mpi Vi; /*!< The blinding value. */ 113 mbedtls_mpi Vf; /*!< The unblinding value. */ 114 mbedtls_mpi pX; /*!< The previous \c X. */ [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/ |
| H A D | bignum.h | 186 typedef struct mbedtls_mpi struct 193 mbedtls_mpi; argument 205 void mbedtls_mpi_init( mbedtls_mpi *X ); 206 void mbedtls_mpi_init_mempool( mbedtls_mpi *X ); 215 void mbedtls_mpi_free( mbedtls_mpi *X ); 230 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ); 247 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ); 262 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 270 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 296 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); [all …]
|
| H A D | rsa_internal.h | 97 int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E, 98 mbedtls_mpi const *D, 99 mbedtls_mpi *P, mbedtls_mpi *Q ); 122 int mbedtls_rsa_deduce_private_exponent( mbedtls_mpi const *P, 123 mbedtls_mpi const *Q, 124 mbedtls_mpi const *E, 125 mbedtls_mpi *D ); 148 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, 149 const mbedtls_mpi *D, mbedtls_mpi *DP, 150 mbedtls_mpi *DQ, mbedtls_mpi *QP ); [all …]
|
| H A D | rsa.h | 105 mbedtls_mpi N; /*!< The public modulus. */ 106 mbedtls_mpi E; /*!< The public exponent. */ 108 mbedtls_mpi D; /*!< The private exponent. */ 109 mbedtls_mpi P; /*!< The first prime factor. */ 110 mbedtls_mpi Q; /*!< The second prime factor. */ 112 mbedtls_mpi DP; /*!< <code>D % (P - 1)</code>. */ 113 mbedtls_mpi DQ; /*!< <code>D % (Q - 1)</code>. */ 114 mbedtls_mpi QP; /*!< <code>1 / (Q % P)</code>. */ 116 mbedtls_mpi RN; /*!< cached <code>R^2 mod N</code>. */ 118 mbedtls_mpi RP; /*!< cached <code>R^2 mod P</code>. */ [all …]
|
| H A D | ecp.h | 137 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */ 138 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */ 139 mbedtls_mpi Z; /*!< The Z coordinate of the ECP point. */ 187 mbedtls_mpi P; /*!< The prime modulus of the base field. */ 188 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For 190 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation. 193 mbedtls_mpi N; /*!< The order of \p G. */ 199 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction 346 mbedtls_mpi d; /*!< our secret value */ 869 const mbedtls_mpi *m, const mbedtls_ecp_point *P, [all …]
|
| H A D | dhm.h | 105 mbedtls_mpi P; /*!< The prime modulus. */ 106 mbedtls_mpi G; /*!< The generator. */ 107 mbedtls_mpi X; /*!< Our secret value. */ 108 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */ 109 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */ 110 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */ 111 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */ 112 mbedtls_mpi Vi; /*!< The blinding value. */ 113 mbedtls_mpi Vf; /*!< The unblinding value. */ 114 mbedtls_mpi pX; /*!< The previous \c X. */ [all …]
|
| H A D | ecdsa.h | 174 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, 175 const mbedtls_mpi *d, const unsigned char *buf, size_t blen, 233 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r, 234 mbedtls_mpi *s, const mbedtls_mpi *d, 279 int mbedtls_ecdsa_sign_det_ext( mbedtls_ecp_group *grp, mbedtls_mpi *r, 280 mbedtls_mpi *s, const mbedtls_mpi *d, 321 const mbedtls_ecp_point *Q, const mbedtls_mpi *r, 322 const mbedtls_mpi *s);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/ |
| H A D | bignum.h | 186 typedef struct mbedtls_mpi struct 193 mbedtls_mpi; typedef 205 void mbedtls_mpi_init( mbedtls_mpi *X ); 206 void mbedtls_mpi_init_mempool( mbedtls_mpi *X ); 215 void mbedtls_mpi_free( mbedtls_mpi *X ); 230 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ); 247 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ); 262 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 270 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 296 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); [all …]
|
| H A D | rsa_internal.h | 97 int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E, 98 mbedtls_mpi const *D, 99 mbedtls_mpi *P, mbedtls_mpi *Q ); 122 int mbedtls_rsa_deduce_private_exponent( mbedtls_mpi const *P, 123 mbedtls_mpi const *Q, 124 mbedtls_mpi const *E, 125 mbedtls_mpi *D ); 148 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, 149 const mbedtls_mpi *D, mbedtls_mpi *DP, 150 mbedtls_mpi *DQ, mbedtls_mpi *QP ); [all …]
|
| H A D | rsa.h | 105 mbedtls_mpi N; /*!< The public modulus. */ 106 mbedtls_mpi E; /*!< The public exponent. */ 108 mbedtls_mpi D; /*!< The private exponent. */ 109 mbedtls_mpi P; /*!< The first prime factor. */ 110 mbedtls_mpi Q; /*!< The second prime factor. */ 112 mbedtls_mpi DP; /*!< <code>D % (P - 1)</code>. */ 113 mbedtls_mpi DQ; /*!< <code>D % (Q - 1)</code>. */ 114 mbedtls_mpi QP; /*!< <code>1 / (Q % P)</code>. */ 116 mbedtls_mpi RN; /*!< cached <code>R^2 mod N</code>. */ 118 mbedtls_mpi RP; /*!< cached <code>R^2 mod P</code>. */ [all …]
|
| H A D | ecp.h | 137 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */ 138 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */ 139 mbedtls_mpi Z; /*!< The Z coordinate of the ECP point. */ 187 mbedtls_mpi P; /*!< The prime modulus of the base field. */ 188 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For 190 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation. 193 mbedtls_mpi N; /*!< The order of \p G. */ 199 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction 346 mbedtls_mpi d; /*!< our secret value */ 869 const mbedtls_mpi *m, const mbedtls_ecp_point *P, [all …]
|
| H A D | dhm.h | 105 mbedtls_mpi P; /*!< The prime modulus. */ 106 mbedtls_mpi G; /*!< The generator. */ 107 mbedtls_mpi X; /*!< Our secret value. */ 108 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */ 109 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */ 110 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */ 111 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */ 112 mbedtls_mpi Vi; /*!< The blinding value. */ 113 mbedtls_mpi Vf; /*!< The unblinding value. */ 114 mbedtls_mpi pX; /*!< The previous \c X. */ [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/include/c_mode/ |
| H A D | bignum.h | 145 mbedtls_mpi; typedef 154 void mbedtls_mpi_init( mbedtls_mpi *X ); 161 void mbedtls_mpi_free( mbedtls_mpi *X ); 172 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ); 183 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ); 194 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ); 202 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ); 221 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign ); 240 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign ); 251 int mbedtls_mpi_lset( mbedtls_mpi *X, mbedtls_mpi_sint z ); [all …]
|
| H A D | ecp.h | 119 mbedtls_mpi X; /*!< the point's X coordinate */ 120 mbedtls_mpi Y; /*!< the point's Y coordinate */ 121 mbedtls_mpi Z; /*!< the point's Z coordinate */ 152 mbedtls_mpi P; /*!< prime modulus of the base field */ 153 mbedtls_mpi A; /*!< 1. A in the equation, or 2. (A + 2) / 4 */ 154 mbedtls_mpi B; /*!< 1. B in the equation, or 2. unused */ 156 mbedtls_mpi N; /*!< 1. the order of G, or 2. unused */ 160 int (*modp)(mbedtls_mpi *); /*!< function for fast reduction mod P */ 179 mbedtls_mpi d; /*!< our secret value */ 542 const mbedtls_mpi *m, const mbedtls_ecp_point *P, [all …]
|
| H A D | rsa.h | 98 mbedtls_mpi N; /*!< public modulus */ 99 mbedtls_mpi E; /*!< public exponent */ 101 mbedtls_mpi D; /*!< private exponent */ 102 mbedtls_mpi P; /*!< 1st prime factor */ 103 mbedtls_mpi Q; /*!< 2nd prime factor */ 104 mbedtls_mpi DP; /*!< D % (P - 1) */ 105 mbedtls_mpi DQ; /*!< D % (Q - 1) */ 106 mbedtls_mpi QP; /*!< 1 / (Q % P) */ 108 mbedtls_mpi RN; /*!< cached R^2 mod N */ 109 mbedtls_mpi RP; /*!< cached R^2 mod P */ [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | bignum.c | 82 void mbedtls_mpi_init( mbedtls_mpi *X ) in mbedtls_mpi_init() 95 void mbedtls_mpi_free( mbedtls_mpi *X ) in mbedtls_mpi_free() 114 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ) in mbedtls_mpi_grow() 144 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs ) in mbedtls_mpi_shrink() 180 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ) in mbedtls_mpi_copy() 214 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ) in mbedtls_mpi_swap() 216 mbedtls_mpi T; in mbedtls_mpi_swap() 218 memcpy( &T, X, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap() 219 memcpy( X, Y, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap() 220 memcpy( Y, &T, sizeof( mbedtls_mpi ) ); in mbedtls_mpi_swap() [all …]
|