ecb.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "crypto/ciphers.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
41 int cipher_encrypt_ecb(const cipher_t *cipher, const uint8_t *input,
42  size_t length, uint8_t *output);
43 
57 int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input,
58  size_t length, uint8_t *output);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
Headers for the packet encryption class.
int cipher_encrypt_ecb(const cipher_t *cipher, const uint8_t *input, size_t length, uint8_t *output)
Encrypt data of arbitrary length in ecb mode.
int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input, size_t length, uint8_t *output)
Decrypts data of arbitrary length in ecb mode.
basic struct for using block ciphers contains the cipher interface and the context
Definition: ciphers.h:115