Move all hash implementations to hash subdir
This commit is contained in:
parent
9bdc50df3c
commit
db18432f1c
16
Makefile.am
16
Makefile.am
@ -7,19 +7,13 @@ AM_LDFLAGS = $(BOOST_LDFLAGS) $(BOOST_FILESYSTEM_LIB) $(BOOST_SYSTEM_LIB) $(COM
|
|||||||
SUBDIRS = test
|
SUBDIRS = test
|
||||||
|
|
||||||
UTIL_FILES = \
|
UTIL_FILES = \
|
||||||
adler.hpp \
|
|
||||||
adler.cpp \
|
|
||||||
annotations.hpp \
|
annotations.hpp \
|
||||||
backtrace.hpp \
|
backtrace.hpp \
|
||||||
bitwise.cpp \
|
bitwise.cpp \
|
||||||
bitwise.hpp \
|
bitwise.hpp \
|
||||||
bsdsum.hpp \
|
|
||||||
bsdsum.cpp \
|
|
||||||
colour.cpp \
|
colour.cpp \
|
||||||
colour.hpp \
|
colour.hpp \
|
||||||
detail/coord.hpp \
|
detail/coord.hpp \
|
||||||
crc.cpp \
|
|
||||||
crc.hpp \
|
|
||||||
debug.cpp \
|
debug.cpp \
|
||||||
debug.hpp \
|
debug.hpp \
|
||||||
endian.cpp \
|
endian.cpp \
|
||||||
@ -42,12 +36,22 @@ UTIL_FILES = \
|
|||||||
guid.hpp \
|
guid.hpp \
|
||||||
hash.cpp \
|
hash.cpp \
|
||||||
hash.hpp \
|
hash.hpp \
|
||||||
|
hash/adler.cpp \
|
||||||
|
hash/adler.hpp \
|
||||||
|
hash/bsdsum.hpp \
|
||||||
|
hash/bsdsum.cpp \
|
||||||
|
hash/crc.cpp \
|
||||||
|
hash/crc.hpp \
|
||||||
hash/md2.cpp \
|
hash/md2.cpp \
|
||||||
hash/md2.hpp \
|
hash/md2.hpp \
|
||||||
hash/md4.cpp \
|
hash/md4.cpp \
|
||||||
hash/md4.hpp \
|
hash/md4.hpp \
|
||||||
hash/md5.cpp \
|
hash/md5.cpp \
|
||||||
hash/md5.hpp \
|
hash/md5.hpp \
|
||||||
|
hash/pbkdf1.cpp \
|
||||||
|
hash/pbkdf1.hpp \
|
||||||
|
hash/pbkdf2.cpp \
|
||||||
|
hash/pbkdf2.hpp \
|
||||||
hash/sha1.cpp \
|
hash/sha1.cpp \
|
||||||
hash/sha1.hpp \
|
hash/sha1.hpp \
|
||||||
image.cpp \
|
image.cpp \
|
||||||
|
20
hash/pbkdf1.cpp
Normal file
20
hash/pbkdf1.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of libgim.
|
||||||
|
*
|
||||||
|
* libgim is free software: you can redistribute it and/or modify it under the
|
||||||
|
* terms of the GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
* version.
|
||||||
|
*
|
||||||
|
* libgim is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with libgim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* Copyright 2013 Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "pbkdf1.hpp"
|
31
hash/pbkdf1.hpp
Normal file
31
hash/pbkdf1.hpp
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of libgim.
|
||||||
|
*
|
||||||
|
* libgim is free software: you can redistribute it and/or modify it under the
|
||||||
|
* terms of the GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
* version.
|
||||||
|
*
|
||||||
|
* libgim is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with libgim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* Copyright 2013 Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __UTIL_HASH_PBKDF1_HPP
|
||||||
|
#define __UTIL_HASH_PBKDF1_HPP
|
||||||
|
|
||||||
|
namespace util {
|
||||||
|
namespace hash {
|
||||||
|
class PBKDF1 {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
20
hash/pbkdf2.cpp
Normal file
20
hash/pbkdf2.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of libgim.
|
||||||
|
*
|
||||||
|
* libgim is free software: you can redistribute it and/or modify it under the
|
||||||
|
* terms of the GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
* version.
|
||||||
|
*
|
||||||
|
* libgim is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with libgim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* Copyright 2013 Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "pbkdf2.hpp"
|
31
hash/pbkdf2.hpp
Normal file
31
hash/pbkdf2.hpp
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of libgim.
|
||||||
|
*
|
||||||
|
* libgim is free software: you can redistribute it and/or modify it under the
|
||||||
|
* terms of the GNU General Public License as published by the Free Software
|
||||||
|
* Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
* version.
|
||||||
|
*
|
||||||
|
* libgim is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
* details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with libgim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* Copyright 2013 Danny Robson <danny@nerdcruft.net>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __UTIL_HASH_PBKDF2_HPP
|
||||||
|
#define __UTIL_HASH_PBKDF2_HPP
|
||||||
|
|
||||||
|
namespace util {
|
||||||
|
namespace hash {
|
||||||
|
class PBKDF2 {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
#include "adler.hpp"
|
#include "hash/adler.hpp"
|
||||||
#include "bsdsum.hpp"
|
#include "hash/bsdsum.hpp"
|
||||||
#include "types.hpp"
|
#include "types.hpp"
|
||||||
#include "debug.hpp"
|
#include "debug.hpp"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user