mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Move CBC, CFB, and OFB to the CryptoLegacy library
This commit is contained in:
@@ -25,6 +25,7 @@ This example runs tests on the CBC implementation to verify correct behaviour.
|
||||
*/
|
||||
|
||||
#include <Crypto.h>
|
||||
#include <CryptoLegacy.h>
|
||||
#include <AES.h>
|
||||
#include <CBC.h>
|
||||
#include <string.h>
|
||||
@@ -25,6 +25,7 @@ This example runs tests on the CFB implementation to verify correct behaviour.
|
||||
*/
|
||||
|
||||
#include <Crypto.h>
|
||||
#include <CryptoLegacy.h>
|
||||
#include <AES.h>
|
||||
#include <CFB.h>
|
||||
#include <string.h>
|
||||
@@ -25,6 +25,7 @@ This example runs tests on the OFB implementation to verify correct behaviour.
|
||||
*/
|
||||
|
||||
#include <Crypto.h>
|
||||
#include <CryptoLegacy.h>
|
||||
#include <AES.h>
|
||||
#include <OFB.h>
|
||||
#include <string.h>
|
||||
3
libraries/CryptoLegacy/keywords.txt
Normal file
3
libraries/CryptoLegacy/keywords.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
CBC KEYWORD1
|
||||
CFB KEYWORD1
|
||||
OFB KEYWORD1
|
||||
22
libraries/CryptoLegacy/library.json
Normal file
22
libraries/CryptoLegacy/library.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "CryptoLegacy",
|
||||
"version": "0.1.6",
|
||||
"keywords": "CBC,CFB,OFB",
|
||||
"description": "Legacy ciphers for the Arduino Cryptography Library",
|
||||
"authors":
|
||||
{
|
||||
"name": "Rhys Weatherley",
|
||||
"email": "rhys.weatherley@gmail.com",
|
||||
"url": "https://rweather.github.io/arduinolibs/crypto.html"
|
||||
},
|
||||
"export": {
|
||||
"include": "libraries/CryptoLegacy"
|
||||
},
|
||||
"repository":
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/rweather/arduinolibs.git"
|
||||
},
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*"
|
||||
}
|
||||
10
libraries/CryptoLegacy/library.properties
Normal file
10
libraries/CryptoLegacy/library.properties
Normal file
@@ -0,0 +1,10 @@
|
||||
name=CryptoLegacy
|
||||
version=1.0.0
|
||||
author=Rhys Weatherley <rhys.weatherley@gmail.com>
|
||||
maintainer=Rhys Weatherley <rhys.weatherley@gmail.com>
|
||||
sentence=Legacy algorithms in the Arduino Cryptography Library
|
||||
paragraph=This library provides implementations of various legacy cryptography algorithms which should not be used for new protocols but which may be needed when implementing older protocols.
|
||||
category=Communication
|
||||
url=https://github.com/rweather/arduinolibs
|
||||
architectures=*
|
||||
includes=CryptoLegacy.h
|
||||
29
libraries/CryptoLegacy/src/CryptoLegacy.h
Normal file
29
libraries/CryptoLegacy/src/CryptoLegacy.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Southern Storm Software, Pty Ltd.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef CRYPTO_LEGACY_H
|
||||
#define CRYPTO_LEGACY_H
|
||||
|
||||
// This header exists to make the Arudino IDE add the library to the
|
||||
// include and link paths when the sketch includes <CryptoLegacy.h>.
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user