Correct handling of MGF1 digest tags, and unknown tags generally

The Trusy HAL service erroneously converted MGF1 digest tags to
Tag::INVALID.  This represents two errors.  First, it should handle
MGF1 digest tags correctly, second it should not convert unknown tags
into Tag::INVALID, it should simply return them unmodified (but
otherwise ignore them).

Bug: 278157584
Test: adb shell /data/nativetest/VtsAidlKeyMintTargetTest/VtsAidlKeyMintTargetTest
(cherry picked from https://android-review.googlesource.com/q/commit:45cb1e2de14d5a67f162778967c296ac0596abe2)
Merged-In: I5680f8fb293e7aff8ff7b961d35323777ce19fd1
Change-Id: I5680f8fb293e7aff8ff7b961d35323777ce19fd1
1 file changed