Skip to content

NetMD download crypto fixes#4

Open
vuori wants to merge 6 commits intotharp:netmd-download-supportfrom
vuori:pr/tharp-netmd-download-fixes
Open

NetMD download crypto fixes#4
vuori wants to merge 6 commits intotharp:netmd-download-supportfrom
vuori:pr/tharp-netmd-download-fixes

Conversation

@vuori
Copy link

@vuori vuori commented Apr 8, 2018

This PR has fixes for a few crypto issues in your NetMD download support branch:

  1. Inter-packet IV setting fixed to use ciphertext instead of plaintext: fixes noise at packet boundaries.
  2. Simplified padding calculation: since all frame sizes are divisible by 8, separate cipher padding calculation is unnecessary.
  3. Last packet encryption fixed to always use outlen = inlen when calling gcry_cipher_encrypt: fixes noise at end of track.

I also reduced chunksize to 1MB since that seemed to lessen USB interface crashes on my device and this had eseentially no effect on speed. This is tested with both PCM and LP2 on an MZ-N710.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant