Class: CryptReboot::Luks::KeyFetcher
- Inherits:
-
Object
- Object
- CryptReboot::Luks::KeyFetcher
- Defined in:
- lib/crypt_reboot/luks/key_fetcher.rb
Overview
Fetch LUKS key
Constant Summary collapse
- InvalidPassphrase =
Class.new StandardError
Instance Method Summary collapse
Instance Method Details
#call(headevice, passphrase) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/crypt_reboot/luks/key_fetcher.rb', line 9 def call(headevice, passphrase) temp_provider.call do |key_file| luks_dump(headevice, key_file, passphrase) file_reader.call(key_file) end end |