Share via


EncryptResult 類別

加密作業的結果。

繼承
builtins.object
EncryptResult

建構函式

EncryptResult(key_id: str | None, algorithm: EncryptionAlgorithm, ciphertext: bytes, **kwargs: Any)

參數

key_id
str
必要

加密金鑰的金鑰保存庫識別碼

algorithm
EncryptionAlgorithm
必要

使用的加密演算法

ciphertext
bytes
必要

加密的位元組

iv
bytes

對稱演算法的初始化向量

authentication_tag
bytes

使用已驗證演算法執行解密時要驗證的標記

additional_authenticated_data
bytes

使用已驗證演算法時,要驗證但未加密/解密的其他資料