public static bool CanCryptOrWrap(this KeyVaultAlgorithm algorithm) { return(algorithm == KeyVaultAlgorithm.RSA1_5 || algorithm == KeyVaultAlgorithm.RSA_OAEP); }
public async Task <bool> Verify(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string digest, string valueToVerify) { await Task.Yield(); return(true); }
public async Task <string> Wrap(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string valueToEncrypt) { await Task.Yield(); return(valueToEncrypt); }
public async Task <string> Sign(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string digest) { await Task.Yield(); return("signature"); }