Changeset View
Changeset View
Standalone View
Standalone View
src/util/sha1hash.h
Context not available. | |||||
40 | class KTORRENT_EXPORT SHA1Hash | 40 | class KTORRENT_EXPORT SHA1Hash | ||
---|---|---|---|---|---|
41 | { | 41 | { | ||
42 | protected: | 42 | protected: | ||
43 | Uint8 hash[20]; | 43 | Uint32 hash[5]; | ||
44 | public: | 44 | public: | ||
45 | /** | 45 | /** | ||
46 | * Constructor, sets every byte in the hash to 0. | 46 | * Constructor, sets every byte in the hash to 0. | ||
Context not available. | |||||
111 | * Directly get pointer to the data. | 111 | * Directly get pointer to the data. | ||
112 | * @return The data | 112 | * @return The data | ||
113 | */ | 113 | */ | ||
114 | const Uint8* getData() const {return hash;} | 114 | const Uint8* getData() const {return (Uint8*) hash;} | ||
115 | 115 | | |||
116 | /** | 116 | /** | ||
117 | * Function to print a SHA1Hash to the Log. | 117 | * Function to print a SHA1Hash to the Log. | ||
Context not available. |