public string ToSigningAlgorithm()

in Notation.Plugin.AzureKeyVault/Protocol/KeySpec.cs [94:111]


        public string ToSigningAlgorithm() => Type switch
        {
            KeyType.RSA => Size switch
            {
                2048 => SigningAlgorithms.RSASSA_PSS_SHA_256,
                3072 => SigningAlgorithms.RSASSA_PSS_SHA_384,
                4096 => SigningAlgorithms.RSASSA_PSS_SHA_512,
                _ => throw new ArgumentException($"Invalid RSA KeySpec size {Size}")
            },
            KeyType.EC => Size switch
            {
                256 => SigningAlgorithms.ECDSA_SHA_256,
                384 => SigningAlgorithms.ECDSA_SHA_384,
                521 => SigningAlgorithms.ECDSA_SHA_512,
                _ => throw new ArgumentException($"Invalid EC KeySpec size {Size}")
            },
            _ => throw new ArgumentException($"Invalid KeySpec Type: {Type}")
        };