Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
libcore
Commits
60947887
Commit
60947887
authored
12 years ago
by
Kenny Root
Committed by
Gerrit Code Review
12 years ago
Browse files
Options
Download
Plain Diff
Merge "NativeCrypto: fix some DSA/ECDSA key generation"
parents
4ae5e176
8c4b6ac9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLDSAKeyFactory.java
...ache/harmony/xnet/provider/jsse/OpenSSLDSAKeyFactory.java
+2
-2
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLECKeyFactory.java
...pache/harmony/xnet/provider/jsse/OpenSSLECKeyFactory.java
+2
-2
No files found.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLDSAKeyFactory.java
View file @
60947887
...
...
@@ -72,7 +72,7 @@ public class OpenSSLDSAKeyFactory extends KeyFactorySpi {
throw
new
InvalidKeySpecException
(
e
);
}
}
throw
new
InvalidKeySpecException
(
"Must use DSAP
ublic
KeySpec or PKCS8EncodedKeySpec; was "
throw
new
InvalidKeySpecException
(
"Must use DSAP
rivate
KeySpec or PKCS8EncodedKeySpec; was "
+
keySpec
.
getClass
().
getName
());
}
...
...
@@ -158,7 +158,7 @@ public class OpenSSLDSAKeyFactory extends KeyFactorySpi {
BigInteger
g
=
params
.
getG
();
try
{
return
engineGenerateP
ublic
(
new
DSAPrivateKeySpec
(
x
,
p
,
q
,
g
));
return
engineGenerateP
rivate
(
new
DSAPrivateKeySpec
(
x
,
p
,
q
,
g
));
}
catch
(
InvalidKeySpecException
e
)
{
throw
new
InvalidKeyException
(
e
);
}
...
...
This diff is collapsed.
Click to expand it.
luni/src/main/java/org/apache/harmony/xnet/provider/jsse/OpenSSLECKeyFactory.java
View file @
60947887
...
...
@@ -73,7 +73,7 @@ public class OpenSSLECKeyFactory extends KeyFactorySpi {
throw
new
InvalidKeySpecException
(
e
);
}
}
throw
new
InvalidKeySpecException
(
"Must use ECP
ublic
KeySpec or PKCS8EncodedKeySpec; was "
throw
new
InvalidKeySpecException
(
"Must use ECP
rivate
KeySpec or PKCS8EncodedKeySpec; was "
+
keySpec
.
getClass
().
getName
());
}
...
...
@@ -147,7 +147,7 @@ public class OpenSSLECKeyFactory extends KeyFactorySpi {
ECParameterSpec
params
=
ecKey
.
getParams
();
try
{
return
engineGenerateP
ublic
(
new
ECPrivateKeySpec
(
s
,
params
));
return
engineGenerateP
rivate
(
new
ECPrivateKeySpec
(
s
,
params
));
}
catch
(
InvalidKeySpecException
e
)
{
throw
new
InvalidKeyException
(
e
);
}
...
...
This diff is collapsed.
Click to expand it.
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