crypto: atmel-sha - fix .import()/.export() implementation
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Mon, 8 Feb 2016 15:26:48 +0000 (16:26 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Feb 2016 20:07:43 +0000 (04:07 +0800)
commit9c4274d90d2923dda7435073de6494f0250ccb5a
tree90ddbc5beb3c2de3c8d2738e29e5a7bfcc882262
parentfb16abc2e9deedf075cfe2a01584b092ab5440e0
crypto: atmel-sha - fix .import()/.export() implementation

Using only the digest, digcnt[], bufcnt and buffer[] fields of the
struct atmel_sha_reqctx was not enough to import/export the request state,
so now we use the whole structure.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c