Moved SHA256 code to libshared.a.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37235 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,6 +20,7 @@ StaticLibrary libshared.a :
|
|||||||
HashString.cpp
|
HashString.cpp
|
||||||
Keymap.cpp
|
Keymap.cpp
|
||||||
RWLockManager.cpp
|
RWLockManager.cpp
|
||||||
|
SHA256.cpp
|
||||||
ShakeTrackingFilter.cpp
|
ShakeTrackingFilter.cpp
|
||||||
StringForSize.cpp
|
StringForSize.cpp
|
||||||
Variant.cpp
|
Variant.cpp
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
SubDir HAIKU_TOP src tests add-ons kernel file_systems consistency_check ;
|
SubDir HAIKU_TOP src tests add-ons kernel file_systems consistency_check ;
|
||||||
|
|
||||||
|
UsePrivateHeaders shared ;
|
||||||
|
|
||||||
SimpleTest generate_hashs :
|
SimpleTest generate_hashs :
|
||||||
generate_hashs.cpp
|
generate_hashs.cpp
|
||||||
AdaptiveBuffering.cpp
|
AdaptiveBuffering.cpp
|
||||||
SHA256.cpp
|
: be $(TARGET_LIBSTDC++) libshared.a
|
||||||
: be $(TARGET_LIBSTDC++)
|
|
||||||
;
|
;
|
||||||
|
|
||||||
SimpleTest consistency_check :
|
SimpleTest consistency_check :
|
||||||
consistency_check.cpp
|
consistency_check.cpp
|
||||||
AdaptiveBuffering.cpp
|
AdaptiveBuffering.cpp
|
||||||
SHA256.cpp
|
: be $(TARGET_LIBSTDC++) libshared.a
|
||||||
: be $(TARGET_LIBSTDC++)
|
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -18,8 +18,9 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
|
|
||||||
|
#include <SHA256.h>
|
||||||
|
|
||||||
#include "AdaptiveBuffering.h"
|
#include "AdaptiveBuffering.h"
|
||||||
#include "SHA256.h"
|
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE(x...) printf(x)
|
//#define TRACE(x...) printf(x)
|
||||||
@@ -211,7 +212,7 @@ main(int argc, char** argv)
|
|||||||
file_entry entry;
|
file_entry entry;
|
||||||
read(file, entry.hash, SHA_DIGEST_LENGTH);
|
read(file, entry.hash, SHA_DIGEST_LENGTH);
|
||||||
read(file, &entry.node, sizeof(ino_t));
|
read(file, &entry.node, sizeof(ino_t));
|
||||||
|
|
||||||
int length;
|
int length;
|
||||||
read(file, &length, sizeof(int));
|
read(file, &length, sizeof(int));
|
||||||
read(file, buffer, length + 1);
|
read(file, buffer, length + 1);
|
||||||
|
|||||||
@@ -18,8 +18,9 @@
|
|||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
|
|
||||||
|
#include <SHA256.h>
|
||||||
|
|
||||||
#include "AdaptiveBuffering.h"
|
#include "AdaptiveBuffering.h"
|
||||||
#include "SHA256.h"
|
|
||||||
|
|
||||||
|
|
||||||
//#define TRACE(x...) printf(x)
|
//#define TRACE(x...) printf(x)
|
||||||
|
|||||||
Reference in New Issue
Block a user