Version 3.0.363

This commit is contained in:
Anja 2023-04-19 12:14:14 +02:00
parent 4ff3307997
commit 91d42552c7
212 changed files with 1799 additions and 1318 deletions

View file

@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using System.Text;
using NUnit.Framework;
using TINK.Services.BluetoothLock.Crypto;
@ -9,7 +9,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.Services.BluetoothLock.Crypto
public class TestCryptoHelper
{
/// <summary>
/// Ensures that decyption from haveltec- lib produces the same results than sharee lib.
/// Ensures that decryption from haveltec- lib produces the same results than sharee lib.
/// </summary>
[Test]
public void Test_DecryptStringFromBytes_Aes()
@ -41,7 +41,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.Services.BluetoothLock.Crypto
// Encrypted seed value from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
byte[] seedLockEnc = (new sbyte[] { 92, 80, -36, -2, 101, -31, -23, -43, 71, 62, 126, -70, 54, -53, -119, -56 }).Select(x => (byte)x).ToArray();
//// Decryped seed value? access values? from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
//// Decrypted seed value? access values? from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
byte[] seedLockDec = (new sbyte[] { 62, -51, 96, -80, 7, -84, 48, -104, 47, 51, -22, -23, 30, -10, -88, -97 }).Select(x => (byte)x).ToArray();
var crypto = new AuthCryptoHelper(
@ -67,7 +67,7 @@ namespace TestTINKLib.Fixtures.ObjectTests.Services.BluetoothLock.Crypto
// Encrypted seed value from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
byte[] seedLockEnc = (new sbyte[] { 92, 80, -36, -2, 101, -31, -23, -43, 71, 62, 126, -70, 54, -53, -119, -56 }).Select(x => (byte)x).ToArray();
// Decryped seed value? access values? from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
// Decrypted seed value? access values? from lock (value copied from debugging session of sharing_ble_lib/ haveltec code)
byte[] seedLockDec = (new sbyte[] { 62, -51, 96, -80, 7, -84, 48, -104, 47, 51, -22, -23, 30, -10, -88, -97 }).Select(x => (byte)x).ToArray();
var crypto = new AuthCryptoHelper(