From 794e1765bd425d4f1771c6731940fa9f58399bac Mon Sep 17 00:00:00 2001 From: Deep Raval Date: Tue, 21 Jul 2020 17:11:05 +0530 Subject: [PATCH] docs: Fixed an issue in Vigenere cipher documentation (#964) * Fixed a doxygen doc issue * Chnaged ||key| < |text| to |key| < |text| --- ciphers/vigenere_cipher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ciphers/vigenere_cipher.cpp b/ciphers/vigenere_cipher.cpp index cb5b959b6..4efd56c00 100644 --- a/ciphers/vigenere_cipher.cpp +++ b/ciphers/vigenere_cipher.cpp @@ -9,15 +9,15 @@ * ### Algorithm * The encryption can also be represented using modular arithmetic by first transforming * the letters into numbers, according to the scheme, A → 0, B → 1, ..., Z → 25. - * Encryption of \f$\i^{th}\f$ character in Message M by key K can be described mathematically as, + * Encryption of \f$i^{th}\f$ character in Message M by key K can be described mathematically as, * * \f[ E_{K}(M_{i}) = (M_{i} + K_{i})\;\mbox{mod}\; 26\f] * - * while decryption of \f$\i^{th}\f$ character in Cipher C by key K can be described mathematically as, + * while decryption of \f$i^{th}\f$ character in Cipher C by key K can be described mathematically as, * * \f[ D_{k}(C_{i}) = (C_{i} - K_{i} + 26)\;\mbox{mod}\; 26\f] * - * Where \f$\K_{i}\f$ denotes corresponding character in key. If \f$\|key| < |text|\f$ than + * Where \f$K_{i}\f$ denotes corresponding character in key. If \f$|key| < |text|\f$ than * same key is repeated untill their lengths are equal. * * For Example,