Replace encryption check by proper pattern

The cryptfs format has changed a little bit, making our
check a pattern for support. This should help to be more
robust to different versions.

Test: unit tests
Bug: 63623132
Change-Id: Ia459e1b4160535966bfdfc6135aad551bf7507d0
2 files changed