lib/lockbox/key_generator.rb in lockbox-0.4.2 vs lib/lockbox/key_generator.rb in lockbox-0.4.3

- old
+ new

@@ -9,10 +9,10 @@ def attribute_key(table:, attribute:) raise ArgumentError, "Missing table for key generation" if table.to_s.empty? raise ArgumentError, "Missing attribute for key generation" if attribute.to_s.empty? c = "\xB4"*32 - hkdf(Lockbox::Utils.decode_key(@master_key), salt: table.to_s, info: "#{c}#{attribute}", length: 32, hash: "sha384") + hkdf(Lockbox::Utils.decode_key(@master_key, name: "Master key"), salt: table.to_s, info: "#{c}#{attribute}", length: 32, hash: "sha384") end private def hash_hmac(hash, ikm, salt)