"Fossies" - the Fresh Open Source Software Archive

Member "unrar/sha256.hpp" (4 May 2022, 333 Bytes) of package /linux/misc/unrarsrc-6.1.7.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "sha256.hpp" see the Fossies "Dox" file reference documentation.

    1 #ifndef _RAR_SHA256_
    2 #define _RAR_SHA256_
    4 #define SHA256_DIGEST_SIZE 32
    6 typedef struct
    7 {
    8   uint32 H[8];
    9   uint64 Count;
   10   byte Buffer[64];
   11 } sha256_context;
   13 void sha256_init(sha256_context *ctx);
   14 void sha256_process(sha256_context *ctx, const void *Data, size_t Size);
   15 void sha256_done(sha256_context *ctx, byte *Digest);
   17 #endif