nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_sha224.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2025 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
30#ifndef OCRYPTO_SHA224_H
31#define OCRYPTO_SHA224_H
32
33#include <stddef.h>
34#include <stdint.h>
35
36#include "ocrypto_sha256.h"
37
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43
47#define ocrypto_sha224_BYTES (28)
48
50typedef ocrypto_sha256_ctx ocrypto_sha224_ctx;
70 ocrypto_sha224_ctx *ctx);
71
87 ocrypto_sha224_ctx *ctx,
88 const uint8_t *in, size_t in_len);
89
107 ocrypto_sha224_ctx *ctx,
108 uint8_t r[ocrypto_sha224_BYTES]);
121 uint8_t r[ocrypto_sha224_BYTES],
122 const uint8_t *in, size_t in_len);
123
124#ifdef __cplusplus
125}
126#endif
127
128#endif
129
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:47
void ocrypto_sha224_init(ocrypto_sha224_ctx *ctx)
void ocrypto_sha224_update(ocrypto_sha224_ctx *ctx, const uint8_t *in, size_t in_len)
SHA256 algorithm, a member of the SHA2 family, with 256 bit outputs.