• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/libgcrypt-1.5.0/cipher/

Lines Matching defs:to

18  * License along with this program; if not, write to the Free Software
24 * This implementation is according to the definition of DES in FIPS
48 * After initializing a context with a key you could use this context to
85 * * If you would like to use two 64bit keys, fill 'key1' and'key2'
95 * * Decrypting ciphertext to recover the plaintext with Triple-DES *
126 * According to the SunOS man page, memcmp returns indeterminate sign
180 * The s-box values are permuted according to the 'primitive function P'
181 * and are rotated one bit to the left.
397 * Macro to swap bits across two words.
406 * This performs the 'initial permutation' of the data to be encrypted
408 * to the left.
439 * Please note: The data in 'from' and 'to' is already rotated one bit to
442 #define DES_ROUND(from, to, work, subkey) \
444 to ^= sbox8[ work & 0x3f ]; \
445 to ^= sbox6[ (work>>8) & 0x3f ]; \
446 to ^= sbox4[ (work>>16) & 0x3f ]; \
447 to ^= sbox2[ (work>>24) & 0x3f ]; \
449 to ^= sbox7[ work & 0x3f ]; \
450 to ^= sbox5[ (work>>8) & 0x3f ]; \
451 to ^= sbox3[ (work>>16) & 0x3f ]; \
452 to ^= sbox1[ (work>>24) & 0x3f ];
455 * Macros to convert 8 bytes from/to 32bit words.
470 #define des_ecb_encrypt(ctx, from, to) des_ecb_crypt(ctx, from, to, 0)
471 #define des_ecb_decrypt(ctx, from, to) des_ecb_crypt(ctx, from, to, 1)
472 #define tripledes_ecb_encrypt(ctx, from, to) tripledes_ecb_crypt(ctx,from,to,0)
473 #define tripledes_ecb_decrypt(ctx, from, to) tripledes_ecb_crypt(ctx,from,to,1)
484 * have to reorder the generated subkeys.
618 * to 'mode'.
621 des_ecb_crypt (struct _des_ctx *ctx, const byte * from, byte * to, int mode)
641 WRITE_64BIT_DATA (to, right, left)
733 * according to 'mode'. Sometimes this mode is named 'EDE' mode
738 byte * to, int mode)
776 WRITE_64BIT_DATA (to, right, left)
894 * thanks to Jeroen C. van Gelderen.