From 7ab1578d05f5d6790e218867158a28d9147419ec Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 10 Sep 2018 20:42:35 -0400 Subject: add crypt_des header for declarations shared with encrypt function --- src/crypt/crypt_des.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/crypt/crypt_des.h (limited to 'src/crypt/crypt_des.h') diff --git a/src/crypt/crypt_des.h b/src/crypt/crypt_des.h new file mode 100644 index 00000000..8ccbf8be --- /dev/null +++ b/src/crypt/crypt_des.h @@ -0,0 +1,14 @@ +#ifndef CRYPT_DES_H +#define CRYPT_DES_H + +#include + +struct expanded_key { + uint32_t l[16], r[16]; +}; + +void __des_setkey(const unsigned char *, struct expanded_key *); +void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *, + uint32_t, uint32_t, const struct expanded_key *); + +#endif -- cgit v1.2.1