Aaron Hill : crypt32: Implement CNG_RSA_PUBLIC_KEY_BLOB encoding/decoding.

Alexandre Julliard julliard at winehq.org
Mon Jul 19 15:59:13 CDT 2021


Module: wine
Branch: master
Commit: 5edf65616a8dcbf5988bbabe0493827d9e125fc3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5edf65616a8dcbf5988bbabe0493827d9e125fc3

Author: Aaron Hill <aa1ronham at 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 at gmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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=5edf65616a8dcbf5988bbabe0493827d9e125fc3



More information about the wine-cvs mailing list