mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-30 14:10:34 +03:00
Add crypto files
This commit is contained in:
54
deps/cyclone/include/cipher_modes/ecb.h
vendored
Normal file
54
deps/cyclone/include/cipher_modes/ecb.h
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* @file ecb.h
|
||||
* @brief Electronic Codebook (ECB) mode
|
||||
*
|
||||
* @section License
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*
|
||||
* Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
|
||||
*
|
||||
* This file is part of CycloneCRYPTO Open.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
* @author Oryx Embedded SARL (www.oryx-embedded.com)
|
||||
* @version 2.4.4
|
||||
**/
|
||||
|
||||
#ifndef _ECB_H
|
||||
#define _ECB_H
|
||||
|
||||
//Dependencies
|
||||
#include "core/crypto.h"
|
||||
|
||||
//C++ guard
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//ECB encryption and decryption routines
|
||||
error_t ecbEncrypt(const CipherAlgo *cipher, void *context,
|
||||
const uint8_t *p, uint8_t *c, size_t length);
|
||||
|
||||
error_t ecbDecrypt(const CipherAlgo *cipher, void *context,
|
||||
const uint8_t *c, uint8_t *p, size_t length);
|
||||
|
||||
//C++ guard
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user