Fixed common misspellings.
Mostly found by 'codespell'.
This commit is contained in:
@@ -37,7 +37,7 @@ SUCH DAMAGE.
|
||||
|
||||
The license and distribution terms for any publically available version or
|
||||
derivative of this code cannot be changed. i.e. this code cannot simply be
|
||||
copied and put under another distrubution license
|
||||
copied and put under another distribution license
|
||||
[including the GNU Public License.]
|
||||
|
||||
The reason behind this being stated in this direct manner is past
|
||||
|
||||
@@ -67,7 +67,7 @@ typedef struct __attribute__((packed)) {
|
||||
u_char salt[SALT_SIZE];
|
||||
u_char iv[IV_SIZE];
|
||||
} nonce;
|
||||
/* lenght of plain text, q */
|
||||
/* length of plain text, q */
|
||||
u_char q[Q_SIZE];
|
||||
} b0_t;
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ struct private_des_crypter_t {
|
||||
des_crypter_t public;
|
||||
|
||||
/**
|
||||
* Key size, depends on algoritm...
|
||||
* Key size, depends on algorithm...
|
||||
*/
|
||||
size_t key_size;
|
||||
|
||||
@@ -127,7 +127,7 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
|
||||
#endif
|
||||
|
||||
/* Unroll the inner loop, this sometimes helps, sometimes hinders.
|
||||
* Very mucy CPU dependant */
|
||||
* Very much CPU dependent */
|
||||
#ifndef DES_UNROLL
|
||||
#define DES_UNROLL
|
||||
#endif
|
||||
@@ -316,7 +316,7 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
|
||||
* bytes, probably an issue of accessing non-word aligned objects :-( */
|
||||
#ifdef DES_PTR
|
||||
|
||||
/* It recently occured to me that 0^0^0^0^0^0^0 == 0, so there
|
||||
/* It recently occurred to me that 0^0^0^0^0^0^0 == 0, so there
|
||||
* is no reason to not xor all the sub items together. This potentially
|
||||
* saves a register since things can be xored directly into L */
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ chunk_t gcrypt_rsa_find_token(gcry_sexp_t sexp, char *name, gcry_sexp_t key)
|
||||
if (key)
|
||||
{
|
||||
/* gcrypt might return more bytes than necessary. Truncate
|
||||
* to key lenght if key given, or prepend zeros if needed */
|
||||
* to key length if key given, or prepend zeros if needed */
|
||||
len = gcry_pk_get_nbits(key);
|
||||
len = len / 8 + (len % 8 ? 1 : 0);
|
||||
if (len > data.len)
|
||||
|
||||
@@ -30,7 +30,7 @@ typedef struct hmac_t hmac_t;
|
||||
* Message authentication using hash functions.
|
||||
*
|
||||
* This class implements the message authenticaion algorithm
|
||||
* described in RFC2104. It uses a hash function, wich must
|
||||
* described in RFC2104. It uses a hash function, which must
|
||||
* be implemented as a hasher_t class.
|
||||
*/
|
||||
struct hmac_t {
|
||||
|
||||
@@ -495,7 +495,7 @@ typedef struct {
|
||||
CK_SESSION_HANDLE session;
|
||||
/* pkcs11 library */
|
||||
pkcs11_library_t *lib;
|
||||
/* attributes to retreive */
|
||||
/* attributes to retrieve */
|
||||
CK_ATTRIBUTE_PTR attr;
|
||||
/* number of attributes */
|
||||
CK_ULONG count;
|
||||
|
||||
@@ -32,7 +32,7 @@ typedef struct pkcs11_manager_t pkcs11_manager_t;
|
||||
*
|
||||
* @param data user supplied data, as passed to pkcs11_manager_create()
|
||||
* @param p11 loaded PKCS#11 library token belongs to
|
||||
* @param slot slot number the event occured in
|
||||
* @param slot slot number the event occurred in
|
||||
* @param add TRUE if token was added to the slot, FALSE if removed
|
||||
*/
|
||||
typedef void (*pkcs11_manager_token_event_t)(void *data, pkcs11_library_t *p11,
|
||||
|
||||
@@ -52,7 +52,7 @@ struct plugin_t {
|
||||
|
||||
|
||||
/**
|
||||
* Plugin constructor function definiton.
|
||||
* Plugin constructor function definition.
|
||||
*
|
||||
* Each plugin has a constructor function. This function is called on daemon
|
||||
* startup to initialize each plugin.
|
||||
|
||||
Reference in New Issue
Block a user