mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / arch / x86 / purgatory / sha256.h
blob2867d9825a57e5f1f734bfb4a5777bc31810b090
1 /*
2 * Copyright (C) 2014 Red Hat Inc.
4 * Author: Vivek Goyal <vgoyal@redhat.com>
6 * This source code is licensed under the GNU General Public License,
7 * Version 2. See the file COPYING for more details.
8 */
10 #ifndef SHA256_H
11 #define SHA256_H
13 #include <linux/types.h>
14 #include <crypto/sha.h>
16 extern int sha256_init(struct sha256_state *sctx);
17 extern int sha256_update(struct sha256_state *sctx, const u8 *input,
18 unsigned int length);
19 extern int sha256_final(struct sha256_state *sctx, u8 *hash);
21 #endif /* SHA256_H */