根據對稱金鑰控制代碼所參考的金鑰,取得對稱密碼編譯轉換。
HRESULT
__stdcall GetCryptoTransform(
__in PINFORMATIONCARD_CRYPTO_HANDLE hSymmetricCrypto,
__in DWORD mode,
__in PaddingMode padding,
__in DWORD feedbackSize,
__in Direction direction,
__in DWORD cbIV,
__in_bcount( cbIV ) BYTE* pIV,
__deref_out PINFORMATIONCARD_CRYPTO_HANDLE* pphTransform );
參數
| 參數 | 描述 |
|---|---|
hSymmetricCrypto |
與先前發行之安全性權杖相關聯的密碼編譯物件控制代碼。 |
mode |
在 Wincryp.h 中定義的下列其中一個 Cipher 模式:
|
padding |
如 PaddingMode 列舉型別所述的填補模式。 |
feedbacksize |
回應大小。 |
direction |
加密或解密。會定義傳回的密碼編譯轉換應執行哪個作業。 |
phTransform |
可用於 TransformBlock 和 TransformFinalBlock 的密碼編譯轉換控制代碼。完成時,請使用 CloseCryptoHandle 函式關閉這個控制代碼。 |
屬性值/傳回值
HRESULT
需求
Windows Vista
標頭:在 infocard.h 中宣告。
程式庫:使用 infocardapi.lib。
請參閱
參考
TransformBlock
TransformFinalBlock
概念
.gif)
Copyright © 2007 by Microsoft Corporation. All rights reserved.