Method: EncryptedStore::CryptoHash._split_binary_data
- Defined in:
- lib/encrypted_store/crypto_hash.rb
._split_binary_data(encrypted_data) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/encrypted_store/crypto_hash.rb', line 65 def _split_binary_data(encrypted_data) # Split encrypted data and CRC bytes = encrypted_data.bytes version = bytes[0] version_method = "_split_binary_data_v#{version}" if respond_to?(version_method) send(version_method, encrypted_data) else raise Errors::UnsupportedVersionError, "Unsupported encrypted data version: #{version}" end end |