US 20050108533 A1
A method, and associated apparatus, comprises calculating a first part of a message authentication function by a first processor, calculating a second part of the message authentication function by a second processor, and combining the first and second parts into the message authentication function by the first or second processor. The message authentication function can be used to authenticate data transmitted between the first processor and a third processor.
1. A method, comprising:
calculating a first part of a message authentication function by a first processor;
calculating a second part of the message authentication function by a second processor; and
combining the results of the first and second parts into the message authentication code by the first or second processors.
2. The method of
3. The method of
4. The method of
5. The method of
6. The method of
7. The method of
8. The method of
9. A method implemented in a first computer, comprising:
creating a record;
computing a first part of a message authentication function using the contents of the record;
providing the result of the first part to a second computer; and
receiving the result of a second part of the message authentication function from the second computer, said second part computed using a data key that is not available to the first computer.
10. The method of
11. A system, comprising:
a first processor configured to compute a first part of a multi-part message authentication function;
a second processor in communication with the first processor, the second processor is configured to compute a second part of the message authentication function;
wherein the first part of the message authentication function takes the contents of a record and the second part takes a data key, and the first processor does not have the data key and the second processor does not have the record contents.
12. The system of
13. The system of
14. The system of
15. The system of
16. The system of
17. A computer, comprising:
a processor; and
memory containing code executable by said processor;
wherein said executable code causes said processor to compute a first part of a message authentication function including contents of a record, providing the result of said first part to a second computer, receiving the result of a second part of the message authentication function from the second computer, and encoding the record with the result of the second part; and
wherein the record contents are not revealed to the second computer and the second part is computed by the second computer using a data key that is not revealed to the first computer.
18. A method implemented in a first computer, comprising:
receiving a record from a third computer;
computing a first part of a message authentication function using the contents of the record;
providing the result of the first part and the message authentication code in the record to a second computer; and
the second computer computing a second part of the message authentication function based on the result of the first part, using a data key that is not available to the first computer, and validating the message authentication code with the result of the message authentication function.
Increasingly, the Internet is becoming a forum for conducting business activities, such as online banking and stock trading. Various security protocols may be used to ensure that the business applications associated with the business activities are reliable and secure. Although some security protocols may provide a measure of reliability and security, at least some of the protocols may not provide adequate certification.
In at least some embodiments, a method comprises calculating a first part of a message authentication function by a first processor, calculating a second part of the message authentication function by a second processor, and combining the first and second parts into the message authentication function by the first or second processor. The message authentication function can be used to authenticate data transmitted between the first processor and a third processor.
For a detailed description of embodiments of the invention, reference will now be made to the accompanying drawings in which:
Certain terms are used throughout the following description. As one skilled in the art will appreciate, various companies may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . ” Also, the term “couple” or “couples” is intended to mean either an indirect or direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections. Unless otherwise explicitly indicated, embodiments discussed herein should be construed as exemplary, and not limiting in scope.
The following discussion is directed to various embodiments of the invention. Although one or more of these embodiments may be preferred, the embodiments disclosed should not be interpreted, or otherwise used, as limiting the scope of the disclosure, including the claims. In addition, one skilled in the art will understand that the following description has broad application, and the discussion of any embodiment is meant only to be exemplary of that embodiment, and not intended to intimate that the scope of the disclosure, including the claims, is limited to that embodiment.
In general, the embodiments described herein permit a data communication between a pair of entities (e.g., a server and a client) to be verified. Further, the embodiments provided herein are directed to client-side verification meaning that communications between client and server are encoded in a trustworthy manner, thereby permitting the source of the data as well as the data itself to be authenticated. Although, client-side logic is shown to assist the client in authenticating data to/from the server, similar logic may be used on the server side to provide comparable authentication to the server.
Referring now to
In accordance with the embodiments of the invention, the electronic witnessing system 100 independently “witnesses” an electronic communication between the client 104 and the server 102. In this context, the verb “witness” means to authenticate the contents of a communications process and the parties involved in the communications process. As described below, a “witness” (noun) refers to an entity that assists in the verification process. The communication process is generated in response to an application, such as an online banking or stock trading system, that may be running on the server 102. The witness 106 may generate “evidence” of the electronic communication between the client 104 and the server 102 in the form of verification records that may indicate the authenticity of the communication process.
The client 104 may establish two transmission control protocol (TCP) connections 108 and 110 with the witness 106 and the server 102, respectively. Data may be exchanged between the client 104 and the witness 106 via the connection 108 and between the client 104 and the server 102 via the connection 110. In other embodiments, user datagram protocol (UDP) may be used in place of the connections 108 and 110.
The client 104 may send a request to the witness 106 through the TCP connection 108 requesting a secure sockets layer (SSL) “session” with the server 102. In general, an SSL session is an established cryptographic-based communications channel between two computer systems. For example, a first computer system may establish an SSL session with a second computer system by performing an SSL “handshake.” During the handshake, cryptographic algorithms, such as triple-DES and RC4, that may be used to encrypt communications during the session may be determined. In addition, the handshake may authenticate either computer's identity and generate a shared secret code between the first and second computers. The identify of the second computer may be authenticated by sending an X.509 certificate from the second computer to the first computer. The certificate may contain the second computer's domain name and a “public key” that is signed by a trusted certificate authority, such as VeriSign. The public key allows the first computer to encrypt messages that may be read only by the second computer. The shared secret code may be generated by encrypting a random number on the first computer using the second computer's public key and sending the encrypted random number to the second computer. The second computer may decrypt the random number to replicate the shared secret code, thereby ensuring that the second computer is indeed the system identified by the certificate. In this way, the client 104 can verify the authenticity of the server 102.
An SSL session may comprise one or more SSL “connections.” Each SSL connection is layered on a transport protocol, such as TCP. When an SSL connection is created, the session's shared secret code, as previously discussed, may be used to generate symmetric “encryption keys” and message authentication code secrets (“MAC secrets”) that are shared between the first and second computer systems. Each direction (i.e., from the first computer to the second computer and from the second computer to the first computer) of the SSL connection may have an associated MAC secret and encryption key. The encryption key facilitates the encryption and decryption of data between the first and second computer systems, while the MAC secret may be used to generate a message authentication code (MAC), as discussed below.
During an SSL connection, data generated by application and control messages, such as a change in the cryptographic algorithms or strength of the algorithms, may be transferred between the first and second computer systems via SSL “records.” Each record, optionally compressed to decrease size, is encrypted with the agreed upon cryptographic algorithms via the encryption keys. Included within each record is a sequence number that indicates the relative ordering of an SSL record in relation to other SSL records sent during the SSL connection. When an SSL record is received, the record may be decrypted with the encryption keys. The receiver of the SSL record may re-compute the MAC for the record using the receiver's MAC secret code and compare the re-computed MAC with the MAC included in the SSL record. If the MACs are identical, the record is validated. The validated record may be decompressed if necessary. If the MACs are not identical, due to tampering or other inconsistencies, the session is invalidated. Secure file transfer protocol (SFTP) and secure hypertext transfer protocol (HTTPS) are two examples of applications that use SSL. Other similar applications may use SSL as well.
The MAC associated with an a SSL record may be computed from a one way hashing function referred to as a “MAC function.” In general, a one-way hash function, H(m), operates on an arbitrary-length message, m, and returns a fixed-length has value, h, with the following properties: (1) given m, the computation of h may be relatively easy; (2) given h, the computation of m such that H(m)=h may be relatively hard; and (3) given m, it may be relatively hard to find another message m′ such that H(m)=H(m).
An iterated one-way hash function, such as MD5 and SHA1, may start with a constant initialization vector (IV) and process a message in fixed-sized blocks, such as 512 bits, and may use the result of the current block to derive the IV for the next block. That is,
In accordance with embodiments of the invention, the message authentication function is used to process a record and to generate a MAC that is record specific. Although the embodiments disclosed below use a particular MAC function called HMAC, other MAC function variants, such as an NMAC function, may similarly be used. The HMAC of an SSL 3.0 record may be computed as:
In response to the request for an SSL session from the client 104, the witness 106 may perform an SSL handshake, as previously described, with the server 102. While performing the SSL handshake, the witness 106 may record the handshake messages, including the X.509 certificate and the cryptographic algorithms chosen for the session, in non-volatile memory or another storage mechanism, such as a hard drive, in the witness 106. The generated SSL connection 112 may be operated over the TCP connections 108 and 110 and is “proxied” through the client 104. The proxy forwards all SSL records sent from the witness 106 to the server 102. In addition, the proxy forwards all SSL records sent from the server 102 to the witness 106.
As can be seen from Eq. (2) above, the HMAC is a function, at least in part, on the MAC secret and the record contents. The MAC secret is a data key allowing the computation of the HMAC. In accordance with the embodiments of the invention, the client contains the record contents and the witness contains the data key, e.g., the MAC secret. The client is not permitted to have or otherwise determine the MAC secret, and the witness is not permitted access to the record contents. This aspect by which values that are necessary to compute the HMAC are maintained by separate processors is made possible by decomposing the HMAC into separate parts, at least one part of which is computed by the client and at least another part is computed by the witness. As explained more fully below, the decomposition of the HMAC into the various parts results in the MAC secret being relevant only to the parts that the witness is permitted to compute and the record contents being relevant only to the part that the client is permitted to compute.
The computation of the HMAC may be decomposed into three parts, hereafter referred to as “DeHMAC1,” “DeHMAC2,” and “DeHMAC3.” The processor 120 of witness 106 may calculate the DeHMAC1 and the DeHMAC3, while the processor 118 of client 104 may calculate the DeHMAC2. By decomposing the computation of the HMAC function, the client 104 and the witness 106 each partakes in at least one component of the HMAC calculation. More specifically, the MAC secret associated with an SSL connection may not be revealed to the client 104. In addition, the data contents of an SSL record may not be revealed to the witness 106, thereby creating a mutual dependence between the client 106 and the witness 106 for the generation of the HMAC function that may be needed to carry out SSL communications.
In order to facilitate communication between the client 104 and the server 102, the witness 106 may compute DeHMAC1 as:
In the second step, the client 104, receiving DeHMAC1 from the witness 106, may compute DeHMAC2 as:
In the third step, the witness 106, receiving DeHMAC2 from the client 104, may compute DeHMAC3, and thus HMAC, as:
The above decomposition of the HMAC function may apply to hashing functions, such as MD5, that possess a secret that may be contained in the first block to H( ) with the entire pad1. For other hashing functions, such as SHA1, part of the pad1 may be included in Eq. (4) to produce a decomposition of the HMAC function.
Referring now to
The client 104 may send application data (block 216) by creating an SSL record (block 218), computing the DeHMAC2 for the SSL record (block 220), and sending the computed DeHMAC2 to the witness 106. Based on the DeHMAC2, the witness 106 may compute the DeHMAC3, which represents the HMAC, (block 222) and record the MAC associated with the SSL record (block 224). The MAC may be then sent to the client 104, and the client 104 may record the contents of the SSL record (block 226) in non-volatile memory or another permanent storage. The SSL record with the MAC attached then may be encrypted by the client 104 (block 212) and sent to the sever (block 210). Alert messages, in addition to the application data, may also be sent by the client 104 (block 228) to inform the server 102 that the SSL session is closing or the SSL session is being invalidated.
Referring now to
When the client receives an SSL record (block 302) after the handover of encryption keys and the DeHMAC1, the record may be decrypted by the client 104 (block 326). If application data is found in the decrypted record, the DeHMAC2 may be computed for the received record by the client 104 (block 328). The computed DeHMAC2 then may be sent to the witness 106 where the DeMAC3, and thus the HMAC, may be computed (block 330) and a MAC generated for the record. The computed MAC may be verified (block 308) and the same procedure as discussed above may result from the verification. Although not specifically shown in
If a control message, such as an alert message, is found during decryption (block 326), the record is sent to the witness 106 where the MAC for the record is computed (block 306) and the computed MAC may be verified (block 308) as previously discussed.
The sending and receiving of SSL records as described in
After the SSL session is shutdown without errors, the witness 106 may digitally sign the recorded server 102 certificate, per-connection MAC secrets, MACs and sequence numbers and send the information to the client 104 as the evidence of the SSL communication. In case of failure by the server 102, the client 104, or the witness 106, throughout any phase of the communication, the evidence may not be sent from the witness 106 to the client 104.
To verify the evidence as authentic, the SSL records recorded by the client 104 may have a one-to-one correspondence with the MACs recorded by the witness 106. In addition, if each record contents recorded by the client 104 generates the corresponding recorded MAC using the MAC secret recorded by the witness 106, the communications may be deemed authentic.
The above discussion is meant to be illustrative of the principles and various embodiments of the present invention. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.