PDFSM4EncryptedLength
密碼編譯
描述
為給定大小的明文計算 PDFSM4EncryptString 的精確輸出長度
語法
Delphi
Function PDFSM4EncryptedLength(PlaintextLength: Int64): Int64;參數
| PlaintextLength | 明文大小(位元組) |
|---|
傳回值
| length | 16 位元組 IV 加上 PKCS#7 填補後的本體:16 + ((Length div 16) + 1) * 16 |
|---|---|
| -1 | PlaintextLength 為負 |
備註
呼叫 PDFSM4EncryptString 或 PDFSM4EncryptToStream 前用它評估緩衝區大小