简体   繁体   中英

cannot convert from list<byte> to byte[] [on hold]

public static byte[] Encrypt(byte[] data, List<byte[]> key)
{
  List<uint[]> keyBuffer = CreateKey(key);
}

I encountered this error when I tried to get XTEA to take the genetic key in enter code here every XTEA cycle

You have an list of arrays. Is that the correct format?

You can create an arrayOfArrays using key.toArray() you will have a matrix byte[][]

Documentation for toArray: toArray docs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM