예제 #1
0
        public Task <Tuple <byte[], byte[], string> > EncryptAsync(byte[] plaintext, byte[] iv, byte[] authenticationData, string algorithm = null, CancellationToken token = default(CancellationToken))
        {
            if (_implementation == null)
            {
                throw new ObjectDisposedException("KeyVaultKey");
            }

            return(_implementation.EncryptAsync(plaintext, iv, authenticationData, algorithm, token));
        }
예제 #2
0
 public Task <Tuple <byte[], byte[], string> > EncryptAsync(byte[] plaintext, byte[] iv, byte[] authenticationData = null, string algorithm = null, CancellationToken token = default(CancellationToken))
 {
     return(_key.EncryptAsync(plaintext, iv, authenticationData, algorithm, token));
 }