You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .net core version works nicely, execept it doenst generate EXACTLY the same tokens as the online tool does when using Azure CDN. I wonder of it might be to do with the order of the parameters that get encoded?
The text was updated successfully, but these errors were encountered:
The tokens need to look different every time you create them as the Initialization Vector is created randomly everytime.
byte[] iv = new byte[NonceBitSize / 8];
Random.NextBytes(iv, 0, iv.Length);
var cipher = new GcmBlockCipher(new AesFastEngine());
// var parameters = new AeadParameters(new KeyParameter(key), MacBitSize, nonce, nonSecretPayload);
KeyParameter keyParam = new KeyParameter(key);
ICipherParameters parameters = new ParametersWithIV(keyParam, iv);
cipher.Init(true, parameters);
The .net core version works nicely, execept it doenst generate EXACTLY the same tokens as the online tool does when using Azure CDN. I wonder of it might be to do with the order of the parameters that get encoded?
The text was updated successfully, but these errors were encountered: