Print this page
first pass


  35 #define _SYS_DESDATA_H
  36 
  37 #pragma ident   "%Z%%M% %I%     %E% SMI"
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 /*
  44  * softdesdata.c, Data for software implementation of DES
  45  */
  46 
  47 /*
  48  * Lint can't handle static's in include files.
  49  * Complains "defined but not used" and then "used but not defined"
  50  */
  51 #ifdef __lint
  52 #define static
  53 #endif
  54 
  55 /* EXPORT DELETE START */
  56 /*
  57  * Permuted-choice 1 from the key bits
  58  * to yield C and D.
  59  * Note that bits 8,16... are left out:
  60  * They are intended for a parity check.
  61  * Table has been munged to be zero-origin
  62  */
  63 
  64 const short     PC1_C[] = {
  65         57-1, 49-1, 41-1, 33-1, 25-1, 17-1,  9-1,
  66         1-1,  58-1, 50-1, 42-1, 34-1, 26-1, 18-1,
  67         10-1,  2-1, 59-1, 51-1, 43-1, 35-1, 27-1,
  68         19-1, 11-1,  3-1, 60-1, 52-1, 44-1, 36-1,
  69 };
  70 
  71 const short     PC1_D[] = {
  72         63-1, 55-1, 47-1, 39-1, 31-1, 23-1, 15-1,
  73         7-1,  62-1, 54-1, 46-1, 38-1, 30-1, 22-1,
  74         14-1,  6-1, 61-1, 53-1, 45-1, 37-1, 29-1,
  75         21-1, 13-1,  5-1, 28-1, 20-1, 12-1,  4-1,


1064         0x02000421U, 0x02000c21U, 0x02020421U, 0x02020c21U,
1065         0x0a000401U, 0x0a000c01U, 0x0a020401U, 0x0a020c01U,
1066         0x0a000421U, 0x0a000c21U, 0x0a020421U, 0x0a020c21U,
1067         0x00100001U, 0x00100801U, 0x00120001U, 0x00120801U,
1068         0x00100021U, 0x00100821U, 0x00120021U, 0x00120821U,
1069         0x08100001U, 0x08100801U, 0x08120001U, 0x08120801U,
1070         0x08100021U, 0x08100821U, 0x08120021U, 0x08120821U,
1071         0x02100001U, 0x02100801U, 0x02120001U, 0x02120801U,
1072         0x02100021U, 0x02100821U, 0x02120021U, 0x02120821U,
1073         0x0a100001U, 0x0a100801U, 0x0a120001U, 0x0a120801U,
1074         0x0a100021U, 0x0a100821U, 0x0a120021U, 0x0a120821U,
1075         0x00100401U, 0x00100c01U, 0x00120401U, 0x00120c01U,
1076         0x00100421U, 0x00100c21U, 0x00120421U, 0x00120c21U,
1077         0x08100401U, 0x08100c01U, 0x08120401U, 0x08120c01U,
1078         0x08100421U, 0x08100c21U, 0x08120421U, 0x08120c21U,
1079         0x02100401U, 0x02100c01U, 0x02120401U, 0x02120c01U,
1080         0x02100421U, 0x02100c21U, 0x02120421U, 0x02120c21U,
1081         0x0a100401U, 0x0a100c01U, 0x0a120401U, 0x0a120c01U,
1082         0x0a100421U, 0x0a100c21U, 0x0a120421U, 0x0a120c21U,
1083 };
1084 /* EXPORT DELETE END */
1085 
1086 #ifdef  __cplusplus
1087 }
1088 #endif
1089 
1090 #endif /* _SYS_DESDATA_H */


  35 #define _SYS_DESDATA_H
  36 
  37 #pragma ident   "%Z%%M% %I%     %E% SMI"
  38 
  39 #ifdef  __cplusplus
  40 extern "C" {
  41 #endif
  42 
  43 /*
  44  * softdesdata.c, Data for software implementation of DES
  45  */
  46 
  47 /*
  48  * Lint can't handle static's in include files.
  49  * Complains "defined but not used" and then "used but not defined"
  50  */
  51 #ifdef __lint
  52 #define static
  53 #endif
  54 

  55 /*
  56  * Permuted-choice 1 from the key bits
  57  * to yield C and D.
  58  * Note that bits 8,16... are left out:
  59  * They are intended for a parity check.
  60  * Table has been munged to be zero-origin
  61  */
  62 
  63 const short     PC1_C[] = {
  64         57-1, 49-1, 41-1, 33-1, 25-1, 17-1,  9-1,
  65         1-1,  58-1, 50-1, 42-1, 34-1, 26-1, 18-1,
  66         10-1,  2-1, 59-1, 51-1, 43-1, 35-1, 27-1,
  67         19-1, 11-1,  3-1, 60-1, 52-1, 44-1, 36-1,
  68 };
  69 
  70 const short     PC1_D[] = {
  71         63-1, 55-1, 47-1, 39-1, 31-1, 23-1, 15-1,
  72         7-1,  62-1, 54-1, 46-1, 38-1, 30-1, 22-1,
  73         14-1,  6-1, 61-1, 53-1, 45-1, 37-1, 29-1,
  74         21-1, 13-1,  5-1, 28-1, 20-1, 12-1,  4-1,


1063         0x02000421U, 0x02000c21U, 0x02020421U, 0x02020c21U,
1064         0x0a000401U, 0x0a000c01U, 0x0a020401U, 0x0a020c01U,
1065         0x0a000421U, 0x0a000c21U, 0x0a020421U, 0x0a020c21U,
1066         0x00100001U, 0x00100801U, 0x00120001U, 0x00120801U,
1067         0x00100021U, 0x00100821U, 0x00120021U, 0x00120821U,
1068         0x08100001U, 0x08100801U, 0x08120001U, 0x08120801U,
1069         0x08100021U, 0x08100821U, 0x08120021U, 0x08120821U,
1070         0x02100001U, 0x02100801U, 0x02120001U, 0x02120801U,
1071         0x02100021U, 0x02100821U, 0x02120021U, 0x02120821U,
1072         0x0a100001U, 0x0a100801U, 0x0a120001U, 0x0a120801U,
1073         0x0a100021U, 0x0a100821U, 0x0a120021U, 0x0a120821U,
1074         0x00100401U, 0x00100c01U, 0x00120401U, 0x00120c01U,
1075         0x00100421U, 0x00100c21U, 0x00120421U, 0x00120c21U,
1076         0x08100401U, 0x08100c01U, 0x08120401U, 0x08120c01U,
1077         0x08100421U, 0x08100c21U, 0x08120421U, 0x08120c21U,
1078         0x02100401U, 0x02100c01U, 0x02120401U, 0x02120c01U,
1079         0x02100421U, 0x02100c21U, 0x02120421U, 0x02120c21U,
1080         0x0a100401U, 0x0a100c01U, 0x0a120401U, 0x0a120c01U,
1081         0x0a100421U, 0x0a100c21U, 0x0a120421U, 0x0a120c21U,
1082 };

1083 
1084 #ifdef  __cplusplus
1085 }
1086 #endif
1087 
1088 #endif /* _SYS_DESDATA_H */