Re: authentication (SRP*, DH, TLS)



Joseph Ashwood wrote:
Unfortunately, it is necessary to encrypt the channel, otherwise you have
only renamed the Man in the Middle to Hijacker in the Middle as now he
simply sits in the middle until after authentication, then hijacks the
connection.

Encryption neither sufficient nor necessary here though. What is
necessary is to simply authenticate all communication. Encryption
hides information, authentication makes sure you know who you're
talking to and that the communication is intact.

The simplest way to authenticate a strema of messages via TCP is by
sending message M[i] as the authenticated message length(M[i]) || M[i]
|| H[i] where H[i] = MAC(K, H[i-1] || M[i]).

Here take H[0] as a fixed constant -- a different one for the
client->server direction than for the server->client direction. MAC
can be HMAC-SHA1, Poly1305-AES, or any other decent MAC. The explicit
message length can be omitted if the message space is already
prefix-free.

Sending a nonce in a message and getting it back in a reply message
will also ensure liveliness (replay protection). As to establishing
the key K, see my previous post.

- xmath

.



Relevant Pages

  • Re: Encryption and authentication
    ... have encryption without authentication? ... it seems that encryption couldn't exist without authentication. ... and example is asymmetric key cryptography technology. ... http://www.garlic.com/~lynn/aadsm24.htm#7 Naked Payments IV - let's all go naked ...
    (comp.security.firewalls)
  • Re: Signatures and encryption headers
    ... breached when an attacker can modify the message received? ... But I see how the lack of authentication can cause the receiver to act ... not for the iv or other encryption ... A create a payload, S signs it with public key crypto (most likely ...
    (sci.crypt)
  • Re: Ciphers and their effect on the size of data
    ... We have a security-sensitive client that is wants common authentication between a J2EE environment and a "fat windows client". ... we'll also be facing 4/3 expansion of the payload after encryption. ... This password field will include a digital signature, or the digital signature will be in another XML element in that document. ...
    (sci.crypt)
  • Re: Ciphers and their effect on the size of data
    ... The user goes to the J2EE server, ... and submit them to the UNIX-hosted service for authentication. ... authenticate to the J2EE environment first, ... facing 4/3 expansion of the payload after encryption (for base64 ...
    (sci.crypt)
  • Efficient message authentication?
    ... Is the following message authentication algorithm known? ... One would like to combine encryption and authentication, ... faces impractically difficult patent negotiations for ...
    (sci.crypt)