Lines Matching full:if

31 #if defined(MBEDTLS_FS_IO)
47 if( ( ret = (f) ) != 0 ) \
56 #if !defined(MBEDTLS_MPI_WINDOW_SIZE)
69 #if !defined(MBEDTLS_MPI_MAX_SIZE)
114 #if !defined(MBEDTLS_HAVE_INT32)
115 #if defined(_MSC_VER) && defined(_M_AMD64)
117 #if !defined(MBEDTLS_HAVE_INT64)
129 #if !defined(MBEDTLS_HAVE_INT64)
134 #if !defined(MBEDTLS_NO_UDBL_DIVISION)
144 #if !defined(MBEDTLS_HAVE_INT64)
149 #if !defined(MBEDTLS_NO_UDBL_DIVISION)
161 #if !defined(MBEDTLS_HAVE_INT64)
163 #if !defined(MBEDTLS_HAVE_INT32)
168 #if !defined(MBEDTLS_NO_UDBL_DIVISION)
183 int MBEDTLS_PRIVATE(s); /*!< Sign: -1 if the mpi is negative, 1 otherwise */
203 * in which case this function is a no-op. If it is
211 * \note This function does nothing if the MPI is
217 * \return \c 0 if successful.
218 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
227 * If \c X is smaller than \c nblimbs, it is resized up
233 * \return \c 0 if successful.
234 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed
247 * if necessary to hold the value in the source MPI.
249 * \return \c 0 if successful.
250 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
277 * `if( assign ) mbedtls_mpi_copy( X, Y );`
283 * \return \c 0 if successful.
284 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
301 * if( assign ) mbedtls_mpi_swap( X, Y );
307 * \return \c 0 if successful.
308 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
320 * \return \c 0 if successful.
321 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
341 * \note This function will grow the target MPI if necessary to set a
342 * bit to \c 1 in a not yet existing limb. It will not grow if
349 * \return \c 0 if successful.
350 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
390 * This happens if and only if there are trailing bytes
405 * \return \c 0 if successful.
425 * \return \c 0 if successful.
426 * \return #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if the target buffer \p buf
435 #if defined(MBEDTLS_FS_IO)
452 * \return \c 0 if successful.
453 * \return #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if the file read buffer
464 * printing in base \c 16. This may be \c NULL if no prefix
471 * \return \c 0 if successful.
486 * \return \c 0 if successful.
487 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
501 * \return \c 0 if successful.
502 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
511 * if the number is smaller.
518 * \return \c 0 if successful.
519 * \return #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if \p buf isn't
529 * if the number is smaller.
536 * \return \c 0 if successful.
537 * \return #MBEDTLS_ERR_MPI_BUFFER_TOO_SMALL if \p buf isn't
550 * \return \c 0 if successful.
551 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
562 * \return \c 0 if successful.
563 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
574 * \return \c 1 if `|X|` is greater than `|Y|`.
575 * \return \c -1 if `|X|` is lesser than `|Y|`.
576 * \return \c 0 if `|X|` is equal to `|Y|`.
586 * \return \c 1 if \p X is greater than \p Y.
587 * \return \c -1 if \p X is lesser than \p Y.
588 * \return \c 0 if \p X is equal to \p Y.
593 * \brief Check if an MPI is less than the other in constant time.
600 * \c 1 if \p X is less than \p Y.
601 * \c 0 if \p X is greater than or equal to \p Y.
604 * \return MBEDTLS_ERR_MPI_BAD_INPUT_DATA if the allocated length of
616 * \return \c 1 if \p X is greater than \p z.
617 * \return \c -1 if \p X is lesser than \p z.
618 * \return \c 0 if \p X is equal to \p z.
629 * \return \c 0 if successful.
630 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
643 * \return \c 0 if successful.
644 * \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p B is greater than \p A.
658 * \return \c 0 if successful.
659 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
672 * \return \c 0 if successful.
673 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
686 * \return \c 0 if successful.
687 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
701 * \return \c 0 if successful.
702 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
715 * \return \c 0 if successful.
716 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
731 * \return \c 0 if successful.
732 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
744 * This may be \c NULL if the value of the
747 * This may be \c NULL if the value of the
752 * \return \c 0 if successful.
753 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
754 * \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p B equals zero.
765 * This may be \c NULL if the value of the
768 * This may be \c NULL if the value of the
773 * \return \c 0 if successful.
774 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if memory allocation failed.
775 * \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p b equals zero.
791 * \return \c 0 if successful.
792 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
793 * \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p B equals zero.
794 * \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p B is negative.
811 * \return \c 0 if successful.
812 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
813 * \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p b equals zero.
814 * \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p b is negative.
831 * of \p N. This may be \c NULL. If it is not \c NULL, it must
832 * point to an initialized MPI. If it hasn't been used after
839 * \return \c 0 if successful.
840 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
841 * \return #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if \c N is negative or
842 * even, or if \c E is negative.
857 * \c NULL if \p f_rng doesn't need a context argument.
859 * \return \c 0 if successful.
860 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
892 * \return \c 0 if successful.
893 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
894 * \return #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if \p min or \p N is invalid
895 * or if they are incompatible.
896 * \return #MBEDTLS_ERR_MPI_NOT_ACCEPTABLE if the implementation was
898 * of attempts. This has a negligible probability if \p N
916 * \return \c 0 if successful.
917 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
932 * \return \c 0 if successful.
933 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
934 * \return #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if \p N is less than
936 * \return #MBEDTLS_ERR_MPI_NOT_ACCEPTABLE if \p has no modular inverse
945 * \warning If \p X is potentially generated by an adversary, for example
950 * if \p X is chosen uniformly or non-adversially (as is the
961 * This may be \c NULL if \p f_rng doesn't use
964 * \return \c 0 if successful, i.e. \p X is probably prime.
965 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
966 * \return #MBEDTLS_ERR_MPI_NOT_ACCEPTABLE if \p X is not prime.
993 * This may be \c NULL if \p f_rng doesn't use
996 * \return \c 0 if successful, in which case \p X holds a
998 * \return #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed.
999 * \return #MBEDTLS_ERR_MPI_BAD_INPUT_DATA if `nbits` is not between
1006 #if defined(MBEDTLS_SELF_TEST)
1011 * \return 0 if successful, or 1 if the test failed