⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bdes.ps

📁 早期freebsd实现
💻 PS
📖 第 1 页 / 共 5 页
字号:
		stroke		restorematrix		x dx add y dy add translate		r concat		t 0.67 mul setlinewidth		t 1.61 mul neg  0.0 translate		0.0 0.0 moveto		t2 1.7 mul neg  t2 2.0 div     moveto		0.0 0.0 lineto		t2 1.7 mul neg  t2 2.0 div neg lineto		stroke		t setlinewidth		restorematrix		} if	} bind def/G { 	gsave	newpath	normalize translate 0.0 0.0 moveto 	dnormalize scale 	0.0 0.0 1.0 5 3 roll arc 	closepath fill	grestore	} bind def/A { 	gsave	savematrix	newpath	2 index 2 div add exch 3 index 2 div sub exch 	normalize 2 index 2 div sub exch 3 index 2 div add exch 	translate 	scale 	0.0 0.0 1.0 5 3 roll arc 	restorematrix	stroke	grestore	} bind def	/x FMLOCAL	/y FMLOCAL	/w FMLOCAL	/h FMLOCAL	/xx FMLOCAL	/yy FMLOCAL	/ww FMLOCAL	/hh FMLOCAL	/FMsaveobject FMLOCAL	/FMoptop FMLOCAL	/FMdicttop FMLOCAL/BEGINPRINTCODE { 	/FMdicttop countdictstack 1 add def 	/FMoptop count 4 sub def 	/FMsaveobject save def	userdict begin 	/showpage {} def 	FMNORMALIZEGRAPHICS 	3 index neg 3 index neg translate	} bind def/ENDPRINTCODE {	count -1 FMoptop {pop pop} for 	countdictstack -1 FMdicttop {pop end} for 	FMsaveobject restore 	} bind def/gn { 	0 	{	46 mul 		cf read pop 		32 sub 		dup 46 lt {exit} if 		46 sub add 		} loop	add 	} bind def	/str FMLOCAL/cfs { 	/str sl string def 	0 1 sl 1 sub {str exch val put} for 	str def 	} bind def/ic [ 	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223	0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0223	0	{0 hx} {1 hx} {2 hx} {3 hx} {4 hx} {5 hx} {6 hx} {7 hx} {8 hx} {9 hx}	{10 hx} {11 hx} {12 hx} {13 hx} {14 hx} {15 hx} {16 hx} {17 hx} {18 hx}	{19 hx} {gn hx} {0} {1} {2} {3} {4} {5} {6} {7} {8} {9} {10} {11} {12}	{13} {14} {15} {16} {17} {18} {19} {gn} {0 wh} {1 wh} {2 wh} {3 wh}	{4 wh} {5 wh} {6 wh} {7 wh} {8 wh} {9 wh} {10 wh} {11 wh} {12 wh}	{13 wh} {14 wh} {gn wh} {0 bl} {1 bl} {2 bl} {3 bl} {4 bl} {5 bl} {6 bl}	{7 bl} {8 bl} {9 bl} {10 bl} {11 bl} {12 bl} {13 bl} {14 bl} {gn bl}	{0 fl} {1 fl} {2 fl} {3 fl} {4 fl} {5 fl} {6 fl} {7 fl} {8 fl} {9 fl}	{10 fl} {11 fl} {12 fl} {13 fl} {14 fl} {gn fl}	] def	/sl FMLOCAL	/val FMLOCAL	/ws FMLOCAL	/im FMLOCAL	/bs FMLOCAL	/cs FMLOCAL	/len FMLOCAL	/pos FMLOCAL/ms { 	/sl exch def 	/val 255 def 	/ws cfs 	/im cfs 	/val 0 def 	/bs cfs 	/cs cfs 	} bind def400 ms /ip { 	is 	0 	cf cs readline pop 	{	ic exch get exec 		add 		} forall 	pop 		} bind def/wh { 	/len exch def 	/pos exch def 	ws 0 len getinterval im pos len getinterval copy pop	pos len 	} bind def/bl { 	/len exch def 	/pos exch def 	bs 0 len getinterval im pos len getinterval copy pop	pos len 	} bind def/s1 1 string def/fl { 	/len exch def 	/pos exch def 	/val cf s1 readhexstring pop 0 get def	pos 1 pos len add 1 sub {im exch val put} for	pos len 	} bind def/hx { 	3 copy getinterval 	cf exch readhexstring pop pop 	} bind def	/h FMLOCAL	/w FMLOCAL	/d FMLOCAL	/lb FMLOCAL	/bitmapsave FMLOCAL	/is FMLOCAL	/cf FMLOCAL/wbytes { 	dup 	8 eq {pop} {1 eq {7 add 8 idiv} {3 add 4 idiv} ifelse} ifelse	} bind def/BEGINBITMAPBWc { 	1 {} COMMONBITMAPc	} bind def/BEGINBITMAPGRAYc { 	8 {} COMMONBITMAPc	} bind def/BEGINBITMAP2BITc { 	2 {} COMMONBITMAPc	} bind def/COMMONBITMAPc { 	/r exch def	/d exch def	gsave	translate rotate scale /h exch def /w exch def	/lb w d wbytes def 	sl lb lt {lb ms} if 	/bitmapsave save def 	r                    	/is im 0 lb getinterval def 	ws 0 lb getinterval is copy pop 	/cf currentfile def 	w h d [w 0 0 h neg 0 h] 	{ip} image 	bitmapsave restore 	grestore	} bind def/BEGINBITMAPBW { 	1 {} COMMONBITMAP	} bind def/BEGINBITMAPGRAY { 	8 {} COMMONBITMAP	} bind def/BEGINBITMAP2BIT { 	2 {} COMMONBITMAP	} bind def/COMMONBITMAP { 	/r exch def	/d exch def	gsave	translate rotate scale /h exch def /w exch def	/bitmapsave save def 	r                    	/is w d wbytes string def	/cf currentfile def 	w h d [w 0 0 h neg 0 h] 	{cf is readhexstring pop} image	bitmapsave restore 	grestore	} bind def	/proc1 FMLOCAL	/proc2 FMLOCAL	/newproc FMLOCAL/Fmcc {    /proc2 exch cvlit def    /proc1 exch cvlit def    /newproc proc1 length proc2 length add array def    newproc 0 proc1 putinterval    newproc proc1 length proc2 putinterval    newproc cvx} bind def/ngrayt 256 array def/nredt 256 array def/nbluet 256 array def/ngreent 256 array def	/gryt FMLOCAL	/blut FMLOCAL	/grnt FMLOCAL	/redt FMLOCAL	/indx FMLOCAL	/cynu FMLOCAL	/magu FMLOCAL	/yelu FMLOCAL	/k FMLOCAL	/u FMLOCAL/colorsetup {	currentcolortransfer	/gryt exch def	/blut exch def	/grnt exch def	/redt exch def	0 1 255 {		/indx exch def		/cynu 1 red indx get 255 div sub def		/magu 1 green indx get 255 div sub def		/yelu 1 blue indx get 255 div sub def		/k cynu magu min yelu min def		/u k currentundercolorremoval exec def		nredt indx 1 0 cynu u sub max sub redt exec put		ngreent indx 1 0 magu u sub max sub grnt exec put		nbluet indx 1 0 yelu u sub max sub blut exec put		ngrayt indx 1 k currentblackgeneration exec sub gryt exec put	} for	{255 mul cvi nredt exch get}	{255 mul cvi ngreent exch get}	{255 mul cvi nbluet exch get}	{255 mul cvi ngrayt exch get}	setcolortransfer	{pop 0} setundercolorremoval	{} setblackgeneration	} bind def	/tran FMLOCAL/fakecolorsetup {	/tran 256 string def	0 1 255 {/indx exch def 		tran indx		red indx get 77 mul		green indx get 151 mul		blue indx get 28 mul		add add 256 idiv put} for	currenttransfer	{255 mul cvi tran exch get 255.0 div}	exch Fmcc settransfer} bind def/BITMAPCOLOR { 	/d 8 def	gsave	translate rotate scale /h exch def /w exch def	/bitmapsave save def 	colorsetup	/is w d wbytes string def	/cf currentfile def 	w h d [w 0 0 h neg 0 h] 	{cf is readhexstring pop} {is} {is} true 3 colorimage 	bitmapsave restore 	grestore	} bind def/BITMAPCOLORc { 	/d 8 def	gsave	translate rotate scale /h exch def /w exch def	/lb w d wbytes def 	sl lb lt {lb ms} if 	/bitmapsave save def 	colorsetup	/is im 0 lb getinterval def 	ws 0 lb getinterval is copy pop 	/cf currentfile def 	w h d [w 0 0 h neg 0 h] 	{ip} {is} {is} true 3 colorimage	bitmapsave restore 	grestore	} bind def/BITMAPGRAY { 	8 {fakecolorsetup} COMMONBITMAP	} bind def/BITMAPGRAYc { 	8 {fakecolorsetup} COMMONBITMAPc	} bind def/ENDBITMAP {	} bind defend %%EndProlog%%BeginSetup(2.0) FMVERSION1 1 612 792 0 1 16 FMDOCUMENT/fillprocs 32 array deffillprocs 0 { 0.000000 grayness } putfillprocs 1 { 0.100000 grayness } putfillprocs 2 { 0.300000 grayness } putfillprocs 3 { 0.500000 grayness } putfillprocs 4 { 0.700000 grayness } putfillprocs 5 { 0.900000 grayness } putfillprocs 6 { 0.970000 grayness } putfillprocs 7 { 1.000000 grayness } putfillprocs 8 {<0f87c3e1f0783c1e> 8 1 setpattern } putfillprocs 9 {<0f1e3c78f0e1c387> 8 1 setpattern } putfillprocs 10 {<cccccccccccccccc> 8 1 setpattern } putfillprocs 11 {<ffff0000ffff0000> 8 1 setpattern } putfillprocs 12 {<8142241818244281> 8 1 setpattern } putfillprocs 13 {<8040201008040201> 8 1 setpattern } putfillprocs 14 {<03060c183060c081> 8 1 setpattern } putfillprocs 15 {} putfillprocs 16 { 1.000000 grayness } putfillprocs 17 { 0.900000 grayness } putfillprocs 18 { 0.700000 grayness } putfillprocs 19 { 0.500000 grayness } putfillprocs 20 { 0.300000 grayness } putfillprocs 21 { 0.100000 grayness } putfillprocs 22 { 0.030000 grayness } putfillprocs 23 { 0.000000 grayness } putfillprocs 24 {<f0783c1e0f87c3e1> 8 1 setpattern } putfillprocs 25 {<f0e1c3870f1e3c78> 8 1 setpattern } putfillprocs 26 {<3333333333333333> 8 1 setpattern } putfillprocs 27 {<0000ffff0000ffff> 8 1 setpattern } putfillprocs 28 {<7ebddbe7e7dbbd7e> 8 1 setpattern } putfillprocs 29 {<7fbfdfeff7fbfdfe> 8 1 setpattern } putfillprocs 30 {<fcf9f3e7cf9f3f7e> 8 1 setpattern } putfillprocs 31 {} put%%EndSetup0 12 /Helvetica-Bold FMDEFINEFONT1 12 /Helvetica-BoldOblique FMDEFINEFONT%%Page: "-1" 1%%BeginPaperSize: Letter%%EndPaperSize612 792 0 FMBEGINPAGE144 144 468 396 R7 X0 KV0 F0 X1.2 (IMPLEMENT) 178.34 388 S1.2 (A) 258.88 388 S1.2 (TION NOTES ON ) 267.85 388 S1 F1.2 (bdes) 382.61 388 S0 F1.2 (\0501\051) 415.4 388 S1.2 (Matt Bishop) 265.09 338 S1.2 (T) 197.74 288 S1.2 (echnical Report PCS-TR91-158) 205.38 288 SFMENDPAGE%%EndPage: "-1" 2%%Page: "0" 2612 792 0 FMBEGINPAGE72 72 540 720 R7 X0 KVFMENDPAGE%%EndPage: "0" 30 12 /Times-Roman FMDEFINEFONT1 18 /Times-Bold FMDEFINEFONT2 18 /Times-BoldItalic FMDEFINEFONT3 12 /Times-Italic FMDEFINEFONT4 12 /Times-Bold FMDEFINEFONT5 10 /Times-Roman FMDEFINEFONT6 12 /Courier FMDEFINEFONT7 12 /Courier-Oblique FMDEFINEFONT8 12 /ZapfDingbats FMDEFINEFONT9 12 /Symbol FMDEFINEFONT10 12 /Courier-Bold FMDEFINEFONT%%Page: "1" 3612 792 0 FMBEGINPAGE72 745.99 540 756 R7 X0 KV72 32.69 540 42.7 RV0 F0 X(Page 1 of 11) 479.71 34.7 T72 72 540 720 R7 XV1 F0 X(Implementation Notes on ) 179.84 708 T2 F(bdes) 378.21 708 T1 F(\0501\051) 411.19 708 T0 F( ) 432.17 708 T3 F(Matt Bishop) 276.51 676 T0 F(Department of Mathematics and Computer Science) 182.92 656 T(Dartmouth College) 259.86 642 T(Hanover) 257.45 628 T(, NH 03755) 298.26 628 T3 F(ABSTRACT) 277.68 602 T0 F0.27 (This note describes the implementation of ) 108 582 P3 F0.27 (bdes) 314.13 582 P0 F0.27 (, the \336le encryption program being) 336.12 582 P0.36 (distributed in the 4.4 release of the Berkeley Software Distribution. It implements) 108 568 P(all modes of the Data Encryption Standard program.) 108 554 T4 F(1. Intr) 72 528 T(oduction) 104.43 528 T0 F-0.09 (The Data Encryption Standard is a standard endorsed by the federal government. It is con-) 108 504 P-0.56 (siderably stronger than the algorithm used by the ) 72 484 P5 F-0.47 (UNIX) 305.36 484 P0 F-0.56 (\252 ) 330.34 484 P3 F-0.56 (crypt) 344.53 484 P0 F-0.56 (\0501\051 program, and therefore is a more) 369.18 484 P0.11 (suitable candidate for protecting information, especially information contained in ) 72 464 P5 F0.09 (ASCII) 466.05 464 P0 F0.11 ( \336les. The) 492.14 464 P-0.65 (program ) 72 444 P3 F-0.65 (bdes) 114.99 444 P0 F-0.65 (\0501\051 implements the DES and all of its modes, including the two authentication modes.) 136.97 444 P-0.59 (Because others may wish to write software compatible with this program, this note presents) 108 420 P-0.04 (the layout of the encrypted \336les produced by ) 72 400 P3 F-0.04 (bdes) 288.86 400 P0 F-0.04 ( as well as internal details relevant to the imple-) 310.85 400 P-0.15 (mentation. Whereever possible and appropriate, the description of the ) 72 380 P3 F-0.15 (des) 408.04 380 P0 F-0.15 (\0501\051 program given in [4]) 424.03 380 P-0.2 (has been followed; thus, ) 72 360 P3 F-0.2 (bdes) 190.77 360 P0 F-0.2 ( is completely compatible with that program. However) 212.75 360 P-0.2 (, ) 473.33 360 P3 F-0.2 (bdes) 479.12 360 P0 F-0.2 ( also of-) 501.11 360 P(fers several extensions to ) 72 340 T3 F(des) 195.9 340 T0 F( that are not compatible, and these will be explicitly pointed out.) 211.89 340 T-0.14 (In this note, strings typed as shown will be in ) 108 316 P6 F-0.34 (Courier Roman font) 326.78 316 P0 F-0.14 (, and strings to be) 455.62 316 P-0.42 (chosen by the user will be in ) 72 296 P7 F-1 (Courier Oblique font) 209.32 296 P0 F-0.42 (. The space character \050) 351.24 296 P5 F-0.35 (ASCII) 457.79 296 P0 F-0.42 ( <) 483.88 296 P5 F-0.35 (SP) 493.23 296 P0 F-0.42 (>, octal) 504.34 296 P-0.43 (40, decimal 32, hex 20\051 will be represented as \322) 72 276 P8 F-0.47 (z) 296.98 276 P0 F-0.43 (\323 and the newline character \050) 301.96 276 P5 F-0.35 (ASCII) 438.03 276 P0 F-0.43 ( <) 464.13 276 P5 F-0.35 (NL) 473.46 276 P0 F-0.43 (>, octal 12,) 486.79 276 P-0.05 (decimal 10, hex a\051 as \322) 72 256 P9 F-0.05 (\277) 181.65 256 P0 F-0.05 (\323. Because it is often more convenient to represent arbitrary characters as) 189.54 256 P1.13 (a sequence of hexadecimal digits, that representation will often be used; these digits will be in) 72 236 P10 F(Courier Bold font) 72 216 T0 F( with spaces often inserted for readability) 194.33 216 T(.) 392.07 216 T4 F(2. Overview and Use) 72 184 T3 F-0.39 (Bdes) 108 160 P0 F-0.39 ( implements the Data Encryption Standard algorithm in software, and enables the user) 131.32 160 P-0.61 (to encrypt data using any of the four modes of operation of the DES \050Electronic Code Book, Cipher) 72 140 P72 72 540 720 C72 72 540 117 C72 72 549 108 R7 X0 KV5 F0 X(This work is based on work funded by grant NAG2-680 from the NationalAeronautics and Space Administration to ) 72 101.33 T(Dartmouth College.) 72 89.33 T(UNIX is a Registered T) 72 77.33 T(rademark of A) 166.58 77.33 T(T&T Bell Laboratories.) 223.75 77.33 T72 72 540 720 C0 0 612 792 C72 126 225 126 2 L7 X0 KV0.5 H2 Z0 XNFMENDPAGE%%EndPage: "1" 4%%Page: "2" 4612 792 0 FMBEGINPAGE72 745.99 540 756 R7 X0 K

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -