I might also add there is a problem with the patched code when trying to "decap" a red key...
You get a "caam_jr 30902000.jr: Decapsulation job failed" message and the returned value is the same as the encapped value.
There are other messages in the forum about this, just search for "Decapsulation job failed" and you will see them. They have gone unanswered.
I do not see why NXP did not preserve the wrap/unwrap feature that is in the IMX6 kernel drivers, and also have a driver that fails. Code compatibility should be paramount and lead to people using the newer products when you do not have to re-engineer a bunch of code.