Skip to content
Snippets Groups Projects
Commit 6d565b66 authored by Brian Carrier's avatar Brian Carrier
Browse files

Add copyright and license info. Continuation of work from #1904

parent a3ca85b9
Branches
Tags
No related merge requests found
......@@ -11,7 +11,7 @@
* when an error occurs.
*/
/* The IBM Public Licence must be distributed with this software.
/* The IBM Public License must be distributed with this software.
* AUTHOR(S)
* Wietse Venema
* IBM T.J. Watson Research
......
/* This file contains decompression routines used by APFS and HFS
* It has one method derived from public domain ZLIB and others
* that are TSK-specific.
*
* It would probably be cleaner to separate these into two files.
*/
#include "../libtsk.h"
#include "tsk_fs_i.h"
#include "decmpfs.h"
......@@ -13,7 +20,13 @@
/***************** ZLIB stuff *******************************/
// Adapted from zpipe.c (part of zlib) at http://zlib.net/zpipe.c
/* The zlib_inflate method is adapted from the public domain
* zpipe.c (part of zlib) at http://zlib.net/zpipe.c
*
* zpipe.c: example of proper use of zlib's inflate() and deflate()
* Not copyrighted -- provided to the public domain
* Version 1.4 11 December 2005 Mark Adler */
#define CHUNK 16384
/*
......@@ -140,6 +153,20 @@ zlib_inflate(char *source, uint64_t sourceLen, char *dest, uint64_t destLen, uin
#endif
/********************* TSK STUFF **********************/
/*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2019-2020 Brian Carrier. All Rights reserved
* Copyright (c) 2018-2019 BlackBag Technologies. All Rights reserved
*
* This software is distributed under the Common Public License 1.0
*/
typedef struct {
uint32_t offset;
uint32_t length;
......
/*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2018-2019 BlackBag Technologies. All Rights reserved
*
* This software is distributed under the Common Public License 1.0
*/
#pragma once
#include <stdint.h>
......@@ -8,6 +17,11 @@
extern "C" {
#endif
/**
* Contains the structures and function APIs dealing with compressed files
* in APFS and HFS+ file systems.
*/
/*
* If a file is compressed, then it will have an extended attribute
* with name com.apple.decmpfs. The value of that attribute is a data
......
......@@ -17,6 +17,9 @@ COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
NOTE: This is distributed in licenses/bsd.txt
*/
// LZVN low-level decoder
......
/*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2018-2019 BlackBag Technologies. All Rights reserved
*
* This software is distributed under the Common Public License 1.0
*/
/* This file contains routines used by APFS code.
* It could probably move into the 'fs' folder.
* It is XTS wrappers around OpenSSL
*/
#include "crypto.hpp"
#ifdef HAVE_LIBOPENSSL
......@@ -195,4 +208,4 @@ std::unique_ptr<uint8_t[]> hash_buffer_sha256(const void *input,
return hash;
}
#endif
\ No newline at end of file
#endif
#pragma once
/*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2018-2019 BlackBag Technologies. All Rights reserved
*
* This software is distributed under the Common Public License 1.0
*/
/**
* This is currently being used only by APFS
*/
#include "../base/tsk_base.h"
#ifdef HAVE_LIBOPENSSL
......@@ -48,4 +61,4 @@ std::unique_ptr<uint8_t[]> hash_buffer_md5(const void *input,
std::unique_ptr<uint8_t[]> hash_buffer_sha256(const void *input,
size_t len) noexcept;
#endif
\ No newline at end of file
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment