]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aead - Document behaviour of AD in destination buffer
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 06:37:26 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 03:23:16 +0000 (11:23 +0800)
commit344296b5729d8fc17f5e8aa406d94c4c584c57bc
tree565cefc1fb3824e8eecc269e939946385126ef6d
parentdb9c217ede62d0cfa4c3f8c89a18e185933c4f87
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