Lines Matching refs:n

557     X->n = len / sizeof( mbedtls_mpi_uint );  in ecp_mpi_load()
568 X->n = 1; in ecp_mpi_set1()
581 const mbedtls_mpi_uint *n, size_t nlen) in ecp_group_load() argument
587 ecp_mpi_load( &grp->N, n, nlen ); in ecp_group_load()
841 end = p + N->n; in ecp_mod_p192()
881 #define MAX32 N->n
887 #define MAX32 N->n * 2
931 C.n = b / 8 / sizeof( mbedtls_mpi_uint) + 1; \
933 memset( Cp, 0, C.n * sizeof( mbedtls_mpi_uint ) ); \
965 C->p[ C->n - 1 ] = ((mbedtls_mpi_uint) -c) << 32; in fix_negative()
968 C->p[ C->n - 1 ] = (mbedtls_mpi_uint) -c; in fix_negative()
1124 if( N->n < P521_WIDTH ) in ecp_mod_p521()
1129 M.n = N->n - ( P521_WIDTH - 1 ); in ecp_mod_p521()
1130 if( M.n > P521_WIDTH + 1 ) in ecp_mod_p521()
1131 M.n = P521_WIDTH + 1; in ecp_mod_p521()
1133 memcpy( Mp, N->p + P521_WIDTH - 1, M.n * sizeof( mbedtls_mpi_uint ) ); in ecp_mod_p521()
1138 for( i = P521_WIDTH; i < N->n; i++ ) in ecp_mod_p521()
1170 if( N->n < P255_WIDTH ) in ecp_mod_p255()
1175 M.n = N->n - ( P255_WIDTH - 1 ); in ecp_mod_p255()
1176 if( M.n > P255_WIDTH + 1 ) in ecp_mod_p255()
1177 M.n = P255_WIDTH + 1; in ecp_mod_p255()
1180 memcpy( Mp, N->p + P255_WIDTH - 1, M.n * sizeof( mbedtls_mpi_uint ) ); in ecp_mod_p255()
1182 M.n++; /* Make room for multiplication by 19 */ in ecp_mod_p255()
1186 for( i = P255_WIDTH; i < N->n; i++ ) in ecp_mod_p255()
1218 if( N->n < p_limbs ) in ecp_mod_koblitz()
1224 R.n = P_KOBLITZ_R; in ecp_mod_koblitz()
1231 M.n = N->n - ( p_limbs - adjust ); in ecp_mod_koblitz()
1232 if( M.n > p_limbs + adjust ) in ecp_mod_koblitz()
1233 M.n = p_limbs + adjust; in ecp_mod_koblitz()
1235 memcpy( Mp, N->p + p_limbs - adjust, M.n * sizeof( mbedtls_mpi_uint ) ); in ecp_mod_koblitz()
1238 M.n += R.n - adjust; /* Make room for multiplication by R */ in ecp_mod_koblitz()
1243 for( i = p_limbs; i < N->n; i++ ) in ecp_mod_koblitz()
1253 M.n = N->n - ( p_limbs - adjust ); in ecp_mod_koblitz()
1254 if( M.n > p_limbs + adjust ) in ecp_mod_koblitz()
1255 M.n = p_limbs + adjust; in ecp_mod_koblitz()
1257 memcpy( Mp, N->p + p_limbs - adjust, M.n * sizeof( mbedtls_mpi_uint ) ); in ecp_mod_koblitz()
1260 M.n += R.n - adjust; /* Make room for multiplication by R */ in ecp_mod_koblitz()
1265 for( i = p_limbs; i < N->n; i++ ) in ecp_mod_koblitz()