
University of Windsor Scholarship at UWindsor Electronic Theses and Dissertations Theses, Dissertations, and Major Papers 2011 High Speed FPGA Implementation of Cryptographic Hash Function Olakunle Esuruoso University of Windsor Follow this and additional works at: https://scholar.uwindsor.ca/etd Recommended Citation Esuruoso, Olakunle, "High Speed FPGA Implementation of Cryptographic Hash Function" (2011). Electronic Theses and Dissertations. 124. https://scholar.uwindsor.ca/etd/124 This online database contains the full-text of PhD dissertations and Masters’ theses of University of Windsor students from 1954 forward. These documents are made available for personal study and research purposes only, in accordance with the Canadian Copyright Act and the Creative Commons license—CC BY-NC-ND (Attribution, Non-Commercial, No Derivative Works). Under this license, works must always be attributed to the copyright holder (original author), cannot be used for any commercial purposes, and may not be altered. Any other use would require the permission of the copyright holder. Students may inquire about withdrawing their dissertation and/or thesis from this database. For additional inquiries, please contact the repository administrator via email ([email protected]) or by telephone at 519-253-3000ext. 3208. High Speed FPGA Implementation of Cryptographic Hash Function by Olakunle Esuruoso A Thesis Submitted to the Faculty of Graduate Studies through the Department of Electrical and Computer Engineering in Partial Fulfillment of the Requirements for the Degree of Master of Applied Science at the University of Windsor Windsor, Ontario, Canada 2011 © 2011 Olakunle Esuruoso High Speed FPGA Implementation of Cryptographic Hash Function by Olakunle Esuruoso APPROVED BY: ______________________________________________ Dr. J. Chen School of Computer Science ______________________________________________ Dr. R. Rashidzadeh Department of Electrical and Computer Engineering ______________________________________________ Dr. H. Wu, Advisor Department of Electrical and Computer Engineering ______________________________________________ Dr. R. Muscedere, Chair of Defense Department of Electrical and Computer Engineering 19 September 2011 AUTHOR’S DECLARATION OF ORIGINALITY I hereby certify that I am the sole author of this thesis and that no part of this thesis has been published or submitted for publication. I certify that, to the best of my knowledge, my thesis does not infringe upon anyone’s copyright nor violate any proprietary rights and that any ideas, techniques, quotations, or any other material from the work of other people included in my thesis, published or otherwise, are fully acknowledged in accordance with the standard referencing practices. Furthermore, to the extent that I have included copyrighted material that surpasses the bounds of fair dealing within the meaning of the Canada Copyright Act, I certify that I have obtained a written permission from the copyright owner(s) to include such material(s) in my thesis and have included copies of such copyright clearances to my appendix. I declare that this is a true copy of my thesis, including any final revisions, as approved by my thesis committee and the Graduate Studies office, and that this thesis has not been submitted for a higher degree to any other University or Institution. iii ABSTRACT In this thesis, a new method for implementing cryptographic hash functions is proposed. This method seeks to improve the speed of the hash function particularly when a large set of messages with similar blocks such as documents with common headers are to be hashed. The method utilizes the peculiar run-time reconfigurability feature of FPGA. Essentially, when a block of message that is commonly hashed is identified, the hash value is stored in memory so that in subsequent occurrences of the message block, the hash value does not need to be recomputed; rather it is simply retrieved from memory, thus giving a significant increase in speed. The system is self-learning and able to dynamically build on its knowledge of frequently occurring message blocks without intervention from the user. The specific hash function to which this technique was applied is Blake, one of the SHA-3 finalists. iv DEDICATION To my beloved family, for their support. v ACKNOWLEDGEMENT I would like to thank my advisor, Dr. Huapeng Wu, for his guidance and support for this research work. I would also like to thank Dr. Rashid Rashidzadeh and Dr. Jessica Chen for their valuable feedback. vi TABLE OF CONTENTS AUTHOR’S DECLARATION OF ORIGINALITY ................................................................................. iii ABSTRACT .................................................................................................................................. iv DEDICATION ............................................................................................................................... v ACKNOWLEDGEMENT ................................................................................................................ vi LIST OF TABLES .......................................................................................................................... ix LIST OF FIGURES.......................................................................................................................... x 1. Introduction ........................................................................................................................ 1 1.1 Cryptographic hash functions ...................................................................................... 1 1.2 Applications of hash functions ..................................................................................... 4 1.3 Problem statement ...................................................................................................... 7 1.4 Literature review ......................................................................................................... 8 1.5 Proposed work ............................................................................................................ 8 1.6 Thesis outline .............................................................................................................. 9 2. Background ....................................................................................................................... 10 2.1 Current hash functions .............................................................................................. 10 2.2 Blake hash function ................................................................................................... 11 2.2.1 Message padding ............................................................................................... 15 2.2.2 Counter.............................................................................................................. 16 2.2.3 State initialization .............................................................................................. 17 2.2.4 State update ...................................................................................................... 18 2.2.5 G-function.......................................................................................................... 19 2.2.6 Finalization ........................................................................................................ 22 2.3 Implementations of Blake .......................................................................................... 23 3. Previous works on high-speed implementation of Blake .................................................... 25 vii 3.1 Parallelism ................................................................................................................. 25 3.2 Pipelining ................................................................................................................... 26 3.3 Fast adders ................................................................................................................ 27 4. Proposed design ................................................................................................................ 29 4.1 Message preprocessor ............................................................................................... 31 4.2 Memory..................................................................................................................... 32 4.3 Decoder ..................................................................................................................... 33 4.4 System ....................................................................................................................... 36 5. Implementation and results .............................................................................................. 41 5.1 Hardware implementation ......................................................................................... 41 5.2 Software implementation .......................................................................................... 43 5.3 Testing procedure ...................................................................................................... 43 5.4 Results ....................................................................................................................... 45 6. Conclusion and future work .............................................................................................. 49 6.1 Conclusion ................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages65 Page
-
File Size-