mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 13:06:47 +00:00
Use a MIME Base64 decoder for attachment signing keys.
This commit is contained in:
1 parent
4b42dd1db3
commit
59e401f41e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -76,7 +76,7 @@ public class CanonicalRequestSigner {
|
||||
if (matcher.matches()) {
|
||||
try {
|
||||
final KeyFactory keyFactory = KeyFactory.getInstance("RSA");
|
||||
final PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.getDecoder().decode(matcher.group(1)));
|
||||
final PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(Base64.getMimeDecoder().decode(matcher.group(1)));
|
||||
final PrivateKey key = keyFactory.generatePrivate(keySpec);
|
||||
|
||||
testKeyIsValidForSigning(key);
|
||||
|
||||
Reference in new issue
Block a user