secret icon indicating copy to clipboard operation
secret copied to clipboard

Find a bug and give a suggestion

Open huangbaoliu opened this issue 5 years ago • 0 comments

  1. When you want to split a key into m parts, you need to choose m rand as x. So these x should be different to each other, you shoud check then rand number choosen by you. Your code doesn't do this check !
  2. Because x is an one-byte value, you only need to malloc 256 bytes to store the invert table . In your code you use 64k byes to store the invert table.

huangbaoliu avatar Nov 19 '20 07:11 huangbaoliu