2022-08-30 15:42:25 +02:00
|
|
|
|
using System;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
using TINK.Model.Device;
|
2022-08-30 15:42:25 +02:00
|
|
|
|
using Xamarin.Forms;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
|
|
|
|
[assembly: Dependency(typeof(TINK.iOS.Device.IOSCipher))]
|
|
|
|
|
namespace TINK.iOS.Device
|
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class IOSCipher : ICipher
|
|
|
|
|
{
|
|
|
|
|
/// <summary> Encrypt data.</summary>
|
|
|
|
|
/// <param name="key">Key to encrypt data.</param>
|
|
|
|
|
/// <param name="clear">Data to entrycpt.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public byte[] Encrypt(byte[] key, byte[] clear)
|
|
|
|
|
{
|
|
|
|
|
throw new NotSupportedException();
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary> Decrypt data. </summary>
|
|
|
|
|
/// <param name="key">Key to decrypt data with.</param>
|
|
|
|
|
/// <param name="encrypted">Encrpyted data to decrypt.</param>
|
|
|
|
|
/// <returns>Decrypted data.</returns>
|
|
|
|
|
public byte[] Decrypt(byte[] key, byte[] encrypted)
|
|
|
|
|
{
|
|
|
|
|
throw new NotSupportedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
}
|