Re: [Openvpn-devel] [Openvpn-users] Why is the authentication tag transmitted before the encrypted data?

2019-03-18 Thread Pieter Hulshoff
Hello Steffan,

Op zo 17 mrt. 2019 om 09:31 schreef Steffan Karger :

> As far as I understand, mostly because the V1 data channel protocol put
> the HMAC before the ciphertext. James might remember why the original
> data channel protocol put the tag in front.
>
> The current GCM wire spec was proposed by James in
> <54648eac.70...@openvpn.net>
> (
> https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg09516.html
> ).
>
> I had a short (off-list) discussion with James in 2015 where I proposed
> moving the tag to the end of the data frame, to facilitate hardware
> implementations. But because (software) implementation of the proposed
> protocol had already progressed, we ended up not adopting that proposal.
>

Your (unanswered) question in the discussion on that topic was actually
what triggered my question, Steffan. :) From a software design perspective,
I can understand how having the tag at a specific location can be handy,
but from a telecom hardware based streaming perspective it is a tad
unfortunate. Since I'm mostly involved with the latter, I ran into this
issue when designing the architecture for our next development cycle.I
compared it with MACsec, because in the past I've been involved with
implementing that in hardware (up to 400 Gb/s).

Kind regards,

Pieter Hulshoff
___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


Re: [Openvpn-devel] [Openvpn-users] Why is the authentication tag transmitted before the encrypted data?

2019-03-17 Thread Steffan Karger
Hi Pieter,

[ Adding in -devel, because this really is more of a devel topic. ]

On 15-03-19 15:29, Pieter Hulshoff wrote:
> I was wondering why the authentication tag is transmitted before the
> encrypted data in stead of after it (like in e.g. MACsec).

As far as I understand, mostly because the V1 data channel protocol put
the HMAC before the ciphertext. James might remember why the original
data channel protocol put the tag in front.

The current GCM wire spec was proposed by James in
<54648eac.70...@openvpn.net>
(https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg09516.html).

I had a short (off-list) discussion with James in 2015 where I proposed
moving the tag to the end of the data frame, to facilitate hardware
implementations. But because (software) implementation of the proposed
protocol had already progressed, we ended up not adopting that proposal.

-Steffan


___
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel