Update ctr_drbg.h

minor changes based on comments
This commit is contained in:
Rose Zadik 2018-04-16 14:51:52 +01:00 committed by GitHub
parent c9474ebdbb
commit f25eb6eef6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,13 @@
* *
* \brief This file contains CTR_DRBG definitions and functions. * \brief This file contains CTR_DRBG definitions and functions.
* *
* CTR_DRBG is based on AES-256, as defined in <em>NIST SP 800-90A: * CTR_DRBG is a standardized way of building a PRNG from a block-cipher
* Recommendation for Random Number Generation Using Deterministic * in counter mode operation, as defined in <em>NIST SP 800-90A:
* Random Bit Generators</em>. * Recommendation for Random Number Generation Using Deterministic Random
* Bit Generators</em>.
* *
* The Mbed TLS implementation of CTR_DRBG uses AES-256 as the underlying
* block cipher.
*/ */
/* /*
* Copyright (C) 2006-2018, Arm Limited (or its affiliates), All Rights Reserved * Copyright (C) 2006-2018, Arm Limited (or its affiliates), All Rights Reserved
@ -286,8 +289,8 @@ int mbedtls_ctr_drbg_random( void *p_rng,
* \param path The name of the file. * \param path The name of the file.
* *
* \return \c 0 on success. * \return \c 0 on success.
* \return #MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR on file error, or * \return #MBEDTLS_ERR_CTR_DRBG_FILE_IO_ERROR on file error.
* #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED on * \return #MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED on
* failure. * failure.
*/ */
int mbedtls_ctr_drbg_write_seed_file( mbedtls_ctr_drbg_context *ctx, const char *path ); int mbedtls_ctr_drbg_write_seed_file( mbedtls_ctr_drbg_context *ctx, const char *path );