rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
focusColor = UIManager.getColor(getPropertyPrefix() + "focus");
protected Color getFocusColor() { return focusColor; }
selectColor = UIManager.getColor(getPropertyPrefix() + "select");
protected Color getSelectColor() { return selectColor; }
button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover"));
public void installDefaults(AbstractButton button) { super.installDefaults(button); button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover")); }
g.setColor(selectColor);
g.setColor(getSelectColor());
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = b.getVisibleRect(); g.setColor(selectColor); g.fillRect(area.x, area.y, area.width, area.height); } }
button.setRolloverEnabled(false);
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); button.setRolloverEnabled(false); }
int pixelY = y; FontMetrics metrics = g.getFontMetrics(); int ascent = metrics.getAscent();
int pixelY = y - ascent;
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics(); int ascent = metrics.getAscent(); int pixelWidth = 0; int pos = s.offset; int len = 0; for (int offset = s.offset; offset < (s.offset + s.count); ++offset) { char c = buffer[offset]; if (c == '\t' || c == '\n') { if (len > 0) { g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); pixelX += pixelWidth; pixelWidth = 0; } pos = offset+1; len = 0; } switch (c) { case '\t': // In case we have a tab, we just 'jump' over the tab. // When we have no tab expander we just use the width of ' '. if (e != null) pixelX = (int) e.nextTabStop((float) pixelX, startOffset + offset - s.offset); else pixelX += metrics.charWidth(' '); break; case '\n': // In case we have a newline, we must jump to the next line. pixelY += metrics.getHeight(); pixelX = x; break; default: ++len; pixelWidth += metrics.charWidth(buffer[offset]); break; } } if (len > 0) g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); return pixelX; }
if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION)
int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); oldSel = sel.clone(); if (selectionMode == SINGLE_SELECTION) sel.clear(); if (selectionMode == SINGLE_INTERVAL_SELECTION) if (!(isSelectedIndex(index0) || isSelectedIndex(index1) || isSelectedIndex(Math.max(lo-1,0)) || isSelectedIndex(Math.min(hi+1,sel.size()))))
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
int lo = Math.min(index0, index1); int hi = Math.max(index0, index1);
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
if (((index0 - 1 == leadSelectionIndex && (index1 >= index0)
if ((isSelectedIndex(leadSelectionIndex)) && ((index0 - 1 == leadSelectionIndex && (index1 >= index0)
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
if (sel.equals(oldSel) == false)
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
if (sel.equals(oldSel) == false)
public void clearSelection() { int sz = sel.size(); sel.clear(); fireValueChanged(0, sz, valueIsAdjusting); }
if (sel.equals(oldSel) == false)
public void removeSelectionInterval(int index0, int index1) { int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.clear(lo, hi+1); //update anchorSelectionIndex and leadSelectionIndex variables //TODO: will probably need MouseDragged to test properly and know if this works setAnchorSelectionIndex(index0); leadSelectionIndex = index1; fireValueChanged(lo, hi, valueIsAdjusting); }
if (sel.equals(oldSel) == false)
public void setLeadSelectionIndex(int leadIndex) { int oldLeadIndex = leadSelectionIndex; leadSelectionIndex = leadIndex; if (anchorSelectionIndex == -1) return; int R1 = Math.min(anchorSelectionIndex, oldLeadIndex); int R2 = Math.max(anchorSelectionIndex, oldLeadIndex); int S1 = Math.min(anchorSelectionIndex, leadIndex); int S2 = Math.max(anchorSelectionIndex, leadIndex); int lo = Math.min(R1, S1); int hi = Math.max(R2, S2); BitSet oldRange = sel.get(lo, hi+1); if (isSelectedIndex(anchorSelectionIndex)) { sel.clear(R1, R2+1); sel.set(S1, S2+1); } else { sel.set(R1, R2+1); sel.clear(S1, S2+1); } BitSet newRange = sel.get(lo, hi+1); newRange.xor(oldRange); int beg = sel.nextSetBit(0), end = -1; for(int i=beg; i >= 0; i=sel.nextSetBit(i+1)) end = i; fireValueChanged(beg, end, valueIsAdjusting); }
fireValueChanged(lo, hi, valueIsAdjusting);
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); // update the anchorSelectionIndex and leadSelectionIndex variables setAnchorSelectionIndex(index0); leadSelectionIndex=index1; }
if (sel.equals(oldSel) == false) fireValueChanged(lo, hi, valueIsAdjusting);
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); // update the anchorSelectionIndex and leadSelectionIndex variables setAnchorSelectionIndex(index0); leadSelectionIndex=index1; }
&& thread.getThreadGroup().getParent() != null)
&& thread.getThreadGroup().getParent() == null)
public void checkAccess(Thread thread) { if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); }
stackOffset = currentBlock.getStackOffset();
public void startInstruction(int address) { this.address = address; if (address >= currentBlock.getEndPC()) { currentBlock.resolvePhiReferences(); currentBlock = (IRBasicBlock) basicBlockIterator.next(); Iterator pi = currentBlock.getPredecessors().iterator(); if (!pi.hasNext()) { // this must be the first block in the method return; } while (pi.hasNext()) { IRBasicBlock irb = (IRBasicBlock) pi.next(); if (irb.getEndPC() <= address) { Variable[] prevVars = irb.getVariables(); int n = prevVars.length; variables = new Variable[n]; for (int i=0; i<n; i+=1) { variables[i] = prevVars[i]; } currentBlock.setVariables(variables); return; } } throw new AssertionError("can't find a preceding basic block"); } if (address < currentBlock.getStartPC() || address >= currentBlock.getEndPC()) { throw new AssertionError("instruction not in basic block!"); } }
setSuccessorStackOffset();
public void visit_goto(int address) { quadList.add(new UnconditionalBranchQuad(this.address, currentBlock, address)); }
setSuccessorStackOffset();
public void visit_if_acmpeq(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.REFERENCE); variables[s2].setType(Operand.REFERENCE); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ACMPEQ, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_acmpne(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.REFERENCE); variables[s2].setType(Operand.REFERENCE); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ACMPNE, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmpeq(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPEQ, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmpge(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPGE, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmpgt(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPGT, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmple(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPLE, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmplt(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPLT, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_if_icmpne(int address) { int s1 = stackOffset - 2; int s2 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); variables[s2].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IF_ICMPNE, s2, address)); stackOffset -= 2; }
setSuccessorStackOffset();
public void visit_ifeq(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFEQ, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifge(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFGE, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifgt(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFGT, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifle(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFLE, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_iflt(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFLT, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifne(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.INT); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFNE, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifnonnull(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.REFERENCE); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFNONNULL, address)); stackOffset -= 1; }
setSuccessorStackOffset();
public void visit_ifnull(int address) { int s1 = stackOffset - 1; Variable[] variables = currentBlock.getVariables(); variables[s1].setType(Operand.REFERENCE); quadList.add(new ConditionalBranchQuad(this.address, currentBlock, s1, ConditionalBranchQuad.IFNULL, address)); stackOffset -= 1; }
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman");
put("KeyAgreement.DH", gnu.javax.crypto.jce.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DiffieHellman", "DH");
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; } }); }
put("AlgorithmParameters.DH", gnu.javax.crypto.jce.sig.DHParameters.class.getName()); put("Alg.Alias.AlgorithmParameters.DiffieHellman", "DH"); put("AlgorithmParameterGenerator.DH", gnu.javax.crypto.jce.sig.DHParametersGenerator.class.getName()); put("Alg.Alias.AlgorithmParameterGenerator.DiffieHellman", "DH");
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; } }); }
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman");
put("KeyAgreement.DH", gnu.javax.crypto.jce.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DiffieHellman", "DH");
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; }
put("AlgorithmParameters.DH", gnu.javax.crypto.jce.sig.DHParameters.class.getName()); put("Alg.Alias.AlgorithmParameters.DiffieHellman", "DH"); put("AlgorithmParameterGenerator.DH", gnu.javax.crypto.jce.sig.DHParametersGenerator.class.getName()); put("Alg.Alias.AlgorithmParameterGenerator.DiffieHellman", "DH");
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; }
ex.printStackTrace();
protected void buildPlugin(File descriptor) throws BuildException { final PluginDescriptorModel descr; try { final XMLElement root = new XMLElement(new Hashtable(), true, false); try { final FileReader r = new FileReader(descriptor); try { root.parseFromReader(r); } finally { r.close(); } } catch (IOException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } catch (XMLParseException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } descr = new PluginDescriptorModel(root); } catch (PluginException ex) { throw new BuildException("Building " + descriptor + " failed", ex); } final String fullId = descr.getId() + "_" + descr.getVersion(); File destFile = new File(todir, fullId + ".jar"); final Jar jarTask = new Jar(); jarTask.setProject(getProject()); jarTask.setTaskName(getTaskName()); jarTask.setDestFile(destFile); jarTask.setCompress(false); // Add plugin.xml final File tmpPluginDir; final File tmpPluginXmlFile; try { tmpPluginDir = new File(tmpDir, "jnode-plugins" + File.separator + fullId); tmpPluginDir.mkdirs(); tmpPluginXmlFile = new File(tmpPluginDir, "plugin.xml"); FileUtils.newFileUtils().copyFile(descriptor, tmpPluginXmlFile); FileSet fs = new FileSet(); fs.setDir(tmpPluginDir); fs.createInclude().setName("plugin.xml"); jarTask.addFileset(fs); } catch (IOException ex) { throw new BuildException(ex); } // Add runtime resources final Runtime rt = descr.getRuntime(); if (rt != null) { final HashMap fileSets = new HashMap(); final Library[] libs = rt.getLibraries(); for (int l = 0; l < libs.length; l++) { processLibrary(jarTask, libs[l], fileSets, getPluginDir()); } } jarTask.execute(); }
if (GraphicsEnvironment.isHeadless()) throw new HeadlessException("No custom cursor in an headless graphics " + "environment.");
public Cursor createCustomCursor(Image cursor, Point hotSpot, String name) { // Presumably the only reason this isn't abstract is for backwards // compatibility? FIXME? return null; }
if (GraphicsEnvironment.isHeadless()) throw new HeadlessException("No best cursor size in an headless " + "graphics environment.");
public Dimension getBestCursorSize(int preferredWidth, int preferredHeight) { return new Dimension (0,0); }
bad.minor = Minor.CDR;
public void _write(OutputStream output) { try { output.write_string(typecode.id()); } catch (Exception ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); throw bad; } }
super("TODO");
super(nm); this.a = a;
public AlignmentAction(String nm, int a) { super("TODO"); // TODO }
SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setAlignment(atts, a); setParagraphAttributes(getEditor(event), atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
JEditorPane editor = getEditor(event); StyledDocument doc = getStyledDocument(editor); Element el = doc.getCharacterElement(editor.getSelectionStart()); boolean isBold = StyleConstants.isBold(el.getAttributes()); SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setItalic(atts, ! isBold); setCharacterAttributes(editor, atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
super("TODO");
super(nm); this.family = family;
public FontFamilyAction(String nm, String family) { super("TODO"); // TODO }
SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setFontFamily(atts, family); setCharacterAttributes(getEditor(event), atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
super("TODO");
super(nm); this.size = size;
public FontSizeAction(String nm, int size) { super("TODO"); // TODO }
SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setFontSize(atts, size); setCharacterAttributes(getEditor(event), atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
super("TODO");
super(nm); this.fg = fg;
public ForegroundAction(String nm, Color fg) { super("TODO"); // TODO }
SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setForeground(atts, fg); setCharacterAttributes(getEditor(event), atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
JEditorPane editor = getEditor(event); StyledDocument doc = getStyledDocument(editor); Element el = doc.getCharacterElement(editor.getSelectionStart()); boolean isItalic = StyleConstants.isItalic(el.getAttributes()); SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setItalic(atts, ! isItalic); setCharacterAttributes(editor, atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
return null;
return (JEditorPane) getTextComponent(event);
protected final JEditorPane getEditor(ActionEvent event) { return null; // TODO }
protected final StyledDocument getStyledDocument(JEditorPane value0)
protected final StyledDocument getStyledDocument(JEditorPane editor)
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
return null;
Document doc = editor.getDocument(); if (!(doc instanceof StyledDocument)) throw new AssertionError("The Document for StyledEditorKits is " + "expected to be a StyledDocument."); return (StyledDocument) doc;
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0)
protected final StyledEditorKit getStyledEditorKit(JEditorPane editor)
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
return null;
EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) throw new AssertionError("The EditorKit for StyledDocuments is " + "expected to be a StyledEditorKit."); return (StyledEditorKit) kit;
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2)
protected final void setCharacterAttributes(JEditorPane editor, AttributeSet atts, boolean replace)
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (StyledDocument) editor.getDocument(); EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) { StyledEditorKit styleKit = (StyledEditorKit) kit; int start = editor.getSelectionStart(); int end = editor.getSelectionEnd(); int dot = editor.getCaret().getDot(); if (start == dot && end == dot) { MutableAttributeSet inputAttributes = styleKit.getInputAttributes(); inputAttributes.addAttributes(atts); } else styleDoc.setCharacterAttributes(start, end, atts, replace); } else throw new AssertionError("The EditorKit for StyledTextActions " + "is expected to be a StyledEditorKit"); } else throw new AssertionError("The Document for StyledTextActions is " + "expected to be a StyledDocument.");
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2)
protected final void setParagraphAttributes(JEditorPane editor, AttributeSet atts, boolean replace)
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
Document doc = editor.getDocument(); if (doc instanceof StyledDocument) { StyledDocument styleDoc = (StyledDocument) editor.getDocument(); EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) { StyledEditorKit styleKit = (StyledEditorKit) kit; int start = editor.getSelectionStart(); int end = editor.getSelectionEnd(); int dot = editor.getCaret().getDot(); if (start == dot && end == dot) { MutableAttributeSet inputAttributes = styleKit.getInputAttributes(); inputAttributes.addAttributes(atts); } else styleDoc.setParagraphAttributes(start, end, atts, replace); } else throw new AssertionError("The EditorKit for StyledTextActions " + "is expected to be a StyledEditorKit"); } else throw new AssertionError("The Document for StyledTextActions is " + "expected to be a StyledDocument.");
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
public View create(Element value0)
public View create(Element element)
public View create(Element value0) { return null; // TODO }
return null;
String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equals(AbstractDocument.SectionElementName)) view = new BoxView(element); else if (name.equals(StyleConstants.ComponentElementName)) view = new ComponentView(element); else if (name.equals(StyleConstants.IconElementName)) view = new IconView(element); return view;
public View create(Element value0) { return null; // TODO }
JEditorPane editor = getEditor(event); StyledDocument doc = getStyledDocument(editor); Element el = doc.getCharacterElement(editor.getSelectionStart()); boolean isUnderline = StyleConstants.isUnderline(el.getAttributes()); SimpleAttributeSet atts = new SimpleAttributeSet(); StyleConstants.setUnderline(atts, ! isUnderline); setCharacterAttributes(editor, atts, false);
public void actionPerformed(ActionEvent event) { // TODO }
inputAttributes = new SimpleAttributeSet();
public StyledEditorKit() { // TODO }
return null;
StyledEditorKit clone = (StyledEditorKit) super.clone(); return clone;
public Object clone() { return null; // TODO }
return null;
return new DefaultStyledDocument();
public Document createDefaultDocument() { return null; // TODO }
AttributeSet atts = element.getAttributes(); set.removeAttributes(set); set.addAttributes(atts);
protected void createInputAttributes(Element element, MutableAttributeSet set) { // TODO }
CaretTracker t = caretTracker; if (t != null) component.removeCaretListener(t); caretTracker = null;
public void deinstall(JEditorPane component) { // TODO }
return null;
Action[] actions1 = super.getActions(); Action[] myActions = new Action[] { new BoldAction(), new ItalicAction(), new UnderlineAction() }; return TextAction.augmentList(actions1, myActions);
public Action[] getActions() { return null; // TODO }
return null;
return currentRun;
public Element getCharacterAttributeRun() { return null; // TODO }
return null;
return inputAttributes;
public MutableAttributeSet getInputAttributes() { return null; // TODO }
return null;
if (viewFactory == null) viewFactory = new StyledViewFactory(); return viewFactory;
public ViewFactory getViewFactory() { return null; // TODO }
CaretTracker tracker = new CaretTracker(); component.addCaretListener(tracker);
public void install(JEditorPane component) { // TODO }
public String getContentType()
public final String getContentType()
public String getContentType() { return getEditorKit().getContentType(); }
public void setContentType(String type)
public final void setContentType(String type)
public void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); }
if (table == null) return this;
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value!=null) super.setText(value.toString()); setOpaque(true); if (isSelected) { setBackground(table.getSelectionBackground()); setForeground(table.getSelectionForeground()); } else { setBackground(table.getBackground()); setForeground(table.getForeground()); } setEnabled(table.isEnabled()); setFont(table.getFont()); return this; }
this.set = attributeSet;
attrset = attributeSet;
public SynchronizedAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
return set.add(attribute);
return attrset.add(attribute);
public synchronized boolean add(Attribute attribute) { return set.add(attribute); }
return set.addAll(attributes);
return attrset.addAll(attributes);
public synchronized boolean addAll(AttributeSet attributes) { return set.addAll(attributes); }
set.clear();
attrset.clear();
public synchronized void clear() { set.clear(); }
return set.containsKey(category);
return attrset.containsKey(category);
public synchronized boolean containsKey(Class category) { return set.containsKey(category); }
return set.containsValue(attribute);
return attrset.containsValue(attribute);
public synchronized boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
return set.equals(obj);
return attrset.equals(obj);
public synchronized boolean equals(Object obj) { return set.equals(obj); }
return set.get(interfaceName);
return attrset.get(interfaceName);
public synchronized Attribute get(Class interfaceName) { return set.get(interfaceName); }
return set.hashCode();
return attrset.hashCode();
public synchronized int hashCode() { return set.hashCode(); }
return set.isEmpty();
return attrset.isEmpty();
public synchronized boolean isEmpty() { return set.isEmpty(); }
return set.remove(category);
return attrset.remove(category);
public synchronized boolean remove(Class category) { return set.remove(category); }
return set.size();
return attrset.size();
public synchronized int size() { return set.size(); }
return set.toArray();
return attrset.toArray();
public synchronized Attribute[] toArray() { return set.toArray(); }
this.set = attributeSet;
this.attrset = attributeSet;
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
return set.containsKey(category);
return attrset.containsKey(category);
public boolean containsKey(Class category) { return set.containsKey(category); }
return set.containsValue(attribute);
return attrset.containsValue(attribute);
public boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
return set.equals(obj);
return attrset.equals(obj);
public boolean equals(Object obj) { return set.equals(obj); }
return set.get(interfaceName);
return attrset.get(interfaceName);
public Attribute get(Class interfaceName) { return set.get(interfaceName); }
return set.hashCode();
return attrset.hashCode();
public int hashCode() { return set.hashCode(); }
return set.isEmpty();
return attrset.isEmpty();
public boolean isEmpty() { return set.isEmpty(); }
return set.size();
return attrset.size();
public int size() { return set.size(); }
return set.toArray();
return attrset.toArray();
public Attribute[] toArray() { return set.toArray(); }
String name = getColumnName(column.getModelIndex());
String name = dataModel.getColumnName(column.getModelIndex());
public void addColumn(TableColumn column) { if (column.getHeaderValue() == null) { String name = getColumnName(column.getModelIndex()); column.setHeaderValue(name); } columnModel.addColumn(column); }