summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-04-06 10:37:13 +0000
committerWerner Koch <wk@gnupg.org>2010-04-06 10:37:13 +0000
commit0af2459c2da81c3e346b145948c1b94d49105b52 (patch)
tree46b4292ee9f8506f292924e538423760b35bde68
parent5310462afa44a3112c813fa5329e7503c2694025 (diff)
downloadlibgcrypt-0af2459c2da81c3e346b145948c1b94d49105b52.tar.gz
Typo fixes
-rw-r--r--doc/gcrypt.texi4
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/aeswrap.c12
-rw-r--r--tests/basic.c20
-rw-r--r--tests/hmac.c6
5 files changed, 25 insertions, 21 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index 01c352f2..2ac9f2c2 100644
--- a/doc/gcrypt.texi
+++ b/doc/gcrypt.texi
@@ -748,7 +748,7 @@ certain internal subsystems running. The common and suggested way to
do this basic intialization is by calling gcry_check_version.
@item GCRYCTL_INITIALIZATION_FINISHED; Arguments: none
-This command tells the libray that the application has finished the
+This command tells the library that the application has finished the
intialization.
@item GCRYCTL_INITIALIZATION_FINISHED_P; Arguments: none
@@ -5464,7 +5464,7 @@ generates blocks of 128 bit size; the first block generated per
context is saved in the context and another block is generated to be
returned to the caller. Each block is compared against the saved
block and then stored in the context. If a duplicated block is
-detected an error is signaled and the libray is put into the
+detected an error is signaled and the library is put into the
``Fatal-Error'' state.
(@code{random/@/random-fips.c:@/x931_aes_driver})
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 45f36ac4..9e7371c1 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-06 Brad Hards <bradh@frogmouth.net> (wk)
+
+ * aeswrap.c, hmac.c, basic.c: Typo fixes.
+
2010-03-26 Werner Koch <wk@g10code.com>
* basic.c (check_digests): Add tests for TIGER1 and TIGER2 from
diff --git a/tests/aeswrap.c b/tests/aeswrap.c
index a8f5a5b0..39ef1e72 100644
--- a/tests/aeswrap.c
+++ b/tests/aeswrap.c
@@ -69,14 +69,14 @@ check (int algo,
err = gcry_cipher_open (&hd, algo, GCRY_CIPHER_MODE_AESWRAP, 0);
if (err)
{
- fail ("gcrypt_cipher_open failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_open failed: %s\n", gpg_strerror (err));
return;
}
err = gcry_cipher_setkey (hd, kek, keklen);
if (err)
{
- fail ("grcy_cipher_setkey failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_setkey failed: %s\n", gpg_strerror (err));
return;
}
@@ -87,7 +87,7 @@ check (int algo,
err = gcry_cipher_encrypt (hd, outbuf, outbuflen, data, datalen);
if (err)
{
- fail ("grcy_cipher_encrypt failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_encrypt failed: %s\n", gpg_strerror (err));
return;
}
@@ -114,7 +114,7 @@ check (int algo,
err = gcry_cipher_decrypt (hd, outbuf, outbuflen, expected, expectedlen);
if (err)
{
- fail ("grcy_cipher_decrypt failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_decrypt failed: %s\n", gpg_strerror (err));
return;
}
@@ -143,7 +143,7 @@ check (int algo,
err = gcry_cipher_decrypt (hd, outbuf, outbuflen, expected, expectedlen);
if (err)
{
- fail ("grcy_cipher_decrypt(2) failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_decrypt(2) failed: %s\n", gpg_strerror (err));
return;
}
@@ -158,7 +158,7 @@ check (int algo,
err = gcry_cipher_decrypt (hd, outbuf, outbuflen, expected, expectedlen);
if (err)
{
- fail ("grcy_cipher_decrypt(3) failed: %s\n", gpg_strerror (err));
+ fail ("gcry_cipher_decrypt(3) failed: %s\n", gpg_strerror (err));
return;
}
diff --git a/tests/basic.c b/tests/basic.c
index d60297d0..f69a8f03 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -141,7 +141,7 @@ check_cbc_mac_cipher (void)
GCRY_CIPHER_MODE_CBC, GCRY_CIPHER_CBC_MAC);
if (!hd)
{
- fail ("cbc-mac algo %d, grcy_open_cipher failed: %s\n",
+ fail ("cbc-mac algo %d, gcry_cipher_open failed: %s\n",
tv[i].algo, gpg_strerror (err));
return;
}
@@ -264,7 +264,7 @@ check_aes128_cbc_cts_cipher (void)
GCRY_CIPHER_MODE_CBC, GCRY_CIPHER_CBC_CTS);
if (err)
{
- fail ("aes-cbc-cts, grcy_open_cipher failed: %s\n", gpg_strerror (err));
+ fail ("aes-cbc-cts, gcry_cipher_open failed: %s\n", gpg_strerror (err));
return;
}
@@ -417,7 +417,7 @@ check_ctr_cipher (void)
err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);
if (err)
{
- fail ("aes-ctr, grcy_open_cipher failed: %s\n", gpg_strerror (err));
+ fail ("aes-ctr, gcry_cipher_open failed: %s\n", gpg_strerror (err));
return;
}
@@ -661,7 +661,7 @@ check_cfb_cipher (void)
err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_CFB, 0);
if (err)
{
- fail ("aes-cfb, grcy_open_cipher failed: %s\n", gpg_strerror (err));
+ fail ("aes-cfb, gcry_cipher_open failed: %s\n", gpg_strerror (err));
return;
}
@@ -823,7 +823,7 @@ check_ofb_cipher (void)
err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_OFB, 0);
if (err)
{
- fail ("aes-ofb, grcy_open_cipher failed: %s\n", gpg_strerror (err));
+ fail ("aes-ofb, gcry_cipher_open failed: %s\n", gpg_strerror (err));
return;
}
@@ -994,7 +994,7 @@ check_one_cipher (int algo, int mode, int flags)
err = gcry_cipher_open (&hd, algo, mode, flags);
if (err)
{
- fail ("algo %d, mode %d, grcy_open_cipher failed: %s\n",
+ fail ("algo %d, mode %d, gcry_cipher_open failed: %s\n",
algo, mode, gpg_strerror (err));
return;
}
@@ -1174,14 +1174,14 @@ check_one_md (int algo, const char *data, int len, const char *expect)
err = gcry_md_open (&hd, algo, 0);
if (err)
{
- fail ("algo %d, grcy_md_open failed: %s\n", algo, gpg_strerror (err));
+ fail ("algo %d, gcry_md_open failed: %s\n", algo, gpg_strerror (err));
return;
}
mdlen = gcry_md_get_algo_dlen (algo);
if (mdlen < 1 || mdlen > 500)
{
- fail ("algo %d, grcy_md_get_algo_dlen failed: %d\n", algo, mdlen);
+ fail ("algo %d, gcry_md_get_algo_dlen failed: %d\n", algo, mdlen);
return;
}
@@ -1495,14 +1495,14 @@ check_one_hmac (int algo, const char *data, int datalen,
err = gcry_md_open (&hd, algo, GCRY_MD_FLAG_HMAC);
if (err)
{
- fail ("algo %d, grcy_md_open failed: %s\n", algo, gpg_strerror (err));
+ fail ("algo %d, gcry_md_open failed: %s\n", algo, gpg_strerror (err));
return;
}
mdlen = gcry_md_get_algo_dlen (algo);
if (mdlen < 1 || mdlen > 500)
{
- fail ("algo %d, grcy_md_get_algo_dlen failed: %d\n", algo, mdlen);
+ fail ("algo %d, gcry_md_get_algo_dlen failed: %d\n", algo, mdlen);
return;
}
diff --git a/tests/hmac.c b/tests/hmac.c
index 9d87dbb5..292a2fa3 100644
--- a/tests/hmac.c
+++ b/tests/hmac.c
@@ -70,21 +70,21 @@ check_one_mac (int algo,
err = gcry_md_open (&hd, algo, GCRY_MD_FLAG_HMAC);
if (err)
{
- fail ("algo %d, grcy_md_open failed: %s\n", algo, gpg_strerror (err));
+ fail ("algo %d, gcry_md_open failed: %s\n", algo, gpg_strerror (err));
return;
}
mdlen = gcry_md_get_algo_dlen (algo);
if (mdlen < 1 || mdlen > 500)
{
- fail ("algo %d, grcy_md_get_algo_dlen failed: %d\n", algo, mdlen);
+ fail ("algo %d, gcry_md_get_algo_dlen failed: %d\n", algo, mdlen);
return;
}
err = gcry_md_setkey (hd, key, keylen);
if (err)
{
- fail ("algo %d, grcy_md_setkey failed: %s\n", algo, gpg_strerror (err));
+ fail ("algo %d, gcry_md_setkey failed: %s\n", algo, gpg_strerror (err));
return;
}