Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

Return code for FSL_SHW library.

These codes may be returned from a function call. In non-blocking mode, they will appear as the status in a Result Object.

Enumerator:
FSL_RETURN_OK_S  No error. As a function return code in Non-blocking mode, this may simply mean that the operation was accepted for eventual execution.
FSL_RETURN_ERROR_S  Failure for non-specific reason.
FSL_RETURN_NO_RESOURCE_S  Operation failed because some resource was not able to be allocated.
FSL_RETURN_BAD_ALGORITHM_S  Crypto algorithm unrecognized or improper.
FSL_RETURN_BAD_MODE_S  Crypto mode unrecognized or improper.
FSL_RETURN_BAD_FLAG_S  Flag setting unrecognized or inconsistent.
FSL_RETURN_BAD_KEY_LENGTH_S  Improper or unsupported key length for algorithm.
FSL_RETURN_BAD_KEY_PARITY_S  Improper parity in a (DES, TDES) key.
FSL_RETURN_BAD_DATA_LENGTH_S  Improper or unsupported data length for algorithm or internal buffer.
FSL_RETURN_AUTH_FAILED_S  Authentication / Integrity Check code check failed.
FSL_RETURN_MEMORY_ERROR_S  A memory error occurred.
FSL_RETURN_INTERNAL_ERROR_S  An error internal to the hardware occurred.
FSL_RETURN_POINT_AT_INFINITY_S  ECC detected Point at Infinity
FSL_RETURN_POINT_NOT_AT_INFINITY_S  ECC detected No Point at Infinity
FSL_RETURN_GCD_IS_ONE_S  GCD is One
FSL_RETURN_GCD_IS_NOT_ONE_S  GCD is not One
FSL_RETURN_PRIME_S  Candidate is Prime
FSL_RETURN_NOT_PRIME_S  Candidate is not Prime
FSL_RETURN_EVEN_MODULUS_ERROR_S  N register loaded improperly with even value
FSL_RETURN_DIVIDE_BY_ZERO_ERROR_S  Divisor is zero.
FSL_RETURN_BAD_EXPONENT_ERROR_S  Bad Exponent or Scalar value for Point Multiply
FSL_RETURN_OSCILLATOR_ERROR_S  RNG hardware problem.
FSL_RETURN_STATISTICS_ERROR_S  RNG hardware problem.
FSL_RETURN_OK_S  No error. As a function return code in Non-blocking mode, this may simply mean that the operation was accepted for eventual execution.
FSL_RETURN_ERROR_S  Failure for non-specific reason.
FSL_RETURN_NO_RESOURCE_S  Operation failed because some resource was not able to be allocated.
FSL_RETURN_BAD_ALGORITHM_S  Crypto algorithm unrecognized or improper.
FSL_RETURN_BAD_MODE_S  Crypto mode unrecognized or improper.
FSL_RETURN_BAD_FLAG_S  Flag setting unrecognized or inconsistent.
FSL_RETURN_BAD_KEY_LENGTH_S  Improper or unsupported key length for algorithm.
FSL_RETURN_BAD_KEY_PARITY_S  Improper parity in a (DES, TDES) key.
FSL_RETURN_BAD_DATA_LENGTH_S  Improper or unsupported data length for algorithm or internal buffer.
FSL_RETURN_AUTH_FAILED_S  Authentication / Integrity Check code check failed.
FSL_RETURN_MEMORY_ERROR_S  A memory error occurred.
FSL_RETURN_INTERNAL_ERROR_S  An error internal to the hardware occurred.
FSL_RETURN_POINT_AT_INFINITY_S  ECC detected Point at Infinity
FSL_RETURN_POINT_NOT_AT_INFINITY_S  ECC detected No Point at Infinity
FSL_RETURN_GCD_IS_ONE_S  GCD is One
FSL_RETURN_GCD_IS_NOT_ONE_S  GCD is not One
FSL_RETURN_PRIME_S  Candidate is Prime
FSL_RETURN_NOT_PRIME_S  Candidate is not Prime
FSL_RETURN_EVEN_MODULUS_ERROR_S  N register loaded improperly with even value
FSL_RETURN_DIVIDE_BY_ZERO_ERROR_S  Divisor is zero.
FSL_RETURN_BAD_EXPONENT_ERROR_S  Bad Exponent or Scalar value for Point Multiply
FSL_RETURN_OSCILLATOR_ERROR_S  RNG hardware problem.
FSL_RETURN_STATISTICS_ERROR_S  RNG hardware problem.

Definition at line 151 of file shw_driver.h.

{
  /*!
     * No error.  As a function return code in Non-blocking mode, this may
     * simply mean that the operation was accepted for eventual execution.
     */
    FSL_RETURN_OK_S = 0,
      /*! Failure for non-specific reason. */
    FSL_RETURN_ERROR_S,
 /*!
    * Operation failed because some resource was not able to be allocated.
    */
    FSL_RETURN_NO_RESOURCE_S,
    /*! Crypto algorithm unrecognized or improper. */
    FSL_RETURN_BAD_ALGORITHM_S,
    /*! Crypto mode unrecognized or improper. */
    FSL_RETURN_BAD_MODE_S,
    /*! Flag setting unrecognized or inconsistent. */
    FSL_RETURN_BAD_FLAG_S,
    /*! Improper or unsupported key length for algorithm. */
    FSL_RETURN_BAD_KEY_LENGTH_S,
    /*! Improper parity in a (DES, TDES) key. */
    FSL_RETURN_BAD_KEY_PARITY_S,
  /*!
     * Improper or unsupported data length for algorithm or internal buffer.
     */
    FSL_RETURN_BAD_DATA_LENGTH_S,
    /*! Authentication / Integrity Check code check failed. */
    FSL_RETURN_AUTH_FAILED_S,
    /*! A memory error occurred. */
    FSL_RETURN_MEMORY_ERROR_S,
    /*! An error internal to the hardware occurred. */
    FSL_RETURN_INTERNAL_ERROR_S,
    /*! ECC detected Point at Infinity */
    FSL_RETURN_POINT_AT_INFINITY_S,
    /*! ECC detected No Point at Infinity */
    FSL_RETURN_POINT_NOT_AT_INFINITY_S,
    /*! GCD is One */
    FSL_RETURN_GCD_IS_ONE_S,
    /*! GCD is not One */
    FSL_RETURN_GCD_IS_NOT_ONE_S,
    /*! Candidate is Prime */
    FSL_RETURN_PRIME_S,
    /*! Candidate is not Prime */
    FSL_RETURN_NOT_PRIME_S,
    /*! N register loaded improperly with even value */
    FSL_RETURN_EVEN_MODULUS_ERROR_S,
    /*! Divisor is zero. */
    FSL_RETURN_DIVIDE_BY_ZERO_ERROR_S,
    /*! Bad Exponent or Scalar value for Point Multiply */
    FSL_RETURN_BAD_EXPONENT_ERROR_S,
    /*! RNG hardware problem. */
    FSL_RETURN_OSCILLATOR_ERROR_S,
    /*! RNG hardware problem. */
    FSL_RETURN_STATISTICS_ERROR_S,
} fsl_shw_return_t;


Generated by  Doxygen 1.6.0   Back to index