Network Security and Cryptography

Total Page:16

File Type:pdf, Size:1020Kb

Network Security and Cryptography EE 418: Network Security and Cryptography Homework 5 Assigned: Wednesday, November 23, 2016, Due: Tuesday, December 6, 2016 Instructor: Tamara Bonaci Department of Electrical Engineering University of Washington, Seattle Problem 1 Consider the following modification of the Schnorr digital signature scheme. The keys are given by K = (q, ↵, a, β):β ↵a (mod p) where (q, ↵,β) comprise the public key and a is the private key. Given a message{ x, we compute⌘ the signature} of x to be γ = x ↵k (mod q) ⇥ δ = k + aγ (mod q) (1) where k is a randomly chosen number. In other words, we start with the standard Schnorr scheme and then use multiplication rather than a hash for γ. How is verification done using this revised scheme? Solution: To verify a signature generated using this Modified Schnorr Signature scheme, we exponentiate δ γ 1 ↵ , and check whether the obtained result is equal to β γ x− ,: · · δ γ 1 ↵ = β γ x− (2) · · Let’s analyze ↵δ, to show that the proposed verification scheme is indeed valid: δ k+↵ k aγ k a γ k γ 1 γ ↵ = ↵ = ↵ ↵ = ↵ (↵ ) = ↵ β = γ x− β (3) · · · · k 1 Expression ↵ = γ x− comes from equation (1), and is valid because q is a prime number. · Problem 2 Consider the following digital signature scheme. The public key is given by (q, ↵,β), where q is a prime number, ↵ is a primitive root of q, and β is an integer satisfying β<q. The private key is equal to a, for some positive integer a<qsatisfying β ↵a (mod q). To sign a message m, compute y = h(⌘m), the hash of the message. Assume that gcd(y, q 1) = 1 (if this is not the case, append a random string to m and recompute the hash. Repeat the process− until a message m is found satisfying gcd(y, q 1) = 1). Then calculate z such that yz a (mod (q 1)). The signature of the message is ↵z. To verify the− signature, a user verifies that β =(↵z)⌘y (mod q). − (a) Show that this scheme works. That is, show that the verification process produces an equality if the signature is valid. (b) Show that the scheme is unacceptable by describing a simple technique for forging a users signature on an arbitrary message. 1 Solution: (a) In order to show that the verification process in the proposed scheme produces an equality if the signature is valid, let’s analyze the expression (↵z)y: (↵z)y (mod q)=↵yz (mod q) a+λ(q 1) a λ(q 1) = ↵ − (mod q)=↵ ↵ − (mod q) (4) · a q 1 λ = ↵ ↵ − (mod q) a · = ↵ (modq)=β (5) Equation (4) comes from using the remainder theorem to express the fact that yz a (mod q 1) and equation (5) from using the Fermat’s Little theorem, which states that xφ(p) 1(mod⌘ p), where− p is a prime number. ⌘ (b) To show that the proposed signature scheme is not valid, we need to show that an attacker can forge a signature for some arbitrary messagem ˆ . After choosing a messagem ˆ , an attacker first computes the hash of such a messagey ˆ = h(ˆm). His 1 next step is to compute the multiplicative inverse of the obtained hashy ˆ− (mod q). Due to the fact 1 that q is a prime number, such an inverse will always exist. An attacker then outputs (m, ˆ βyˆ− ) as his message-signature pair. Obtained signature will pass the verification test, since: 1 yˆ 1 βyˆ− (mod q)=βyˆ− yˆ (mod q)=β (mod q) (6) ⇣ ⌘ Equation (6) proves that an attacker is able to forge a valid signature for an arbitrary message. Therefore, the proposed signature scheme is not valid. Problem 3 (Stinson 7.2) Suppose I implement the ElGamal Signature Scheme with p = 31847, ↵ = 5 and β = 26379. Write a computer program which does the following: (a) Verify the signature (20679, 11082) on the message x = 20543. (b) Determine my private key, a, by solving an instance of the Discrete Logarithm problem. (c) Then determine the random value k used in signing the message x, without solving an instance of the DiscreteLogarithm problem. 2 Solution: (a) A Matlab function that verifies the signature of some message x, signed using ElGamal Signature Scheme is called ElGamal signatureVerification, and its code is given below. Using the provided Matlab function, we verify the signature (γ,δ) = (20679, 11082) of the message x = 20543, signed with the ElGamal Signature Scheme with public keys given as p = 31847,↵ =5,β = 26379. We obtain ↵x = 20688, βγ = 12575, γδ = 21455 and finally βγ γδ = 20688. Therefore we conclude that a given signature is valid for the message x. · (b) Matlab function that computes a private key a, given a public key (p, ↵,β) is called shanks, and its code is given below. The provided function solves an instance of the discrete logarithm problem a = log↵ = β using the Shanks algorithm. For the public key (p = 31847,↵=5,β = 26379), we obtain a = 7973. (c) Function that finds a random number k, 1 k p 1, used in generating an ElGamal signa- ture of a message m without solving an instance of a− discrete logarithm problem is called ElGa- mal findRandom, and its code given below as well. Using the provided function on message x = 20543, whose signature is given as (γ,δ) = (20679, 11082), with parameters of the ElGamal Signature Scheme p = 31847, ↵ = 5, β = 26379 and private key a = 7973, we obtain k = 19387. 1 function [verified] = ElGamal signatureVerification(p, alpha , beta ,message, gamma ,delta) %ElGamal signatureVerification verifies the signature of the message , %signed using ElGamal Signature −Scheme %INPUTS : 6 %1. (p , alpha , beta) public key in the ElGama public key scheme %2. message − %3. (gamma , delta) signature of the message %OUTPUTS : − %1. verified returns ’ verified ’ if the signature is valid , ’ invalid − 11 %signature ’ otherwise verified = ’ Invalid signature ’ ; %%Verification 16 alpha x=squareand multiply(alpha , message , p) ; beta gamma = square and multiply(beta , gamma ,p); gamma delta = square and multiply(gamma ,delta,p); ver aux = mod(beta gamma gamma delta , p) ; ⇤ 21 if(ver aux == alpha x) verified = ’ Verified ’ ; end 1 function [a] = shanks(alpha, beta ,n) %Shanks solves a discrete logarithm a = log alpha( beta) (mod n ) problem %using shanks− algorithm . %INPUTS : %1. alpha basis − 6 %2. beta exponent %3. n = phi− ( p ) = (p 1) , where p is a prime number %OUTPUT : − %1. a solution of the discrete logarithm problem − 11 %%Initialization a=0; m= ceil( sqrt(n)) ; 16 %Auxiliary calculation : alphaˆm (mod n ) x=squareand multiply(alpha , (m), (n + 1)) ; 3 %First list for j=1:m 21 L1 unsorted(j , :) = [ j , square and multiply(x, j 1, (n + 1) ) ] ; end − L1 = sortrows ( L1 unsorted , 2) ; 26 for j=1:m L2 aux = square and multiply(alpha , j 1, (n + 1)) ; [r, inverse , t] = extendedEuclidean(L2− aux , (n + 1) ) ; L2 unsorted(j , :) = [ j , square and multiply(beta inverse , 1, (n + 1)) ]; end ⇤ 31 L2 = sortrows ( L2 unsorted , 2) ; %%Finding the pair with identical second coordinate for j=1:m 36 for i=1:m if(L1(j , 2) == L2(i , 2)) a=mod((m(L1(j , 1) 1) + (L2( i , 1) 1)) , n) ; break ; ⇤ − − end 41 end end function [k] = ElGamal findRandomK(p , alpha , beta ,a,message,gamma ,delta) %ElGamal findRandomK given private key , function finds random parameter k , used in signing − 3 %message x using ElGamal Signature Scheme without solving an instance of %Discrete Logarithm problem %INPTUS : %1. (p , alpha , beta) public key %2. a private key − − 8 %3. message signed message %4. (gamma , −delta) signature of message %OUTPUT : − %1. k random parameter k − 13 % m = a gamma k delta (mod (p 1)) > k = (m a gamma) deltaˆ( 1)(mod (p 1)⇤) − ⇤ − −− − ⇤ ⇤ − − k=0; aux = mod(( message a gamma), (p 1)) ; − ⇤ − 18 % Check gcd ( delta , (p 1)) if ( gcd(delta , (p 1)) ==− 1) [r, inverse delta− , t] = extendedEuclidean(delta , (p 1)) ; k=mod((aux inverse delta) , (p 1)) − ⇤ − 23 else d=gcd(delta , (p 1)) ; delta prime = delta/d;− p prime = (p 1)/d ; m prime = aux/d;− 28 [r, inverse , t] = extendedEuclidean(delta prime , p prime) ; k prime = mod((m prime inverse) , p prime) ; ⇤ for i=1:d 33 k=kprime + i p prime ; beta aux = square⇤ and multiply(alpha , k, p) if(beta aux == gamma) break ; end 38 end 4 end Problem 4 (Stinson, Problem 7.3) Suppose that Alice is using the ElGamal Signature Scheme. In order to save time in generating the random numbers k that are used in signing messages, Alice chooses an initial random value k0 and then signs the i-th message using the value ki = k0 +2i (mod (p 1)) (therefore ki = ki 1 +2 (mod(p 1)) for all i 1). − − − ≥ (a) Suppose that Bob observes two consecutive signed messages, say (xi, sig(xi,ki)) and xi+1,sig(xi+1,ki+1). Describe how Bob can easily compute Alice’s secret key, a, given this information, without solving an instance of the Discrete Logarithm problem. (Note that the value of i does not have to be known for the attack to succeed.) (b) Suppose that the parameters of the scheme are p = 28703, ↵ = 5 and β = 11339 and two messages observed by Bob are: xi = 12000, sig(xi,ki) = (26530, 19862) xi+1 = 24567, sig(xi+1,ki+1) = (3081, 7604) Find the value of a using the attack described in part (a). 5 Solution: (a) (a) To show how Bob can easily compute Alice’s private key a, let’s recall the ElGamal Signature Scheme: γ = ↵k (mod p) 1 δ =(m aγ)k− (mod (p 1)) (7) − − Since k = k +2 (mod(p 1)), using the remainder theorem, we can write: 2 1 − k = k +2+λ(p 1) (8) 2 1 − After receiving two consecutive pairs message-signature from Alice, Bob can therefore write: k1 γ1 = ↵ (mod p) 1 δ =(m aγ )k− (mod (p 1)) (9) 1 1 − 1 1 − λ k k +2+λ(p 1) 2 k (p 1) 2 k γ = ↵ 2 (mod p)=↵ 1 − (mod p)=↵ ↵ 1 ↵ − (mod p)=↵ ↵ 1 (mod p) 2 · · · 1 δ =(m aγ )k− (mod (p 1)) ⇣ ⌘ (10) 2 2 − 2 2 − From equation (9), after multiplication with k , it follows that aγ = m δ k .
Recommended publications
  • Jeffrey Hoffstein Jill Pipher Joseph H. Silverman
    Undergraduate Texts in Mathematics Je rey Ho stein Jill Pipher Joseph H. Silverman An Introduction to Mathematical Cryptography Second Edition Undergraduate Texts in Mathematics Undergraduate Texts in Mathematics Series Editors: Sheldon Axler San Francisco State University, San Francisco, CA, USA Kenneth Ribet University of California, Berkeley, CA, USA Advisory Board: Colin Adams, Williams College, Williamstown, MA, USA Alejandro Adem, University of British Columbia, Vancouver, BC, Canada Ruth Charney, Brandeis University, Waltham, MA, USA Irene M. Gamba, The University of Texas at Austin, Austin, TX, USA Roger E. Howe, Yale University, New Haven, CT, USA David Jerison, Massachusetts Institute of Technology, Cambridge, MA, USA Jeffrey C. Lagarias, University of Michigan, Ann Arbor, MI, USA Jill Pipher, Brown University, Providence, RI, USA Fadil Santosa, University of Minnesota, Minneapolis, MN, USA Amie Wilkinson, University of Chicago, Chicago, IL, USA Undergraduate Texts in Mathematics are generally aimed at third- and fourth- year undergraduate mathematics students at North American universities. These texts strive to provide students and teachers with new perspectives and novel approaches. The books include motivation that guides the reader to an appreciation of interre- lations among different aspects of the subject. They feature examples that illustrate key concepts as well as exercises that strengthen understanding. More information about this series at http://www.springer.com/series/666 Jeffrey Hoffstein • Jill Pipher Joseph
    [Show full text]
  • 11 Digital Signatures
    This is a Chapter from the Handbook of Applied Cryptography, by A. Menezes, P. van Oorschot, and S. Vanstone, CRC Press, 1996. For further information, see www.cacr.math.uwaterloo.ca/hac CRC Press has granted the following specific permissions for the electronic version of this book: Permission is granted to retrieve, print and store a single copy of this chapter for personal use. This permission does not extend to binding multiple chapters of the book, photocopying or producing copies for other than personal use of the person creating the copy, or making electronic copies available for retrieval by others without prior permission in writing from CRC Press. Except where over-ridden by the specific permission above, the standard copyright notice from CRC Press applies to this electronic version: Neither this book nor any part may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, microfilming, and recording, or by any information storage or retrieval system, without prior permission in writing from the publisher. The consent of CRC Press does not extend to copying for general distribution, for promotion, for creating new works, or for resale. Specific permission must be obtained in writing from CRC Press for such copying. c 1997 by CRC Press, Inc. Chapter 11 Digital Signatures Contents in Brief 11.1 Introduction :::::::::::::::::::::::::::::425 11.2 A framework for digital signature mechanisms ::::::::::426 11.3 RSA and related signature schemes :::::::::::::::::433 11.4 Fiat-Shamir signature schemes :::::::::::::::::::447 11.5 The DSA and related signature schemes ::::::::::::::451 11.6 One-time digital signatures :::::::::::::::::::::462 11.7 Other signature schemes ::::::::::::::::::::::471 11.8 Signatures with additional functionality ::::::::::::::474 11.9 Notes and further references ::::::::::::::::::::481 11.1 Introduction This chapter considers techniques designed to provide the digital counterpart to a handwrit- ten signature.
    [Show full text]
  • Fault Analysis of the Ntrusign Digital Signature Scheme
    Cryptogr. Commun. (2012) 4:131–144 DOI 10.1007/s12095-011-0061-3 Fault analysis of the NTRUSign digital signature scheme Abdel Alim Kamal · Amr M. Youssef Received: 11 December 2010 / Accepted: 14 December 2011 / Published online: 6 January 2012 © Springer Science+Business Media, LLC 2012 Abstract We present a fault analysis of the NTRUSign digital signature scheme. The utilized fault model is the one in which the attacker is assumed to be able to fault a small number of coefficients in a specific polynomial during the signing process but cannot control the exact location of the injected transient faults. For NTRUsign with parameters (N, q = pl, B, standard, N ), when the attacker is able to skip the norm-bound signature checking step, our attack needs one fault, ≈ − 1 (( )t) succeeds with probability 1 p and requires O qN steps when the number of faulted polynomial coefficients is upper bounded by t. The attack is also applicable to NTRUSign utilizing the transpose NTRU lattice but it requires double the number of fault injections. Different countermeasures against the proposed attack are investigated. Keywords Side channel attacks · Lattice-based public key cryptosystems · Fault analysis and countermeasures · Digital signature schemes · NTRU Mathematics Subject Classification (2010) 94A60 1 Introduction NTRUSign [1–4] is a parameterized family of lattice-based public key digital signa- ture schemes that is currently under consideration for standardization by the IEEE P1363 working group. It was proposed after the original NTRU signature scheme (NSS) [5] was broken [6, 7]. Similar to the GGH cryptosystem [8], the security of A. A.
    [Show full text]
  • Subliminal Channels in High-Speed Signatures
    Die approbierte Originalversion dieser Diplom-/ Masterarbeit ist in der Hauptbibliothek der Tech- nischen Universität Wien aufgestellt und zugänglich. http://www.ub.tuwien.ac.at institute of telecommunications The approved original version of this diploma or master thesis is available at the main library of the Vienna University of Technology. http://www.ub.tuwien.ac.at/eng Subliminal Channels in High-Speed Signatures Master’s Thesis for obtaining the academic degree Diplom-Ingenieur as part of the study Electrical Engineering and Information Technology carried out by Alexander Hartl student number: 01125115 Institute of Telecommunications at TU Wien Supervision: Univ. Prof. Dipl.-Ing. Dr.-Ing. Tanja Zseby Dipl.-Ing. Robert Annessi, B.Sc Acknowledgments I want to express my gratitude for everyone who assisted or encouraged me in various ways during my studies. In particular, I would like to thank Prof. Tanja Zseby and Dipl.-Ing. Robert Annessi for giving me the opportunity to write this thesis, for supporting me actively while I was working on it and for many valuable comments and suggestions. I owe special thanks to my family, especially my parents Edith and Rudolf, for their endless support during all these years. Thank you, Sabrina, for encouraging me and for so many cheerful hours in my life. Abstract One of the fundamental building blocks for achieving security in data networks is the use of digital signatures. A digital signature is a bit string which allows the receiver of a message to ensure that the message indeed originated from the apparent sender and has not been altered along the path.
    [Show full text]
  • Public-Key Cryptography
    Public-key Cryptogra; Theory and Practice ABHIJIT DAS Department of Computer Science and Engineering Indian Institute of Technology Kharagpur C. E. VENIMADHAVAN Department of Computer Science and Automation Indian Institute ofScience, Bangalore PEARSON Chennai • Delhi • Chandigarh Upper Saddle River • Boston • London Sydney • Singapore • Hong Kong • Toronto • Tokyo Contents Preface xiii Notations xv 1 Overview 1 1.1 Introduction 2 1.2 Common Cryptographic Primitives 2 1.2.1 The Classical Problem: Secure Transmission of Messages 2 Symmetric-key or secret-key cryptography 4 Asymmetric-key or public-key cryptography 4 1.2.2 Key Exchange 5 1.2.3 Digital Signatures 5 1.2.4 Entity Authentication 6 1.2.5 Secret Sharing 8 1.2.6 Hashing 8 1.2.7 Certification 9 1.3 Public-key Cryptography 9 1.3.1 The Mathematical Problems 9 1.3.2 Realization of Key Pairs 10 1.3.3 Public-key Cryptanalysis 11 1.4 Some Cryptographic Terms 11 1.4.1 Models of Attacks 12 1.4.2 Models of Passive Attacks 12 1.4.3 Public Versus Private Algorithms 13 2 Mathematical Concepts 15 2.1 Introduction 16 2.2 Sets, Relations and Functions 16 2.2.1 Set Operations 17 2.2.2 Relations 17 2.2.3 Functions 18 2.2.4 The Axioms of Mathematics 19 Exercise Set 2.2 20 2.3 Groups 21 2.3.1 Definition and Basic Properties . 21 2.3.2 Subgroups, Cosets and Quotient Groups 23 2.3.3 Homomorphisms 25 2.3.4 Generators and Orders 26 2.3.5 Sylow's Theorem 27 Exercise Set 2.3 29 2.4 Rings 31 2.4.1 Definition and Basic Properties 31 2.4.2 Subrings, Ideals and Quotient Rings 34 2.4.3 Homomorphisms 37 2.4.4
    [Show full text]
  • Efficient Implementations of Attribute-Based Credentials on Smart Cards
    Efficient Implementations of Attribute-based Credentials on Smart Cards Pim Vullers Copyright c 2014 Pim Vullers IPA Dissertation Series: 2014-15 ISBN: 978-94-6259-376-3 NUR: 980 Typeset using LATEX 2ε (TEXLive 2013) Cover design by Koen Vullers Printed by Ipskamp Drukkers (http://proefschriften.net/) The work in this thesis has been carried out under the auspices of the research school IPA (Institute for Programming research and Algorithmics). The author was employed at the Radboud University Nijmegen. This research was sponsored by Trans Link Systems / Open Ticketing. This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license. To view a copy of this license, please visit http://creativecommons.org/licenses/by-sa/4.0/. Efficient Implementations of Attribute-based Credentials on Smart Cards Proefschrift ter verkrijging van de graad van doctor aan de Radboud Universiteit Nijmegen op gezag van de rector magnificus prof. dr. Th.L.M. Engelen, volgens besluit van het college van decanen in het openbaar te verdedigen op vrijdag 28 november 2014 om 10.30 uur precies. door Pim Vullers geboren op 20 juni 1986 te Venlo Promotor: Prof. dr. B.P.F. Jacobs Manuscriptcommissie: Prof. dr. E.R. Verheul Prof. dr. S. Mauw Université du Luxembourg, Luxemburg Prof. dr. ir. B. de Decker KU Leuven, België Dr. G. Neven IBM Research Zürich, Zwitserland Dr. ir. E. Poll Samenvatting We leven in een wereld waarin computers een steeds grotere rol spelen. Daarom wordt het alsmaar belangrijker om gebruikers en objecten digitaal te kunnen iden- tificeren. Om dit te bereiken gebruiken veel bestaande systemen unieke nummers, denk bijvoorbeeld aan je burgerservicenummer (BSN).
    [Show full text]
  • User Manual V.1.3 (“NTRU Release”) 1 What Is Goldbug?
    Secure Instant Messenger User Manual v.1.3 (“NTRU Release”) http://goldbug.sf.net 1 What is GoldBug? GoldBug is a secure Instant Messenger. You can be sure with using GoldBug (GB), that no third party can look into your chat communication. Private user-to-user communication remains private. GoldBug therefore uses strong multi-encryption with different layers of modern encryption technologies of well known and revised crypto libraries (like libgcrypt (GnuPG) and OpenSSL). For example it generates more than 8 public / private encryption keys based on RSA or NTRU or ElGamal. The app offers as well decentral and encrypted Email and decentral public E*IRC-Chat. As in every Messenger, you can share and transfer files. With tools like Rosetta Cryptopad and/or the File-Encryption tool you can convert text and files into ciphertext. 2 Why encryption matters: Today mostly every WIFI is protected with a password. In a few years as well every plaintext message or email to friends over the internet will be encrypted too. It is not a question to have something to hide or not, • it is a question to control by yourself the security of your communications - or having it controled by others. • It‘ s a question of free thinking and • taking away the presumption of innocence.*) • Democracy requires the thinking and debate of alternatives in private and public. "The question is not 'do you have something to hide?' Strong-Multi-Encryption ensures the The question is whether we control declaration of human rights in broad constitutional consensi and is a digital or they controls us." - Oliver Stone self-defense, everyone needs to learn http://www.youtube.com/watch?v=0U37hl0n9mY and utilize.
    [Show full text]
  • Flaws in Applying Proof Methodologies to Signature Schemes
    Flaws in Applying Proof Methodologies to Signature Schemes Jacques Stern1?, David Pointcheval1, John Malone-Lee2, and Nigel P. Smart2 1 D´ept d'Informatique, ENS { CNRS, 45 rue d'Ulm, 75230 Paris Cedex 05, France. E-mail: fJacques.Stern,[email protected] URL: http://www.di.ens.fr/~fstern,pointcheg 2 Computer Science Dept, Woodland Road, University of Bristol, BS8 1UB, UK. E-mail: fmalone, [email protected] URL: http://www.cs.bris.ac.uk/~fmalone,nigelg Abstract. Methods from provable security, developed over the last twenty years, have been recently extensively used to support emerging standards. However, the fact that proofs also need time to be validated through public discussion was somehow overlooked. This became clear when Shoup found that there was a gap in the widely believed security proof of OAEP against adaptive chosen-ciphertext attacks. We give more examples, showing that provable security is more subtle than it at first appears. Our examples are in the area of signature schemes: one is related to the security proof of ESIGN and the other two to the security proof of ECDSA. We found that the ESIGN proof does not hold in the usual model of security, but in a more restricted one. Concerning ECDSA, both examples are based on the concept of duplication: one shows how to manufacture ECDSA keys that allow for two distinct messages with identical signatures, a duplicate signature; the other shows that from any message-signature pair, one can derive a second signature of the same message, the malleability. The security proof provided by Brown [7] does not account for our first example while it surprisingly rules out malleabil- ity, thus offering a proof of a property, non-malleability, that the actual scheme does not possess.
    [Show full text]
  • 1 Review: Message Authentication Codes (Macs)
    EE 418 Network Security and Cryptography Lecture #15 November 22, 2016 Message Authentication Codes (MACs). Digital Signatures. Lecture notes prepared by Professor Radha Poovendran. Tamara Bonaci Department of Electrical Engineering University of Washington, Seattle Outline: 1. Review: Message Authentication Codes (MACs) { Review: MAC from Block Cipher: CBC-MAC 2. Introduction to Digital Signatures 3. RSA digital signature scheme 4. ElGamal digital signature scheme 5. Schnoor Digital signature scheme 6. The Digital signature algorithm 1 Review: Message Authentication Codes (MACs) Last time, we started our discussion about message authentication codes (MACs), and we defined a MAC as a code that is appended to a message in order to provide message integrity1. In MACs, communicating parties share a secret key that is used to generate the code, and if a MAC is well-designed, then only a user with the shared key can compute a valid MAC for a given message. Two parties Alice and Bob who share a key K can use a MAC for message integrity as follows (illustrated in Figure 1): 1. Alice computes a MAC for message m as y = MAC(K; m), and sends pair (m; y) through the channel to Bob. 2. Bob receives (m; y). Using the secret key, Bob computes MAC(K; m) and checks y =? MAC(K; m). 3. If y = MAC(K; m), then Bob accepts the message. Otherwise, Bob rejects the message, since the message and MAC are inconsistent. Alice Bob MAC Generation Computes y = MAC(K,m) from secret key K and message m [m, y] MAC Verification Extracts m, computes y’=MAC(K,m) If y + y’ =0, accept the message If y + y’≠ 0, discard the message Fig.
    [Show full text]
  • Pairing Cryptography and Verifiable Secret Sharing Scheme
    GROUP KEY ESTABLISHMENT PROTOCOLS: PAIRING CRYPTOGRAPHY AND VERIFIABLE SECRET SHARING SCHEME A Thesis Submitted to the Graduate School of Engineering and Science of İzmir Institute of Technology in Partial Fulfillment of the Requirements for the Degree of MASTER OF SCIENCE in Computer Engineering by Rabia ASLANOĞLU July 2013 İZMİR We approve the thesis of Rabia ASLANOĞLU Examining Committee Members: Assist. Prof. Dr. Serap ŞAHİN Department of Computer Engineering, İzmir Institute of Technology Assist. Prof. Dr. Kaan KURTEL Department of Software Engineering, İzmir University of Economics Assist. Prof. Dr. Selma TEKİR Department of Computer Engineering, İzmir Institute of Technology 1 July 2013 Assist. Prof. Dr. Serap ŞAHİN Supervisor, Department of Computer Engineering, İzmir Institute of Technology Prof. Dr. İ. Sıtkı AYTAÇ Prof. Dr. R. Tuğrul SENGER Head of the Department of Dean of the Graduate School of Computer Engineering Engineering and Sciences ACKNOWLEDGEMENTS I would like to express my deep appreciation to my thesis advisor Assist. Prof. Dr. Serap Şahin for her motivation, patience, enthusiasm and immense knowledge. She has provided invaluable suggestions and encouragement from the beginning of my research. Her wisdom always will guide me in the rest of my life. It is impossible to achieve my work without her support. I would also like to state my gratitude to my lecturer in İzmir Institute of Technology, Assist. Prof. Dr. Selma Tekir for her deepest kindness and support. It has been a pleasure to know and work with her. Finally, I would like to dedicate my thesis to my epic hero; my mum, Hatice Nurcan Aslanoğlu. She is the main character of my life journey and beyond the all human titles that I carry, I am honored to have the title of being of her daughter.
    [Show full text]
  • A Survey of Elliptic Curve Cryptosystems, Part I: Introductory San C
    NAS Technical Report - NAS-03-012 August 2003 -------------------------------------------------------------------------------------------------------------------------------- A Survey of Elliptic Curve Cryptosystems, Part I: Introductory San C. Vo NASA Advanced Supercomputing (NAS) Division – Research Branch (INR) Information Sciences & Technology Directorate NASA Ames Research Center, Moffett Field, CA 94043 Introduction The theory of elliptic curves is a classical topic in many branches of algebra and number theory, but recently it is receiving more attention in cryptography. An elliptic curve is a two-dimensional (planar) curve defined by an equation involving a cubic power of coordinate x and a square power of coordinate y. One class of these curves is elliptic curves over finite fields, also called Galois fields. These elliptic curves are finite groups with special structures, which can play naturally, and even more flexibly, the roles of the modulus groups in the discrete logarithm problems. Elliptic curves have been used actively in designing many mathematical, computational and cryptographic algorithms, such as integer factoring, primality proving, public key cryptosystems and pseudo-random number generators, etc. Essentially, elliptic curve cryptosystems promise a better future for cryptography: more security against powerful attacks in the era of computing capability. Many research papers in Elliptic Curve Cryptography (ECC) have been published by researchers all over the world. However, the idea of using elliptic curves in cryptography is still considered a difficult concept and is neither widely accepted nor understood by typical technical people. The problem may stem from the fact that there is a large gap between the theoretical mathematics of elliptic curves and the applications of elliptic curves in cryptography. A large amount of ECC literature was collected and organized in the development of this survey on ECC.
    [Show full text]
  • Elgamal Type Signature Schemes for N-Dimensional Vector Spaces
    ElGamal type signature schemes for n-dimensional vector spaces Iwan M. Duursmay and Seung Kook Parky Abstract We generalize the ElGamal signature scheme for cyclic groups to a signature scheme for n-dimensional vector spaces. The higher dimensional version is based on the untractability of the vector decomposition problem (VDP). Yoshida has shown that under certain conditions, the VDP on a two-dimensional vector space is at least as hard as the computational Di±e-Hellman problem (CDHP) on a one-dimensional subspace. 1 Introduction Intractable mathematical problems such as the integer factorization problem, the dis- crete logarithm problem (DLP), and the computational Di±e-Hellman problem (CDHP) are being used to provide secure protocols for cryptosystems. A new hard problem which is called the vector decomposition problem (VDP) was proposed in [8]. Yoshida [7] states the conditions that are required for the VDP on a two-dimensional vector space to be at least as hard as the CDHP on a one-dimensional subspace. The VDP on a two-dimensional vector space can serve as the underlying intractable problem for cryptographic protocols but the only protocol presented so far that uses the VDP is watermarking [7]. In this paper we present a signature scheme based on VDP and we generalize the ElGamal signature scheme for cyclic groups to a signature scheme for n- dimensional vector spaces. Algorithms of the generalized ElGamal signature scheme, DSA and ECDSA are given in Section 2. In Section 3 we state the de¯nitions of CDHP and VDP. Yoshida's conditions for the VDP on a two-dimensional vector space to be at least as hard as the CDHP on a one-dimensional subspace are stated without proof.
    [Show full text]