Signed-off-by: Peter Palfrader <peter@palfrader.org>
begin
secret = File.new(secretfile, "r").read
rescue => e
- raise Puppet::ParseError, "Error loading secret from #{seccretfile}: #{e.message}\n#{e.backtrace}"
+ raise Puppet::ParseError, "Error loading secret from #{secretfile}: #{e.message}\n#{e.backtrace}"
end
hkdf = HKDF.new(secret, :info => data)
begin
secret = File.new(secretfile, "r").read
rescue => e
- raise Puppet::ParseError, "Error loading secret from #{seccretfile}: #{e.message}\n#{e.backtrace}"
+ raise Puppet::ParseError, "Error loading secret from #{secretfile}: #{e.message}\n#{e.backtrace}"
end
return OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new('sha256'), secret, data)