Abstract:
A method of safe key exchange in wireless/wired environment prevents communication messages from being intercepted or sniffed by hackers. The method includes a public key protection technique based on the combination of RSA and Diffie-Hellman PKDS, a binary operation key protection technique, and a multivariable operation key protection technique. The method allows both parties of wireless/wired communication use these three techniques alternately to create linked key groups between both parties and thereby effectively and efficiently ensure the safety of subsequent communication.

Description:
FIELD OF THE INVENTION 
       [0001]    The present invention is a secure key exchange method in wireless/wired environments. More preciously, it is a method that comprises a binary operation key protection technique, a multivariable operation key protection technique, and a public key protection technique based on the integration of the RSA and the Diffie-Hellman PKDS. 
       BACKGROUND OF THE INVENTION 
       [0002]    In wireless/wired communication, security of key exchange between both parties for their communication is of vital importance. At the beginning of a communication, messages delivered between the two parties are encrypted with random variables that serve as dynamic keys. The purpose is to ensure that the communication can be securely performed. 
         [0003]    From the early GSM system to the developing LTE and the WiMAX system in use, when communication begins, the system end first chooses a random variable as the dynamic key with which to generate the extending linked keys, and then the dynamic key and the extending linked keys are sent to the user end. For example, in GSM, the system end (HLR) generates a random number RAND, and employs A 3  and A 8  functions which in return invoke the RAND and user&#39;s individual key K i  as the inputs to compute the dynamic extending linked keys SRES and K c . After that it sends the RAND, SRES and K c  to the user end. 
         [0004]    In LTE, the system end (AuC/HSS) performs computation on UE Security key K and the random variable RAND to generate dynamic keys CK, IK, XRES and AUTN, and then sends these dynamic keys to the user end. 
         [0005]    In WiMAX PKMv1, the system end (base station) encrypts a random variable AK, generated by the base station, by using RSA public key (PubKey(SS)) issued by the user end, and then sends the encrypted random variable to the user end for use therein. In the WiMAX PKMv2, RSA-based authorization process creates a random variable pre_AK for the system end (ASN), encrypting it with RSA, sending the encrypted pre_AK to the user end, deriving dynamic keys EIK and PAK from pre_AK, and eventually protecting subsequent EAP messages with the EIK. 
       SUMMARY OF THE INVENTION 
       [0006]    In the aforesaid wireless/wired communication system, random variables are always generated by the system end at the beginning of communication. However, the system end has to serve a plurality of users. If at the beginning of communication, random variables are first generated by the user end, and then other random variables are generated by the system end, the randomness of the random variables will be higher than the case in which the first random variable is generated by the system end, thereby encumbering decryption and enhancing safety. Furthermore, at the beginning of communication, new random variables are always generated on each message exchange, and the new random variables can form the linked key groups for use at the user end and the system end in operating a safe protection mechanism for later transmitted messages between the two ends so as to enhance the safety of the communication system greatly. The present invention provides methods of safe key exchange to address the aforesaid feature and enable random variables to be generated on the user end and the system end during their communication. 
         [0000]    The present invention employs functions as follows:
 
