diff --git a/TODO b/TODO --- a/TODO +++ b/TODO @@ -18,7 +18,7 @@ * Add attributes to the MPI functions. -* cipher/pubkey.c and pubkey implementaions. +* cipher/pubkey.c and pubkey implementations. Don't rely on the secure memory based wiping function but add an extra wiping. diff --git a/acinclude.m4 b/acinclude.m4 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -29,7 +29,7 @@ dnl GCRY_MSG_WRAP(PREFIX, ALGOLIST) dnl Print a nicely formatted list of algorithms -dnl with an approriate line wrap. +dnl with an appropriate line wrap. dnl define([GCRY_MSG_WRAP], [ @@ -275,7 +275,7 @@ ]) dnl LIST_MEMBER() -dnl Check wether an element ist contained in a list. Set `found' to +dnl Check whether an element ist contained in a list. Set `found' to dnl `1' if the element is found in the list, to `0' otherwise. AC_DEFUN([LIST_MEMBER], [ diff --git a/build-aux/texinfo.tex b/build-aux/texinfo.tex --- a/build-aux/texinfo.tex +++ b/build-aux/texinfo.tex @@ -415,7 +415,7 @@ \def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm} \def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm} -% Each occurence of `\^^M' or `\^^M' is replaced by a single space. +% Each occurrence of `\^^M' or `\^^M' is replaced by a single space. % % \argremovec might leave us with trailing space, e.g., % @end itemize @c foo @@ -440,7 +440,7 @@ % to get _exactly_ the rest of the line, we had to prevent such situation. % We prepended an \empty token at the very beginning and we expand it now, % just before passing the control to \argtorun. -% (Similarily, we have to think about #3 of \argcheckspacesY above: it is +% (Similarly, we have to think about #3 of \argcheckspacesY above: it is % either the null string, or it ends with \^^M---thus there is no danger % that a pair of braces would be stripped. % @@ -497,7 +497,7 @@ % used to check whether the current environment is the one expected. % % Non-false conditionals (@iftex, @ifset) don't fit into this, so they -% are not treated as enviroments; they don't open a group. (The +% are not treated as environments; they don't open a group. (The % implementation of @end takes care not to call \endgroup in this % special case.) @@ -520,7 +520,7 @@ \fi } -% Evironment mismatch, #1 expected: +% Environment mismatch, #1 expected: \def\badenverr{% \errhelp = \EMsimple \errmessage{This command can appear only \inenvironment\temp, @@ -7034,7 +7034,7 @@ % In case a @footnote appears in a vbox, save the footnote text and create % the real \insert just after the vbox finished. Otherwise, the insertion % would be lost. -% Similarily, if a @footnote appears inside an alignment, save the footnote +% Similarly, if a @footnote appears inside an alignment, save the footnote % text to a box and make the \insert when a row of the table is finished. % And the same can be done for other insert classes. --kasal, 16nov03. diff --git a/cipher/cipher-internal.h b/cipher/cipher-internal.h --- a/cipher/cipher-internal.h +++ b/cipher/cipher-internal.h @@ -124,7 +124,7 @@ /* A structure with function pointers for bulk operations. Due to limitations of the module system (we don't want to change the API) we need to keep these function pointers here. The cipher - open function intializes them and the actual encryption routines + open function initializes them and the actual encryption routines use them if they are not NULL. */ struct { void (*cfb_enc)(void *context, unsigned char *iv, diff --git a/cipher/cipher.c b/cipher/cipher.c --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -1006,7 +1006,7 @@ /**************** * Decrypt INBUF to OUTBUF with the mode selected at open. * inbuf and outbuf may overlap or be the same. - * Depending on the mode some some contraints apply to INBUFLEN. + * Depending on the mode some some constraints apply to INBUFLEN. */ static gcry_err_code_t cipher_decrypt (gcry_cipher_hd_t c, byte *outbuf, size_t outbuflen, diff --git a/cipher/ecc-misc.c b/cipher/ecc-misc.c --- a/cipher/ecc-misc.c +++ b/cipher/ecc-misc.c @@ -333,7 +333,7 @@ * 0x40 for x-only coordinate. * * For data with older implementation (non-released development - * version), it is possibe to have the 0x40 as a part of data. + * version), it is possible to have the 0x40 as a part of data. * Besides, when data was parsed as MPI, we might have 0x00 * prefix. * diff --git a/cipher/primegen.c b/cipher/primegen.c --- a/cipher/primegen.c +++ b/cipher/primegen.c @@ -1301,7 +1301,7 @@ mpi_set_bit (prime, 0); /* We use 64 Rabin-Miller rounds which is better and thus - sufficient. We do not have a Lucas test implementaion thus we + sufficient. We do not have a Lucas test implementation thus we can't do it in the X9.31 preferred way of running a few Rabin-Miller followed by one Lucas test. */ while ( !check_prime (prime, val_2, 64, NULL, NULL) ) diff --git a/cipher/rsa-common.c b/cipher/rsa-common.c --- a/cipher/rsa-common.c +++ b/cipher/rsa-common.c @@ -233,7 +233,7 @@ } -/* Encode {VALUE,VALUELEN} for an NBITS keys and hash algorith ALGO +/* Encode {VALUE,VALUELEN} for an NBITS keys and hash algorithm ALGO using the pkcs#1 block type 1 padding. On success the result is stored as a new MPI at R_RESULT. On error the value at R_RESULT is undefined. diff --git a/cipher/rsa.c b/cipher/rsa.c --- a/cipher/rsa.c +++ b/cipher/rsa.c @@ -710,7 +710,7 @@ if (e_value < 3) return GPG_ERR_INV_VALUE; - /* Our implementaion requires E to be odd. */ + /* Our implementation requires E to be odd. */ if (!(e_value & 1)) return GPG_ERR_INV_VALUE; diff --git a/compat/clock.c b/compat/clock.c --- a/compat/clock.c +++ b/compat/clock.c @@ -23,7 +23,7 @@ _gcry_clock (void) { assert (CLOCKS_PER_SEC == 1000); -#warning Replace by a correct implementaion. +#warning Replace by a correct implementation. /* It seems that GetProcessTimes is available in the kernel but without a declaration. If that fails we would need to walk over all threads and tally up the GetThreadTimes. */ diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -339,7 +339,7 @@ if test x"$endiancheck" = xyes ; then AC_C_BIGENDIAN else - AC_DEFINE(DISABLED_ENDIAN_CHECK,1,[configure did not test for endianess]) + AC_DEFINE(DISABLED_ENDIAN_CHECK,1,[configure did not test for endianness]) fi AC_CHECK_SIZEOF(unsigned short, 2) @@ -1736,7 +1736,7 @@ # -# Check wether it is necessary to link against libdl. +# Check whether it is necessary to link against libdl. # DL_LIBS="" if test "$use_hmac_binary_check" = yes ; then diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi --- a/doc/gcrypt.texi +++ b/doc/gcrypt.texi @@ -95,7 +95,7 @@ * Prime numbers:: How to use the Prime number related functions. * Utilities:: Utility functions. * Tools:: Utility tools. -* Configuration:: Configuration files and evironment variables. +* Configuration:: Configuration files and environment variables. * Architecture:: How Libgcrypt works internally. Appendices @@ -5391,7 +5391,7 @@ @c **************** Environment Variables ***************** @c ********************************************************** @node Configuration -@chapter Configuration files and evironment variables +@chapter Configuration files and environment variables This chapter describes which files and environment variables can be used to change the behaviour of Libgcrypt. @@ -5869,7 +5869,7 @@ actual random output. Process fork detection and protection is implemented. -@c FIXME: The design and implementaion needs a more verbose description. +@c FIXME: The design and implementation needs a more verbose description. The implementation of the nonce generator (for @code{gcry_create_nonce}) is a straightforward repeated hash design: A diff --git a/mpi/alpha/README b/mpi/alpha/README --- a/mpi/alpha/README +++ b/mpi/alpha/README @@ -5,7 +5,7 @@ EV4 1. This chip has very limited store bandwidth. The on-chip L1 cache is -write-through, and a cache line is transfered from the store buffer to the +write-through, and a cache line is transferred from the store buffer to the off-chip L2 in as much 15 cycles on most systems. This delay hurts mpn_add_n, mpn_sub_n, mpn_lshift, and mpn_rshift. @@ -20,7 +20,7 @@ 1. The memory bandwidth of this chip seems excellent, both for loads and stores. Even when the working set is larger than the on-chip L1 and L2 -caches, the perfromance remain almost unaffected. +caches, the performance remain almost unaffected. 2. mulq has a measured latency of 13 cycles and an issue rate of 1 each 8th cycle. umulh has a measured latency of 15 cycles and an issue rate of 1 diff --git a/mpi/ec.c b/mpi/ec.c --- a/mpi/ec.c +++ b/mpi/ec.c @@ -35,7 +35,7 @@ #define point_free(a) _gcry_mpi_point_free_parts ((a)) -/* Print a point using the log fucntions. If CTX is not NULL affine +/* Print a point using the log functions. If CTX is not NULL affine coordinates will be printed. */ void _gcry_mpi_point_log (const char *name, mpi_point_t point, mpi_ec_t ctx) diff --git a/mpi/mips3/README b/mpi/mips3/README --- a/mpi/mips3/README +++ b/mpi/mips3/README @@ -9,7 +9,7 @@ On the R4600, branches takes a single cycle - On the R8000, branches often take no noticable cycles, as they are + On the R8000, branches often take no noticeable cycles, as they are executed in a separate function unit.. 2. The R4000 and R4400 have a load latency of 4 cycles. diff --git a/random/random-drbg.c b/random/random-drbg.c --- a/random/random-drbg.c +++ b/random/random-drbg.c @@ -2433,7 +2433,7 @@ goto outbuf; max_addtllen = drbg_max_addtl (); max_request_bytes = drbg_max_request_bytes (); - /* overflow addtllen with additonal info string */ + /* overflow addtllen with additional info string */ drbg_string_fill (&addtl, test->addtla, (max_addtllen + 1)); len = drbg_generate (drbg, buf, test->expectedlen, &addtl); if (len) diff --git a/random/rndhw.c b/random/rndhw.c --- a/random/rndhw.c +++ b/random/rndhw.c @@ -61,7 +61,7 @@ /* Peter Gutmann's cryptlib tests again whether the RNG is enabled but we don't do so. We would have to do this also for our AES - implementaion and that is definitely too time consuming. There + implementation and that is definitely too time consuming. There would be a race condition anyway. Thus we assume that the OS does not change the Padlock initialization while a user process is running. */ diff --git a/random/rndunix.c b/random/rndunix.c --- a/random/rndunix.c +++ b/random/rndunix.c @@ -319,7 +319,7 @@ { "/usr/bin/lpstat", "-t", SC(0.1), NULL, 0, 0, 0, 1 }, { "/usr/ucb/lpstat", "-t", SC(0.1), NULL, 0, 0, 0, 0 }, { "/usr/bin/tcpdump", "-c 5 -efvvx", SC(1), NULL, 0, 0, 0, 0 }, - /* This is very environment-dependant. If network traffic is low, it'll + /* This is very environment-dependent. If network traffic is low, it'll * probably time out before delivering 5 packets, which is OK because * it'll probably be fixed stuff like ARP anyway */ { "/usr/sbin/advfsstat", "-b usr_domain", diff --git a/random/rndw32.c b/random/rndw32.c --- a/random/rndw32.c +++ b/random/rndw32.c @@ -184,7 +184,7 @@ double ssHigh; /* Highest readout */ long ssCount; /* Total number of readout */ char sspadding2[4]; /* Padding of 4 bytes */ - long double ssTotal; /* Total amout of all readouts */ + long double ssTotal; /* Total amount of all readouts */ char sspadding3[6]; /* Padding of 6 bytes */ double ssAlarm1; /* Temp & fan: high alarm; voltage: % off */ double ssAlarm2; /* Temp: low alarm */ @@ -221,7 +221,7 @@ -/* One time intialized handles and function pointers. We use dynamic +/* One time initialized handles and function pointers. We use dynamic loading of the DLLs to do without them in case libgcrypt does not need any random. */ static HANDLE hNetAPI32; @@ -246,7 +246,7 @@ static HCRYPTPROV hRNGProv; /* Handle to Intel RNG CSP. */ /* The debug flag. Debugging is enabled if the value of the envvar - * GCRY_RNDW32_DBG is a postive number.*/ + * GCRY_RNDW32_DBG is a positive number.*/ static int debug_me; static int system_is_w2000; /* True if running on W2000. */ diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -391,7 +391,7 @@ /* Release the S-expression object SEXP */ void gcry_sexp_release (gcry_sexp_t sexp); -/* Calculate the length of an canonized S-expresion in BUFFER and +/* Calculate the length of an canonized S-expression in BUFFER and check for a valid encoding. */ size_t gcry_sexp_canon_len (const unsigned char *buffer, size_t length, size_t *erroff, gcry_error_t *errcode); @@ -1669,7 +1669,7 @@ void gcry_prime_release_factors (gcry_mpi_t *factors); -/* Check wether the number X is prime. */ +/* Check whether the number X is prime. */ gcry_error_t gcry_prime_check (gcry_mpi_t x, unsigned int flags); diff --git a/src/global.c b/src/global.c --- a/src/global.c +++ b/src/global.c @@ -581,7 +581,7 @@ _gcry_set_preferred_rng_type (0); if (!any_init_done) { - /* Not yet intialized at all. Set a flag so that we are put + /* Not yet initialized at all. Set a flag so that we are put into fips mode during initialization. */ force_fips_mode = 1; } diff --git a/src/secmem.c b/src/secmem.c --- a/src/secmem.c +++ b/src/secmem.c @@ -91,7 +91,7 @@ static pooldesc_t mainpool; -/* A couple of flags whith some beeing set early. */ +/* A couple of flags whith some being set early. */ static int disable_secmem; static int show_warning; static int not_locked; diff --git a/tests/basic.c b/tests/basic.c --- a/tests/basic.c +++ b/tests/basic.c @@ -5549,7 +5549,7 @@ -/* Check that our bulk encryption fucntions work properly. */ +/* Check that our bulk encryption functions work properly. */ static void check_bulk_cipher_modes (void) { diff --git a/tests/bench-slope.c b/tests/bench-slope.c --- a/tests/bench-slope.c +++ b/tests/bench-slope.c @@ -1345,7 +1345,7 @@ if (mode.mode == GCRY_CIPHER_MODE_XTS && blklen != GCRY_XTS_BLOCK_LEN) return; - /* Our OCB implementaion has restrictions for block-size. */ + /* Our OCB implementation has restrictions for block-size. */ if (mode.mode == GCRY_CIPHER_MODE_OCB && blklen != GCRY_OCB_BLOCK_LEN) return; diff --git a/tests/cavs_driver.pl b/tests/cavs_driver.pl --- a/tests/cavs_driver.pl +++ b/tests/cavs_driver.pl @@ -1381,7 +1381,7 @@ # RSA SigVer test # $1: Message to be verified in hex form -# $2: Hash algoritm +# $2: Hash algorithm # $3: Signature of message in hex form # $4: n of the RSA key in hex in hex form # $5: e of the RSA key in hex in hex form diff --git a/tests/hashtest.c b/tests/hashtest.c --- a/tests/hashtest.c +++ b/tests/hashtest.c @@ -1,4 +1,4 @@ -/* hashtest.c - Check the hash fucntions +/* hashtest.c - Check the hash functions * Copyright (C) 2013 g10 Code GmbH * * This file is part of Libgcrypt. diff --git a/tests/t-lock.c b/tests/t-lock.c --- a/tests/t-lock.c +++ b/tests/t-lock.c @@ -213,7 +213,7 @@ } -/* Initialze all accounts. */ +/* Initialize all accounts. */ static void init_accounts (void) {