Re: Does ESP support 64 bit sequence numbering for authentication hash ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dean Jenkins <djenkins@xxxxxxxxxx> wrote:
> 
> Does ESP support 64 bit sequence numbering for use with the
> authentication HMAC ?

We don't support 64-bit sequence numbers yet.  If you look at
struct xfrm_replay_state which is where we store the sequence
number internally you'll find that it uses u32s.

Patches for 64-bit support are welcome of course.

> I've looked at struct aead_givcrypt_request and it has a u64 seq member.
> Does ESP populate this with a 64 bit sequence number ?

That's different.  That's a generic value used to construct the IV.

> If 32 bit sequence numbering negotiated then how does the HMAC routine
> know that it should not use the top 32 bits of seq ? Or is it simply
> that if the top 32 bits are zero then the HMAC just uses the lower 32
> bits ?

Because the value we start out with is a u32, the high bits are
never set for IPsec.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux