27 #ifndef LCX_RIPEMD160_H
28 #define LCX_RIPEMD160_H
36 #define CX_RIPEMD160_SIZE 20
41 struct cx_ripemd160_s {
42 struct cx_hash_header_s header;
51 typedef struct cx_ripemd160_s cx_ripemd160_t;
62 WARN_UNUSED_RESULT cx_err_t cx_ripemd160_init_no_throw(cx_ripemd160_t *hash);
72 static inline int cx_ripemd160_init(cx_ripemd160_t *hash)
74 #pragma GCC diagnostic push
75 #pragma GCC diagnostic ignored "-Wunused-result"
76 cx_ripemd160_init_no_throw(hash);
77 #pragma GCC diagnostic pop
93 cx_err_t cx_ripemd160_hash_iovec(
const cx_iovec_t *iovec,
95 uint8_t digest[
static CX_RIPEMD160_SIZE]);
109 static inline cx_err_t cx_ripemd160_hash(
const uint8_t *in,
111 uint8_t digest[
static CX_RIPEMD160_SIZE])
115 return cx_ripemd160_hash_iovec(&iovec, 1, digest);
131 size_t cx_hash_ripemd160(
const uint8_t *in,
size_t in_len,
uint8_t *out,
size_t out_len);
Similar to libc iovec type.