mrpdaemon / encfs-java

encfs-java is a Java library for accessing data in EncFS volumes
GNU Lesser General Public License v3.0
42 stars 15 forks source link

EncFSFile.copy() shouldn't treat uniqueIV differently #44

Closed mrpdaemon closed 11 years ago

mrpdaemon commented 11 years ago

Currently EncFSFile.copy() takes a different code path if the volume is using uniqueIV - this is not necessary. Unique IV header is generated randomly and is not dependent on the file path (unless external IV chaining is enabled - which is not supported yet), so there is no reason not to use fileProvider.copy (which is more efficient for most file providers) instead of doing a full stream read/write copy.

mrpdaemon commented 11 years ago

Fixed at dc7d4836f30c53aa6fb79f05a83036d0a01c8395