mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Fix a few typos
This commit is contained in:
parent
f30dbdcaf0
commit
c7bc9e122f
@ -139,7 +139,7 @@ int mbedtls_chacha20_starts( mbedtls_chacha20_context* ctx,
|
|||||||
* \c mbedtls_chacha20_starts() must be called at least once
|
* \c mbedtls_chacha20_starts() must be called at least once
|
||||||
* to setup the context before this function can be called.
|
* to setup the context before this function can be called.
|
||||||
*
|
*
|
||||||
* \note This function can be called mutliple times in a row in
|
* \note This function can be called multiple times in a row in
|
||||||
* order to encrypt of decrypt data piecewise with the same
|
* order to encrypt of decrypt data piecewise with the same
|
||||||
* key and nonce.
|
* key and nonce.
|
||||||
*
|
*
|
||||||
|
@ -175,7 +175,7 @@ int mbedtls_chachapoly_starts( mbedtls_chachapoly_context *ctx,
|
|||||||
* The Additional Authenticated Data (AAD), also called
|
* The Additional Authenticated Data (AAD), also called
|
||||||
* Associated Data (AD) is only authenticated but not
|
* Associated Data (AD) is only authenticated but not
|
||||||
* encrypted nor included in the encrypted output. It is
|
* encrypted nor included in the encrypted output. It is
|
||||||
* usually transmitted separately fro mthe ciphertext or
|
* usually transmitted separately from the ciphertext or
|
||||||
* computed locally by each party.
|
* computed locally by each party.
|
||||||
*
|
*
|
||||||
* \note This function is called before data is encrypted/decrypted.
|
* \note This function is called before data is encrypted/decrypted.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file poly1305.h
|
* \file poly1305.h
|
||||||
*
|
*
|
||||||
* \brief This file containts Poly1305 definitions and functions.
|
* \brief This file contains Poly1305 definitions and functions.
|
||||||
*
|
*
|
||||||
* Poly1305 is a one-time message authenticator that can be used to
|
* Poly1305 is a one-time message authenticator that can be used to
|
||||||
* authenticate messages. Poly1305-AES was created by Daniel
|
* authenticate messages. Poly1305-AES was created by Daniel
|
||||||
@ -109,9 +109,9 @@ int mbedtls_poly1305_starts( mbedtls_poly1305_context *ctx,
|
|||||||
* \brief This functions feeds an input buffer into an ongoing
|
* \brief This functions feeds an input buffer into an ongoing
|
||||||
* Poly1305 computation.
|
* Poly1305 computation.
|
||||||
*
|
*
|
||||||
* It is called between \c mbedtls_cipher_cmac_starts() and
|
* It is called between \c mbedtls_cipher_poly1305_starts() and
|
||||||
* \c mbedtls_cipher_cmac_finish().
|
* \c mbedtls_cipher_poly1305_finish().
|
||||||
* Can be called repeatedly to process a stream of data.
|
* It can be called repeatedly to process a stream of data.
|
||||||
*
|
*
|
||||||
* \param ctx The Poly1305 context to use for the Poly1305 operation.
|
* \param ctx The Poly1305 context to use for the Poly1305 operation.
|
||||||
* \param ilen The length of the input data (in bytes). Any value is accepted.
|
* \param ilen The length of the input data (in bytes). Any value is accepted.
|
||||||
|
@ -187,7 +187,7 @@ int mbedtls_chachapoly_update_aad( mbedtls_chachapoly_context *ctx,
|
|||||||
}
|
}
|
||||||
else if( ctx->state != CHACHAPOLY_STATE_AAD )
|
else if( ctx->state != CHACHAPOLY_STATE_AAD )
|
||||||
{
|
{
|
||||||
return(MBEDTLS_ERR_CHACHAPOLY_BAD_STATE );
|
return( MBEDTLS_ERR_CHACHAPOLY_BAD_STATE );
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->aad_len += aad_len;
|
ctx->aad_len += aad_len;
|
||||||
|
Loading…
Reference in New Issue
Block a user