crypto: aead - Document behaviour of AD in destination buffer
commit693b549d39ea755abea721eb53b4262f75f41fb9
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:26 +0000 (27 14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:16 +0000 (28 11:23 +0800)
tree565cefc1fb3824e8eecc269e939946385126ef6d
parent6d7e3d89954af773c70948a54cfa2aaa15907c1c
crypto: aead - Document behaviour of AD in destination buffer

This patch defines the behaviour of AD in the new interface more
clearly.  In particular, it specifies that if the user must copy
the AD to the destination manually when src != dst if they wish
to guarantee that the destination buffer contains a copy of the
AD.

The reason for this is that otherwise every AEAD implementation
would have to perform such a copy when src != dst.  In reality
most users do in-place processing where src == dst so this is
not an issue.

This patch also kills some remaining references to cryptoff.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/aead.h