Re: [PATCH v2] SP800-38F / RFC3394 key wrapping

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

 



On Tue, Apr 28, 2015 at 04:45:17AM +0200, Stephan Mueller wrote:
>
> The use case I see goes along the lines of dm-crypt and Ext4 crypto, or 
> ecryptfs:
> 
> For the key wrapping they all do, I am thinking about suggesting KW as it has 
> one advantage no other cipher currently has: it is an authenticated decryption 
> where I still only need one symmetric key. Yes, KW is inefficient compared to 
> other ciphers, but for handling small data blobs, it should be just fine.
> 
> For example, dm-crypt: dm-crypt currently uses the same cipher used for the 
> bulk encryption to wrap the LUKS header. Obviously we miss the authentication 
> check of the data blob. So, we could use other authenticated schemas, like GCM 
> or authenc(). But they all need either two keys or AAD for which the common 
> mechanisms typically have no provisions. Therefore, KW is a drop-in 
> replacement for standard symmetric ciphers where one want authentication as 
> well.

If it's for cases where the data is always linear, we could always
do this outside the crypto API.  You can still use AES from the crypto
API to do the actual crypto of course.

By keeping it out of the crypto API you wouldn't have to worry about
SG lists and can simply require the input to be linear u8 * buffers.

However, because this is an algorithm that is not otherwise useful
you'll need to ensure that at least one user is going to be accepted
into the kernel.

The implementation could go into lib.

Cheers,
-- 
Email: Herbert Xu <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