/// <summary> /// Add PKCS#7 padding. This changes the array's length. /// </summary> public static byte[] Pkcs7(byte[] raw, int blocksize = 16) { return(ByteArrayHelpers.ForcePadWith(raw, blocksize, (byte)(blocksize - raw.Length % blocksize))); }