1
Vote

Portable.Store Cryptography TransformFinalBlock not implemented return empty buffer

description

In order tu use encryption from a Store App you need to implement TransformFinalBlock like this in CryptoTransformAdapter.cs :
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
        {
            IBuffer transformed =Transform(inputBuffer.AsBuffer(inputOffset, inputCount));
            
            return transformed.ToArray(); 
        }
But I have an error with the first 16 decrypted bytes not correctly decrypted

comments