diff --git a/Android.Test/KeyDerivationTests.cs b/Android.Test/KeyDerivationTests.cs index e48cc8b4c..2b9154e95 100644 --- a/Android.Test/KeyDerivationTests.cs +++ b/Android.Test/KeyDerivationTests.cs @@ -2,6 +2,7 @@ using System; using System.Text; using System.Linq; using NUnit.Framework; +using Bit.Android.Services; namespace Bit.Android.Test { @@ -18,7 +19,7 @@ namespace Bit.Android.Test [Test] public void MakeKeyFromPasswordBase64() { - var service = new CommonCryptoKeyDerivationService(); + var service = new BouncyCastleKeyDerivationService(); var key = service.DeriveKey(Encoding.UTF8.GetBytes("123456"), Encoding.UTF8.GetBytes("salt"), 5000); Assert.True(key.SequenceEqual(GetKey())); } @@ -26,7 +27,7 @@ namespace Bit.Android.Test [Test] public void HashPasswordBase64() { - var service = new CommonCryptoKeyDerivationService(); + var service = new BouncyCastleKeyDerivationService(); var hash = service.DeriveKey(GetKey(), Encoding.UTF8.GetBytes("123456"), 1); var hashBytes = Convert.FromBase64String("7Bsl4ponrsFu0jGl4yMeLZp5tKqx6g4tLrXhMszIsjQ="); Assert.True(hash.SequenceEqual(hashBytes));