Spelling fixes
* accumulating * acquire * alignment * appropriate * argument * assign * attribute * authenticate * authentication * authenticator * authority * auxiliary * brackets * callback * camellia * can't * cancelability * certificate * choinyambuu * chunk * collector * collision * communicating * compares * compatibility * compressed * confidentiality * configuration * connection * consistency * constraint * construction * constructor * database * decapsulated * declaration * decrypt * derivative * destination * destroyed * details * devised * dynamic * ecapsulation * encoded * encoding * encrypted * enforcing * enumerator * establishment * excluded * exclusively * exited * expecting * expire * extension * filter * firewall * foundation * fulfillment * gateways * hashing * hashtable * heartbeats * identifier * identifiers * identities * identity * implementers * indicating * initialize * initiate * initiation * initiator * inner * instantiate * legitimate * libraries * libstrongswan * logger * malloc * manager * manually * measurement * mechanism * message * network * nonexistent * object * occurrence * optional * outgoing * packages * packets * padding * particular * passphrase * payload * periodically * policies * possible * previously * priority * proposal * protocol * provide * provider * pseudo * pseudonym * public * qualifier * quantum * quintuplets * reached * reading * recommendation to * recommendation * recursive * reestablish * referencing * registered * rekeying * reliable * replacing * representing * represents * request * request * resolver * result * resulting * resynchronization * retriable * revocation * right * rollback * rule * rules * runtime * scenario * scheduled * security * segment * service * setting * signature * specific * specified * speed * started * steffen * strongswan * subjectaltname * supported * threadsafe * traffic * tremendously * treshold * unique * uniqueness * unknown * until * upper * using * validator * verification * version * version * warrior Closes strongswan/strongswan#164.
This commit is contained in:
committed by
Tobias Brunner
parent
baf29263d5
commit
b3ab7a48cc
@@ -516,7 +516,7 @@ static const uint32_t im_tab[4][256] =
|
||||
|
||||
#define nc (AES_BLOCK_SIZE/4)
|
||||
|
||||
// Initialise the key schedule from the user supplied key. The key
|
||||
// Initialize the key schedule from the user supplied key. The key
|
||||
// length is now specified in bytes - 16, 24 or 32 as appropriate.
|
||||
// This corresponds to bit lengths of 128, 192 and 256 bits, and
|
||||
// to Nk values of 4, 6 and 8 respectively.
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
typedef struct bliss_plugin_t bliss_plugin_t;
|
||||
|
||||
/**
|
||||
* Plugin implementing the BLISS post-quantu authentication algorithm
|
||||
* Plugin implementing the BLISS post-quantum authentication algorithm
|
||||
*/
|
||||
struct bliss_plugin_t {
|
||||
|
||||
|
||||
@@ -1071,7 +1071,7 @@ bliss_private_key_t *bliss_private_key_gen(key_type_t type, va_list args)
|
||||
/* We derive the public key from the private key using the FFT */
|
||||
fft = ntt_fft_create(set->fft_params);
|
||||
|
||||
/* Some vectors needed to derive the publi key */
|
||||
/* Some vectors needed to derive the public key */
|
||||
S1 = malloc(n * sizeof(uint32_t));
|
||||
S2 = malloc(n * sizeof(uint32_t));
|
||||
a = malloc(n * sizeof(uint32_t));
|
||||
|
||||
@@ -40,7 +40,7 @@ struct bliss_signature_t {
|
||||
chunk_t (*get_encoding)(bliss_signature_t *this);
|
||||
|
||||
/**
|
||||
* Get signature parameters extracted from compressd binary encoding
|
||||
* Get signature parameters extracted from compressed binary encoding
|
||||
*
|
||||
* @param z1 signature vector z1 of size n
|
||||
* @param z2d signature vector z2d of size n
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
typedef struct hmac_plugin_t hmac_plugin_t;
|
||||
|
||||
/**
|
||||
* Plugin implementing HMAC algorithm to prvoide hash based PRF and signers.
|
||||
* Plugin implementing HMAC algorithm to provide hash based PRF and signers.
|
||||
*/
|
||||
struct hmac_plugin_t {
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ static uint8_t PADDING[64] = {
|
||||
typedef struct private_md4_hasher_t private_md4_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context.
|
||||
* Private data structure with hashing context.
|
||||
*/
|
||||
struct private_md4_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -91,7 +91,7 @@ Rotation is separate from addition to prevent recomputation.
|
||||
typedef struct private_md5_hasher_t private_md5_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context.
|
||||
* Private data structure with hashing context.
|
||||
*/
|
||||
struct private_md5_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
typedef struct mysql_database_t mysql_database_t;
|
||||
|
||||
/**
|
||||
* MySQL databse_t implementation.
|
||||
* MySQL database_t implementation.
|
||||
*/
|
||||
struct mysql_database_t {
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ struct newhope_noise_t {
|
||||
*
|
||||
* @param nonce Nonce determining the pseudo random stream
|
||||
* @param n Number of pseudo random bytes to be returned
|
||||
* @return Return array with n peudo random bytes
|
||||
* @return Return array with n pseudo random bytes
|
||||
*/
|
||||
uint8_t* (*get_uniform_bytes)(newhope_noise_t *this, uint8_t nonce,
|
||||
uint16_t n);
|
||||
|
||||
@@ -141,7 +141,7 @@ static const ntru_param_set_t ntru_param_sets[] = {
|
||||
0x27, /* DER id */
|
||||
10, /* no. of bits in N (i.e., in an index) */
|
||||
613, /* N */
|
||||
16, /* securuity strength in octets */
|
||||
16, /* security strength in octets */
|
||||
2048, /* q */
|
||||
11, /* no. of bits in q (i.e., in a coeff) */
|
||||
FALSE, /* product form */
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
bool openssl_hash_chunk(int hash_type, chunk_t data, chunk_t *hash);
|
||||
|
||||
/**
|
||||
* Concatenates two bignums into a chunk, thereby enfocing the length of
|
||||
* Concatenates two bignums into a chunk, thereby enforcing the length of
|
||||
* a single BIGNUM, if necessary, by pre-pending it with zeros.
|
||||
*
|
||||
* Note: this function allocates memory for the chunk
|
||||
|
||||
@@ -606,7 +606,7 @@ static private_openssl_x509_t *create_empty()
|
||||
}
|
||||
|
||||
/**
|
||||
* parse an extionsion containing GENERAL_NAMES into a list
|
||||
* parse an extension containing GENERAL_NAMES into a list
|
||||
*/
|
||||
static bool parse_generalNames_ext(linked_list_t *list,
|
||||
X509_EXTENSION *ext)
|
||||
@@ -698,7 +698,7 @@ static bool parse_keyUsage_ext(private_openssl_x509_t *this,
|
||||
}
|
||||
if (flags & X509v3_KU_KEY_CERT_SIGN)
|
||||
{
|
||||
/* we use the caBasicContraint, MUST be set */
|
||||
/* we use the caBasicConstraint, MUST be set */
|
||||
}
|
||||
}
|
||||
ASN1_BIT_STRING_free(usage);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
typedef struct private_padlock_sha1_hasher_t private_padlock_sha1_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context.
|
||||
* Private data structure with hashing context.
|
||||
*/
|
||||
struct private_padlock_sha1_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -120,7 +120,7 @@ bool pem_encoder_encode(cred_encoding_type_t type, chunk_t *encoding,
|
||||
}
|
||||
if (cred_encoding_args(args, CRED_PART_PKCS10_ASN1_DER,
|
||||
&asn1, CRED_PART_END))
|
||||
{ /* PEM encode PKCS10 certificate reqeuest */
|
||||
{ /* PEM encode PKCS10 certificate request */
|
||||
label = "CERTIFICATE REQUEST";
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ bool pgp_read_mpi(chunk_t *blob, chunk_t *mpi);
|
||||
*
|
||||
* @param blob blob to read from, gets advanced
|
||||
* @param bytes number of bytes the scalar uses for encoding
|
||||
* @param scalar resultin scalar
|
||||
* @param scalar resulting scalar
|
||||
* @return TRUE if scalar parsed successfully
|
||||
*/
|
||||
bool pgp_read_scalar(chunk_t *blob, size_t bytes, uint32_t *scalar);
|
||||
|
||||
@@ -782,7 +782,7 @@ _CK_DECLARE_FUNCTION (C_SetOperationState,
|
||||
unsigned char *operation_state,
|
||||
unsigned long operation_state_len,
|
||||
ck_object_handle_t encryption_key,
|
||||
ck_object_handle_t authentiation_key));
|
||||
ck_object_handle_t authentication_key));
|
||||
_CK_DECLARE_FUNCTION (C_Login,
|
||||
(ck_session_handle_t session, ck_user_type_t user_type,
|
||||
unsigned char *pin, unsigned long pin_len));
|
||||
|
||||
@@ -40,7 +40,7 @@ struct private_pkcs11_dh_t {
|
||||
pkcs11_library_t *lib;
|
||||
|
||||
/**
|
||||
* Session handle for this objct
|
||||
* Session handle for this object
|
||||
*/
|
||||
CK_SESSION_HANDLE session;
|
||||
|
||||
|
||||
@@ -643,7 +643,7 @@ static void free_attrs(object_enumerator_t *this)
|
||||
}
|
||||
|
||||
/**
|
||||
* CKA_EC_POINT is encodeed as ASN.1 octet string, we can't handle that and
|
||||
* CKA_EC_POINT is encoded as ASN.1 octet string, we can't handle that and
|
||||
* some tokens actually return them even unwrapped.
|
||||
*
|
||||
* Because ASN1_OCTET_STRING is 0x04 and uncompressed EC_POINTs also begin with
|
||||
|
||||
@@ -52,7 +52,7 @@ struct plugin_t {
|
||||
/**
|
||||
* Try to reload plugin configuration.
|
||||
*
|
||||
* @return TRUE if reloaded, FALSE if reloading not supporty by plugin
|
||||
* @return TRUE if reloaded, FALSE if reloading not supported by plugin
|
||||
*/
|
||||
bool (*reload)(plugin_t *this);
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
typedef struct private_sha1_hasher_t private_sha1_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context.
|
||||
* Private data structure with hashing context.
|
||||
*/
|
||||
struct private_sha1_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -22,7 +22,7 @@ typedef struct private_sha1_prf_t private_sha1_prf_t;
|
||||
typedef struct private_sha1_hasher_t private_sha1_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context.
|
||||
* Private data structure with hashing context.
|
||||
*/
|
||||
struct private_sha1_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
typedef struct private_sha512_hasher_t private_sha512_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context for SHA384 and SHA512
|
||||
* Private data structure with hashing context for SHA384 and SHA512
|
||||
*/
|
||||
struct private_sha512_hasher_t {
|
||||
/**
|
||||
@@ -43,7 +43,7 @@ struct private_sha512_hasher_t {
|
||||
typedef struct private_sha256_hasher_t private_sha256_hasher_t;
|
||||
|
||||
/**
|
||||
* Private data structure with hasing context for SHA256
|
||||
* Private data structure with hashing context for SHA256
|
||||
*/
|
||||
struct private_sha256_hasher_t {
|
||||
/**
|
||||
|
||||
@@ -71,7 +71,7 @@ typedef struct {
|
||||
/**
|
||||
* Check if the SQLite library is thread safe
|
||||
*/
|
||||
static bool is_threadsave()
|
||||
static bool is_threadsafe()
|
||||
{
|
||||
#if SQLITE_VERSION_NUMBER >= 3005000
|
||||
return sqlite3_threadsafe() > 0;
|
||||
@@ -178,7 +178,7 @@ METHOD(enumerator_t, sqlite_enumerator_destroy, void,
|
||||
sqlite_enumerator_t *this)
|
||||
{
|
||||
sqlite3_finalize(this->stmt);
|
||||
if (!is_threadsave())
|
||||
if (!is_threadsafe())
|
||||
{
|
||||
this->database->mutex->unlock(this->database->mutex);
|
||||
}
|
||||
@@ -254,7 +254,7 @@ METHOD(database_t, query, enumerator_t*,
|
||||
sqlite_enumerator_t *enumerator = NULL;
|
||||
int i;
|
||||
|
||||
if (!is_threadsave())
|
||||
if (!is_threadsafe())
|
||||
{
|
||||
this->mutex->lock(this->mutex);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
typedef struct sqlite_database_t sqlite_database_t;
|
||||
|
||||
/**
|
||||
* sqlite databse_t implementation.
|
||||
* sqlite database_t implementation.
|
||||
*/
|
||||
struct sqlite_database_t {
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ bool wolfssl_mp2chunk(mp_int *mp, chunk_t *chunk);
|
||||
bool wolfssl_mp_split(chunk_t chunk, mp_int *a, mp_int *b);
|
||||
|
||||
/**
|
||||
* Concatenates two integers into a chunk, thereby enfocing the length of
|
||||
* Concatenates two integers into a chunk, thereby enforcing the length of
|
||||
* a single integer, if necessary, by pre-pending it with zeros.
|
||||
*
|
||||
* Note: this function allocates memory for the chunk
|
||||
|
||||
@@ -137,7 +137,7 @@ struct private_x509_cert_t {
|
||||
linked_list_t *permitted_names;
|
||||
|
||||
/**
|
||||
* List of exluced name constraints
|
||||
* List of excluded name constraints
|
||||
*/
|
||||
linked_list_t *excluded_names;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ struct private_x509_ocsp_response_t {
|
||||
chunk_t encoding;
|
||||
|
||||
/**
|
||||
* data for signature verficiation
|
||||
* data for signature verification
|
||||
*/
|
||||
chunk_t tbsResponseData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user