summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2015-11-16 12:18:47 +0100
committerJustus Winter <justus@g10code.com>2015-11-17 11:17:52 +0100
commit0e395944b70c7a92a6437f6bcc14f287c19ce9de (patch)
treefb78af690002b53f017cf1ea122e9f096e828f54 /src
parent89fa74d6b3e58cd4fcd6e0939a35e46cbaca2ea0 (diff)
downloadlibgcrypt-0e395944b70c7a92a6437f6bcc14f287c19ce9de.tar.gz
Fix typos found using codespell
* cipher/cipher-ocb.c: Fix typos. * cipher/des.c: Likewise. * cipher/dsa-common.c: Likewise. * cipher/ecc.c: Likewise. * cipher/pubkey.c: Likewise. * cipher/rsa-common.c: Likewise. * cipher/scrypt.c: Likewise. * random/random-csprng.c: Likewise. * random/random-fips.c: Likewise. * random/rndw32.c: Likewise. * src/cipher-proto.h: Likewise. * src/context.c: Likewise. * src/fips.c: Likewise. * src/gcrypt.h.in: Likewise. * src/global.c: Likewise. * src/sexp.c: Likewise. * tests/mpitests.c: Likewise. * tests/t-lock.c: Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'src')
-rw-r--r--src/cipher-proto.h2
-rw-r--r--src/context.c2
-rw-r--r--src/fips.c4
-rw-r--r--src/gcrypt.h.in4
-rw-r--r--src/global.c4
-rw-r--r--src/sexp.c2
6 files changed, 9 insertions, 9 deletions
diff --git a/src/cipher-proto.h b/src/cipher-proto.h
index 3bca9c71..d1ddc5dd 100644
--- a/src/cipher-proto.h
+++ b/src/cipher-proto.h
@@ -92,7 +92,7 @@ typedef const char *(*pk_get_curve_t)(gcry_sexp_t keyparms, int iterator,
typedef gcry_sexp_t (*pk_get_curve_param_t)(const char *name);
-/* Module specification structure for public key algoritms. */
+/* Module specification structure for public key algorithms. */
typedef struct gcry_pk_spec
{
int algo;
diff --git a/src/context.c b/src/context.c
index 94e5be9e..f77878bc 100644
--- a/src/context.c
+++ b/src/context.c
@@ -47,7 +47,7 @@ struct gcry_context
/* Allocate a fresh generic context of contect TYPE and allocate
LENGTH extra bytes for private use of the type handler. DEINIT is a
- fucntion used called to deinitialize the private part; it may be
+ function used called to deinitialize the private part; it may be
NULL if de-initialization is not required. Returns NULL and sets
ERRNO if memory allocation failed. */
gcry_ctx_t
diff --git a/src/fips.c b/src/fips.c
index 7939abd7..edcbeacb 100644
--- a/src/fips.c
+++ b/src/fips.c
@@ -102,7 +102,7 @@ _gcry_initialize_fips_mode (int force)
static int done;
gpg_error_t err;
- /* Make sure we are not accidently called twice. */
+ /* Make sure we are not accidentally called twice. */
if (done)
{
if ( fips_mode () )
@@ -377,7 +377,7 @@ _gcry_fips_is_operational (void)
(GCRYCTL_INITIALIZATION_FINISHED) where the latter will
run the selftests. The drawback of these on-demand
self-tests are a small chance that self-tests are
- performed by severeal threads; that is no problem because
+ performed by several threads; that is no problem because
our FSM make sure that we won't oversee any error. */
unlock_fsm ();
_gcry_fips_run_selftests (0);
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 5ddeee3e..93b1f43f 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -583,7 +583,7 @@ gcry_error_t gcry_mpi_print (enum gcry_mpi_format format,
size_t *nwritten,
const gcry_mpi_t a);
-/* Convert the big integer A int the external representation described
+/* Convert the big integer A into the external representation described
by FORMAT and store it in a newly allocated buffer which address
will be put into BUFFER. NWRITTEN receives the actual lengths of the
external representation. */
@@ -1598,7 +1598,7 @@ gcry_error_t gcry_prime_generate (gcry_mpi_t *prime,
/* Find a generator for PRIME where the factorization of (prime-1) is
in the NULL terminated array FACTORS. Return the generator as a
newly allocated MPI in R_G. If START_G is not NULL, use this as
- teh start for the search. */
+ the start for the search. */
gcry_error_t gcry_prime_group_generator (gcry_mpi_t *r_g,
gcry_mpi_t prime,
gcry_mpi_t *factors,
diff --git a/src/global.c b/src/global.c
index 22903930..889de4c4 100644
--- a/src/global.c
+++ b/src/global.c
@@ -305,7 +305,7 @@ print_config ( int (*fnc)(FILE *fp, const char *format, ...), FILE *fp)
fnc (fp, "%s:", s);
fnc (fp, "\n");
/* We use y/n instead of 1/0 for the simple reason that Emacsen's
- compile error parser would accidently flag that line when printed
+ compile error parser would accidentally flag that line when printed
during "make check" as an error. */
fnc (fp, "fips-mode:%c:%c:\n",
fips_mode ()? 'y':'n',
@@ -867,7 +867,7 @@ _gcry_free (void *p)
return;
/* In case ERRNO is set we better save it so that the free machinery
- may not accidently change ERRNO. We restore it only if it was
+ may not accidentally change ERRNO. We restore it only if it was
already set to comply with the usual C semantic for ERRNO. */
save_errno = errno;
if (free_func)
diff --git a/src/sexp.c b/src/sexp.c
index f1bbffa7..d063962c 100644
--- a/src/sexp.c
+++ b/src/sexp.c
@@ -53,7 +53,7 @@
data) is required as well. The close_tag finishes the list and
would actually be sufficient. For fail-safe reasons a final stop
tag is always the last byte in a buffer; it has a value of 0 so
- that string function accidently applied to an S-expression will
+ that string function accidentally applied to an S-expression will
never access unallocated data. We do not support display hints and
thus don't need to represent them. A list may have more an
arbitrary number of data elements but at least one is required.