ecb.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
22 #include "crypto/ciphers.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
44 int cipher_encrypt_ecb(const cipher_t *cipher, const uint8_t *input,
45  size_t length, uint8_t *output);
46 
60 int cipher_decrypt_ecb(const cipher_t *cipher, const uint8_t *input,
61  size_t length, uint8_t *output);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
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:118