CryptographicEngine 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
对内容进行加密、解密和签名,并验证数字签名。
public ref class CryptographicEngine abstract sealed
	/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CryptographicEngine final
	[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class CryptographicEngine
	Public Class CryptographicEngine
		- 继承
 
- 属性
 
Windows 要求
| 设备系列 | 
					 
							Windows 10 (在 10.0.10240.0 中引入) 
				 | 
			
| API contract | 
					 
							Windows.Foundation.UniversalApiContract (在 v1.0 中引入) 
				 | 
			
注解
此类仅包含静态方法。 无需创建 类的实例就可以使用 方法。 请改用类名,后跟点运算符 (.) ,后跟方法名称。
方法
| Decrypt(CryptographicKey, IBuffer, IBuffer) | 
		 解密以前使用对称或非对称算法加密的内容。  | 
        	
| DecryptAndAuthenticate(CryptographicKey, IBuffer, IBuffer, IBuffer, IBuffer) | 
		 解密和验证数据。 有关详细信息和完整的代码示例,请参阅 EncryptedAndAuthenticatedData。  | 
        	
| DecryptAsync(CryptographicKey, IBuffer, IBuffer) | 
		 使用提供的密钥解密加密的输入数据。  | 
        	
| DeriveKeyMaterial(CryptographicKey, KeyDerivationParameters, UInt32) | 
		 使用密钥派生函数从另一个密钥派生密钥。 有关详细信息,请参阅 KeyDerivationAlgorithmProvider 和 KeyDerivationParameters 类。  | 
        	
| Encrypt(CryptographicKey, IBuffer, IBuffer) | 
		 使用对称或非对称算法加密数据。  | 
        	
| EncryptAndAuthenticate(CryptographicKey, IBuffer, IBuffer, IBuffer) | 
		 执行经过身份验证的加密。  | 
        	
| Sign(CryptographicKey, IBuffer) | 
		 对数字内容进行签名。 有关详细信息,请参阅 MAC、哈希和签名。  | 
        	
| SignAsync(CryptographicKey, IBuffer) | 
		 计算提供的输入数据的哈希,然后使用指定的键对计算的哈希进行签名。  | 
        	
| SignHashedData(CryptographicKey, IBuffer) | 
		 使用指定的键对哈希输入数据进行签名。  | 
        	
| SignHashedDataAsync(CryptographicKey, IBuffer) | 
		 使用指定的键对哈希输入数据进行签名。  | 
        	
| VerifySignature(CryptographicKey, IBuffer, IBuffer) | 
		 验证消息签名。  | 
        	
| VerifySignatureWithHashInput(CryptographicKey, IBuffer, IBuffer) | 
		 根据已知签名验证指定输入数据的签名。  |