diff options
author | Don Anderson <dda@ddanderson.com> | 2015-04-23 14:45:11 -0400 |
---|---|---|
committer | Don Anderson <dda@ddanderson.com> | 2015-04-23 14:45:11 -0400 |
commit | 042adfab628a3c9cd06b08c7254242c7d5e73d61 (patch) | |
tree | 06ba48b00f4797632188a1c41fce84bd2a60c848 /ext/encryptors | |
parent | eccc6e57c441d3eb432867b3a3122645b20a20e0 (diff) | |
download | mongo-042adfab628a3c9cd06b08c7254242c7d5e73d61.tar.gz |
Fixed spelling in comments.
Diffstat (limited to 'ext/encryptors')
-rw-r--r-- | ext/encryptors/rotn/rotn_encrypt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/encryptors/rotn/rotn_encrypt.c b/ext/encryptors/rotn/rotn_encrypt.c index fe6f04e2a32..631004513e6 100644 --- a/ext/encryptors/rotn/rotn_encrypt.c +++ b/ext/encryptors/rotn/rotn_encrypt.c @@ -51,7 +51,7 @@ * text "Hello" maps to "Uryyb", as we preserve case. Only the alphabetic * characters in the input text are changed. * - * When there is a secretkey we are implementing a Vigenère cipher. + * When there is a secretkey we are implementing a Vigenere cipher. * Each byte is rotated the distance from 'A' for each letter in the * (repeating) secretkey. The distance is increased by the value of * the keyid. Thus, with secretkey "ABC" and keyid "2", we show how @@ -72,9 +72,9 @@ typedef struct { uint32_t rot_N; /* rotN value */ char *keyid; /* Saved keyid */ char *secretkey; /* Saved secretkey */ - unsigned char *shift_forw; /* Encrypt shifter from secretkey */ - unsigned char *shift_back; /* Decrypt shifter from secretkey */ - size_t shift_len; /* Length of shift_{forw,back} */ + unsigned char *shift_forw; /* Encrypt shift data from secretkey */ + unsigned char *shift_back; /* Decrypt shift data from secretkey */ + size_t shift_len; /* Length of shift* byte arrays */ } ROTN_ENCRYPTOR; /*! [WT_ENCRYPTOR initialization structure] */ @@ -142,7 +142,7 @@ do_rotate(uint8_t *buf, size_t len, uint32_t rotn) /* * do_shift -- - * Perform a Vigenère cipher + * Perform a Vigenere cipher */ static void do_shift(uint8_t *buf, size_t len, unsigned char *shift, size_t shiftlen) |