1. Diffie-Hellman PKDS Function in which
       DH(x,p,g)=g x  mod p, where p is a strong prime, g is a primitive root of p, and x is a random variable, wherein DH(x,p,g), p and x are of the same length, i.e., 128, 256, 512, 1024 or 2048 bits.       
 
       2. Exclusive OR Function 
       [0000]    
       
         
           
             Encryption: EXOR(x,y)=x⊕y 
             Decryption: y=x⊕EXOR(x,y) 
           
         
       
     
       3. Exclusive AND Function 
       [0000]    
       
         
           
             Encryption: EXAND(x,y)=x⊙y 
             Decryption: y=x⊙EXAND(x,y) 
           
         
       
     
       4. Binary ADD Function 
       [0000]    
       
         
           
             Encryption: ADD(x,y)=x+y, where “+” is a binary adder which discards the carry of the most significant bits of x+y 
             Decryption: y=ADD(x,y)−x, if ADD(x,y)≧x
           y=ADD(x,y)+  x +1, if ADD(x,y)&lt;x   
         
           
         
       
     
       5. Data Transmission Function 
       [0000]    
       
         
           
             Encryption: Datfun(a,b,c)=(a⊕b)+c, where key a is the transmitted key and keys b and c are known by both the sender and receiver beforehand. 
             Decryption: a=(Datfun(a,b,c)−c)⊕b, if Datfun(a,b,c)≧c
           a=(Datfun(a,b,c)+  c +1)⊕b, if Datfun(a,b,c)&lt;c   
         
           
         
       
     
       6. RSA Encryption/Decryption Function 
       [0000]    
       
         
           
             Encryption: RSA−En(m,e)=m e  mod N, where m is the message to be delivered and (e,N) is the RSA public key 
             Decryption: RSA−De(RSA−En(m,e),d)=RSA−En(m,e) d  mod N, where (d,N) is the RSA private key
 
The present invention relates to three protection techniques as follows:
 
           
         
         1. Public Key Protection Technique Based on Combination of RSA and Diffie-Hellman PKDS.
 
First, the sender (party A) sends its RSA public key (e A , N A ) and public key Y a  of Diffie-Hellman PKDS to the receiver (party B). Then, party B encrypts Y b  (party B&#39;s public key of Diffie-Hellman PKDS) by (e A , N A ) and sends the encrypted Y b  to party A. In doing so, Y b  receives complete and safe protection, and in consequence the common secret key CSK 1  to be generated by both parties will be safer.
 
         2. Binary Operation Key Protection Technique
 
The binary operation key protection technique is about computation performed on protected message with two different dynamic keys and two different operators. Assuming that key a is a message to be protected, while key b and key c are dynamic linked keys in the possession of both parties to communication. Party A then sends Datfun(a,b,c) to party B, such that key a receives dual protection of key b and key c to thereby effectuate transmission safety.
 
         3. Multivariable Operation Key Protection Technique
 
The multivariable operation key protection technique is about computation performed on protected message with three or more other dynamic keys, and two or more operators. Assuming that key x is a message unit to be protected and keys a, b, c and d are dynamic linked keys. Party A then sends the encrypted key y to party B, where y=((x⊕a)+b)⊙(c+d), and in consequence key x receives highly safe protection.
 
       
     
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0023]    Objectives, features, and advantages of the present invention are hereunder illustrated with a specific embodiment in conjunction with the accompanying drawings, in which: 
           [0024]      FIG. 1  is a flow chart of a specific embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
       [0025]    According to the present invention, a wireless/wired environment dispenses with a certification authority (CA), but users (the user end and the system end) have their own RSA Triple keys, i.e., (e,d,N), where (e,N) is a RSA public key for encrypting message, and (d,N) is a RSA private key for decrypting message. In the wireless/wired communication environment, the user end and the system end process the same Diffie-Hellman PKDS, i.e., DH(x,p,g)=g x  mod p. The user end (party A) and the system end (party B) create linked key groups through wireless/wired links by following the steps of: 
         [0000]    Step 1: The user end (party A) executes the following tasks:
 
(a) generating two random variables X a1  and X a2  for serving as private keys of Diffie-Hellman PKDS;
 
(b) generating corresponding public keys Y a1  and Y a2  of Diffie-Hellman PKDS, where Y aj =g x     aj    mod p, j=1,2;
 
(c) sending message 1, ((e A , N A ), Y a1 , Y a2 ), to the system end (party B), where the number of the public keys of Diffie-Hellman PKDS in message 1 is two, but is not limited thereto, as it is also feasible to have one, two, or more than two public keys of Diffie-Hellman PKDS in message 1;
 
Step 2: On receiving message 1, the system end (party B) executes the following tasks:
 
(a) retrieving random variables X b1  and X b2  from a pre-established internal random variables table to serve as its private keys, calculating the corresponding public keys Y b1  and Y b2 , respectively, and then retrieving three random variables AK 1 , AK 2 , and AK 3  also from the variables table;
 
