Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
62d80660
Commit
62d80660
authored
May 20, 2010
by
Juan Lang
Committed by
Alexandre Julliard
May 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Implement CALG_SSL3_SHAMD5 hashing.
parent
71a9d138
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
implglue.c
dlls/rsaenh/implglue.c
+1
-0
rsaenh.c
dlls/rsaenh/rsaenh.c
+2
-1
rsaenh.c
dlls/rsaenh/tests/rsaenh.c
+0
-2
No files found.
dlls/rsaenh/implglue.c
View file @
62d80660
...
@@ -342,6 +342,7 @@ BOOL encrypt_block_impl(ALG_ID aiAlgid, DWORD dwKeySpec, KEY_CONTEXT *pKeyContex
...
@@ -342,6 +342,7 @@ BOOL encrypt_block_impl(ALG_ID aiAlgid, DWORD dwKeySpec, KEY_CONTEXT *pKeyContex
case
CALG_RSA_KEYX
:
case
CALG_RSA_KEYX
:
case
CALG_RSA_SIGN
:
case
CALG_RSA_SIGN
:
case
CALG_SSL3_SHAMD5
:
outlen
=
inlen
=
(
mp_count_bits
(
&
pKeyContext
->
rsa
.
N
)
+
7
)
/
8
;
outlen
=
inlen
=
(
mp_count_bits
(
&
pKeyContext
->
rsa
.
N
)
+
7
)
/
8
;
if
(
enc
)
{
if
(
enc
)
{
if
(
rsa_exptmod
(
in
,
inlen
,
out
,
&
outlen
,
dwKeySpec
,
&
pKeyContext
->
rsa
)
!=
CRYPT_OK
)
{
if
(
rsa_exptmod
(
in
,
inlen
,
out
,
&
outlen
,
dwKeySpec
,
&
pKeyContext
->
rsa
)
!=
CRYPT_OK
)
{
...
...
dlls/rsaenh/rsaenh.c
View file @
62d80660
...
@@ -1426,7 +1426,7 @@ static BOOL build_hash_signature(BYTE *pbSignature, DWORD dwLen, ALG_ID aiAlgid,
...
@@ -1426,7 +1426,7 @@ static BOOL build_hash_signature(BYTE *pbSignature, DWORD dwLen, ALG_ID aiAlgid,
ALG_ID
aiAlgid
;
ALG_ID
aiAlgid
;
DWORD
dwLen
;
DWORD
dwLen
;
CONST
BYTE
abOID
[
19
];
CONST
BYTE
abOID
[
19
];
}
aOIDDescriptor
[
8
]
=
{
}
aOIDDescriptor
[]
=
{
{
CALG_MD2
,
18
,
{
0x30
,
0x20
,
0x30
,
0x0c
,
0x06
,
0x08
,
0x2a
,
0x86
,
0x48
,
{
CALG_MD2
,
18
,
{
0x30
,
0x20
,
0x30
,
0x0c
,
0x06
,
0x08
,
0x2a
,
0x86
,
0x48
,
0x86
,
0xf7
,
0x0d
,
0x02
,
0x02
,
0x05
,
0x00
,
0x04
,
0x10
}
},
0x86
,
0xf7
,
0x0d
,
0x02
,
0x02
,
0x05
,
0x00
,
0x04
,
0x10
}
},
{
CALG_MD4
,
18
,
{
0x30
,
0x20
,
0x30
,
0x0c
,
0x06
,
0x08
,
0x2a
,
0x86
,
0x48
,
{
CALG_MD4
,
18
,
{
0x30
,
0x20
,
0x30
,
0x0c
,
0x06
,
0x08
,
0x2a
,
0x86
,
0x48
,
...
@@ -1444,6 +1444,7 @@ static BOOL build_hash_signature(BYTE *pbSignature, DWORD dwLen, ALG_ID aiAlgid,
...
@@ -1444,6 +1444,7 @@ static BOOL build_hash_signature(BYTE *pbSignature, DWORD dwLen, ALG_ID aiAlgid,
{
CALG_SHA_384
,
19
,
{
0x30
,
0x51
,
0x30
,
0x0d
,
0x06
,
0x09
,
0x60
,
0x86
,
{
CALG_SHA_384
,
19
,
{
0x30
,
0x51
,
0x30
,
0x0d
,
0x06
,
0x09
,
0x60
,
0x86
,
0x48
,
0x01
,
0x65
,
0x03
,
0x04
,
0x02
,
0x01
,
0x48
,
0x01
,
0x65
,
0x03
,
0x04
,
0x02
,
0x01
,
0x05
,
0x00
,
0x04
,
0x40
}
},
0x05
,
0x00
,
0x04
,
0x40
}
},
{
CALG_SSL3_SHAMD5
,
0
,
{
0
}
},
{
0
,
0
,
{
0
}
}
{
0
,
0
,
{
0
}
}
};
};
DWORD
dwIdxOID
,
i
,
j
;
DWORD
dwIdxOID
,
i
,
j
;
...
...
dlls/rsaenh/tests/rsaenh.c
View file @
62d80660
...
@@ -654,9 +654,7 @@ static void test_hashes(void)
...
@@ -654,9 +654,7 @@ static void test_hashes(void)
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
ok
(
len
==
128
,
"expected len 128, got %d
\n
"
,
len
);
ok
(
len
==
128
,
"expected len 128, got %d
\n
"
,
len
);
result
=
CryptSignHash
(
hHash
,
AT_KEYEXCHANGE
,
NULL
,
0
,
pbSigValue
,
&
len
);
result
=
CryptSignHash
(
hHash
,
AT_KEYEXCHANGE
,
NULL
,
0
,
pbSigValue
,
&
len
);
todo_wine
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
ok
(
result
,
"%08x
\n
"
,
GetLastError
());
todo_wine
ok
(
!
memcmp
(
pbSigValue
,
signed_ssl3_shamd5_hash
,
len
),
"unexpected value
\n
"
);
ok
(
!
memcmp
(
pbSigValue
,
signed_ssl3_shamd5_hash
,
len
),
"unexpected value
\n
"
);
if
(
len
!=
128
||
memcmp
(
pbSigValue
,
signed_ssl3_shamd5_hash
,
len
))
if
(
len
!=
128
||
memcmp
(
pbSigValue
,
signed_ssl3_shamd5_hash
,
len
))
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment