summaryrefslogtreecommitdiff
path: root/include/crypto/des.h
blob: fc6274c6bb26cbfc6056c8abc1dcc5668c847119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 
 * DES & Triple DES EDE Cipher Algorithms.
 */

#ifndef __CRYPTO_DES_H
#define __CRYPTO_DES_H

#define DES_KEY_SIZE		8
#define DES_EXPKEY_WORDS	32
#define DES_BLOCK_SIZE		8

#define DES3_EDE_KEY_SIZE	(3 * DES_KEY_SIZE)
#define DES3_EDE_EXPKEY_WORDS	(3 * DES_EXPKEY_WORDS)
#define DES3_EDE_BLOCK_SIZE	DES_BLOCK_SIZE


extern unsigned long des_ekey(u32 *pe, const u8 *k);

extern int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key,
			     unsigned int keylen);

#endif /* __CRYPTO_DES_H */
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:25:26 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-27 12:25:26 -0800
commit69978aa0f21f43529e11f924504dadb6ce2f229a (patch)
treecad7f9c9b01b7d1839a3d12e9178ceb5b2b33873 /net/rxrpc/misc.c
parent2b4321503e62523e701405163a034875e92d68cf (diff)
parent0d6da872d3e4a60f43c295386d7ff9a4cdcd57e9 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Martin Schwidefsky: "Another two bug fixes: - ptrace partial write information leak - a guest page hinting regression introduced with v4.6" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/mm: Fix cmma unused transfer from pgste into pte s390/ptrace: Preserve previous registers for short regset write
Diffstat (limited to 'net/rxrpc/misc.c')