~ubuntu-branches/ubuntu/lucid/sword/lucid

« back to all changes in this revision

Viewing changes to src/modules/common/sapphire.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-01-21 00:10:17 UTC
  • mfrom: (1.1.4 upstream) (5.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100121001017-5ea19163rgisywbl
Tags: 1.6.1+dfsg-1
[ Jonathan Marsden ]
* debian/libsword8.examples: Add missing tcl eggdrop bot script.

[ Dmitrijs Ledkovs ]
* Drop shipping .la file in favour of pkg-config (Debian release goal)
  - More info http://lists.debian.org/debian-devel/2009/08/msg00783.html
* Drop backported patches, refreshed libver & compiler warnings.
* Compiling with -Werror enabled. 
* Bumped standards version to 3.8.3, no changes needed.
* Added debian/README.source documentation quilt usage
* Added configure option --without-internalregex

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
 
145
145
unsigned char sapphire::encrypt(unsigned char b)
146
146
    {
147
 
#ifdef USBINARY
148
147
    // Picture a single enigma rotor with 256 positions, rewired
149
148
    // on the fly by card-shuffling.
150
149
 
172
171
                               cards[avalanche])&0xFF]];
173
172
    last_plain = b;
174
173
    return last_cipher;
175
 
#else
176
 
    return b;
177
 
#endif
178
174
    }
179
175
 
180
176
unsigned char sapphire::decrypt(unsigned char b)