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
Ignore-AOSP-First: This is a cherry-pick from aosp
Merged-In: I5680f8fb293e7aff8ff7b961d35323777ce19fd1
Change-Id: I313d0d81b34ef4057352424966b08674eee0bbea
1 file changed