nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_shake.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
17#ifndef OCRYPTO_SHAKE_H
18#define OCRYPTO_SHAKE_H
19
20#include <stddef.h>
21#include <stdint.h>
22
23#include "ocrypto_sha3.h"
24
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30
32typedef ocrypto_sha3_ctx ocrypto_shake_ctx;
50 ocrypto_shake_ctx *ctx);
51
67 ocrypto_shake_ctx *ctx,
68 const uint8_t *in, size_t in_len);
69
85 ocrypto_shake_ctx *ctx,
86 const uint8_t *in, size_t in_len);
87
106 ocrypto_shake_ctx *ctx,
107 uint8_t *r, size_t r_len);
108
127 ocrypto_shake_ctx *ctx,
128 uint8_t *r, size_t r_len);
129
145 ocrypto_shake_ctx *ctx,
146 uint8_t *r, size_t r_len);
147
163 ocrypto_shake_ctx *ctx,
164 uint8_t *r, size_t r_len);
178 uint8_t *r, size_t r_len,
179 const uint8_t *in, size_t in_len);
180
192 uint8_t *r, size_t r_len,
193 const uint8_t *in, size_t in_len);
194
195#ifdef __cplusplus
196}
197#endif
198
199#endif
void ocrypto_shake128_final(ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
void ocrypto_shake256_update(ocrypto_shake_ctx *ctx, const uint8_t *in, size_t in_len)
void ocrypto_shake256(uint8_t *r, size_t r_len, const uint8_t *in, size_t in_len)
void ocrypto_shake128(uint8_t *r, size_t r_len, const uint8_t *in, size_t in_len)
void ocrypto_shake128_update(ocrypto_shake_ctx *ctx, const uint8_t *in, size_t in_len)
void ocrypto_shake256_final(ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
void ocrypto_shake256_ext(ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
void ocrypto_shake128_ext(ocrypto_shake_ctx *ctx, uint8_t *r, size_t r_len)
void ocrypto_shake_init(ocrypto_shake_ctx *ctx)