コード例 #1
0
 /// <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();
     }
 }
コード例 #2
0
 /// <exception cref="System.IO.IOException"/>
 /// <exception cref="GeneralSecurityException"/>
 public virtual KeyProvider.KeyVersion DecryptEncryptedKey(KeyProviderCryptoExtension.EncryptedKeyVersion
                                                           encryptedKeyVersion)
 {
     return(keyProviderCryptoExtension.DecryptEncryptedKey(encryptedKeyVersion));
 }