Skip to content

Commit

Permalink
Merge pull request #104 from Blackcode/2.0
Browse files Browse the repository at this point in the history
Fixing : 'output buffer too short'
  • Loading branch information
gigajuwels authored Jul 10, 2023
2 parents 673bfaf + 86a2df6 commit 605b601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core Modules/WalletConnectSharp.Crypto/Crypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ private string DeserializeAndDecrypt(string symKey, string encoded)
aead.Init(false, new ParametersWithIV(new KeyParameter(symKey.HexToByteArray()), iv));

using MemoryStream rawDecrypted = new MemoryStream();
byte[] temp = new byte[8024];
byte[] temp = new byte[@sealed.Length];
int len = aead.ProcessBytes(@sealed, 0, @sealed.Length, temp, 0);

if (len > 0)
Expand Down

0 comments on commit 605b601

Please sign in to comment.