mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8239264: Clearup the legacy ObjectIdentifier constructor from int array
Reviewed-by: jnimeh
This commit is contained in:
parent
8aff5bda80
commit
4e430ffbb6
26 changed files with 412 additions and 692 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -55,24 +55,10 @@ public final class OAEPParameters extends AlgorithmParametersSpi {
|
|||
private String mdName;
|
||||
private MGF1ParameterSpec mgfSpec;
|
||||
private byte[] p;
|
||||
private static ObjectIdentifier OID_MGF1;
|
||||
private static ObjectIdentifier OID_PSpecified;
|
||||
|
||||
static {
|
||||
try {
|
||||
OID_MGF1 = new ObjectIdentifier(new int[] {1,2,840,113549,1,1,8});
|
||||
} catch (IOException ioe) {
|
||||
// should not happen
|
||||
OID_MGF1 = null;
|
||||
}
|
||||
try {
|
||||
OID_PSpecified =
|
||||
new ObjectIdentifier(new int[] {1,2,840,113549,1,1,9});
|
||||
} catch (IOException ioe) {
|
||||
// should not happen
|
||||
OID_PSpecified = null;
|
||||
}
|
||||
}
|
||||
private static ObjectIdentifier OID_MGF1 =
|
||||
ObjectIdentifier.of("1.2.840.113549.1.1.8");
|
||||
private static ObjectIdentifier OID_PSpecified =
|
||||
ObjectIdentifier.of("1.2.840.113549.1.1.9");
|
||||
|
||||
public OAEPParameters() {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue