mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-05-17 17:41:17 +03:00
fix trailing white spaces
This commit is contained in:
parent
04354b0796
commit
eb73f7ab6f
@ -2030,13 +2030,13 @@
|
|||||||
#define MBEDTLS_CTR_DRBG_C
|
#define MBEDTLS_CTR_DRBG_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* configure key size for ctr DRBG , either
|
* configure key size for ctr DRBG , either
|
||||||
* MBEDTLS_CTR_DRBG_KEYSIZE_256 (default)
|
* MBEDTLS_CTR_DRBG_KEYSIZE_256 (default)
|
||||||
* or
|
* or
|
||||||
* MBEDTLS_CTR_DRBG_KEYSIZE_128
|
* MBEDTLS_CTR_DRBG_KEYSIZE_128
|
||||||
* must be set.
|
* must be set.
|
||||||
*/
|
*/
|
||||||
#if !defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128)
|
#if !defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128)
|
||||||
#define MBEDTLS_CTR_DRBG_KEY_SIZE_256 1
|
#define MBEDTLS_CTR_DRBG_KEY_SIZE_256 1
|
||||||
#endif
|
#endif
|
||||||
/**
|
/**
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
* Recommendation for Random Number Generation Using Deterministic Random
|
* Recommendation for Random Number Generation Using Deterministic Random
|
||||||
* Bit Generators</em>.
|
* Bit Generators</em>.
|
||||||
*
|
*
|
||||||
* The Mbed TLS implementation of CTR_DRBG uses AES-256 (default) or AES-128
|
* The Mbed TLS implementation of CTR_DRBG uses AES-256 (default) or AES-128
|
||||||
* as the underlying block cipher.
|
* as the underlying block cipher.
|
||||||
*
|
*
|
||||||
* * \warning ARC4 is considered a weak cipher and its use constitutes a
|
* * \warning ARC4 is considered a weak cipher and its use constitutes a
|
||||||
* security risk. We recommend considering stronger ciphers instead.
|
* security risk. We recommend considering stronger ciphers instead.
|
||||||
*/
|
*/
|
||||||
@ -48,14 +48,14 @@
|
|||||||
#define MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR -0x003A /**< Read or write error in file. */
|
#define MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR -0x003A /**< Read or write error in file. */
|
||||||
|
|
||||||
#define MBEDTLS_CTR_DRBG_BLOCKSIZE 16 /**< The block size used by the cipher. */
|
#define MBEDTLS_CTR_DRBG_BLOCKSIZE 16 /**< The block size used by the cipher. */
|
||||||
#if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_256)
|
#if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_256)
|
||||||
#define MBEDTLS_CTR_DRBG_KEYSIZE 32 /**< The key size used by the cipher. */
|
#define MBEDTLS_CTR_DRBG_KEYSIZE 32 /**< The key size used by the cipher. */
|
||||||
#else
|
#else
|
||||||
#if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128)
|
#if defined(MBEDTLS_CTR_DRBG_KEY_SIZE_128)
|
||||||
#warning Warning: using smaller (128bit) key size for CTR DRBG may reduce the security of some operations.
|
#warning Warning: using smaller (128bit) key size for CTR DRBG may reduce the security of some operations.
|
||||||
#define MBEDTLS_CTR_DRBG_KEYSIZE 16 /**< The key size used by the cipher. */
|
#define MBEDTLS_CTR_DRBG_KEYSIZE 16 /**< The key size used by the cipher. */
|
||||||
#else
|
#else
|
||||||
#error for ctr DRBG either MBEDTLS_CTR_DRBG_KEYSIZE_256 (default) or MBEDTLS_CTR_DRBG_KEYSIZE_128 must be set
|
#error for ctr DRBG either MBEDTLS_CTR_DRBG_KEY_SIZE_256 (default) or MBEDTLS_CTR_DRBG_KEY_SIZE_128 must be set
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#define MBEDTLS_CTR_DRBG_KEYBITS ( MBEDTLS_CTR_DRBG_KEYSIZE * 8 ) /**< The key size for the DRBG operation, in bits. */
|
#define MBEDTLS_CTR_DRBG_KEYBITS ( MBEDTLS_CTR_DRBG_KEYSIZE * 8 ) /**< The key size for the DRBG operation, in bits. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user