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

Commit da2da492 authored by David Drysdale's avatar David Drysdale
Browse files

Warn about certificate serial number size

Bug: 343627215
Test: None, comment change only
Change-Id: I362e30991ca951670ae29e9a1d9b51cf31c2ef71
parent de818c2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1149,6 +1149,8 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec, UserAu

        /**
         * Sets the serial number used for the certificate of the generated key pair.
         * To ensure compatibility with devices and certificate parsers, the value
         * should be 20 bytes or shorter (see RFC 5280 section 4.1.2.2).
         *
         * <p>By default, the serial number is {@code 1}.
         */