mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-19 03:27:29 +02:00
Version 3.0.363
This commit is contained in:
parent
4ff3307997
commit
91d42552c7
212 changed files with 1799 additions and 1318 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue