diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-04-09 12:55:35 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-16 22:52:42 +0200 |
| commit | 782b45c4d946d956c5bec3321c68a533281c021a (patch) | |
| tree | 9f721686246a2049b818ed68b974c71f9d7b16ae /include/linux/platform_data/camera-mx2.h | |
| parent | 7636a3c2ff4f4284e16c1d6d5ce1dad60cc8ffd3 (diff) | |
crypto: sha512 - implement base layer for SHA-512
To reduce the number of copies of boilerplate code throughout
the tree, this patch implements generic glue for the SHA-512
algorithm. This allows a specific arch or hardware implementation
to only implement the special handling that it needs.
The users need to supply an implementation of
void (sha512_block_fn)(struct sha512_state *sst, u8 const *src, int blocks)
and pass it to the SHA-512 base functions. For easy casting between the
prototype above and existing block functions that take a 'u64 state[]'
as their first argument, the 'state' member of struct sha512_state is
moved to the base of the struct.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/platform_data/camera-mx2.h')
0 files changed, 0 insertions, 0 deletions
