Module: wine
Branch: master
Commit: 5edf65616a8dcbf5988bbabe0493827d9e125fc3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5edf65616a8dcbf5988bbabe…
Author: Aaron Hill <aa1ronham(a)gmail.com>
Date: Mon Jul 12 11:40:50 2021 +0200
crypt32: Implement CNG_RSA_PUBLIC_KEY_BLOB encoding/decoding.
Add support for the OID CNG_RSA_PUBLIC_KEY_BLOB to
CryptEncodeObjectEx and CryptDecodeObjectEx. This OID
decodes to / encodes from memory consisting of a
BCRYPT_RSAKEY_BLOB, followed in memory by the exponent and
modulus in big-endian format.
Signed-off-by: Aaron Hill <aa1ronham(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/crypt32/crypt32_private.h | 5 ++
dlls/crypt32/decode.c | 114 ++++++++++++++++++++++++++++++++----
dlls/crypt32/encode.c | 53 +++++++++++++++++
dlls/crypt32/tests/encode.c | 130 +++++++++++++++++++++++++++++++++++++++++
include/wincrypt.h | 1 +
5 files changed, 291 insertions(+), 12 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=5edf65616a8dcbf5988b…