nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_sha224.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2024 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
23#ifndef OCRYPTO_SHA224_H
24#define OCRYPTO_SHA224_H
25
26#include <stddef.h>
27#include <stdint.h>
28
29#include "ocrypto_sha256.h"
30
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36
40#define ocrypto_sha224_BYTES (28)
41
43typedef ocrypto_sha256_ctx ocrypto_sha224_ctx;
61 ocrypto_sha224_ctx *ctx);
62
78 ocrypto_sha224_ctx *ctx,
79 const uint8_t *in, size_t in_len);
80
98 ocrypto_sha224_ctx *ctx,
99 uint8_t r[ocrypto_sha224_BYTES]);
112 uint8_t r[ocrypto_sha224_BYTES],
113 const uint8_t *in, size_t in_len);
114
115#ifdef __cplusplus
116}
117#endif
118
119#endif
120
void ocrypto_sha224(uint8_t r[(28)], const uint8_t *in, size_t in_len)
void ocrypto_sha224_final(ocrypto_sha224_ctx *ctx, uint8_t r[(28)])
#define ocrypto_sha224_BYTES
Definition: ocrypto_sha224.h:40
void ocrypto_sha224_init(ocrypto_sha224_ctx *ctx)
void ocrypto_sha224_update(ocrypto_sha224_ctx *ctx, const uint8_t *in, size_t in_len)