We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249e551 commit 982b88fCopy full SHA for 982b88f
sigstore-java/src/main/java/dev/sigstore/encryption/Keys.java
@@ -74,6 +74,8 @@ public static PublicKey parsePublicKey(byte[] keyBytes)
74
throw new InvalidKeySpecException("Invalid key, could not parse PEM section");
75
}
76
// special handling for PKCS1 (rsa) public key
77
+ // TODO: The length checking is not necessary after https://github.com/bcgit/bc-java/issues/1370
78
+ // has been merged. Remove it when bc-java is updated with the merge.
79
if ((section == null) || (section.getContent() == null) || (section.getContent().length == 0)) {
80
throw new InvalidKeySpecException("Invalid key, empty PEM section");
81
0 commit comments