/// <exception cref="System.IO.IOException"/> /// <exception cref="GeneralSecurityException"/> public override KeyProvider.KeyVersion DecryptEncryptedKey(KeyProviderCryptoExtension.EncryptedKeyVersion encryptedKeyVersion) { readLock.Lock(); try { VerifyKeyVersionBelongsToKey(encryptedKeyVersion); DoAccessCheck(encryptedKeyVersion.GetEncryptionKeyName(), KeyAuthorizationKeyProvider.KeyOpType .DecryptEek); return(provider.DecryptEncryptedKey(encryptedKeyVersion)); } finally { readLock.Unlock(); } }
/// <exception cref="System.IO.IOException"/> /// <exception cref="GeneralSecurityException"/> public virtual KeyProvider.KeyVersion DecryptEncryptedKey(KeyProviderCryptoExtension.EncryptedKeyVersion encryptedKeyVersion) { return(keyProviderCryptoExtension.DecryptEncryptedKey(encryptedKeyVersion)); }