cannam@226: /* cannam@226: Copyright 2012 David Robillard cannam@226: cannam@226: Permission to use, copy, modify, and/or distribute this software for any cannam@226: purpose with or without fee is hereby granted, provided that the above cannam@226: copyright notice and this permission notice appear in all copies. cannam@226: cannam@226: THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES cannam@226: WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF cannam@226: MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR cannam@226: ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES cannam@226: WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN cannam@226: ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF cannam@226: OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. cannam@226: */ cannam@226: cannam@226: #ifndef ZIX_DIGEST_H cannam@226: #define ZIX_DIGEST_H cannam@226: cannam@226: #include cannam@226: #include cannam@226: cannam@245: #include "common.h" cannam@226: cannam@226: #ifdef __cplusplus cannam@226: extern "C" { cannam@226: #endif cannam@226: cannam@226: ZIX_API uint32_t cannam@226: zix_digest_start(void); cannam@226: cannam@226: ZIX_API uint32_t cannam@226: zix_digest_add(uint32_t hash, const void* buf, const size_t len); cannam@226: cannam@226: #ifdef __cplusplus cannam@226: } /* extern "C" */ cannam@226: #endif cannam@226: cannam@226: #endif /* ZIX_DIGEST_H */