mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-01 18:24:00 +00:00
Fix PKCS7 padding for 16-byte aligned blocks
This commit is contained in:
1 parent
a1aa0a1801
commit
2b45ee9f64
1 file changed
+1
-1
@@ -38,7 +38,7 @@ typedef struct _PLT_CRYPTO_CONTEXT {
|
|||||||
REPLAY_WINDOW replayWindows[];
|
REPLAY_WINDOW replayWindows[];
|
||||||
} PLT_CRYPTO_CONTEXT, *PPLT_CRYPTO_CONTEXT;
|
} PLT_CRYPTO_CONTEXT, *PPLT_CRYPTO_CONTEXT;
|
||||||
|
|
||||||
#define ROUND_TO_PKCS7_PADDED_LEN(x) ((((x) + 15) / 16) * 16)
|
#define ROUND_TO_PKCS7_PADDED_LEN(x) ((((x) / 16) + 1) * 16)
|
||||||
|
|
||||||
PPLT_CRYPTO_CONTEXT PltCreateCryptoContext(unsigned char replayWindowCount);
|
PPLT_CRYPTO_CONTEXT PltCreateCryptoContext(unsigned char replayWindowCount);
|
||||||
void PltDestroyCryptoContext(PPLT_CRYPTO_CONTEXT ctx);
|
void PltDestroyCryptoContext(PPLT_CRYPTO_CONTEXT ctx);
|
||||||
|
|||||||
Reference in new issue
Block a user