#include <stdio.h>#include "libdes/des.h"#include <string.h>Go to the source code of this file.
Defines | |
| #define | bcopy(b1, b2, len) memcpy(b2, b1, (size_t)(len)) |
| #define | bzero(b, len) memset(b, 0, (size_t)(len)) |
| #define | bcmp(b1, b2, len) memcmp(b1, b2, (size_t)(len)) |
| #define | index(s1, char) strchr(s1,char) |
| #define | const |
| #define | ITERATIONS 16 |
| #define | HALF_ITERATIONS 8 |
| #define | MAXWRITE (1024*16) |
| #define | BSIZE (MAXWRITE+4) |
| #define | c2l(c, l) |
| #define | c2ln(c, l1, l2, n) |
| #define | l2c(l, c) |
| #define | HDRSIZE 4 |
| #define | n2l(c, l) |
| #define | l2n(l, c) |
| #define | l2cn(l1, l2, c, n) |
| #define | D_ENCRYPT(L, R, S) |
| #define | PERM_OP(a, b, t, n, m) |
| #define | IP(l, r, t) |
| #define | FP(l, r, t) |
Definition at line 18 of file des_locl.h.
Definition at line 16 of file des_locl.h.
| #define BSIZE (MAXWRITE+4) |
Definition at line 38 of file des_locl.h.
Definition at line 17 of file des_locl.h.
Value:
(l =((unsigned long)(*((c)++))) , \ l|=((unsigned long)(*((c)++)))<< 8, \ l|=((unsigned long)(*((c)++)))<<16, \ l|=((unsigned long)(*((c)++)))<<24)
Definition at line 40 of file des_locl.h.
Referenced by des_3ecb_encrypt(), des_ecb_encrypt(), des_pcbc_encrypt(), and des_set_key().
Value:
{ \
c+=n; \
l1=l2=0; \
switch (n) { \
case 8: l2 =((unsigned long)(*(--(c))))<<24; \
case 7: l2|=((unsigned long)(*(--(c))))<<16; \
case 6: l2|=((unsigned long)(*(--(c))))<< 8; \
case 5: l2|=((unsigned long)(*(--(c)))); \
case 4: l1 =((unsigned long)(*(--(c))))<<24; \
case 3: l1|=((unsigned long)(*(--(c))))<<16; \
case 2: l1|=((unsigned long)(*(--(c))))<< 8; \
case 1: l1|=((unsigned long)(*(--(c)))); \
} \
}
Definition at line 45 of file des_locl.h.
Referenced by des_pcbc_encrypt().
| #define const |
Definition at line 22 of file des_locl.h.
| #define D_ENCRYPT | ( | L, | |||
| R, | |||||
| S | ) |
Value:
u=(R^s[S ]); \ t=R^s[S+1]; \ t=((t>>4)+(t<<28)); \ L^= des_SPtrans[1][(t )&0x3f]| \ des_SPtrans[3][(t>> 8)&0x3f]| \ des_SPtrans[5][(t>>16)&0x3f]| \ des_SPtrans[7][(t>>24)&0x3f]| \ des_SPtrans[0][(u )&0x3f]| \ des_SPtrans[2][(u>> 8)&0x3f]| \ des_SPtrans[4][(u>>16)&0x3f]| \ des_SPtrans[6][(u>>24)&0x3f];
Definition at line 121 of file des_locl.h.
Referenced by des_encrypt().
| #define FP | ( | l, | |||
| r, | |||||
| t | ) |
| #define HALF_ITERATIONS 8 |
Definition at line 35 of file des_locl.h.
| #define HDRSIZE 4 |
Definition at line 65 of file des_locl.h.
| #define index | ( | s1, | |||
| char | ) | strchr(s1,char) |
Definition at line 19 of file des_locl.h.
Referenced by NWildcard::CCensor::AddItem(), NWildcard::CCensorNode::AddItem(), ARCHIVE_INTERFACE(), ARCHIVE_INTERFACE_SUB(), av_encode(), libtorrent::torrent::bytes_done(), libtorrent::piece_picker::check_invariant(), NWildcard::CCensorNode::CheckPath(), Curl_single_getsock(), libtorrent::piece_picker::dec_refcount(), DecompressArchives(), fsScheduleMgr::DeleteTask(), libtorrent::piece_picker::files_checked(), libtorrent::torrent::filter_pieces(), NWindows::NFile::NDirectory::GetOnlyDirPrefix(), NWindows::NFile::NDirectory::GetOnlyName(), libtorrent::piece_picker::inc_refcount(), libtorrent::peer_connection::init(), main(), libtorrent::piece_picker::move(), multistate(), NWindows::NFile::NDirectory::MyGetFullPathName(), libtorrent::bt_peer_connection::on_have(), OpenArchive(), libtorrent::piece_picker::piece_pos::operator!=(), libtorrent::piece_picker::has_index::operator()(), libtorrent::piece_picker::piece_pos::operator==(), libtorrent::aux::piece_checker_data::parse_resume_data(), libtorrent::piece_picker::remove(), asio::detail::timer_queue< Time_Traits >::remove_timer(), NWindows::NFile::NName::SplitNameToPureNameAndExtension(), test_main(), and CInFileStreamVol::~CInFileStreamVol().
| #define IP | ( | l, | |||
| r, | |||||
| t | ) |
| #define ITERATIONS 16 |
Value:
(*((c)++)=(unsigned char)(((l) )&0xff), \ *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ *((c)++)=(unsigned char)(((l)>>16)&0xff), \ *((c)++)=(unsigned char)(((l)>>24)&0xff))
Definition at line 60 of file des_locl.h.
Referenced by des_3ecb_encrypt(), des_ecb_encrypt(), and des_pcbc_encrypt().
Value:
{ \
c+=n; \
switch (n) { \
case 8: *(--(c))=(unsigned char)(((l2)>>24)&0xff); \
case 7: *(--(c))=(unsigned char)(((l2)>>16)&0xff); \
case 6: *(--(c))=(unsigned char)(((l2)>> 8)&0xff); \
case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
case 4: *(--(c))=(unsigned char)(((l1)>>24)&0xff); \
case 3: *(--(c))=(unsigned char)(((l1)>>16)&0xff); \
case 2: *(--(c))=(unsigned char)(((l1)>> 8)&0xff); \
case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
} \
}
Definition at line 77 of file des_locl.h.
Referenced by des_pcbc_encrypt().
| #define MAXWRITE (1024*16) |
Definition at line 37 of file des_locl.h.
1.5.6