diff options
| author | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 1998-10-19 21:47:12 +0000 |
| commit | 5170039cf1df2194faa85741f0733977525cd5c0 (patch) | |
| tree | c667406046ddb1efca5ed4316b02e43494241660 /src/lib/libcrypto/des/PC1 | |
| parent | 536c76cbb863bab152f19842ab88772c01e922c7 (diff) | |
| download | openbsd-OPENBSD_2_4_BASE.tar.gz openbsd-OPENBSD_2_4_BASE.tar.bz2 openbsd-OPENBSD_2_4_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_2_4_BASE'.OPENBSD_2_4_BASE
Diffstat (limited to 'src/lib/libcrypto/des/PC1')
| -rw-r--r-- | src/lib/libcrypto/des/PC1 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/PC1 b/src/lib/libcrypto/des/PC1 new file mode 100644 index 0000000000..efb8348b72 --- /dev/null +++ b/src/lib/libcrypto/des/PC1 | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #!/usr/local/bin/perl | ||
| 2 | |||
| 3 | @PC1=( 57,49,41,33,25,17, 9, | ||
| 4 | 1,58,50,42,34,26,18, | ||
| 5 | 10, 2,59,51,43,35,27, | ||
| 6 | 19,11, 3,60,52,44,36, | ||
| 7 | "-","-","-","-", | ||
| 8 | 63,55,47,39,31,23,15, | ||
| 9 | 7,62,54,46,38,30,22, | ||
| 10 | 14, 6,61,53,45,37,29, | ||
| 11 | 21,13, 5,28,20,12, 4, | ||
| 12 | "-","-","-","-", | ||
| 13 | ); | ||
| 14 | |||
| 15 | foreach (@PC1) | ||
| 16 | { | ||
| 17 | if ($_ ne "-") | ||
| 18 | { | ||
| 19 | $_--; | ||
| 20 | $_=int($_/8)*8+7-($_%8); | ||
| 21 | printf "%2d ",$_; | ||
| 22 | } | ||
| 23 | else | ||
| 24 | { print "-- "; } | ||
| 25 | print "\n" if (((++$i) % 8) == 0); | ||
| 26 | print "\n" if ((($i) % 32) == 0); | ||
| 27 | } | ||
| 28 | |||