(b) encrypting Y b1  with (e A , N A ) carried in message 1  issued by party A by using the equation below
 
         [0000]      RSA−En( Y   b1   ,e   A )= Y   b1   e     A    mod  N   A ;
 
         [0000]    (c) calculating both parties&#39; common secret key CSK j , where 
         [0000]      CSK j   =Y   aj   X     bj    mod  p, 1 ≦j≦ 2; 
         [0000]    (d) sending message 2, that is,
 
((e B , N B ), RSA−En(Y b1 , e A ), Datfun(Y b2 , Y b1 , CSK 1 ), Datfun(AK 1 , CSK 1 , Y b2 ), Datfun(AK 2 , Y b2 , CSK 2 ), Datfun(AK 3 , CSK 2 , CSK 1 )) to party A, where the number of data transmission functions (Datfun( )) in message 2 is four, but is not limited thereto, as it is also feasible to have one, two, three, four or more data transmission functions (Datfun( )) in message 2, depending on the number of random keys to be encrypted;
 
Step 3: On receiving message 2 issued by party B, the user end (party A) executes the following tasks:
 
(a) decryption: Y b1 =RSA−En(Y b1 , e A ) d     A    mod N A ; Now the key exchange by using the public key protection technique which combines RSA and Diffie-Hellman PKDS has been completed;
 
(b) computation: CSK 1 =Y b1   X     a1    mod p;
 
