Home

Secure-T

image

Contents

1. personal information there is increasing concern about the security of this data Therefore it is becoming more important that any voice or data transmissions be encrypted to ensure that private data is only revealed to the proper parties While encryption does not guarantee that the data will not be compromised it does reduce the possibility of this occurring The solution to this privacy problem is the Secure T an innovative combined encrypter and DS1 framer This allows the traffic for an entire office that connects via a T1 line to be secured With the modern phone system one is never certain of the route the traffic will take and this solution ensures that the data will not be compromised as easily At the other end of the line another branch office can use another Secure T chip or a possible software solution to decrypt the data provided they know the appropriate information This versatile chip has many possible modes of operation The digital side interface allows the chip to be operated in full duplex mode transmitting and receiving data while encrypting and decrypting as appropriate Backplane Data Secure T Gs TI LIU Cable Transmission Network Figure 1 Duplex Mode Another interesting mode of operation allows the device to be patched into a T1 line to encrypt or decrypt the data in a single direction This allows this product to be used without any modification to existing bo
2. 2 latency array int malloc frame latency sizeof int for i 0 i lt frame_latency i latency_array i 0 el latency array int malloc deframe latency sizeof int Secure T Page 51 of 54 for i 0 i d frame_latency i t latency_array i 0 buffer int malloc num_frames 1 sizeof int for i1 0 i lt num_frames 193 1i t Produce input data if user_choice 2 markos rand if markos RAND MAX 1 2 input 0 else input 1 else if user_choice 1 input 1 else if bitcount 192 input framebit if framebit 1 framebit 0 lse framebit 1 bitcount 0 else if user_choice 4 bitcount markos rand if markos RAND MAX 1 2 input 0 d else i else nput input 1 bitcount Find the o if user cho current output input else if bi else 1 Tan Kuon Mark Calder utput that corresponds to this bit ice 3 user choice 4 Case userchoice 1 or 2 tcount 0 Don t pull from the queue current_output framebit if framebit 0 framebit 1 lse framebit 0 buffer insert_index input insert index increment insert index num frames bitcount frametrue 1 buffer insert_index input current output buffer pull index insert index increment insert index num frames Secure T Page 52 of 54 bitcount increment bitcount 192 pull index incre
3. ck vhd Mentor test SecureT SecureT Combination of all the other Pass F15 benches to test combination of blocks Tan Kuon Mark Calder Secure T Page 47 of 54 Appendix G VHDL for Design Entity Location Description Status Page securet 552 Project securet vhd This is the main block that Simulated Gl connects all the components No Known Errors secure_cont 552_Project secure_cont vhd This controller sets all the Compiled G3 other blocks into the Simulated with appropriate mode based on the SecureT user input encrypt 552_Project encrypt encrypt Controls the encrypting and Compiled G4 vhd decrypting process Simulated with SecureT Package 552_Project encrypt Tway_e Package of all the encryption Simulated G6 Tway_encrypt_pack ncrypt pack blocks No Known Errors Tway cfb encrypt 552 Project encrypt Tway e Encrypts the input bitstream Simulated G7 ncrypt vhd using a CFB implementation No Known of 3 Way Errors Tway cfb decrypt 552 Project encrypt Tway d Decrypts a recovered bit Simulated G9 ecrypt vhd stream assuming the text was No Known encrypted using 3 Way in CFB Errors mode This should be self synchronizing Tway cipher 552 Project encrypt 3way ci This block performs the Simulated Gil pher vhd encryption using the 3 Way No Known Algorithm Errors divide_clock 552_Project divide_clock vh Divides
4. however the reason for this is not clear as the change was not on one of the erroneous blocks This error is a significant concern and should it occur again it is unknown what can be done to eliminate it Design Verification The strategies that were used for testing are discussed below The simulated waveforms and the output from the test benches that verify these tests pass can be found in the Appendix Testing Strategy for Frame Block A test bench was used to ensure the correct operation of the framing block It read input values from an input file along with the expected output This expected output was then compared to the actual data produced by the frame block The values in the input files were generated by a C program that produces data testing several cases using pseudo random data The C program will produce the correct framed results and output both these and the inputs to files Listed below are the cases that were tested e Base Case 1 Data is all zeros The output data should also be all zeros with the exception of a varying frame bit every 193 bits e Base Case 2 Data is all ones The output data should also be all ones with the exception of a varying frame bit every 193 bits e Case 3 Random data This data will be generated using the rand function The output should preserve the input data with the correct alternating frame bits every 193 bits The successful passing of these tests indicates that the fr
5. A synchronization signal is produced to indicate that alignment has been found correctly Frame pulses are then produced to indicate the position of the frame bit in the data stream For a detailed overview of the algorithm that will be used please refer to Appendix C Control Module The user will be able to interface with the chip using the switches and push buttons There will be a reset button that will put the chip in its initial operating mode The status of the chip will be shown using various LEDs The Secure T has full duplex functionality allowing data to be encrypted and framed at the same time as decryption and frame synchronization is occurring The following state machine provides an overview of the operation of the machine S Fort Hays State University INT 478 B Datacom Chapter 8 Internet 2000 http int fhsu edu kevin courses datacom 1 html chapter_8 html 6 Super T1 Card User s Guide GL Communications Pg A 1 Ian Kuon Secure T Page 13 of 54 Mark Calder Reset 0 Switch 0 Enter 0 Switch 2 Switch 1 Enter 0 Enter 0 Debug Alli Debug Loop Figure 5 Secure T State Machine The current state will be indicated on the LEDs as follows Reset Reset State 0 Alle eque Normal Behavior based on switches 2 Debug Loopback ke iad Error 8 In the normal operation mode the device can be controlled using the switches available on the UP1 board Switches 1 and 2 are reserved for testin
6. Standard Encryption Algorithm Petrocelli Books 1977 United States 2 Schneier Bruce Applied Cryptography Protocols Algorithms and Source Code in C John Wiley amp Sons Inc 1996 Toronto 3 Black Uyless Computer Networks Protocols Standards and Interfaces Prentice Hall 1987 Englewood Cliffs New Jersey 5 Dallas Semiconductor DS2148 Datasheet Internet 2000 http www dalsemi com datasheets pdfs 2148 pdf 6 Fort Hays State University INT 478 B Datacom Chapter 8 Internet 2000 http int fhsu edu kevin courses datacom html chapter 8 html 7 Cirrus Logic CS61310 Long Haul T1 Line Interface Unit Internet 2000 http www cirrus com design products overview index cfm ProductID 99 8 Caplan Stephen et al E safe Internet 2000 http www ee ualberta ca elliott ee552 projects 1998f esafe 9 Au Jodie et al SafeTalk Internet 2000 http www ee ualberta ca elliott ee552 projects 1999f SafeTalk FinalReport pdf 10 Dayton Robert L Guide to Integrating Digital Services T1 DDS and Voice Integrated Network Architecture McGraw Hill Book Company New York NY 1989 11 Leder Daniel Clock Dividing using Carry Save and Determining Carry Save Counter Outputs Internet 2000 http www ee ualberta ca elliott ee552 studentAppNotes 1999f clock divider 12 Koob John and Sung Raymond Adder Test Bench Internet 2000 http www ee ualberta ca elliott ee552 labs adder test vhd 13 Gunthrope Jas
7. at full speed The interconnection of the blocks in the Secure T entity was considered low risk however after completion it was found that the timing constraints of the large design prevented it from operating correctly according to the Timing Analyzer of Maxplus2 Numerous errors similar to the following were found to occur Error Delay path from encrypt encrypt Block Tway cfb encrypt encryption d evice LPM SHIFTREG output shift regl dffs74 q to encrypt encrypt block Tway cfb encrypt encryption d evice LPM SHIFTREG output shift regl dffs74 Q Ian Kuon Secure T Page 19 of 54 Mark Calder is 5 1ns but Clock skew is 3 5 ns and hold time required for encrypt encrypt block Tway cfb encrypt encryption d evice LPM SHIFTREG output shift regl dffs75 0Q is l 6ns circuit cannot operate because Clock skew plus hold time of destination register exceeds register to register delay This was despite the fact that all the blocks had been successfully checked as they were designed To resolve this problem varying the Speed vs Area slider was attempted which was able to remove some of the areas however errors still occurred and slight changes in any logic caused the location of these errors to move preventing one from specifying a specific timing constraint A newer version of Maxplus2 was used without success at solving this problem It was eventually found that a fixing a minor bug in one of the blocks removed this error
8. device It interfaces with a T1 line interface unit to provide full duplex transmission of recovered T1 or backplane data with unframed DS1 data and unencrypted or encrypted data The encryption algorithm operates in single bit Cipher Feedback mode which allows self synchronization with any bit stream Modes of Operations The Secure T will power up in Reset 0 Mode To ensure normal operation clear should be pressed after power up Normal Operation Status 2 will begin when enter is pressed and Switches 0 and 1 are high Once in Normal Operation Switches 2 through 7 determine the routing of the data and determined the processing of the data i e framed encrypted etc Switch Control 0 Debug Must be 1 for Proper Operation 1 Debug Must be 1 for Proper Operation 2 Encrypt Enable Active High 3 Decrypt Enable Active High 4 Frame Enable Active High Ian Kuon Secure T Page 27 of 54 Mark Calder Framing Synchronization Enable Active High 6 Loopback Enable Active High 7 Reserved for Future Use System Wide Active Low Clear resets all the registers in the Secure T LED Status Display Display Status A B X 0 Reset X 8 Error X 1 Debug State Not Intended for Regular Operation A 3 Debug State Not Intended for Regular Operation X 2 Normal Operation 2 Normal Operation Frame Synchronization Found Pi
9. intended for use with the Altera EPF10K20 The sof file for programming the device is available Logic Cells Used 798 1152 69 4 Recommended Frequency of Operation 24 704 MHz Timing Information Only Typical Values are available since no IC Test equipment was available to measure the delays The most significant delay times guaranteed only by simulation are given below Tp clk clk1544 22 3 ns Tp clk TAOS 25 6 ns Tp clk RLOOP 22 4 ns Tp clk Dig_data_out 30 9 ns Tp clk Dig_out_fp 24 0 ns Tpclk Liu daa rx 22 3 ns Electrical Information For detailed electrical information please refer to the Altera Data sheet for the EPF10K20RC240 4 Interface A schematic describing all the required connections is given below This circuitry has been built on a separate board that will be connected to the UP1 board A datasheet for the CS61310 is provided in Appendix B Tan Kuon Secure T Page 29 of 54 Mark Calder Figure 7 Hardware Schematic Ian Kuon Secure T Page 30 of 54 Mark Calder Appendix B LIU Datasheet Selected Pages of the data sheet for the CS61310 are attached Ian Kuon Secure T Page 31 of 54 Mark Calder Ian Kuon Secure T Page 32 of 54 Mark Calder Ian Kuon Secure T Page 33 of 54 Mark Calder Appendix C Frame Synchronization Algorithm Structure of Framing Synchronization and Deframer The frame synchronization and deframe module will operate as a state mach
10. is clearly being altered from the all 1 s pattern so it is obvious that the encryption is somewhat functional Since the simulation demonstrated that encrypt functions correctly and there were no critical timing problems in this module one can be reasonably assured that the functionality is correct on the chip Therefore this encryption implementation will be considered to be a conditional pass The decryption routine was tested in a similar manner except the chip was set in loopback mode Again the inability to read the file has prevented the gathering of conclusive evidence that the decryption is fully functional The algorithm was correct in simulation though and thus this test will be given a conditional pass Frame Synchronization The Frame Synchronization routine was verified using the DS1 tester and the Super T1 Card First it was verified that frame synchronization could be found with e 193S framed stream of data Once frame synchronization was found it was indicated via an LED This was found to occur in some occasions however the difficulties with the T1 LIU receiver made conclusive tests difficult The LED was found to light up in response to framed data and once the source is removed the light would turn off This is the desired response and indicates that the deframe module can function correctly This will be considered a conditional pass Ian Kuon Secure T Page 24 of 54 Mark Calder References 1 Katzan Harry Jr The
11. simply pass through the beginning frames of data until synchronisation is found 7 The average case is calculated with the assumption that half of the bits will be eliminated from frame bit eligibility each frame Hence one will need log2 386 frames or approximately 9 frames of size 386 bits Ian Kuon Secure T Page 18 of 54 Mark Calder Encryption Decryption The encryption algorithm was initially implemented and found to be too large for the intended device requiring almost 1000 logic cells leaving nothing for any other functions To remedy this problem the CFB block size was varied This was found to have a significant effect on the size of the implementation Therefore it was decided that a bit block will be used This gives the greatest flexibility for a self synchronizing stream cipher as there is no alignment that must be determined Initially the intent was for an 8 bit CFB 1 byte block which would have allowed for easy comparison with standard available CFB encryption libraries such as Mcrypt Unfortunately this change meant that slight modifications to the standard encryption schemes were required This is not a significant problem as the data is still adequately encrypted and can be decrypted by a software algorithm or another Secure T device It had been initially desired to vary the number of rounds used in the encryption process however this proved difficult to accomplish in the allotted time As well it was feared that
12. EE 552 Secure T Final Report lan Kuon ikuon ualberta ca Mark Calder mcalder ualberta ca November 27 2000 Declaration of Original Content The design elements of this project and report are entirely the original work of the authors except as follows 3 Way encryption algorithm was taken from Applied Cryptography 2 External Circuitry for LIU taken from CS63130 data sheet 5 Clock Divider Circuit taken from Student Application Note 11 The general model for the test bench has been taken from Lab 5 12 and a student application note 13 Source Code for 3 way encryption and cipher feedback mode operation taken from Mcrypt 14 Jan Kuon Date Mark Calder Date Ian Kuon Secure T Page 2 of 54 Mark Calder Abstract This project is an undertaking to create a full duplex combination encryption device and DS1 framer The hardware receives the combined output from the 24 channels encrypts this data using the 3 Way encryption algorithm in Cipher Feedback Mode CFB assembles it into DS1 193S frame format and then outputs this to a standard Line Interface Unit LIU T1 interface chip the CS61310 This data could then be securely transmitted across any T1 line and the user at the other end could then use another similar device to receive the data and decrypt it provided they are aware of the key The project has been fully simulated and the results from simulation have been compared to output from C C programs that impl
13. Page 49 of 54 Mark Calder Appendix H C C Source Code for Test benches Contents 1 FrameTest cpp 2 3way cpp Tan Kuon Secure T Page 50 of 54 Mark Calder include include include define f FrameTest cpp iostream h lt fstream h gt lt stdlib h gt rame_latency 2 define deframe_latency 5 int incre int maint puff late L 0 M 1 inser H b b bb b b b p pp vi cl OD OD ri vd vd vd vi vd vd vd D CV EE TE ZE ZE LOL Tt CD EL Zi ment int number int max user choice i num frames markos er ncy array t_index 0 pull_index 0 input current output output bitcount 0 framebit 0 frametrue 0 ofstream fileout frametest txt ios out Get user input cout lt lt This is a test program to create framing and deframing files lt lt endl lt lt endl cout lt lt Do you wish to endl 1 Create framing test file all are A cout endl 2 Create framing test data random lt lt endl cout lt lt 3 Create deframing test data all 1 s endl cout lt lt 4 Create deframing test data random lt lt endl Read in value cin gt gt user_choice Get total frames of data cou cin cou EE els Ian Kuon Mark Calder t How many frames of data should be produced lt lt endl num frames t lt lt Running Program endl user choice 1 user choice
14. Tests The attached simulations demonstrate the correct functioning of T way cipher It was not possible to compile this block in Maxplus2 as the number of I Os exceed chip capacity In the actual implementation these I Os will be internal as demonstrated in CFB_Encrypt The logic has thus been simulated in Mentor Graphics to ensure that the proper encryption algorithm has been implemented Timing is unfortunately therefore not used but this block will be more thoroughly tested as part of the CFB Encrypt routine and at the top level simulation Output from Applied Cryptography 3 way encryption program This is what the waveform is being compared against ECkckck ckck ck kk KEY 00000000 00000000 00000000 PLAIN 00000001 00000001 00000001 CIPHER d792ac29 d67fd756 6d68fb13 KAKKKKKK ck ck A KEY 00000004 00000005 00000006 PLAIN 00000001 00000002 00000003 CIPHER dbO0fbdec 8dba4d5d 3e683e59 ckckck ck ck ck ck KK KEY bcdef012 456789abdef01234 PLAIN 01234567 9abcdef023456789 CIPHER b4437f8f 114498d8 4c877786 ckckckck ck ck ck KK KEY cab920cd d6144138 d2f05b5e PLAIN ad21ecf7 83ae9dc4 4059c76e CIPHER c740elcO 94360f40 453d8470 As can be seen the output is correct in the simulation All the numbers are in hexadecimal Ian Kuon Secure T Page 38 of 54 Mark Calder Tway Cfb Encrypt and Tway Cfb Decrypt Both CFB encryption modules were tested in a similar manner Pseudo Random Data was genera
15. ame block functions correctly Testing Strategy for Deframe Block Tan Kuon Secure T Page 20 of 54 Mark Calder A similar procedure to that used for the Frame Block was used A test bench once again read input and output values from files to ascertain correct operation Once again a C program was used to produce these input and output files Listed below are the cases that were tested e Base Case 1 Data is all zeros except for frame bits The output data should be all Zeros e Base Case 2 Data is all ones except for frame bits The output data should be all ones e Random Case Data will be produced using the rand function This will simulate the average case e Worst Case Data will be picked so as all bits follow the T1 format for a relatively large amount of time This is the most difficult for the deframe block to detect e Error Case Data that does not include an accurate frame bit will be produced The deframe block should detect the error and produce an error message before resetting Frame synchronization should again be found once the correct data is again passed These cases should prove sufficient to satisfy in terms of correct deframe block operation Testing Strategy for Encryption Decryption As there are standard C programs available that perform the encryption and decryption algorithms these programs were used on pseudo random data to generate a data stream that can be compared to the output of the Encryption and Decr
16. ards Encryption or Decryption T1 Line T1 LIU RX Secure T T1 LIU T1 Line Tan Kuon Mark Calder Figure 2 Single Operation Mode Secure T Page 9 of 54 Description of Operation The general structure of the chip is given in Figure 3 Switches Buttons LEDs User RAM Control Interface Backplane Data Frame Pulse and gt L gt Data Clock to Clock Encrypter EEN and from LIU I 4 dd it C D 1 544 MHz ontroller Clock gt Clock Divider LIU 24 704 MHz Control Figure 3 Overview of Secure T Structure Secure T The top level entity provides the external connections along with the internal interconnections It allows for routing of the data based on the user selection of switches on the UP1 board This also produces the necessary clock and clock enable signals for the blocks Data is transmitted along with a clock in order for it to be correctly read in thus the function of Secure T is to synchronize that clock with the appropriate internal signals Encrypter Encryption can be performed on the data to ensure that it is safely transmitted across communication lines Similarly decryption can be performed on the incoming data There are various algorithms available that perform encryption on binary data The algorithm selected for this application is 3 Way It i
17. der Design and Testing Design Hierarchy Legend simulated no errors SecureT secure control frameblock 3way cfb encrypt frame Sway cipher Sway cipher Ipm_fifo 3way_cfb_decrypt deframe compare ipm ram dq Figure 6 Design Heirarchy The VHDL Source files can be found in Appendix G Ian Kuon Secure T Page 16 of 54 Mark Calder Resource Requirements Summary of Logic Cells Required Logic Cells Required EABs Max Clock Frequency frame 279 2 24 05 MHz deframe 154 2 35 46 MHz compare 107 2 36 63 MHz frameblock 428 4 30 00 MHz cfb encrypt 178 0 25 64 MHz cfb decrypt 180 0 103 9 MHz encrypt 359 0 29 67 MHz divide clock 7 0 113 63 MHz Total for Secure T 798 1152 4 6 24 03 MHz Note The number of logic cells do not sum to the total number of Logic Cells since both the low level blocks and the upper level blocks that instantiate them are listed Design Implementation Decisions Investigations Framing Originally the simple DS1 framing pattern was to be used for this project However the test equipment available T1 interface card did not support this format which involved a simple alternating 1 and O frame bit pattern Thus it was necessary to implement a more complicated format supported by the card the 193S format This format involves combining 12 frames together into a super frame Thus the framing module needed considerable adjustments
18. e Pass Tway_cfb_decrypt Comparison of a pseudo random stream encrypted using mcrypt and T secure Pass Compare Pseudo random data to show the compare module can find the frame bit and produce an error at framing format violations Pass Yes used to produce waveforms E6 Deframe Pseudo Random data to prove deframe can identify the frame bit correctly and recover from framing format violations Pass Yes E12 Frame Pseudo Random data Pass E18 SecureT Random plain text is compared with encrypted text to verify that frame and encrypt work properly with each other Pass E22 SecureT Encrypted text is deframed and decrypted and compared with plain text to verify that deframe and decrypt work properly with each other Pass E26 Divide_clock Ensure Clock divider produces correct frequency Pass No Waveform Only E30 secure_cont Ensure that all the states can be reached and that state changes occur on correct inputs Pass No Waveform Only E33 Testing of encrypt and frameblock was not performed separately since their constituent blocks have been thoroughly tested and the complete simulation of the top level SecureT verifies their operation These blocks were low risk since their only purpose was for interconnection between stages Tan Kuon Mark Calder Secure T Page 37 of 54 Tway Cipher
19. e Appendices Ian Kuon Secure T Page 22 of 54 Mark Calder IC Characterization Results Interface Testing For testing the functionality of the T1 LIU two debug modes allow the Secure T chip to force the T1 LIU into all 1 s TAOS or remote loopback RLOOP mode Testing of this stage was considered complete when there are no bit errors in loopback mode using the DS1 Tester This test has been successfully completed Framed and Unframed data of any type were successfully looped through the CS61310 Loopback through the Secure T was then performed with limited success Inconsistencies in the operation of the Line Interface unit caused some significant problems Investigation has revealed that in some circumstances not specified in the Data sheet the device enters a Receiver Power Off mode In this state the receiver outputs no data making testing difficult Technical support for Cirrus Logic the manufacturer of the LIU has been contacted however no suitable advice has been obtained It has been possible to get the receiver to function in some cases and on those occasions loopback through the Secure T occurred however some bit errors were found to occur This is likely due to noise on the board and in between the UP1 board and the T1 LIU These bit errors are a concern and the wires will be made as short as possible in an attempt to minimize this However since the general operation is confirmed this test will be considered a pass Functio
20. e capable of taking framed data and synchronizing with it so that each of the channels can be properly identified There are numerous types of framing DS1 structures possible The simplest format is DS1 framing For this format the 24 channels with 8 bits each are combined in the T1 line and a framing bit is inserted at the beginning giving a total of 193 bits per frame The framing bit alternates between 0 and 1 to ensure frame alignment Some implementations use data robbing whereby some data bits are used for signally however this framer will not use bit robbing to send control information as this chip is intended to be used with data as well Frame Channel 1 Channel 2 Channel 3 Channel 24 1 Bit 8 bits 8 bits 8 bits HE 8 bits Figure 4 DS1 Framing Structure This design was successfully implemented however it was decided that to increase the versatility of the device the more commonly used D4193S Super Frame Format would be used This structure groups the single DS1 frames into a 12 Frame structure known as a super frame The following bit pattern is then used in the frame bits 100011011100 The framing process for the data is fairly straightforward however the algorithm for frame synchronization is more complex Frame synchronization will be found using a parallel algorithm It stores the first frame received and compares each of the bits in this frame to the next frames until only one possible candidate for the frame bit remains
21. e frame module It is the rearranged output file from a simulator run of frame bench vhd The output file was rearranged with Microsoft Excel so as each bit index is displayed on a horizontal line Any bit occurs 193 bits away from the bit to its horizontal right in the file in the output stream In this way it was possible to show the frame bit more clearly Although the test case shown uses an input of all Us random data was tested with equivalent results The all 1 s format was used simply for clarity The frame bit of the output file is located in the bit index 1 position second line The first value in this row is a O due to the latency of the device However after this the values of the second row produce the following pattern 10011000110111001000110111001 The correct frame bit sequence is 100011011100 The above is two of these together and the first bit of a third sequence The following pattern correlates to correct 193S DS1 format hence the correct operation of the framing module is illustrated Ian Kuon Secure T Page 41 of 54 Mark Calder Deframe bench Tests The attached file is a sample of a data file produced by the deframe bench vhd test bench program during simulation This input data was manually created in Excel so as to allow the cases we wished to illustrate to be shown quickly though random data cases were also run All of the data from the file was not included as this would entail many sheets however
22. ement these algorithms The successful design was implemented on an Altera 10K20 FPGA found on an Altera UPI board This system was tested to verify complete functionality and the design was found to operate correctly The framing was found to be compliant by both a Super T1 ISA card and a TauTron DS1 tester Frame synchronization could also be found with these sources The encryption and decryption routines were also successfully implemented Ian Kuon Secure T Page 3 of 54 Mark Calder Table of Contents Declaration of Original Gorter 2 GRA A MT HE 3 Table of SA GAO 4 Table Nau m M P 6 BU AAA 7 Product Applications aak a ENE eh ATO FREE NUN dish assay Eee 9 Description of Op ration EE 10 Niere E T 10 ENCE AISA 10 DS Qin EE 12 Control Module e Eed eEe eEet uge 13 Clock ANALO 15 Design A IIo T E 16 Design TSAS AEA 16 Resource Requirements 4 ree kakak kakak kakak aka akar 17 Design Implementation Decisions Investigations sea 17 lucide ES 17 Frame Synchronization Deframe sr 17 Encryption Decryption k cenen er ie e Aig tet ceo Cac tet i ec daa e o p s Pee e o e er ess 19 Timing ned uno M ea LEM A M E E eL a FEE E 19 IAIOTASUN 20 Testing Strategy for Frame Block 20 Testing Strategy for Deframe Block rrua 20 Testing Strategy for Encrvptton Decrvptpon eene enne enne enne nnne ener enne 21 Testing Strategy for Entire Secure DESEO rrua 21 IC Charact
23. erization EE 23 Interface KE TANA 23 Functional BZ PILAE 23 TOPO EE EE 25 Appendix A Product Data TE 26 Part No A KG SEO 27 Appendix B LIU Datasheet E 31 Appendix C Frame Synchronization Algorta 34 Ian Kuon Secure T Page 4 of 54 Mark Calder Appendix D Parts E 36 Appendix E Simulation berti 37 Test Case UAE 37 Appendix F Test eege EES oe 47 Appendix G EE 48 Appendix H C C Source Code for Test benches rss 50 Ian Kuon Secure T Page 5 of 54 Mark Calder Table of Figures Figure ONO ada aita tete do du e be b e dee Ee 9 Figure 2 Single Operation Mode zra 9 Figure 3 Overview of Secure T Structure rss 10 Figure 4 CFB Ae AAE 12 Figure 4 DS T Framing Structure ii ee eee e ere Idee ee dans chee teet savages Eed 13 Figure 5 Secure T State Machine spse neoinean ii sees senes E enne enhn nenne ees ne tenen eene tenter nnne nennen 14 Ligure 6 Design Heirarchy s ii edd c dien hea gil ees ce eie eee e rem 16 Figure 7 Hardware AAA 30 Ian Kuon Secure T Page 6 of 54 Mark Calder Achievements Framing The framing module correctly outputs DS1 frames appropriate for use with the hardware available In simulation the correction operation was observed and this was confirmed in hardware as both the DS1 tester and the Super T1 ISA card were able to find frame synchronization with the output stream This was accomplished despite a late change in the framing format It had been thought that the DS1 tester used DS1 frames si
24. g and the functions of Switches 3 through 7 are given below Changes made on the switches take place asynchronously and do not require any additional button presses This design decision was made since in normal operation the mode of operation will not be altered frequently therefore it was not warranted to design a more complex state machine The following table describes operation of the switches while in normal mode Switch Control_Bit Description 1 0 Debug Mode AUT Active Low 2 1 Debug Mode Device Loopback Active Low 3 2 Encrypt Active High 4 3 Decrypt Active High 5 4 Frame Active High 6 5 Deframe Active High 7 6 Loopback Active High 8 7 Reserved Tan Kuon Secure T Page 14 of 54 Mark Calder Clock Divider T1 protocol operates at a speed of 1 544 Mbit s thus it will be necessary to have a clock of this frequency available so that the data can be properly output As well the LIU requires a T1 speed clock for it to function correctly However for many operations in particular the encryption and frame synchronization blocks it will be desirable to have a higher speed clock and thus a higher speed will be given to the chip This block divides the device clock 24 704 MHz by 16 to produce a T1 speed 1 544 MHz signal An enable signal is also provided for internal blocks The enable signal only pulses high for clock cycle Ian Kuon Secure T Page 15 of 54 Mark Cal
25. hether each one of these bit indexes has followed T1 alternating bit convention value of 1 means it has When there is only one possible frame bit left the frame bit is identified and transmitting may begin However if all bits are found to not follow T1 convention an error is produced and the process starts over initial frame bits Same value Comparator TZ m CHECK Ian Kuon Secure T Page 35 of 54 Mark Calder Appendix D Parts List Quantity Part Part Number if Status Applicable 1 UPI Board with FLEX10K20 Available in Lab 1 CS61310 CS61310 Obtained 1 24 704 MHz Clock Oscillator 300 8020 1 Obtained ND 1 1 544 MHz Clock Oscillator For SEI216 ND Obtained testing 1 33 uF capacitors Obtained 1 1 0 uF capacitors Obtained 1 0 1 uF capacitors Obtained 2 0 47 uF capacitors Obtained 2 50 Q resistors Obtained 2 9 1 Q resistors Obtained 1 1 1 Transformer with Centre Tap 257 1008 ND Obtained 1 1 2 Transformer 257 1011 ND Obtained T1 Cabling Obtained Header Board Obtained wire for connections Obtained Tan Kuon Secure T Page 36 of 54 Mark Calder Test Case Index Appendix E Simulation Results Entity Description Status Test bench Page Tway cipher Test cases taken from Applied Cryptography Pass No El Tway_cfb_encrypt Comparison of a pseudo random stream encrypted using mcrypt and T secur
26. ill implement the encryption using the Cipher Feedback Mode CFB which will effectively make this algorithm behave as a self synchronizing stream cipher Self synchronization is important to this application since there might be no other way to synchronize the codes and correctly decrypt the information An overview of CFB mode is given in the diagram below Decryption in CFB mode is accomplished by changing the positions of the plain text and the cipher text in the XOR operation The cipher text is used in the register Schneier Bruce Applied Cryptography John Wiley amp Sons Inc Pg 342 3 Schneier Bruce Applied Cryptography John Wiley amp Sons Inc Pg 342 Ian Kuon Secure T Page 11 of 54 Mark Calder Last 12 bytes Key 3 Way Encryption 96 bit cipher output Y Least Significant Block of Cipher Text plaintext ciphertext Figure 4 CFB Encryption This approach requires an initialization vector IV This code is only required at the start of each message Since the T1 data is a continuous stream of data this must only be performed once on power up The device can then continue operating indefinitely without an IV This same IV is used for decryption and encryption Since the IV is essentially not required except for power up it was decided that a single constant IV would be used While in theory the IV should be unique it was not considered significant enough to warrant the significant additional logic th
27. ine There will be four states e PASS where all signals are reset to initial and the input is passed directly through to the output This state will be called if there is an error in the input data it can not possibly meet the T1 alternating lead bit standard if the deframing option is disabled or if the deframer is first turned on e WAITING will allow the module to load the first 385 bits into a RAM block in the compare module These will be used as a reference to determine whether each input bit follows the T1 format e FIND will search for the frame bit by checking which bits follow the alternating convention every second frame as per 193 format e TRANSMIT occurs when the frame bit has been identified The module transmits data with correctly identified frame pulses A process of verification continues even after this state is entered Below is a graphical representation of the deframing state machine If deframe option chosen If no bits match the criterion for Compare RAM a frame bit or filled with first deframe is not 193 bits selected If lead bit is EO identified Ian Kuon Secure T Page 34 of 54 Mark Calder When the state machine is in the states WAITING FIND or TRANSMIT a compare procedure is called to search out which bits match T1 alternating format and thereby identify the frame bit Operation of COMPARE module The first 386 bits received by the deframer are stored in RAM as is a check vector indicated w
28. is is a feature of the device since it prevents accidental changing of the state Ian Kuon Secure T Page 45 of 54 Mark Calder Clock Divider Testing The clock divider system was tested as part of SecureT since that is the manner in which the divider will be used As can be seen on the output waveform the divided frequency clock on Tx clk out is 16 times less than system clock This is the desired relationship since a 24 704 MHz clock is used on the board and a 1 544 MHz clock is desired Ian Kuon Secure T Page 46 of 54 Mark Calder Appendix F Test Benches Test Bench Name EUT Entity Description Status Page Under Test compare bench compare Framed Pseudo Random data Pass Fl was used in the vector files frame_bench vhd frame Uses Pseudo Random data from Pass F3 vector files deframe_bench vhd deframe Uses Pseudo Random data from Pass F5 vector files test_tway_cipher vhd tway_cipher Uses Applied Cryptography test Can not handle 96 F7 cases and compares to program bit width without provided in book modification Included for Completeness test tway cfb decrypt tway cfb decrypt Uses Pseudo Random data and Pass F9 vhd compares to encryption using mcrypt library Schneier functions test_tway_cfb_encrypt tway_cfb_encrypt Uses Pseudo Random data and Pass Fil AR compares to encryption using mcrypt library Schneier functions test tway encrypt pa Package Entity for compiling under N A F13
29. is would have required Furthermore synchronization of the IV between encryption and decryption at the two ends of a T1 line would prove to be difficult If frequent power cycling occurs making the weak IV a concern a future version of the device could allow for a random IV Although without synchronization this will mean that the first 96 bits will be lost With data transmission there is a the potential for bit errors When they occur a single bit error will impact the following 96 bits as well due to the CFB mode of operation While this is a significant loss the requirement for self synchronization forced the choice of this mode DS1 Framer A frame is a large data structure that contains signaling and data bits so that the data may be properly handled For this design the DS1 frame format which runs at a speed of 1 544 Mbit s and is widely used for network communication among offices will be used The T1 carrier frame that will be implemented is the North American version using 24 channels as opposed to the 32 channels used by the European version Framing is e Schneier Bruce Applied Cryptography John Wiley amp Sons Inc Pg 200 Ian Kuon Secure T Page 12 of 54 Mark Calder required in order to preserve the alignment of these different channels so that the individual channels can be processed as required The encrypted data will be passed to the framer which will put the data in the appropriate format The framer will also b
30. ment pull index num frames 1 frametrue 0 Set frametrue if user_choice 3 user choice if bitcount 1 deframe latenc lse frametrue 0 else if bitcount frame latency frametrue 1 lse frametrue 0 Take the latency effect into account latency array L current output output latency array M if user choice 1 user choice M increment M frame latency 1 L increment L frame 1l latency 1 else M increment M deframe latency 1 L increment L deframe latency 1 Write to the output files fileout lt lt input lt lt lt lt output lt lt lt lt bitcount lt lt endl return 0 int increment int number int max if number max number 0 lse number tt return number Tan Kuon Secure T Mark Calder lt lt frametrue lt lt frametrue 1 Page 53 of 54
31. n Descriptions Pin Name Pin Pin Function Direction Number Control Signals clock Input 45 System Clock 24 704 MHz clear Input 28 Active Low Reset Signal enter Input 29 User Input Control LED Segment a 6 downto 0 Output 6 7 8 9 LED Segment A of UP1 Board 11 12 13 LED Segment b 6 downto 0 Output 17 18 19 LED Segment B of UP1 Board 20 21 23 24 switches 7 downto 0 Input 41 40 39 Input Switches 38 36 35 34 33 Backplane Data Signals dig data in Input 48 Backplane Digital PCM data to be sent dig in fp Input 75 Backplane Frame Pulse Data dig_in_clk Input 73 Backplane 1 544 MHz Clock for Data dig data out Output 100 Backplane Digital PCM data recovered from T1 Line dig out fp Output 84 Backplane Frame Pulse Data recovered from T1 Line dig out clk Output 80 Backplane 1 544 MHz Clock for Data LIU Data Signals liu data RX Input 55 T1 Data recovered from T1 line by Ian Kuon Secure T Page 28 of 54 Mark Calder LIU RX Clock in Input 54 T1 Clock from RX of LIU liu data TX Input 61 T1 Data to be sent to the LIU Tx CIk Out Output 51 T1 Clock for TX to LIU LIU Control Signals clk1544 Output 53 Slow Clock for use as master clock on T1 LIU rloop Output 70 RLOOP of CS61310 loop Output 63 LLOOP of CS61310 taos Output 72 TAOS of CS61310 los Input 65 LOS from CS61310 Implementation Information The design is
32. nal Testing DS1 Framing The framing will be tested via the Super T1 ISA card and the DS1 Data generator Sending an all 1 s data pattern into the Secure T yielded an output to the LIU on LIU data tx that was high except for occasional low pulses that are frame pulses The correct frame formatting was confirmed by sending this data into the T1 ISA card in Monitor mode This mode checks for any errors in the data received by the card Over an extended period of time no bit errors were observed and frame synchronization was maintained On four separate occasions over a period of 2 hour fewer than 5 frame bit errors were observed This successfully proves that the design of frame is correct For completeness this should be tested on multiple patterns however the SecureT lacks a data generator for performing this test A future version of this device may include this feature however based on the design of the frame module it is highly unlikely that the contents of the data will impact the frame transmission Therefore the operation of frame can be considered correct Encryption Decryption The encryption algorithm was tested by sourcing all 1 s data into the dig data in This all ones pattern was encrypted and captured on the PC using the ISA card Ian Kuon Secure T Page 23 of 54 Mark Calder Unfortunately the format of the file is not readable by any common utilities and therefore this could not be properly verified The output data
33. nce it was not otherwise specified in the user manual however it was later determined that in fact 193S frames are used This necessitated the late change to the newer frame format Two designs were made and tested for both original DS1 framing and Superframe D4 193S frames however only the final 193S frame format was implemented on the chip since the test equipment available is only able to work with this format The proper functioning of the framing module is a significant accomplishment since this exceeds the intended goal of only implementing DS1 frames Frame Synchronization The deframe module can find the frame bit of an incoming DS1 data stream and then mark the frame bits with a signal As such it obtains synchronization with the incoming data which allows operations such as encryption and decryption to be performed on the data while not altering the framing structure It can also pass the data through directly without altering As with the frame module the format was modified to 193S frames after problems were discovered in communicating with the hardware Thus two fully functional modules with DS1 and D4 193S frames were implemented Frame synchronization is no simple feat and it is a considerable accomplishment to design a system that can successfully find frame synchronization with a pseudo random data stream Simulation verified the correct operation of this block and the hardware tests supported this The algorithm for frame synchroni
34. ncy of 4 The frame bits will add an extra latency of 1 for every 193 bits e Page 2 this page shows that deframe successfully identifies the framing bit However the latency here is too great 36 to view the correlation between the expected dig data out and the actual dig data out e Page 3 this is the same data as page 2 however the dig data out expected column has been shifted arificially with Excel 36 bits down It can now be seen that the frame pulse adds a latency of 1 between expected and output values Thus the frame pulse must be identifying the correct framing bit which was added by the framer and should not be in the comparison data Ian Kuon Secure T Page 44 of 54 Mark Calder Secure Cont Test The waveform indicates that the device normally starts in the reset state With all the switches low off the device is expected to go to all 1 s state Debug all1 and the waveform indicates that this happens synchronously with the clock after enter is asserted TAOS also goes high which was the expected output from this state Similarly debug loopback is entered when Switch 0 1 and Switch 1 0 and it sets TAOS low and RLOOP goes high Finally normal state is entered when the first two switches are high In this state TAOS RLOOP and LLOOP should be low as is shown in the waveform As expected a reset is required between state changes and changing the switches while in a state does not impact the output or the current state Th
35. on et al TestBenches Using File I O under VHDL Internet 2000 http www ee ualberta ca elliott ee552 studentAppNotes 2000 w vhdl File IO Testben ching testbench html 14 Mavroyanopoulos Nikos Mcrypt Internet 2000 http mcrypt hellug gr 15 Super T1 User s Manual GL Communications 1995 United States Ian Kuon Secure T Page 25 of 54 Mark Calder Appendix A Product Data Sheet Ian Kuon Secure T Page 26 of 54 Mark Calder Part No IM5434 Secure T Combined Encryption Device and DS1 Framer Product Data Sheet Features e Connects seamlessly to T1 Line Interface Unit CS61310 e Provides Full Duplex Cipher Feedback mode encryption and decryption using the Threeway Block Cipher Algorithm e Encryption Algorithm is self synchronizing and requires no alignment information yet will still operate correctly when frame information is provided e Finds Frame Synchronization with a 193S framed signal e Frames data according to D4 193S Superframe format Capable of operating in Digital Loopback mode and still providing encryption or decryption functionality Can be set to transmits Alarm Indication Signal AIS or operate in loopback mode Requires only a single 24 704 MHz clock State Information is provided via a 7 segment display Frame Synchronization is indicated via an LED and will typically be found within 1 ms Description The Secure T is a combined T1 framer and encryption
36. ronization algorithm see Appendix C The parallel scheme involves looking at every bit as it enters and determining if it is an eligible frame bit When only one bit is left eligible the frame bit is found A serial search scheme would involve looking at a particular bit index within the frame until that bit did not fit the framing convention then moving to the next bit If a bit kept framing convention for a set period of time it would be found to be the frame bit The advantage to this scheme is it can be implemented in less logic cells as one does not need to store the current eligibility of each of the bits However in the average case it is far slower than the parallel algorithm since several frames of data may pass by as each non frame bit is cycled through It also leads to a greater chance of error if a random data bit follows framing convention for a period of time Thus the parallel scheme was used To deal with the greater storage size a RAM block implemented with EAB s was used to keep track of the eligibility of each block In order to minimize chip area logic cell count it was determined that storage of the vectors required for determining frame synchronization would be done using RAM Numerous different trials have been performed using the LPM modules for the interface to RAM First the design was implemented using the Tom ram dp modules however compiling this approach indicated that no EAB s i e no RAM was being used and in
37. s implemented for decryption Decryption was successfully implemented in a similar manner to encryption The two blocks were successfully combined and fit to a usable size within the chip using 359 logic cells This is a significant reduction from the number of blocks required for 8 bit CFB which exceeded the blocks available on the 10K20 Secure T The blocks were successfully combined on a single Altera 10K20 device Simulation was successfully completed and it has been verified that the device functions correctly The design has also been successfully implemented in hardware on the UP1 board The device communicates with the T1 LIU on a separate board and is able to transmit and receive data in full duplex operation It had been desired to include a method for entering the encryption key into the device once programmed during operation With a 96 bit key this is an arduous task using switches and it was not possible to incorporate another interface to the chip such as a key pad which would have made the task easier Instead the key is determined when the device is programmed It can be easily changed via a single constant This change has the additional benefit that it prevents accidental altering of the key since it is unlikely that the key will be changed while the device is in operation Ian Kuon Secure T Page 8 of 54 Mark Calder Product Applications With the trend towards greater reliance on telecommunication for all corporate and
38. s an unpatented algorithm specifically designed to be hardware efficient and it provides more security than the Data Encryption Standard DES It was selected over other algorithms such as IDEA because Encryption or Decryption is accomplished by performing logical operations or permutations on the data stream so that the output no longer appears to be related to the input stream For an in depth discussion of encryption techniques and reasons for performing encryption refer to Applied Cryptography 2 Tan Kuon Secure T Page 10 of 54 Mark Calder of space constraints on the chip It was required to select an algorithm that did not require look up tables since the RAM on the chip was reserved for use with the frame and frame synchronization procedures The algorithm has been publicly available since 1995 and has had no known successful cryptoanalysis against it The 3 way algorithm that is implemented in this block is as follows Fori 0ton 1 x xGOK x theta x x pi l x x gamma x X pi 2 x x x K x theta x where n is the number of rounds theta x is a linear substitution function pi 1 x and pi 2 x are permutations gamma x is a non linear substitution function The bit order of the data must be reversed for decryption however because Cipher Feedback will be used as discussed below it will not be necessary to perform decryption and the block cipher itself will always be used in encryption mode This block w
39. several key sheets were included They illustrate the following Page 1 illustrates the latency affect of 2 There are still 385 possible bits number that could be the frame bit so fr index is set above any bit index value at 511 This number does not go down because the initial vector is still being loaded into RAM Page 2 this page illustrates the searching algorithm of the procedure As bits no longer match the frame format the number of possible frame bits is reduced Page 3 this page shows the number has been reduced to 1 The program is now looking for any bits that still match as this will be the frame bit Page 4 Bit 10 still matches format and so is found to be the frame bit therefore fr index is set to 10 Page 5 a frame pulse is produced every 193 bits after the first frame pulse is discovered until the framing convention is broken This is because every 193 bits a frame pulse occurrs although the frame bit only alternates every 386 bits in 193S DS1 format Ian Kuon Secure T Page 42 of 54 Mark Calder Secure T Framing and Encryption Tests Using the test SecureT vhd test bench the framing and encryption operations were tested in parallel Expected files of encrypted data were created from the C programs mentioned in the Appendices This data was then compared to the output and seen to be the same with the exception of added latency and the insertion of frame bits Included is a sample from an output file showing
40. stead it was implemented in logic cells which led to an excessively large design The Dual Port module had the functionality desired however this implementation with Logic Cells was not acceptable The design has therefore been changed to use Ipm ram dq The 193 check bits stored in RAM and used in the Compare module was implemented using Ilpm ram dq instead of Ipm fifo Initially it was desired to implement using Ipm fifo as this would allow us to both pull a value from RAM and store a new value in RAM simultaneously However implementing with Ipm fifo led to the total logic cells used at the time to increase from around 225 to 550 and the number of EABs to increase to 3 By pulling from the RAM during the first half of the clock cycle and inserting in the second half of the clock cycle we managed to attain the same functionality of the Ipm fifo with the Ipm ram dq Initially the deframe module used a Ipm fifo structure to store data when the chip was attempting to find synchronisation with the input stream This data could then be output with the frame bit correctly identified once the synchronisation has been found However this structure used 2 EABs and a large number roughly 150 logic cells to implement Also the size of the Ipm fifo component would have to be fairly large to store all of the necessary data in an average case it would take 9 frames of data or 3474 bits to identify the frame bit For these reasons it was decided to
41. such a modification would increase the size of the design beyond the capacity of the chip Therefore it was decided to have the design only perform one round of encryption While the impact of this change to the security of the algorithm is unknown it was considered worthwhile given the savings in area and design time it provided While the encryption routines all passed in the test bench simulations it was found later during top level simulations that a timing problem in the CFB encryption routine prevented data from being transmitted to the other blocks in the chip This problem was corrected by adding a register on the outputs from the encryption and decryption blocks Once this correction was implemented all the blocks simulated correctly Timing Investigations In combining the various blocks frameblock and encrypt it was realised that it would be necessary to minimize any timing delays as the design is relatively large One approach used to accomplish this was the use of ranges on any natural or integer signals in the design During the initial design phases all the integers and naturals were left with default ranges and this was found to produce blocks with relatively slow minimum clock periods In particular the framing block was found to improve from a maximum clock frequency of 12 67 MHz to 23 75 MHz when the range of values was limited to the actual required range This speed up was significant since it allowed the frame block to operate
42. ted using a C program and then with a program taken from Mcrypt and Applied Cryptography this data was fed into the blocks using a test bench The output was then automatically compared A sample page from the output file is included and the Test bench code can be found in Appendix F Ian Kuon Secure T Page 39 of 54 Mark Calder Compare Test Bench For the compare test bench expected outputs were not created in advance Rather an input file with inputs that would lead to several major cases was inputted and the output waveforms were manually verified The input file was created using an excel spreadsheet The following annotated waveforms are included e Waveform 1 this waveform demonstrates the operation of compare as the first 193 comparison bits are loaded into RAM memory e Waveform 2 this waveform illustrates the operation of the compare block as frame positions are eliminated from eligibility as frame bits e Waveform 3 this waveform shows compare after the number of possible frame bits has been reduced to one but the frame bit has not yet been determined e Waveform 4 this waveform shows compare as the frame bit position is identified Waveform 5 this waveform illustrates after the determined frame bit is found to not match the T1 alternating bit pattern and therefore no bit can be the frame bit correctly Ian Kuon Secure T Page 40 of 54 Mark Calder Frame bench Tests The attached file demonstrates the functionality of th
43. the clock down to a T1 Simulated G13 d rate for external and internal No Known use Errors frameblock 552_Project frame frame_bl This block structurally Compiled No G14 ock vhd combines the framer and the Known Errors deframer compare 552_Project frame compare This compares the data in an Simulated No G15 vhd input bit to see if that bit Known Errors follows alternating frame bit convention Used in deframe frame 552_Project frame frame vh This contains the framing Compiled G17 d mechanism with counter Simulated deframe 552_Project frame deframebl This block performs frame Simulated G19 ock vhd synchronization No Known Errors Package framepackage 552_Project frame package v Package of all the framing Compiled No G22 hd blocks Known Errors theta vhd 552_Project encrypt theta vh Implements the theta function Compiler Simu G23 d for 3 way encryption lated with Tway_cipher No Known Errors secure_top_pack vhd 552_Project secure_top_pac Package for top level entities Compiled G24 552 Project refers to mcalder ee552 project in the CEB531 lab Ian Kuon Secure T Page 48 of 54 Mark Calder k vhd clock divide package 552 Project clock divide pa Package for clock divider Simulated 25 vhd ckage vhd implementation No Known Errors testreg vhd testreg vhd 1 bit register used to solve Simulated 26 problems with LPM Shift Reg No Known Errors Tan Kuon Secure T
44. the frame bit would no longer be simply an alternating pattern of 1s and Os but rather a repeating pattern of a string of 12 There were two main options for implementing this change The first involved using a lpm shiftreg entity to rotate between the possible frame bits However it was felt that this solution introduced unnecessary complexity for a single bit operation Thus the second option was used which involved a case statement operated by a simple counter The excellent speed response of case statements also made this a wise choice although there was a certain amount of trade off for the extra space of the counter Frame Synchronization Deframe The change to D4 193S format mentioned above also affected the deframing procedure The search procedure could no longer simply look for an alternating bit pattern in 193 bit intervals because that was no longer a valid criterion The solution implemented was to check for the same alternating pattern every 386 bits as this is true in 193S DS1 In such a way our original code could be used with limited modifications The cost associated with this choice was an increased search time approximately double and a larger area since more frames had to be stored and eliminated from contention as a frame bit Ian Kuon Secure T Page 17 of 54 Mark Calder The frame synchronization algorithm used a parallel frame bit search strategy as opposed to a serial strategy for more details on the frame synch
45. this It includes the following components e Page 1 first page of data produced by the test bench simulation This page shows the expected output Idt expec the output from encrypt before frame intof and the final actual output It can be seen that all three are the same data with the exception that the encryption adds a latency of one and the framer adds an extra latency of two e Page 2 this page shows the data rearranged by an Excel macro to show each bit index occupying a horizontal line The frame bit occupies the first line As can be seen when one excepts the first bit which is incorrect due to an initial latency the pattern produced is 000110111001 The above is the correct framing pattern with an extra one which is the start of the next sequence The pattern is continued in Page 3 Thus the files show that the SecureT entity both encrypts and frames correctly Tan Kuon Secure T Page 43 of 54 Mark Calder Secure T Deframing and Decryption Tests Using the test SecureT vhd test bench the deframing and decryption processes were tested in parallel Files produced by the test SecureT module running in encrypt frame mode were input into the test SecureT module running in decrypt deframe mode These values were then compared to the original plain text files to see if they match after the frame bit has been stripped The following pages are sampled here e Page this pages shows the data is the same with a late
46. yption blocks The tests were performed on various key combinations Any deviations from expected results were flagged with a test bench Given the length of the simulation time waveform simulation is not particularly informative Instead the VHDL for the test bench has been included as well as the C code for generating the data A sample page from the test bench output can be found in the Appendices The basic 3 way cipher block was tested independently as well to ensure that this implementation is correct since it is critical to the operation of all the other blocks This can only be done on a select few cases as it was found that the test bench conversion procedures are not capable of handling 96 bit vectors Thus this is done manually in Mentor Graphics Testing Strategy for Entire Secure T Design A test bench will be used to ensure the correct operation of the entire chip The data from the chip will be compared to the expected data which will be taken from standard or custom C programs The chip will be tested in the following modes e No encryption verifies correct operation of the frame deframe circuitry e Encryption with Framing verifies correct operation of the frame and encrypt Ian Kuon Secure T Page 21 of 54 Mark Calder e Decryption with Frame Synchronization verifies correct operation of deframe and decrypt A complete listing of the test cases along with the sample output waveforms or test bench data can be found in th
47. zation is also noteworthy as it was developed by the group It provides quick and reasonably accurate detection of framed signals while using a low number of logic cells and only a third of the ram on the chip Encryption Decryption A hardware design of the Three Way Encryption Algorithm in Cipher Feedback Mode CFB was successfully completed Simulation verified the output is correct by comparing the output from a pseudo random stream of data to the expected output from publicly available source code This output could also be successfully decrypted The CFB operates in 1 bit block mode which allows synchronization without any alignment signals This is a powerful and required feature for a communications line since alignment signals may not always be present as in the case of unframed data The VHDL implementation of the Cipher Feedback mode is flexible in that a different block cipher could be used as a drop in replacement for the 3 way algorithm Ian Kuon Secure T Page 7 of 54 Mark Calder Space and time constraints prevented the design from implementing the typical 11 rounds of the algorithm The author of the algorithm allowed for any number of rounds thus it was decided that one round would be implemented It had been desired to allow for arbitrary size Cipher Feedback Mode Encryption however size constraints prevented this from being completed and tested As with the encryption the publicly available Three Way Encryption algorithm wa

Download Pdf Manuals

image

Related Search

Secure T secure trezor storage secure test browser secure transportation secure trust secure transamerica login secure timesheets login secure technologies secure therap login secure test browser app secure trihealth secure test browser login secure title explorer secure total adblock secure trading login secure ticket secure trax secure transamerica login account secure temp mail secure trial secure terranova site secure tunnel cyberark secure test browser practice test secure total adblock entfernen how to enable secure boot secure trust bank

Related Contents

COJÍN ROHO® MOSAIC®  Model 6497 Present Weather and Visibility Sensor User`s Manual  Newstar LED-W240 flat panel wall mount  BY65.5SS 60cm 4 Solid plate electric hob    442 LP - WERTHER EQUIP International  Shure 520DX microphone  WallMan DXF Converter User Manual  

Copyright © All rights reserved.
Failed to retrieve file