|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: c
Length: 3199 (0xc7f)
Names: »crypt.3«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat3/crypt.3«
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 73 74 72 69 6e ┆ crypt, setkey, encrypt - strin┆ 0x0a0…0c0 67 20 65 6e 63 6f 64 69 6e 67 20 66 75 6e 63 74 69 6f 6e 73 0a 0a 53 08 53 08 53 08 53 59 08 59 ┆g encoding functions S S S SY Y┆ 0x0c0…0e0 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 ┆ Y YN N N NT T T TA A A AX X X X┆ 0x0e0…100 0a 20 20 20 20 20 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 ┆ c c c ch h h ha a a ar r r┆ 0x100…120 08 72 20 2a 08 2a 08 2a 08 2a 63 08 63 08 63 08 63 72 08 72 08 72 08 72 79 08 79 08 79 08 79 70 ┆ r * * * *c c c cr r r ry y y yp┆ 0x120…140 08 70 08 70 08 70 74 08 74 08 74 08 74 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 6b 65 08 65 08 65 ┆ p p pt t t t( ( ( (k k k ke e e┆ 0x140…160 08 65 79 08 79 08 79 08 79 2c 08 2c 08 2c 08 2c 20 73 08 73 08 73 08 73 61 08 61 08 61 08 61 6c ┆ ey y y y, , , , s s s sa a a al┆ 0x160…180 08 6c 08 6c 08 6c 74 08 74 08 74 08 74 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 63 08 ┆ l l lt t t t) ) ) ) c c c ┆ 0x180…1a0 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 6b 08 ┆ch h h ha a a ar r r r * * * *k ┆ 0x1a0…1c0 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 2c 08 2c 08 2c 08 2c 20 2a 08 2a 08 2a ┆k k ke e e ey y y y, , , , * * *┆ 0x1c0…1e0 08 2a 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 08 74 3b 08 ┆ *s s s sa a a al l l lt t t t; ┆ 0x1e0…200 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 ┆; ; ; v v v vo o o oi i i ┆ 0x200…220 69 64 08 64 08 64 08 64 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 6b 08 ┆id d d d s s s se e e et t t tk ┆ 0x220…240 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 28 08 28 08 28 08 28 6b 08 6b 08 6b 08 ┆k k ke e e ey y y y( ( ( (k k k ┆ 0x240…260 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 29 08 29 08 29 08 29 0a 20 20 20 20 20 63 08 63 08 ┆ke e e ey y y y) ) ) ) c c ┆ 0x260…280 63 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 ┆c ch h h ha a a ar r r r * * * *┆ 0x280…2a0 6b 08 6b 08 6b 08 6b 65 08 65 08 65 08 65 79 08 79 08 79 08 79 3b 08 3b 08 3b 08 3b 0a 0a 20 20 ┆k k k ke e e ey y y y; ; ; ; ┆ 0x2a0…2c0 20 20 20 76 08 76 08 76 08 76 6f 08 6f 08 6f 08 6f 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 ┆ v v v vo o o oi i i id d d d ┆ 0x2c0…2e0 65 08 65 08 65 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 ┆e e e en n n nc c c cr r r ry y ┆ 0x2e0…300 79 08 79 70 08 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 ┆y yp p p pt t t t( ( ( (b b b bl┆ 0x300…320 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 2c 08 2c 08 2c ┆ l l lo o o oc c c ck k k k, , ,┆ 0x320…340 08 2c 20 65 08 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 ┆ , e e e ed d d df f f fl l l la┆ 0x340…360 08 61 08 61 08 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 ┆ a a ag g g g) ) ) ) c c c ┆ 0x360…380 63 68 08 68 08 68 08 68 61 08 61 08 61 08 61 72 08 72 08 72 08 72 20 62 08 62 08 62 08 62 6c 08 ┆ch h h ha a a ar r r r b b b bl ┆ 0x380…3a0 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 5b 08 5b 08 5b 08 ┆l l lo o o oc c c ck k k k[ [ [ ┆ 0x3a0…3c0 5b 36 08 36 08 36 08 36 34 08 34 08 34 08 34 5d 08 5d 08 5d 08 5d 3b 08 3b 08 3b 08 3b 0a 20 20 ┆[6 6 6 64 4 4 4] ] ] ]; ; ; ; ┆ 0x3c0…3e0 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 65 08 65 08 65 08 65 ┆ i i i in n n nt t t t e e e e┆ 0x3e0…400 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 61 67 08 67 08 ┆d d d df f f fl l l la a a ag g ┆ 0x400…420 67 08 67 3b 08 3b 08 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 ┆g g; ; ; ; D D D DE E E ES S S ┆ 0x420…440 53 43 08 43 08 43 08 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 ┆SC C C CR R R RI I I IP P P PT T┆ 0x440…460 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 0a 20 20 20 20 20 5f ┆ T TI I I IO O O ON N N N _┆ 0x460…480 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 20 69 73 20 61 20 73 74 72 69 6e 67 20 65 6e 63 6f 64 ┆ c_ r_ y_ p_ t is a string encod┆ 0x480…4a0 69 6e 67 20 72 6f 75 74 69 6e 65 2e 20 20 54 68 65 20 5f 08 6b 5f 08 65 5f 08 79 20 61 72 67 75 ┆ing routine. The _ k_ e_ y argu┆ 0x4a0…4c0 6d 65 6e 74 20 74 6f 0a 20 20 20 20 20 5f 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 20 70 6f 69 ┆ment to _ c_ r_ y_ p_ t poi┆ 0x4c0…4e0 6e 74 73 20 74 6f 20 61 20 73 74 72 69 6e 67 20 74 6f 20 62 65 20 65 6e 63 6f 64 65 64 2e 20 20 ┆nts to a string to be encoded. ┆ 0x4e0…500 54 68 65 20 5f 08 73 5f 08 61 5f 08 6c 5f 08 74 20 61 72 67 75 6d 65 6e 74 0a 20 20 20 20 20 69 ┆The _ s_ a_ l_ t argument i┆ 0x500…520 73 20 61 20 73 74 72 69 6e 67 20 63 68 6f 73 65 6e 20 66 72 6f 6d 20 74 68 65 20 73 65 74 20 5b ┆s a string chosen from the set [┆ 0x520…540 61 2d 7a 41 2d 5a 30 2d 39 2e 2f 5d 3b 20 74 68 65 20 66 69 72 73 74 20 74 77 6f 0a 20 20 20 20 ┆a-zA-Z0-9./]; the first two ┆ 0x540…560 20 63 68 61 72 61 63 74 65 72 73 20 6f 66 20 74 68 69 73 20 73 74 72 69 6e 67 20 69 73 20 75 73 ┆ characters of this string is us┆ 0x560…580 65 64 20 74 6f 20 70 65 72 74 75 72 62 20 74 68 65 20 65 6e 63 6f 64 69 6e 67 0a 20 20 20 20 20 ┆ed to perturb the encoding ┆ 0x580…5a0 61 6c 67 6f 72 69 74 68 6d 2e 20 20 54 68 65 20 72 65 74 75 72 6e 65 64 20 76 61 6c 75 65 20 70 ┆algorithm. The returned value p┆ 0x5a0…5c0 6f 69 6e 74 73 20 74 6f 20 74 68 65 20 65 6e 63 6f 64 65 64 20 73 74 72 69 6e 67 2c 0a 20 20 20 ┆oints to the encoded string, ┆ 0x5c0…5e0 20 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 68 65 20 5f 08 ┆ in the same alphabet as the _ ┆ 0x5e0…600 73 5f 08 61 5f 08 6c 5f 08 74 2e 20 20 54 68 65 20 66 69 72 73 74 20 74 77 6f 20 63 68 61 72 61 ┆s_ a_ l_ t. The first two chara┆ 0x600…620 63 74 65 72 73 0a 20 20 20 20 20 61 72 65 20 74 68 65 20 5f 08 73 5f 08 61 5f 08 6c 5f 08 74 20 ┆cters are the _ s_ a_ l_ t ┆ 0x620…640 69 74 73 65 6c 66 2e 0a 0a 20 20 20 20 20 54 68 65 20 6f 74 68 65 72 20 65 6e 74 72 69 65 73 20 ┆itself. The other entries ┆ 0x640…660 70 72 6f 76 69 64 65 20 28 72 61 74 68 65 72 20 70 72 69 6d 69 74 69 76 65 29 20 61 63 63 65 73 ┆provide (rather primitive) acces┆ 0x660…680 73 20 74 6f 20 74 68 65 0a 20 20 20 20 20 61 63 74 75 61 6c 20 65 6e 63 6f 64 69 6e 67 20 61 6c ┆s to the actual encoding al┆ 0x680…6a0 67 6f 72 69 74 68 6d 2e 20 20 54 68 65 20 61 72 67 75 6d 65 6e 74 20 6f 66 20 5f 08 73 5f 08 65 ┆gorithm. The argument of _ s_ e┆ 0x6a0…6c0 5f 08 74 5f 08 6b 5f 08 65 5f 08 79 20 69 73 20 61 0a 20 20 20 20 20 63 68 61 72 61 63 74 65 72 ┆_ t_ k_ e_ y is a character┆ 0x6c0…6e0 20 61 72 72 61 79 20 6f 66 20 6c 65 6e 67 74 68 20 36 34 20 63 6f 6e 74 61 69 6e 69 6e 67 20 6f ┆ array of length 64 containing o┆ 0x6e0…700 6e 6c 79 20 74 68 65 20 63 68 61 72 61 63 74 65 72 73 0a 20 20 20 20 20 77 69 74 68 20 6e 75 6d ┆nly the characters with num┆ 0x700…720 65 72 69 63 61 6c 20 76 61 6c 75 65 20 30 20 61 6e 64 20 31 2e 20 20 49 66 20 74 68 69 73 20 73 ┆erical value 0 and 1. If this s┆ 0x720…740 74 72 69 6e 67 20 69 73 20 64 69 76 69 64 65 64 0a 20 20 20 20 20 69 6e 74 6f 20 67 72 6f 75 70 ┆tring is divided into group┆ 0x740…760 73 20 6f 66 20 38 2c 20 74 68 65 20 6c 6f 77 2d 6f 72 64 65 72 20 62 69 74 20 69 6e 20 65 61 63 ┆s of 8, the low-order bit in eac┆ 0x760…780 68 20 67 72 6f 75 70 20 69 73 0a 20 20 20 20 20 69 67 6e 6f 72 65 64 2c 20 6c 65 61 64 69 6e 67 ┆h group is ignored, leading┆ 0x780…7a0 20 74 6f 20 61 20 35 36 2d 62 69 74 20 6b 65 79 20 77 68 69 63 68 20 69 73 20 75 73 65 64 20 62 ┆ to a 56-bit key which is used b┆ 0x7a0…7c0 79 20 74 68 65 20 61 6c 67 6f 2d 0a 20 20 20 20 20 72 69 74 68 6d 2e 20 20 54 68 69 73 20 69 73 ┆y the algo- rithm. This is┆ 0x7c0…7e0 20 74 68 65 20 6b 65 79 20 74 68 61 74 20 77 69 6c 6c 20 62 65 20 75 73 65 64 20 77 69 74 68 20 ┆ the key that will be used with ┆ 0x7e0…800 74 68 65 20 61 6c 67 6f 72 69 74 68 6d 0a 20 20 20 20 20 74 6f 20 65 6e 63 6f 64 65 20 74 68 65 ┆the algorithm to encode the┆ 0x800…820 20 73 74 72 69 6e 67 20 5f 08 62 5f 08 6c 5f 08 6f 5f 08 63 5f 08 6b 20 77 69 74 68 20 74 68 65 ┆ string _ b_ l_ o_ c_ k with the┆ 0x820…840 20 66 75 6e 63 74 69 6f 6e 20 5f 08 65 5f 08 6e 5f 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 28 ┆ function _ e_ n_ c_ r_ y_ p_ t(┆ 0x840…860 29 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 ┆). The argument to the _ e┆ 0x860…880 5f 08 6e 5f 08 63 5f 08 72 5f 08 79 5f 08 70 5f 08 74 20 66 75 6e 63 74 69 6f 6e 20 69 73 20 6c ┆_ n_ c_ r_ y_ p_ t function is l┆ 0x880…8a0 69 6b 65 77 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 ┆ikewise a character array o┆ 0x8a0…8c0 66 20 6c 65 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 ┆f length 64 containing 0's and 1┆ 0x8c0…8e0 27 73 2e 20 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 ┆'s. The argument array is ┆ 0x8e0…900 6d 6f 64 69 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 ┆modified in place to a similar a┆ 0x900…920 72 72 61 79 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 ┆rray representing the bits ┆ 0x920…940 6f 66 20 74 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 ┆of the argument after having bee┆ 0x940…960 6e 20 73 75 62 6a 65 63 74 65 64 20 74 6f 20 74 68 65 0a 20 20 20 20 20 65 6e 63 6f 64 69 6e 67 ┆n subjected to the encoding┆ 0x960…980 20 61 6c 67 6f 72 69 74 68 6d 20 75 73 69 6e 67 20 74 68 65 20 6b 65 79 20 73 65 74 20 62 79 20 ┆ algorithm using the key set by ┆ 0x980…9a0 5f 08 73 5f 08 65 5f 08 74 5f 08 6b 5f 08 65 5f 08 79 2e 20 20 49 66 20 5f 08 65 5f 08 64 5f 08 ┆_ s_ e_ t_ k_ e_ y. If _ e_ d_ ┆ 0x9a0…9c0 66 5f 08 6c 5f 08 61 5f 08 67 0a 20 20 20 20 20 69 73 20 30 2c 20 74 68 65 20 61 72 67 75 6d 65 ┆f_ l_ a_ g is 0, the argume┆ 0x9c0…9e0 6e 74 20 69 73 20 65 6e 63 6f 64 65 64 3b 20 69 66 20 6e 6f 6e 2d 7a 65 72 6f 2c 20 69 74 20 69 ┆nt is encoded; if non-zero, it i┆ 0x9e0…a00 73 20 64 65 63 6f 64 65 64 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 ┆s decoded. E E E ER R R RR R R ┆ 0xa00…a20 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 4e 6f 20 65 ┆RO O O OR R R RS S S S No e┆ 0xa20…a40 72 72 6f 72 73 20 61 72 65 20 64 65 66 69 6e 65 64 2e 0a 0a 41 08 41 08 41 08 41 50 08 50 08 50 ┆rrors are defined. A A A AP P P┆ 0xa40…a60 08 50 50 08 50 08 50 08 50 4c 08 4c 08 4c 08 4c 49 08 49 08 49 08 49 43 08 43 08 43 08 43 41 08 ┆ PP P P PL L L LI I I IC C C CA ┆ 0xa60…a80 41 08 41 08 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 ┆A A AT T T TI I I IO O O ON N N ┆ 0xa80…aa0 4e 20 55 08 55 08 55 08 55 53 08 53 08 53 08 53 41 08 41 08 41 08 41 47 08 47 08 47 08 47 45 08 ┆N U U U US S S SA A A AG G G GE ┆ 0xaa0…ac0 45 08 45 08 45 0a 20 20 20 20 20 54 68 65 73 65 20 66 75 6e 63 74 69 6f 6e 73 2c 20 61 6c 74 68 ┆E E E These functions, alth┆ 0xac0…ae0 6f 75 67 68 20 6d 65 6e 74 69 6f 6e 65 64 20 69 6e 20 74 68 65 20 5f 08 58 2f 5f 08 4f 5f 08 70 ┆ough mentioned in the _ X/_ O_ p┆ 0xae0…b00 5f 08 65 5f 08 6e 20 5f 08 50 5f 08 6f 5f 08 72 5f 08 74 5f 08 61 5f 08 62 5f 08 69 5f 08 6c 5f ┆_ e_ n _ P_ o_ r_ t_ a_ b_ i_ l_┆ 0xb00…b20 08 2d 0a 20 20 20 20 20 5f 08 69 5f 08 74 5f 08 79 20 5f 08 47 5f 08 75 5f 08 69 5f 08 64 5f 08 ┆ - _ i_ t_ y _ G_ u_ i_ d_ ┆ 0xb20…b40 65 2c 20 5f 08 49 5f 08 73 5f 08 73 5f 08 75 5f 08 65 20 5f 08 33 2c 20 72 65 74 75 72 6e 20 76 ┆e, _ I_ s_ s_ u_ e _ 3, return v┆ 0xb40…b60 61 6c 75 65 73 20 74 68 61 74 20 61 72 65 20 6e 6f 74 20 67 75 61 72 61 6e 74 65 65 64 20 74 6f ┆alues that are not guaranteed to┆ 0xb60…b80 0a 20 20 20 20 20 62 65 20 70 6f 72 74 61 62 6c 65 20 61 63 72 6f 73 73 20 58 2f 4f 70 65 6e 20 ┆ be portable across X/Open ┆ 0xb80…ba0 63 6f 6d 70 6c 69 61 6e 74 20 73 79 73 74 65 6d 73 20 73 69 6e 63 65 20 74 68 65 20 61 63 74 75 ┆compliant systems since the actu┆ 0xba0…bc0 61 6c 0a 20 20 20 20 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 6f 66 20 74 68 65 20 66 75 ┆al implementation of the fu┆ 0xbc0…be0 6e 63 74 69 6f 6e 73 20 69 73 20 6e 6f 74 20 64 65 66 69 6e 65 64 2e 0a 0a 20 20 20 20 20 54 68 ┆nctions is not defined. Th┆ 0xbe0…c00 65 20 72 65 74 75 72 6e 20 76 61 6c 75 65 20 70 6f 69 6e 74 73 20 74 6f 20 73 74 61 74 69 63 20 ┆e return value points to static ┆ 0xc00…c20 64 61 74 61 20 77 68 6f 73 65 20 63 6f 6e 74 65 6e 74 20 69 73 0a 20 20 20 20 20 6f 76 65 72 77 ┆data whose content is overw┆ 0xc20…c40 72 69 74 74 65 6e 20 62 79 20 65 61 63 68 20 63 61 6c 6c 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 ┆ritten by each call. December 1┆ 0xc40…c60 39 39 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 ┆990 TX┆ 0xc60…c7f 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a ┆ Programmer's Reference ┆