1
0
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:
Rhys Weatherley
2018-04-26 07:56:57 +10:00
parent a03d95e7b4
commit d9ebc63878
17 changed files with 127 additions and 8 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,3 @@
CBC KEYWORD1
CFB KEYWORD1
OFB KEYWORD1

View 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": "*"
}

View 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

View 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