Fixed some typographic errors in comments.
This commit is contained in:
parent
a8a8f51ea4
commit
05520e8eae
22 changed files with 31 additions and 31 deletions
|
|
@ -877,7 +877,7 @@ extern const br_aead_class br_eax_vtable;
|
|||
* can still be provided by chunks, but the total size must match
|
||||
* the value provided upon initialisation.
|
||||
*
|
||||
* - The nonce length is constrained betwen 7 and 13 bytes (inclusive).
|
||||
* - The nonce length is constrained between 7 and 13 bytes (inclusive).
|
||||
* Furthermore, the plaintext length, when encoded, must fit over
|
||||
* 15-nonceLen bytes; thus, if the nonce has length 13 bytes, then
|
||||
* the plaintext length cannot exceed 65535 bytes.
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ extern "C" {
|
|||
* - `br_xxx_out(const br_xxx_context *ctx, void *out)`
|
||||
*
|
||||
* Complete the hash computation and write the result in the provided
|
||||
* buffer. The output buffer MUST be large enough to accomodate the
|
||||
* buffer. The output buffer MUST be large enough to accommodate the
|
||||
* result. The context is NOT modified by this operation, so this
|
||||
* function can be used to get a "partial hash" while still keeping
|
||||
* the possibility of adding more bytes to the input.
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ void br_hmac_update(br_hmac_context *ctx, const void *data, size_t len);
|
|||
/**
|
||||
* \brief Compute the HMAC output.
|
||||
*
|
||||
* The destination buffer MUST be large enough to accomodate the result;
|
||||
* The destination buffer MUST be large enough to accommodate the result;
|
||||
* its length is at most the "natural length" of HMAC (i.e. the output
|
||||
* length of the underlying hash function). The context is NOT modified;
|
||||
* further bytes may be processed. Thus, "partial HMAC" values can be
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extern "C" {
|
|||
* # The TLS PRF
|
||||
*
|
||||
* The "PRF" is the pseudorandom function used internally during the
|
||||
* SSL/TLS handshake, notably to expand negociated shared secrets into
|
||||
* SSL/TLS handshake, notably to expand negotiated shared secrets into
|
||||
* the symmetric encryption keys that will be used to process the
|
||||
* application data.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ typedef int (*br_prng_seeder)(const br_prng_class **ctx);
|
|||
* is returned.
|
||||
*
|
||||
* If `name` is not `NULL`, then `*name` is set to a symbolic string
|
||||
* that identifies the seeder implemention. If no seeder is returned
|
||||
* that identifies the seeder implementation. If no seeder is returned
|
||||
* and `name` is not `NULL`, then `*name` is set to a pointer to the
|
||||
* constant string `"none"`.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1278,7 +1278,7 @@ br_ssl_engine_get_hash(br_ssl_engine_context *ctx, int id)
|
|||
/**
|
||||
* \brief Set the PRF implementation (for TLS 1.0 and 1.1).
|
||||
*
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implemenation
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implementation
|
||||
* for the PRF used in TLS 1.0 and 1.1.
|
||||
*
|
||||
* \param cc SSL engine context.
|
||||
|
|
@ -1293,7 +1293,7 @@ br_ssl_engine_set_prf10(br_ssl_engine_context *cc, br_tls_prf_impl impl)
|
|||
/**
|
||||
* \brief Set the PRF implementation with SHA-256 (for TLS 1.2).
|
||||
*
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implemenation
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implementation
|
||||
* for the SHA-256 variant of the PRF used in TLS 1.2.
|
||||
*
|
||||
* \param cc SSL engine context.
|
||||
|
|
@ -1308,7 +1308,7 @@ br_ssl_engine_set_prf_sha256(br_ssl_engine_context *cc, br_tls_prf_impl impl)
|
|||
/**
|
||||
* \brief Set the PRF implementation with SHA-384 (for TLS 1.2).
|
||||
*
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implemenation
|
||||
* This function sets (or removes, if `impl` is `NULL`) the implementation
|
||||
* for the SHA-384 variant of the PRF used in TLS 1.2.
|
||||
*
|
||||
* \param cc SSL engine context.
|
||||
|
|
@ -1916,7 +1916,7 @@ br_ssl_engine_last_error(const br_ssl_engine_context *cc)
|
|||
* Informs the engine that 'len' bytes have been read from the buffer
|
||||
* (extract operation) or written to the buffer (inject operation).
|
||||
* The 'len' value MUST NOT be zero. The 'len' value MUST NOT exceed
|
||||
* that which was obtained from a preceeding br_ssl_engine_xxx_buf()
|
||||
* that which was obtained from a preceding br_ssl_engine_xxx_buf()
|
||||
* call.
|
||||
*/
|
||||
|
||||
|
|
@ -2517,7 +2517,7 @@ struct br_ssl_client_context_ {
|
|||
* then bit `x` is set (hash function ID is 0 for the special MD5+SHA-1,
|
||||
* or 2 to 6 for the SHA family).
|
||||
*
|
||||
* - If ECDSA is suported with hash function of ID `x`, then bit `8+x`
|
||||
* - If ECDSA is supported with hash function of ID `x`, then bit `8+x`
|
||||
* is set.
|
||||
*
|
||||
* - Newer algorithms are symbolic 16-bit identifiers that do not
|
||||
|
|
@ -3564,7 +3564,7 @@ br_ssl_server_get_client_suites(const br_ssl_server_context *cc, size_t *num)
|
|||
* then bit `x` is set (hash function ID is 0 for the special MD5+SHA-1,
|
||||
* or 2 to 6 for the SHA family).
|
||||
*
|
||||
* - If ECDSA is suported with hash function of ID `x`, then bit `8+x`
|
||||
* - If ECDSA is supported with hash function of ID `x`, then bit `8+x`
|
||||
* is set.
|
||||
*
|
||||
* - Newer algorithms are symbolic 16-bit identifiers that do not
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ typedef struct {
|
|||
* - `end_chain()` is called when the last certificate in the chain
|
||||
* was processed.
|
||||
* - `get_pkey()` is called after chain processing, if the chain
|
||||
* validation was succesfull.
|
||||
* validation was successful.
|
||||
*
|
||||
* A context structure may be reused; the `start_chain()` method shall
|
||||
* ensure (re)initialisation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue