177. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/25/2018 2:13:10 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

177.1 Files compared

# Location File Last Modified
1 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\javax\crypto\spec DHParameterSpec.java Mon Jan 22 14:46:52 2018 UTC
2 build 3.zip\build 3\MHLTH_YS_137_Source\JavaScript\resources\javaJDF-1.8.0\src\javax\crypto\spec DHParameterSpec.java Wed Sep 12 17:18:43 2018 UTC

177.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 244
Changed 1 2
Inserted 0 0
Removed 0 0

177.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

177.4 Active regular expressions

No regular expressions were active.

177.5 Comparison detail

  1   /*
  2    * Copyrig ht (c) 199 7, 2007, O racle and/ or its aff iliates. A ll rights  reserved.
  3    * DO NOT  ALTER OR R EMOVE COPY RIGHT NOTI CES OR THI S FILE HEA DER.
  4    *
  5    * This co de is free  software;  you can r edistribut e it and/o r modify i t
  6    * under t he terms o f the GNU  General Pu blic Licen se version  2 only, a s
  7    * publish ed by the  Free Softw are Founda tion.  Ora cle design ates this
  8    * particu lar file a s subject  to the "Cl asspath" e xception a s provided
  9    * by Orac le in the  LICENSE fi le that ac companied  this code.
  10    *
  11    * This co de is dist ributed in  the hope  that it wi ll be usef ul, but WI THOUT
  12    * ANY WAR RANTY; wit hout even  the implie d warranty  of MERCHA NTABILITY  or
  13    * FITNESS  FOR A PAR TICULAR PU RPOSE.  Se e the GNU  General Pu blic Licen se
  14    * version  2 for mor e details  (a copy is  included  in the LIC ENSE file  that
  15    * accompa nied this  code).
  16    *
  17    * You sho uld have r eceived a  copy of th e GNU Gene ral Public  License v ersion
  18    * 2 along  with this  work; if  not, write  to the Fr ee Softwar e Foundati on,
  19    * Inc., 5 1 Franklin  St, Fifth  Floor, Bo ston, MA 0 2110-1301  USA.
  20    *
  21    * Please  contact Or acle, 500  Oracle Par kway, Redw ood Shores , CA 94065  USA
  22    * or visi t www.orac le.com if  you need a dditional  informatio n or have  any
  23    * questio ns.
  24    */
  25  
  26   package ja vax.crypto .spec;
  27  
  28   import jav a.math.Big Integer;
  29   import jav a.security .spec.Algo rithmParam eterSpec;
  30  
  31   /**
  32    * This cl ass specif ies the se t of param eters used  with the  Diffie-Hel lman
  33    * algorit hm, as spe cified in  PKCS #3: < i>Diffie-H ellman Key -Agreement
  34    * Standar d</i>.
  35    *
  36    * <p>A ce ntral auth ority gene rates para meters and  gives the m to the t wo
  37    * entitie s seeking  to generat e a  PW        key. The p arameters  are a prim e
  38    * <code>p </code>, a  base <cod e>g</code> , and opti onally the  length
  39    * in bits  of the pr ivate valu e, <code>l </code>.
  40    *
  41    * <p>It i s possible  that more  than one  instance o f paramete rs may be
  42    * generat ed by a gi ven centra l authorit y, and tha t there ma y be more  than
  43    * one cen tral autho rity. Inde ed, each i ndividual  may be its  own centr al
  44    * authori ty, with d ifferent e ntities ha ving diffe rent param eters.
  45    *
  46    * <p>Note  that this  class doe s not perf orm any va lidation o n specifie d
  47    * paramet ers. Thus,  the speci fied value s are retu rned direc tly even
  48    * if they  are null.
  49    *
  50    * @author  Jan Luehe
  51    *
  52    * @see ja vax.crypto .KeyAgreem ent
  53    * @since  1.4
  54    */
  55   public cla ss DHParam eterSpec i mplements  AlgorithmP arameterSp ec {
  56  
  57       // The  prime mod ulus
  58       privat e BigInteg er p;
  59  
  60       // The  base gene rator
  61       privat e BigInteg er g;
  62  
  63       // The  size in b its of the  random ex ponent (pr ivate valu e) (option al)
  64       privat e int l;
  65  
  66       /**
  67        * Con structs a  parameter  set for Di ffie-Hellm an, using  a prime mo dulus
  68        * <co de>p</code > and a ba se generat or <code>g </code>.
  69        *
  70        * @pa ram p the  prime modu lus
  71        * @pa ram g the  base gener ator
  72        */
  73       public  DHParamet erSpec(Big Integer p,  BigIntege r g) {
  74           th is.p = p;
  75           th is.g = g;
  76           th is.l = 0;
  77       }
  78  
  79       /**
  80        * Con structs a  parameter  set for Di ffie-Hellm an, using  a prime mo dulus
  81        * <co de>p</code >, a base  generator  <code>g</c ode>,
  82        * and  the size  in bits, < code>l</co de>, of th e random e xponent
  83        * (pr ivate valu e).
  84        *
  85        * @pa ram p the  prime modu lus
  86        * @pa ram g the  base gener ator
  87        * @pa ram l the  size in bi ts of the  random exp onent (pri vate value )
  88        */
  89       public  DHParamet erSpec(Big Integer p,  BigIntege r g, int l ) {
  90           th is.p = p;
  91           th is.g = g;
  92           th is.l = l;
  93       }
  94  
  95       /**
  96        * Ret urns the p rime modul us <code>p </code>.
  97        *
  98        * @re turn the p rime modul us <code>p </code>
  99        */
  100       public  BigIntege r getP() {
  101           re turn this. p;
  102       }
  103  
  104       /**
  105        * Ret urns the b ase genera tor <code> g</code>.
  106        *
  107        * @re turn the b ase genera tor <code> g</code>
  108        */
  109       public  BigIntege r getG() {
  110           re turn this. g;
  111       }
  112  
  113       /**
  114        * Ret urns the s ize in bit s, <code>l </code>, o f the rand om exponen t
  115        * (pr ivate valu e).
  116        *
  117        * @re turn the s ize in bit s, <code>l </code>, o f the rand om exponen t
  118        * (pr ivate valu e), or 0 i f this siz e has not  been set
  119        */
  120       public  int getL( ) {
  121           re turn this. l;
  122       }
  123   }