Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f6f1b86 authored by Alex Klyubin's avatar Alex Klyubin Committed by Android Git Automerger
Browse files

am a7f4d742: Merge "Remove unnecessary PKCS#1 authorization on legacy keys." into mnc-dev

* commit 'a7f4d742':
  Remove unnecessary PKCS#1 authorization on legacy keys.
parents 4b4495f0 a7f4d742
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -226,9 +226,8 @@ public abstract class AndroidKeyStoreKeyPairGeneratorSpi extends KeyPairGenerato
                                    | KeyProperties.PURPOSE_VERIFY);
                            // Authorized to be used with any digest (including no digest).
                            specBuilder.setDigests(KeyProperties.DIGEST_NONE);
                            specBuilder.setSignaturePaddings(
                                    KeyProperties.SIGNATURE_PADDING_RSA_PKCS1);
                            // Authorized to be used with any padding (including no padding).
                            // Authorized to be used with any encryption and signature padding
                            // scheme (including no padding).
                            specBuilder.setEncryptionPaddings(
                                    KeyProperties.ENCRYPTION_PADDING_NONE);
                            // Disable randomized encryption requirement to support encryption
+2 −3
Original line number Diff line number Diff line
@@ -258,9 +258,8 @@ public class AndroidKeyStoreSpi extends KeyStoreSpi {
                            | KeyProperties.PURPOSE_VERIFY);
            // Authorized to be used with any digest (including no digest).
            specBuilder.setDigests(KeyProperties.DIGEST_NONE);
            specBuilder.setSignaturePaddings(
                    KeyProperties.SIGNATURE_PADDING_RSA_PKCS1);
            // Authorized to be used with any padding (including no padding).
            // Authorized to be used with any encryption and signature padding scheme (including no
            // padding).
            specBuilder.setEncryptionPaddings(
                    KeyProperties.ENCRYPTION_PADDING_NONE);
            // Disable randomized encryption requirement to support encryption padding NONE