Searched defs:padding (Results 1 - 25 of 37) sorted by relevance

12

/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DDoFinalReturnLen.java321 private static void hexPrint(int value, int padding) { argument
323 for (int i = (padding - 1); i >= 0; i--) {
H A DDesAPITest.java87 public void init(String crypt, String mode, String padding) argument
99 if (padding.length() != 0)
100 cipherName.append("/" + padding);
H A DPaddingTest.java70 private String padding = null; field in class:PaddingTest
102 padding = paddings[k];
110 public void init(String crypt, String mode, String padding) argument
122 if (padding.length() != 0)
123 cipherName.append("/" + padding);
204 if ((totalInputLen % 8 != 0) && (padding.equals("NoPadding")))
H A DPerformanceTest.java146 public void init(String crypt, String mode, String padding) argument
155 if (padding.length() != 0)
156 cipherName.append("/" + padding);
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaOptionPaneUI.java115 public AquaButtonAreaLayout(final boolean syncAllWidths, final int padding) { argument
116 super(true, padding);
135 int xLocation = container.getSize().width - (maxSize.width * numChildren + (numChildren - 1) * padding);
136 final int xOffset = maxSize.width + padding;
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/lib/
H A DExsltStrings.java59 * the padding string within which it is to be aligned.
61 * If the target string is shorter than the padding string then a range of characters
62 * in the padding string are repaced with those in the target string. Which characters
68 * with the first character in the padding string. With right alignment, the range of
69 * characters replaced by the target string ends with the last character in the padding
71 * is in the middle of the padding string, such that either the number of unreplaced
75 * If the target string is longer than the padding string, then it is truncated to be
76 * the same length as the padding string and returned.
79 * @param paddingStr The padding string
137 * The str:padding functio
151 public static String padding(double length, String pattern) method in class:ExsltStrings
176 public static String padding(double length) method in class:ExsltStrings
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DNullCipherSpi.java50 public void engineSetPadding(String padding) {} argument
H A DCipherSpi.java63 * padding scheme.
68 * <li>"<i>algorithm/mode/padding</i>" or
74 * provider-specific default values for the mode and padding scheme are used).
82 * of <i>algorithm/mode/padding</i>, or may decide to provide more generic
84 * <i>algorithm</i> or <i>algorithm/mode</i> or <i>algorithm//padding</i>
86 * in which case the requested mode and/or padding are set automatically by
100 * // pluggable mode and padding
107 * // specified "mode", with pluggable padding
114 * // specified "padding", with pluggable mode
115 * <code>Cipher.</code><i>algName//padding</
251 engineSetPadding(String padding) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DDigestBase.java216 // padding used for the MD5, and SHA-* message digests
217 static final byte[] padding; field in class:DigestBase
220 // we need 128 byte padding for SHA-384/512
223 padding = new byte[136];
224 padding[0] = (byte)0x80;
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/generic/
H A DSelect.java79 protected int padding = 0; // number of pad bytes for alignment field in class:Select
133 padding = (4 - ((position + 1) % 4)) % 4;
134 length = (short)(fixed_length + padding); // Update length
147 for(int i=0; i < padding; i++) // Padding bytes
160 padding = (4 - (bytes.getIndex() % 4)) % 4; // Compute number of pad bytes
162 for(int i=0; i < padding; i++) {
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DAESWrapCipher.java38 * Note: only <code>ECB</code> mode and <code>NoPadding</code> padding
67 * mode, i.e. "ECB" and padding scheme, i.e. "NoPadding".
90 * Sets the padding mechanism of this cipher. Only "NoPadding" schmem
93 * @param padding the padding mechanism
95 * @exception NoSuchPaddingException if the requested padding mechanism
98 protected void engineSetPadding(String padding) argument
100 if (!padding.equalsIgnoreCase("NoPadding")) {
101 throw new NoSuchPaddingException(padding + " cannot be used");
364 * cipher, no padding ha
[all...]
H A DARCFOURCipher.java122 protected void engineSetPadding(String padding) argument
124 if (padding.equalsIgnoreCase("NoPadding") == false) {
H A DCipherCore.java40 * padding schemes (<code>PKCS5Padding</code>, <code>NoPadding</code>,
95 * padding class
97 private Padding padding = null; field in class:CipherCore
135 * The buffer should be usable for all cipher mode and padding
137 * In decryption mode, it also hold the possible padding block.
141 // set mode and padding
143 padding = new PKCS5Padding(blockSize);
173 padding = null;
179 padding = null;
223 * Sets the padding mechanis
[all...]
H A DDESedeWrapCipher.java39 * Note: only <code>CBC</code> mode and <code>NoPadding</code> padding
76 * mode, i.e. "CBC" and padding scheme, i.e. "NoPadding".
99 * Sets the padding mechanism of this cipher. Only "NoPadding" schmem
102 * @param padding the padding mechanism.
104 * @exception NoSuchPaddingException if the requested padding mechanism
107 protected void engineSetPadding(String padding) argument
109 if (!padding.equalsIgnoreCase("NoPadding")) {
110 throw new NoSuchPaddingException(padding + " cannot be used");
441 * cipher, no padding ha
[all...]
H A DRSACipher.java45 * using PKCS#1 v1.5 padding and without padding (raw RSA). Note that raw RSA
50 * . "RSA/ECB/PKCS1Padding" (or "RSA") for PKCS#1 padding. The mode (blocktype)
88 // active padding type, one of PAD_* above. Set by setPadding()
91 // padding object
92 private RSAPadding padding; field in class:RSACipher
94 // cipher parameter for OAEP padding
125 // set the padding type
277 padding = RSAPadding.getInstance(RSAPadding.PAD_NONE, n, random);
286 padding
[all...]
H A DPKCS12PBECipherCore.java181 void implSetPadding(String padding) throws NoSuchPaddingException { argument
182 if ((padding != null) &&
183 (!padding.equalsIgnoreCase("PKCS5Padding"))) {
184 throw new NoSuchPaddingException("Invalid padding scheme: " +
185 padding);
/openjdk7/jdk/src/share/classes/sun/security/jgss/krb5/
H A DWrapToken.java45 * data is replaced by (confounder || data || padding).
56 * The padding used with a WrapToken. All data is padded to the
59 * Use this table as a quick way to obtain padding bytes by
60 * indexing it with the number of padding bytes required.
63 null, // No, no one escapes padding
98 // the len of the token data: (confounder || data || padding)
103 byte[] padding = null; field in class:WrapToken
184 // Remove the confounder and the padding
186 padding.length];
211 return (dataSize - confounder.length - padding
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DHiddenTagView.java293 static final int padding = 3; field in class:HiddenTagView
303 x += padding;
304 width -= (padding * 2);
321 return new Insets(2, 2 + padding, 2, tagSize + 2 + padding);
334 x += padding;
335 width -= (padding * 2);
352 return new Insets(2, tagSize + 2 + padding, 2, 2 + padding);
/openjdk7/hotspot/src/share/vm/gc_implementation/shared/
H A DgcUtil.hpp142 AdaptivePaddedAverage(unsigned weight, unsigned padding) : argument
144 _padded_avg(0.0), _deviation(0.0), _padding(padding) {}
154 unsigned padding() const { return _padding; } function in class:AdaptivePaddedAverage
181 AdaptivePaddedNoZeroDevAverage(unsigned weight, unsigned padding) : argument
182 AdaptivePaddedAverage(weight, padding) {}
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSASignature.java72 // padding to use, set when the initSign/initVerify is called
73 private RSAPadding padding; field in class:RSASignature
122 padding = RSAPadding.getInstance
127 int maxDataSize = padding.getMaxDataSize();
176 byte[] padded = padding.pad(encoded);
196 byte[] unpadded = padding.unpad(decrypted);
/openjdk7/jdk/test/javax/crypto/Cipher/
H A DByteBuffersNull.java134 public void engineSetPadding(String padding) argument
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11Cipher.java46 * and ECB, CBC with PKCS5Padding. It will use its own padding impl
47 * if the native mechanism does not support padding.
64 // padding constant for NoPadding
66 // padding constant for PKCS5Padding
70 // ENC: format the specified buffer with padding bytes and return the
71 // actual padding length
74 // DEC: return the length of trailing padding bytes given the specified
88 ("PKCS#5 padding not supported with stream ciphers");
108 // sanity check padding bytes
149 // padding typ
225 engineSetPadding(String padding) argument
[all...]
H A DP11RSACipher.java43 * PKCS#1 v1.5 padding on top of CKM_RSA_PKCS.
50 // minimum length of PKCS#1 v1.5 padding
65 // padding type constant for NoPadding
67 // padding type constant for PKCS1Padding
85 // padding, one of PAD_* above
99 // for encryption, length of the key minus minimum padding length
121 protected void engineSetPadding(String padding) argument
123 String lowerPadding = padding.toLowerCase(Locale.ENGLISH);
129 throw new NoSuchPaddingException("Unsupported padding " + padding);
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthTreeUI.java71 private int padding; field in class:SynthTreeUI
134 padding = style.getInt(context, "Tree.padding", 0);
684 return super.getRowX(row, depth) + padding;
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A DptrQueue.hpp304 void set_completed_queue_padding(int padding) { _completed_queue_padding = padding; } argument

Completed in 222 milliseconds

12