mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8281388: Change wrapping of EncryptedPrivateKeyInfo
Reviewed-by: jnimeh
This commit is contained in:
parent
9e051d5396
commit
f61d121124
1 changed files with 2 additions and 2 deletions
|
@ -83,12 +83,12 @@ public class EncryptedPrivateKeyInfo {
|
|||
"must be non-null");
|
||||
}
|
||||
|
||||
DerValue val = new DerValue(encoded);
|
||||
this.encoded = encoded.clone();
|
||||
DerValue val = DerValue.wrap(this.encoded);
|
||||
if (val.tag != DerValue.tag_Sequence) {
|
||||
throw new IOException("DER header error: no SEQ tag");
|
||||
}
|
||||
|
||||
this.encoded = encoded.clone();
|
||||
DerValue[] seq = new DerValue[2];
|
||||
|
||||
seq[0] = val.data.getDerValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue