Trailing-Edge
-
PDP-10 Archives
-
decuslib10-06
-
43,50374/endecr.mac
There are 9 other files named endecr.mac in the archive. Click here to see a list.
00100 TITLE ENDECR - ALC STYLE ENCRIPTION SCHEME
00200
00300 TWOSEG
00400 RELOC 400000
00500
00600 COMMENT $
00700
00800 THE FOLLOWING CODE CONSISTS OF 3 BASIC ROUTINES:
00900 1) CRASZ. - WARMUP ROUTINE FOR ASCIZ SEED
01000 2) CRSIX. - WARMUP ROUTINE FOR A SIXBIT ATOM
01100 3) CRYPT. - BASIC CRYPTION
01200
01300 CALLING CONVENTIONS:
01400 THESE 3 SUBROUTINES USE AC'S 0-7, ARGUMENTS ARE PASSED
01500 IN 5 , 6 , AND 7 - ANSWERS RETURNED IN 5.
01600
01700 1) MOVE A,<ADDR OF ASCIZ STRING OR BP>
01800 PUSHJ P,CRASZ.
01900 ...... ;SEED RETURNED IN (C)
02000
02100 2) MOVE C,<SIXBIT ATOM>
02200 PUSHJ P,CRSIX.
02300 ...... ;SEED RETURNED IN (C)
02400
02500 3) MOVE A,<AOBJN WORD TO BLOCK TO BE CRYPTED>
02600 MOVE B,<BLOCK KEY (BLOCK NUMBER WILL DO)>
02700 MOVE C,<SEED GENERATED BY CRASZ. OR CRSIX.>
02800 PUSHJ P,CRYPT.
02900 ...... ;ALWAYS RETURN
03000 $
03100 ENTRY CRASZ.,CRSIX.,CRYPT.
03200
03300 ;AC DEF'S
03400
03500 Z==0
03600 T1==1
03700 T2==2
03800 T3==3
03900 T4==4
04000 C==5
04100 B==6
04200 A==7
04300 P==17