lib/rmega/nodes/uploadable.rb in rmega-0.2.6 vs lib/rmega/nodes/uploadable.rb in rmega-0.2.7

- old
+ new

@@ -67,10 +67,10 @@ end pool.shutdown # encrypt attributes - _attr = serialize_attributes(:n => ::File.basename(path)) + _attr = serialize_attributes(:n => Utils.utf8(::File.basename(path))) _attr = aes_cbc_encrypt(rnd_node_key.aes_key, _attr) # Calculate meta_mac file_mac = aes_cbc_mac(rnd_node_key.aes_key, chunk_macs.sort.map(&:last).join, "\x0"*16) rnd_node_key.meta_mac = Utils.compact_to_8_bytes(file_mac)