DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: c

⟦15a6a6a94⟧

    Length: 2954 (0xb8a)
    Names: »crypt.3«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat3/crypt.3« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74   ┆ u_ a_ l           Library Funct┆
0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 72 79 70 74 28 33 29 0a 0a 0a 0a   ┆ions                crypt(3)    ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x080…0a0 20 20 63 72 79 70 74 2c 20 73 65 74 6b 65 79 2c 20 65 6e 63 72 79 70 74 20 2d 20 44 45 53 20 65   ┆  crypt, setkey, encrypt - DES e┆
0x0a0…0c0 6e 63 72 79 70 74 69 6f 6e 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e   ┆ncryption  S S S SY Y Y YN N N N┆
0x0c0…0e0 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 63 08 63 08 63   ┆T T T TA A A AX X X X      c c c┆
0x0e0…100 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 63   ┆ ch h h ha a a ar r r r * * * *c┆
0x100…120 08 63 08 63 08 63 72 08 72 08 72 08 72 79 08 79 08 79 08 79 70 08 70 08 70 08 70 74 08 74 08 74   ┆ c c cr r r ry y y yp p p pt t t┆
0x120…140 08 74 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 2c 08   ┆ t( ( ( (k k k ke e e ey y y y, ┆
0x140…160 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 61 08 61 08 61 08 61 6c 08 6c 08 6c 08 6c 74 08 74 08 74   ┆, , , s s s sa a a al l l lt t t┆
0x160…180 08 74 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61   ┆ t) ) ) )      c c c ch h h ha a┆
0x180…1a0 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08   ┆ a ar r r r * * * *k k k ke e e ┆
0x1a0…1c0 65 79 08 79 08 79 08 79 2c 08 2c 08 2c 08 2c 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 61 08   ┆ey y y y, , , , * * * *s s s sa ┆
0x1c0…1e0 61 08 61 08 61 6c 08 6c 08 6c 08 6c 74 08 74 08 74 08 74 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20   ┆a a al l l lt t t t; ; ; ;      ┆
0x1e0…200 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 6b 08 6b 08 6b 08 6b 65 08 65   ┆ s s s se e e et t t tk k k ke e┆
0x200…220 08 65 08 65 79 08 79 08 79 08 79 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65   ┆ e ey y y y( ( ( (k k k ke e e e┆
0x220…240 79 08 79 08 79 08 79 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68   ┆y y y y) ) ) )      c c c ch h h┆
0x240…260 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 6b 08 6b 08 6b 08 6b 65   ┆ ha a a ar r r r * * * *k k k ke┆
0x260…280 08 65 08 65 08 65 79 08 79 08 79 08 79 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 65 08 65 08 65   ┆ e e ey y y y; ; ; ;       e e e┆
0x280…2a0 08 65 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 72 08 72 08 72 08 72 79 08 79 08 79 08 79 70 08   ┆ en n n nc c c cr r r ry y y yp ┆
0x2a0…2c0 70 08 70 08 70 74 08 74 08 74 08 74 28 08 28 08 28 08 28 62 08 62 08 62 08 62 6c 08 6c 08 6c 08   ┆p p pt t t t( ( ( (b b b bl l l ┆
0x2c0…2e0 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 2c 08 2c 08 2c 08 2c 20 65 08   ┆lo o o oc c c ck k k k, , , , e ┆
0x2e0…300 65 08 65 08 65 64 08 64 08 64 08 64 66 08 66 08 66 08 66 6c 08 6c 08 6c 08 6c 61 08 61 08 61 08   ┆e e ed d d df f f fl l l la a a ┆
0x300…320 61 67 08 67 08 67 08 67 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08   ┆ag g g g) ) ) )      c c c ch h ┆
0x320…340 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 2a 08 2a 08 2a 08 2a 62 08 62 08 62 08 62   ┆h ha a a ar r r r * * * *b b b b┆
0x340…360 6c 08 6c 08 6c 08 6c 6f 08 6f 08 6f 08 6f 63 08 63 08 63 08 63 6b 08 6b 08 6b 08 6b 3b 08 3b 08   ┆l l l lo o o oc c c ck k k k; ; ┆
0x360…380 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08   ┆; ;  D D D DE E E ES S S SC C C ┆
0x380…3a0 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49   ┆CR R R RI I I IP P P PT T T TI I┆
0x3a0…3c0 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 63 5f 08 72 5f 08   ┆ I IO O O ON N N N      _ c_ r_ ┆
0x3c0…3e0 79 5f 08 70 5f 08 74 20 69 73 20 74 68 65 20 70 61 73 73 77 6f 72 64 20 65 6e 63 72 79 70 74 69   ┆y_ p_ t is the password encrypti┆
0x3e0…400 6f 6e 20 72 6f 75 74 69 6e 65 2e 20 20 49 74 20 69 73 20 62 61 73 65 64 20 6f 6e 0a 20 20 20 20   ┆on routine.  It is based on     ┆
0x400…420 20 74 68 65 20 4e 42 53 20 44 61 74 61 20 45 6e 63 72 79 70 74 69 6f 6e 20 53 74 61 6e 64 61 72   ┆ the NBS Data Encryption Standar┆
0x420…440 64 2c 20 77 69 74 68 20 76 61 72 69 61 74 69 6f 6e 73 20 69 6e 74 65 6e 64 65 64 0a 20 20 20 20   ┆d, with variations intended     ┆
0x440…460 20 28 61 6d 6f 6e 67 20 6f 74 68 65 72 20 74 68 69 6e 67 73 29 20 74 6f 20 66 72 75 73 74 72 61   ┆ (among other things) to frustra┆
0x460…480 74 65 20 75 73 65 20 6f 66 20 68 61 72 64 77 61 72 65 20 69 6d 70 6c 65 6d 65 6e 2d 0a 20 20 20   ┆te use of hardware implemen-    ┆
0x480…4a0 20 20 74 61 74 69 6f 6e 73 20 6f 66 20 74 68 65 20 44 45 53 20 66 6f 72 20 6b 65 79 20 73 65 61   ┆  tations of the DES for key sea┆
0x4a0…4c0 72 63 68 2e 0a 0a 20 20 20 20 20 54 68 65 20 66 69 72 73 74 20 61 72 67 75 6d 65 6e 74 20 74 6f   ┆rch.       The first argument to┆
0x4c0…4e0 20 5f 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 20 69 73 20 6e 6f 72 6d 61 6c 6c 79 20 61 20 75   ┆ _ c_ r_ y_ p_ t is normally a u┆
0x4e0…500 73 65 72 27 73 20 74 79 70 65 64 20 70 61 73 73 2d 0a 20 20 20 20 20 77 6f 72 64 2e 20 20 54 68   ┆ser's typed pass-      word.  Th┆
0x500…520 65 20 73 65 63 6f 6e 64 20 69 73 20 61 20 32 2d 63 68 61 72 61 63 74 65 72 20 73 74 72 69 6e 67   ┆e second is a 2-character string┆
0x520…540 20 63 68 6f 73 65 6e 20 66 72 6f 6d 20 74 68 65 0a 20 20 20 20 20 73 65 74 20 5b 61 2d 7a 41 2d   ┆ chosen from the      set [a-zA-┆
0x540…560 5a 30 2d 39 2e 2f 5d 2e 20 20 54 68 65 20 5f 08 73 5f 08 61 5f 08 6c 5f 08 74 20 73 74 72 69 6e   ┆Z0-9./].  The _ s_ a_ l_ t strin┆
0x560…580 67 20 69 73 20 75 73 65 64 20 74 6f 20 70 65 72 74 75 72 62 20 74 68 65 0a 20 20 20 20 20 44 45   ┆g is used to perturb the      DE┆
0x580…5a0 53 20 61 6c 67 6f 72 69 74 68 6d 20 69 6e 20 6f 6e 65 20 6f 66 20 34 30 39 36 20 64 69 66 66 65   ┆S algorithm in one of 4096 diffe┆
0x5a0…5c0 72 65 6e 74 20 77 61 79 73 2c 20 61 66 74 65 72 20 77 68 69 63 68 20 74 68 65 0a 20 20 20 20 20   ┆rent ways, after which the      ┆
0x5c0…5e0 70 61 73 73 77 6f 72 64 20 69 73 20 75 73 65 64 20 61 73 20 74 68 65 20 6b 65 79 20 74 6f 20 65   ┆password is used as the key to e┆
0x5e0…600 6e 63 72 79 70 74 20 72 65 70 65 61 74 65 64 6c 79 20 61 20 63 6f 6e 73 74 61 6e 74 0a 20 20 20   ┆ncrypt repeatedly a constant    ┆
0x600…620 20 20 73 74 72 69 6e 67 2e 20 20 54 68 65 20 72 65 74 75 72 6e 65 64 20 76 61 6c 75 65 20 70 6f   ┆  string.  The returned value po┆
0x620…640 69 6e 74 73 20 74 6f 20 74 68 65 20 65 6e 63 72 79 70 74 65 64 20 70 61 73 73 2d 0a 20 20 20 20   ┆ints to the encrypted pass-     ┆
0x640…660 20 77 6f 72 64 2c 20 69 6e 20 74 68 65 20 73 61 6d 65 20 61 6c 70 68 61 62 65 74 20 61 73 20 74   ┆ word, in the same alphabet as t┆
0x660…680 68 65 20 73 61 6c 74 2e 20 20 54 68 65 20 66 69 72 73 74 20 74 77 6f 20 63 68 61 72 2d 0a 20 20   ┆he salt.  The first two char-   ┆
0x680…6a0 20 20 20 61 63 74 65 72 73 20 61 72 65 20 74 68 65 20 73 61 6c 74 20 69 74 73 65 6c 66 2e 0a 0a   ┆   acters are the salt itself.  ┆
0x6a0…6c0 20 20 20 20 20 54 68 65 20 6f 74 68 65 72 20 65 6e 74 72 69 65 73 20 70 72 6f 76 69 64 65 20 28   ┆     The other entries provide (┆
0x6c0…6e0 72 61 74 68 65 72 20 70 72 69 6d 69 74 69 76 65 29 20 61 63 63 65 73 73 20 74 6f 20 74 68 65 0a   ┆rather primitive) access to the ┆
0x6e0…700 20 20 20 20 20 61 63 74 75 61 6c 20 44 45 53 20 61 6c 67 6f 72 69 74 68 6d 2e 20 20 54 68 65 20   ┆     actual DES algorithm.  The ┆
0x700…720 61 72 67 75 6d 65 6e 74 20 6f 66 20 5f 08 73 5f 08 65 5f 08 74 5f 08 6b 5f 08 65 5f 08 79 20 69   ┆argument of _ s_ e_ t_ k_ e_ y i┆
0x720…740 73 20 61 20 63 68 61 72 61 63 74 65 72 0a 20 20 20 20 20 61 72 72 61 79 20 6f 66 20 6c 65 6e 67   ┆s a character      array of leng┆
0x740…760 74 68 20 36 34 20 63 6f 6e 74 61 69 6e 69 6e 67 20 6f 6e 6c 79 20 74 68 65 20 63 68 61 72 61 63   ┆th 64 containing only the charac┆
0x760…780 74 65 72 73 20 77 69 74 68 0a 20 20 20 20 20 6e 75 6d 65 72 69 63 61 6c 20 76 61 6c 75 65 20 30   ┆ters with      numerical value 0┆
0x780…7a0 20 61 6e 64 20 31 2e 20 20 49 66 20 74 68 69 73 20 73 74 72 69 6e 67 20 69 73 20 64 69 76 69 64   ┆ and 1.  If this string is divid┆
0x7a0…7c0 65 64 20 69 6e 74 6f 0a 20 20 20 20 20 67 72 6f 75 70 73 20 6f 66 20 38 2c 20 74 68 65 20 6c 6f   ┆ed into      groups of 8, the lo┆
0x7c0…7e0 77 2d 6f 72 64 65 72 20 62 69 74 20 69 6e 20 65 61 63 68 20 67 72 6f 75 70 20 69 73 20 69 67 6e   ┆w-order bit in each group is ign┆
0x7e0…800 6f 72 65 64 2c 0a 20 20 20 20 20 6c 65 61 64 69 6e 67 20 74 6f 20 61 20 35 36 2d 62 69 74 20 6b   ┆ored,      leading to a 56-bit k┆
0x800…820 65 79 20 77 68 69 63 68 20 69 73 20 73 65 74 20 69 6e 74 6f 20 74 68 65 20 6d 61 63 68 69 6e 65   ┆ey which is set into the machine┆
0x820…840 2e 0a 0a 20 20 20 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 74 6f 20 74 68 65 20 5f 08 65 5f   ┆.       The argument to the _ e_┆
0x840…860 08 6e 5f 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 20 65 6e 74 72 79 20 69 73 20 6c 69 6b 65 77   ┆ n_ c_ r_ y_ p_ t entry is likew┆
0x860…880 69 73 65 20 61 20 63 68 61 72 61 63 74 65 72 0a 20 20 20 20 20 61 72 72 61 79 20 6f 66 20 6c 65   ┆ise a character      array of le┆
0x880…8a0 6e 67 74 68 20 36 34 20 63 6f 6e 74 61 69 6e 69 6e 67 20 30 27 73 20 61 6e 64 20 31 27 73 2e 20   ┆ngth 64 containing 0's and 1's. ┆
0x8a0…8c0 20 54 68 65 20 61 72 67 75 6d 65 6e 74 0a 20 20 20 20 20 61 72 72 61 79 20 69 73 20 6d 6f 64 69   ┆ The argument      array is modi┆
0x8c0…8e0 66 69 65 64 20 69 6e 20 70 6c 61 63 65 20 74 6f 20 61 20 73 69 6d 69 6c 61 72 20 61 72 72 61 79   ┆fied in place to a similar array┆
0x8e0…900 20 72 65 70 72 65 73 65 6e 74 69 6e 67 0a 20 20 20 20 20 74 68 65 20 62 69 74 73 20 6f 66 20 74   ┆ representing      the bits of t┆
0x900…920 68 65 20 61 72 67 75 6d 65 6e 74 20 61 66 74 65 72 20 68 61 76 69 6e 67 20 62 65 65 6e 20 73 75   ┆he argument after having been su┆
0x920…940 62 6a 65 63 74 65 64 20 74 6f 20 74 68 65 0a 20 20 20 20 20 44 45 53 20 61 6c 67 6f 72 69 74 68   ┆bjected to the      DES algorith┆
0x940…960 6d 20 75 73 69 6e 67 20 74 68 65 20 6b 65 79 20 73 65 74 20 62 79 20 5f 08 73 5f 08 65 5f 08 74   ┆m using the key set by _ s_ e_ t┆
0x960…980 5f 08 6b 5f 08 65 5f 08 79 2e 20 49 66 20 5f 08 65 5f 08 64 5f 08 66 5f 08 6c 5f 08 61 5f 08 67   ┆_ k_ e_ y. If _ e_ d_ f_ l_ a_ g┆
0x980…9a0 20 69 73 20 30 2c 0a 20 20 20 20 20 74 68 65 20 61 72 67 75 6d 65 6e 74 20 69 73 20 65 6e 63 72   ┆ is 0,      the argument is encr┆
0x9a0…9c0 79 70 74 65 64 3b 20 69 66 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 69 74 20 69 73 20 64 65 63 72 79 70   ┆ypted; if non-zero, it is decryp┆
0x9c0…9e0 74 65 64 2e 0a 0a 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08   ┆ted.  S S S SE E E EE E E E A A ┆
0x9e0…a00 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 55 73   ┆A AL L L LS S S SO O O O      Us┆
0xa00…a20 65 72 20 43 6f 6d 6d 61 6e 64 73 20 28 31 29 3a 20 20 63 72 79 70 74 2c 20 70 61 73 73 77 64 2c   ┆er Commands (1):  crypt, passwd,┆
0xa20…a40 20 6c 6f 67 69 6e 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33   ┆ login      Library Functions (3┆
0xa40…a60 29 3a 20 20 67 65 74 70 61 73 73 0a 20 20 20 20 20 46 69 6c 65 20 46 6f 72 6d 61 74 73 20 28 35   ┆):  getpass      File Formats (5┆
0xa60…a80 29 3a 20 20 70 61 73 73 77 64 0a 20 20 20 20 20 53 79 73 74 65 6d 20 4d 61 6e 61 67 65 72 20 43   ┆):  passwd      System Manager C┆
0xa80…aa0 6f 6d 6d 61 6e 64 73 20 28 38 29 3a 20 20 6d 61 6b 65 6b 65 79 0a 0a 4c 08 4c 08 4c 08 4c 49 08   ┆ommands (8):  makekey  L L L LI ┆
0xaa0…ac0 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54 08 54 41 08 41 08 41 08   ┆I I IM M M MI I I IT T T TA A A ┆
0xac0…ae0 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 53 08 53   ┆AT T T TI I I IO O O ON N N NS S┆
0xae0…b00 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 70 6f 69 6e 74   ┆ S S      The return value point┆
0xb00…b20 73 20 74 6f 20 73 74 61 74 69 63 20 64 61 74 61 20 77 68 6f 73 65 20 63 6f 6e 74 65 6e 74 20 69   ┆s to static data whose content i┆
0xb20…b40 73 0a 20 20 20 20 20 6f 76 65 72 77 72 69 74 74 65 6e 20 62 79 20 65 61 63 68 20 63 61 6c 6c 2e   ┆s      overwritten by each call.┆
0xb40…b60 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆  March 1989                    ┆
0xb60…b80 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65   ┆          TX Programmer's Refere┆
0xb80…b8a 6e 63 65 0a 0a 0a 0a 0a 0a 0a                                                                     ┆nce       ┆