LibJuno 0.30.0
LibJuno is a lightweight C99 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
hash_api.h
Go to the documentation of this file.
1/*
2 MIT License
3
4 Copyright (c) 2025 Robin A. Onsay
5
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files
8 (the "Software"), to deal in the Software without restriction,
9 including without limitation the rights to use, copy, modify, merge,
10 publish, distribute, sublicense, and/or sell copies of the Software,
11 and to permit persons to whom the Software is furnished to do so,
12 subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
16*/
17
27#ifndef JUNO_HASH_API_H
28#define JUNO_HASH_API_H
29#include "juno/status.h"
30#include "juno/module.h"
31#include <stddef.h>
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
38
39typedef union JUNO_HASH_TAG JUNO_HASH_T;
40typedef struct JUNO_HASH_ROOT_TAG JUNO_HASH_ROOT_T;
41
43
45{
46
47 JUNO_STATUS_T (*Hash)(JUNO_HASH_T *ptHash, const uint8_t *pcBuff, size_t zBuffSize, size_t *pzRetHash);
48
49};
50
51#ifdef __cplusplus
52}
53#endif
54#endif // JUNO_HASH_API_H
union JUNO_HASH_TAG JUNO_HASH_T
Definition hash_api.h:39
struct JUNO_HASH_ROOT_TAG JUNO_HASH_ROOT_T
Definition hash_api.h:40
#define JUNO_MODULE_EMPTY
Definition module.h:126
#define JUNO_MODULE_ROOT(API_T, members)
Definition module.h:175
enum JUNO_STATUS_TAG JUNO_STATUS_T
Definition hash_api.h:45
JUNO_STATUS_T(* Hash)(JUNO_HASH_T *ptHash, const uint8_t *pcBuff, size_t zBuffSize, size_t *pzRetHash)
Definition hash_api.h:47