headers = \
dcrypt.h \
- dcrypt-iostream-private.h \
+ dcrypt-iostream.h \
dcrypt-private.h \
ostream-encrypt.h \
istream-decrypt.h
+++ /dev/null
-#ifndef DCRYPT_IOSTREAM_PRIVATE_H
-#define DCRYPT_IOSTREAM_PRIVATE 1
-
-static const unsigned char IOSTREAM_CRYPT_MAGIC[] = {'C','R','Y','P','T','E','D','\x03','\x07'};
-#define IOSTREAM_CRYPT_VERSION 2
-#define IOSTREAM_TAG_SIZE 16
-
-#endif
--- /dev/null
+#ifndef DCRYPT_IOSTREAM_H
+#define DCRYPT_IOSTREAM_H 1
+
+static const unsigned char IOSTREAM_CRYPT_MAGIC[] = {'C','R','Y','P','T','E','D','\x03','\x07'};
+#define IOSTREAM_CRYPT_VERSION 2
+#define IOSTREAM_TAG_SIZE 16
+
+enum io_stream_encrypt_flags {
+ IO_STREAM_ENC_INTEGRITY_HMAC = 0x1,
+ IO_STREAM_ENC_INTEGRITY_AEAD = 0x2,
+ IO_STREAM_ENC_INTEGRITY_NONE = 0x4,
+ IO_STREAM_ENC_VERSION_1 = 0x8,
+};
+
+#endif
#include "istream.h"
#include "istream-decrypt.h"
#include "istream-private.h"
-#include "dcrypt-iostream-private.h"
+#include "dcrypt-iostream.h"
#include "hex-binary.h"
#define ISTREAM_DECRYPT_READ_FIRST 15
-enum io_stream_encrypt_flags {
- IO_STREAM_ENC_INTEGRITY_HMAC = 0x1,
- IO_STREAM_ENC_INTEGRITY_AEAD = 0x2,
- IO_STREAM_ENC_INTEGRITY_NONE = 0x4,
- IO_STREAM_ENC_VERSION_1 = 0x8,
-};
-
struct decrypt_istream {
struct istream_private istream;
buffer_t *buf;
#include "lib.h"
#include "buffer.h"
#include "randgen.h"
+#include "dcrypt-iostream.h"
#include "ostream-encrypt.h"
#include "ostream-private.h"
#include "hash-method.h"
#include "sha2.h"
#include "safe-memset.h"
#include "dcrypt.h"
-#include "dcrypt-iostream-private.h"
#include <arpa/inet.h>
*
*/
-enum io_stream_encrypt_flags {
- IO_STREAM_ENC_INTEGRITY_HMAC = 0x1,
- IO_STREAM_ENC_INTEGRITY_AEAD = 0x2,
- IO_STREAM_ENC_INTEGRITY_NONE = 0x4,
- IO_STREAM_ENC_VERSION_1 = 0x8,
-};
-
struct ostream *
o_stream_create_encrypt(struct ostream *output,
const char *algorithm,
#include "buffer.h"
#include "str.h"
#include "dcrypt.h"
+#include "dcrypt-iostream.h"
#include "ostream.h"
#include "ostream-encrypt.h"
#include "istream.h"
-#include "istream-decrypt.h"
#include "iostream-temp.h"
#include "randgen.h"
#include "test-common.h"
#include "buffer.h"
#include "str.h"
#include "dcrypt.h"
+#include "dcrypt-iostream.h"
#include "ostream.h"
#include "ostream-encrypt.h"
#include "istream.h"