(c) decryption: let DAT=Datfun(Y b2 , Y b1 , CSK 1 ), where
 
         [0000]    
       
         
           
             
               Y 
               
                 b 
                  
                 
                     
                 
                  
                 2 
               
             
             = 
             
               { 
               
                 
                   
                     
                       
                         
                           ( 
                           
                             
                               D 
                                
                               
                                   
                               
                                
                               A 
                                
                               
                                   
                               
                                
                               T 
                             
                             - 
                             
                               C 
                                
                               
                                   
                               
                                
                               S 
                                
                               
                                   
                               
                                
                               
                                 K 
                                 1 
                               
                             
                           
                           ) 
                         
                         ⊕ 
                         
                           Y 
                           
                             b 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                       , 
                     
                   
                   
                     
                       
                         if 
                          
                         
                             
                         
                          
                         D 
                          
                         
                             
                         
                          
                         A 
                          
                         
                             
                         
                          
                         T 
                       
                       ≥ 
                       
                         C 
                          
                         
                             
                         
                          
                         S 
                          
                         
                             
                         
                          
                         
                           K 
                           1 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           ( 
                           
                             
                               D 
                                
                               
                                   
                               
                                
                               A 
                                
                               
                                   
                               
                                
                               T 
                             
                             + 
                             
                               C 
                                
                               
                                   
                               
                                
                               S 
                                
                               
                                   
                               
                                
                               
                                 K 
                                 1 
                               
                             
                             + 
                             1 
                           
                           ) 
                         
                         ⊕ 
                         
                           Y 
                           
                             b 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                       , 
                     
                   
                   
                     
                       
                         
                           if 
                            
                           
                               
                           
                            
                           D 
                            
                           
                               
                           
                            
                           A 
                            
                           
                               
                           
                            
                           T 
                         
                         &lt; 
                         
                           C 
                            
                           
                               
                           
                            
                           S 
                            
                           
                               
                           
                            
                           
                             K 
                             1 
                           
                         
                       
                       ; 
                     
                   
                 
               
             
           
         
       
     
         [0000]    Now the key exchange by employing the binary operation key protection technique has been completed;
 
(d) generating CSK 2 =Y b2   X     a2    mod p;
 
(e) decrypting AK 1 , AK 2 , and AK 3  in sequence by using the same technique described in (c).
 
Since Y can only be decrypted by party A who possesses private key (d A , N A ), implying that Y b1  is safely protected, hackers are unable to figure out Y b1 . Even if a hacker figures out X a1  from Y a1 , s/he cannot derive CSK 1 ; i.e., CSK 1  receives RSA and Diffie-Hellman PKDS dual protection and is much safer than either one. Furthermore, it is unlikely that hackers can figure out Y b2  without Y b1  and CSK 1 , and thus Y b2  is safe. By analogy, CSK 2 , AK 1 , AK 2  and AK 3  are safe.
 
Technique 1 and technique 2 of the present invention apply to an instance of roundtrip communication between the user end and the system end in sequence, and in consequence safe linked key groups, such as Y b1 , Y b2 , CSK 1 , CSK 2 , AK 1 , AK 2 , and AK 3 , are then generated between both parties. The linked key groups ensure message safety for subsequent communication between the two ends. When the user end (party A) wants to create linked key groups between the user end (party A) and the system end (party B) by wireless/wired communication, on receiving message 2 ((e B , N B ), RSA−En(Y b1 , e A ), Datfun(Y b2 , Y b1 , CSK), Datfun(AK 1 , CSK 1 , Y b2 ), Datfun(AK 2 , Y b2 , CSK 2 ), Datfun(AK 3 , CSK 2 , CSK 1 )) issued by the system end, party A decrypts RSA−En(Y b1 , e A ) to obtain Y b1 , calculates common secret key CSK 1  by employing Y b1  and its own private key X a1 , decrypts Datfun(Y b2 , Y b1 , CSK 1 ) by using Y b1  and CSK 1  to obtain Y b2 , calculates common secret key CSK 2  by invoking Y b2  and its own private key X a2 , decrypts Datfun(AK 1 , CSK 1 , Y b2 ) by CSK 1  and Y b2  to acquire AK 1 , decrypts Datfun(AK 2 , Y b2 , CSK 2 ) by using Y b2  and CSK 2  to obtain AK 2 , and decrypts Datfun(AK 3 , CSK 2 , CSK 1 ) by CSK 2  and CSK 1  to obtain AK 3 . In doing so, two dynamic linked keys Y b1  and CSK 1  undergo encryption/transmission/decryption to obtain a new dynamic linked key Y b2 , and then sequentially extend the dynamic linked keys safely results in a new dynamic linked key group, i.e., Y b1 , Y b2 , CSK 1 , CSK 2 , AK 1 , AK 2  and AK 3 , which represents an important contribution of the present invention.
 
In a wireless/wired communication system, a random variable is generated by the system end at the beginning of communication. However, the system end has to serve a plurality of users. If at the beginning of communication, random variables are generated by the user end and other random variables are generated by the system end, the randomness of the random variables will be higher than the case in which the first random variable is generated by the system end, thereby encumbering decryption and enhancing safety. In step 1 of the present invention, random variables Y a1  and Y a2  are generated by the user end, and then random variables Y b1 , Y b2 , AK 1 , AK 2  and AK 3  are produced by the system end; hence, after an instance of roundtrip message transmission, both parties possess seven dynamic linked keys, namely Y b1 , Y b2 , CSK 1 , CSK 2 , AK 1 , AK 2  and AK 3  with which both parties encrypt delivered messages and messages in the subsequent communication, so that communication can be safely performed.
 
Assuming that party A wants to send an important message K to party B, party A can employ two safe transmission techniques as follows:
 
Technique 1: encrypting message K with party B&#39;s RSA public key (e B , N B ), that is, RSA−En(K, e B )=K e     B    mod N B , and then sending RSA−En(K, e B ) to party B;
 
Technique 2: encrypting message K with the multivariable operation key protection technique, that is, X=((K⊕AK 1 )+AK 2 )⊙(AK 3 ⊕CSK 2 ), and then sending X to party B. With this technique, message K can be safely protected, thereby effectuating higher performance when compared with the RSA encryption/decryption system.
 
In technique 2, message K is encrypted by the multivariable operation keys protection technique. This technique is performed on protected message key, by using three or more dynamic keys, and two or more operators.
 
Although both the two aforesaid techniques protect the message K, technique 2 excels technique 1 in speed and thus in performance.