New answers tagged


You do not have to divide the data into 16-byte blocks and individually encrypt each block. The encrypt_and_digest method will handle all of this division for you. Instead you should call the method on the full array of data. By individually enciphering each block you are creating a nonce and tag for each block rather than a single nonce and tag for all of ...

Top 50 recent answers are included