Ejemplo n.º 1
0
        public virtual KeyWrapper CreateKeyWrapper_Failed(Jwk key, EncryptionAlgorithm enc, KeyManagementAlgorithm alg)
        {
            bool created = key.TryGetKeyWrapper(enc, alg, out var keyWrapper);

            _disposables.Add(keyWrapper);
            Assert.False(created);
            Assert.Null(keyWrapper);
            return(keyWrapper);
        }