MikhailMS/rust-radius

Code duplication in salt_encrypt/encrypt & salt_decrypt/decrypt

MikhailMS opened this issue · 1 comments

Looks like:

  1. Loop in encrypt_data is similar to the one in salt_encrypt_data
  2. Loop in decrypt_data is similar to the one in salt_decrypt_data

so there is a potential to move loops into thier own small functions