Init
This commit is contained in:
34
Source/include/slikenet/crypto/ifileencrypter.h
Normal file
34
Source/include/slikenet/crypto/ifileencrypter.h
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, SLikeSoft UG (haftungsbeschr<68>nkt)
|
||||
*
|
||||
* This source code is licensed under the MIT-style license found in the license.txt
|
||||
* file in the root directory of this source tree.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <cstddef> // required for size_t
|
||||
|
||||
namespace SLNet
|
||||
{
|
||||
namespace Experimental
|
||||
{
|
||||
namespace Crypto
|
||||
{
|
||||
class IFileEncrypter
|
||||
{
|
||||
// constructor / destructor
|
||||
protected:
|
||||
IFileEncrypter() = default;
|
||||
public:
|
||||
virtual ~IFileEncrypter() = default;
|
||||
|
||||
// signing methods
|
||||
public:
|
||||
virtual const unsigned char* SignData(const unsigned char* data, const size_t dataLength) = 0;
|
||||
virtual const char* SignDataBase64(const unsigned char* data, const size_t dataLength) = 0;
|
||||
virtual bool VerifyData(const unsigned char *data, const size_t dataLength, const unsigned char *signature, const size_t signatureLength) = 0;
|
||||
virtual bool VerifyDataBase64(const unsigned char *data, const size_t dataLength, const char *signature, const size_t signatureLength) = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user