dotnet / android-samples

A collection of .NET for Android sample projects
https://dotnet.microsoft.com/apps/mobile
MIT License
2.21k stars 4.05k forks source link

Adding a new fingerprint throws IllegalBlockSizeException exceptions #292

Closed nithinthampi08 closed 5 months ago

nithinthampi08 commented 5 years ago

This issue is regarding Fingerprint Guide project. Consider that I have added a fingerprint and then I install and run the app, then there is no issue but when I add a new fingerprint and then runs the app again (not reinstalling) then I an getting IllegalBlockSizeException on executing the line:

byte[] doFinalResult = result.CryptoObject.Cipher.DoFinal(SECRET_BYTES);

How can I fix this?