raise invalid signature for decoding in the wrong scheme

Change-Id: I0012c128d3bd79a9853ce7e28afbdc1cc9ebde4a