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

Tell the driver whether it is responsible for verifying the integrity of a secret. During an encryption, using other than SCC_VERIFY_MODE_NONE will cause a check value to be generated and appended to the plaintext before encryption. During decryption, the check value will be verified after decryption, and then stripped from the message.

Enumerator:
SCC_VERIFY_MODE_NONE  No verification value added or checked. Input plaintext data must be be a multiple of the blocksize (scc_get_configuration()).
SCC_VERIFY_MODE_CCITT_CRC  Driver will generate/validate a 2-byte CCITT CRC. Input plaintext will be padded to a multiple of the blocksize, adding 3-10 bytes to the resulting output ciphertext. Upon decryption, this padding will be stripped, and the CRC will be verified.

Definition at line 211 of file mxc_scc2_driver.h.

                                {
    /** No verification value added or checked.  Input plaintext data must be
     *  be a multiple of the blocksize (#scc_get_configuration()).  */
            SCC_VERIFY_MODE_NONE,
    /** Driver will generate/validate a 2-byte CCITT CRC.  Input plaintext
            will be padded to a multiple of the blocksize, adding 3-10 bytes
            to the resulting output ciphertext.  Upon decryption, this padding
            will be stripped, and the CRC will be verified. */
            SCC_VERIFY_MODE_CCITT_CRC
      } scc_verify_t;


Generated by  Doxygen 1.6.0   Back to index