-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: security-libs
If `KeyFactory.generatePrivate` or `KeyFactory.generatePublic` is called on a `PKCS8EncodedKeySpec` or `X509EncodedKeySpec` object that has extra bytes at the end of its ASN.1 encoding, an `InvalidKeySpecException` will be thrown. Before this code change, these extra bytes were ignored.