in Notation.Plugin.AzureKeyVault/Protocol/KeySpec.cs [70:87]
public string EncodeKeySpec() => Type switch
{
KeyType.RSA => Size switch
{
2048 => KeySpecConstants.RSA_2048,
3072 => KeySpecConstants.RSA_3072,
4096 => KeySpecConstants.RSA_4096,
_ => throw new ArgumentException($"Invalid RSA KeySpec size {Size}")
},
KeyType.EC => Size switch
{
256 => KeySpecConstants.EC_256,
384 => KeySpecConstants.EC_384,
521 => KeySpecConstants.EC_521,
_ => throw new ArgumentException($"Invalid EC KeySpec size {Size}")
},
_ => throw new ArgumentException($"Invalid KeySpec Type: {Type}")
};