diff --git a/src/JsonWebToken/Cryptography/Pkcs1.cs b/src/JsonWebToken/Cryptography/Pkcs1.cs index eb94b572..ce924fc3 100644 --- a/src/JsonWebToken/Cryptography/Pkcs1.cs +++ b/src/JsonWebToken/Cryptography/Pkcs1.cs @@ -14,7 +14,7 @@ internal static class Pkcs1 #if NET6_0 public static ReadOnlySpan PrivateECKeyPrefix => "-----BEGIN EC PRIVATE KEY-----".AsSpan(); #else - public static ReadOnlySpan PrivateECKeyPrefix => { '-', '-', '-', '-', '-', 'B', 'E', 'G', 'I', 'N', ' ', 'E', 'C', ' ', 'P', 'R', 'I', 'V', 'A', 'T', 'E', ' ', 'K', 'E', 'Y', '-', '-', '-', '-', '-' };; + public static ReadOnlySpan PrivateECKeyPrefix => new[] { '-', '-', '-', '-', '-', 'B', 'E', 'G', 'I', 'N', ' ', 'E', 'C', ' ', 'P', 'R', 'I', 'V', 'A', 'T', 'E', ' ', 'K', 'E', 'Y', '-', '-', '-', '-', '-' }; #endif public static ReadOnlySpan PrivateECKeySuffix => new[] { '-', '-', '-', '-', '-', 'E', 'N', 'D', ' ', 'E', 'C', ' ', 'P', 'R', 'I', 'V', 'A', 'T', 'E', ' ', 'K', 'E', 'Y', '-', '-', '-', '-', '-' };