コード例 #1
0
 public static bool CanCryptOrWrap(this KeyVaultAlgorithm algorithm)
 {
     return(algorithm == KeyVaultAlgorithm.RSA1_5 ||
            algorithm == KeyVaultAlgorithm.RSA_OAEP);
 }
コード例 #2
0
        public async Task <bool> Verify(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string digest, string valueToVerify)
        {
            await Task.Yield();

            return(true);
        }
コード例 #3
0
        public async Task <string> Wrap(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string valueToEncrypt)
        {
            await Task.Yield();

            return(valueToEncrypt);
        }
コード例 #4
0
        public async Task <string> Sign(IKeyVaultKey key, KeyVaultAlgorithm algorithm, string digest)
        {
            await Task.Yield();

            return("signature");
        }