/openjdk7/jdk/test/sun/security/provider/MessageDigest/ |
H A D | Offsets.java | 37 private static void outOfBounds(MessageDigest md, int arrayLen, int ofs, int len) throws Exception { argument 40 md.update(new byte[arrayLen], ofs, len); 61 for (int ofs = minOfs; ofs <= maxOfs; ofs++) { 64 System.arraycopy(data, 0, ofsData, ofs, n); 65 md.update(ofsData, ofs, n); 71 throw new Exception("Digest mismatch " + algorithm + ", ofs: " + ofs + ", len: " + n);
|
/openjdk7/jdk/src/share/classes/sun/security/provider/ |
H A D | DigestBase.java | 39 * . abstract void implCompress(byte[] b, int ofs); 40 * . abstract void implDigest(byte[] out, int ofs); 113 protected final void engineUpdate(byte[] b, int ofs, int len) { argument 117 if ((ofs < 0) || (len < 0) || (ofs > b.length - len)) { 127 System.arraycopy(b, ofs, buffer, bufOfs, n); 129 ofs += n; 139 implCompress(b, ofs); 141 ofs += blockSize; 145 System.arraycopy(b, ofs, buffe 174 engineDigest(byte[] out, int ofs, int len) argument 195 implCompress(byte[] b, int ofs) argument 201 implDigest(byte[] out, int ofs) argument [all...] |
H A D | MD2.java | 79 void implDigest(byte[] out, int ofs) { argument 87 out[ofs + i] = (byte)X[i]; 92 void implCompress(byte[] b, int ofs) { argument 94 int k = b[ofs + i] & 0xff;
|
H A D | SHA.java | 94 void implDigest(byte[] out, int ofs) { argument 105 i2bBig(state, 0, out, ofs, 20); 121 void implCompress(byte[] buf, int ofs) { argument 122 b2iBig64(buf, ofs, W);
|
H A D | SHA2.java | 109 void implDigest(byte[] out, int ofs) { argument 120 i2bBig(state, 0, out, ofs, 32); 204 void implCompress(byte[] buf, int ofs) { argument 205 b2iBig64(buf, ofs, W);
|
H A D | DSA.java | 169 private int ofs; field in class:DSA.RawDSA 176 if (ofs == SHA1_LEN) { 177 ofs = SHA1_LEN + 1; 180 digestBuffer[ofs++] = b; 184 if (ofs + len > SHA1_LEN) { 185 ofs = SHA1_LEN + 1; 188 System.arraycopy(data, off, digestBuffer, ofs, len); 189 ofs += len; 193 if (ofs != SHA1_LEN) { 197 ofs [all...] |
H A D | SHA5.java | 118 final void implDigest(byte[] out, int ofs) { argument 129 l2bBig(state, 0, out, ofs, engineGetDigestLength()); 217 final void implCompress(byte[] buf, int ofs) { argument 218 b2lBig128(buf, ofs, W);
|
H A D | MD4.java | 122 void implDigest(byte[] out, int ofs) { argument 133 i2bLittle(state, 0, out, ofs, 16); 156 void implCompress(byte[] buf, int ofs) { argument 157 b2iLittle64(buf, ofs, x);
|
/openjdk7/jdk/test/sun/misc/ |
H A D | CopyMemory.java | 47 private static void set(byte[] b, int ofs, int len, int value) { argument 49 b[ofs + i] = (byte)value; 53 private static void check(byte[] b, int ofs, int len, int value) { argument 55 int r = b[ofs + i] & 0xff; 62 private static void set(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 64 unsafe.putByte(null, addr + ofs + i, (byte)value); 68 private static void check(Unsafe unsafe, long addr, int ofs, int len, int value) { argument 70 int r = unsafe.getByte(null, addr + ofs + i) & 0xff; 93 int ofs = random.nextInt(BUFFER_SIZE / 2); 96 unsafe.setMemory(b, Unsafe.ARRAY_BYTE_BASE_OFFSET + ofs, le [all...] |
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ComparableTimSort.java | 478 int ofs = 1; 480 // Gallop right until a[base+hint+lastOfs] < key <= a[base+hint+ofs] 482 while (ofs < maxOfs && key.compareTo(a[base + hint + ofs]) > 0) { 483 lastOfs = ofs; 484 ofs = (ofs << 1) + 1; 485 if (ofs <= 0) // int overflow 486 ofs = maxOfs; 488 if (ofs > maxOf [all...] |
H A D | TimSort.java | 510 int ofs = 1; 512 // Gallop right until a[base+hint+lastOfs] < key <= a[base+hint+ofs] 514 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) > 0) { 515 lastOfs = ofs; 516 ofs = (ofs << 1) + 1; 517 if (ofs <= 0) // int overflow 518 ofs = maxOfs; 520 if (ofs > maxOf [all...] |
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
H A D | P11SecureRandom.java | 127 int ofs = 0; 129 while (ofs < bytes.length) { 139 while ((ofs < bytes.length) && (ibuffered > 0)) { 140 bytes[ofs++] = iBuffer[IBUFFER_SIZE - ibuffered--]; 165 int ofs = 0; 172 b[ofs++] ^= mixBuffer[mixBuffer.length - buffered];
|
H A D | P11Digest.java | 180 protected int engineDigest(byte[] digest, int ofs, int len) argument 191 buffer, 0, bufOfs, digest, ofs, len); 196 n = token.p11.C_DigestFinal(session.id(), digest, ofs, len); 221 protected void engineUpdate(byte[] in, int ofs, int len) { argument 231 doUpdate(in, ofs, len); 233 System.arraycopy(in, ofs, buffer, bufOfs, len); 280 int ofs = byteBuffer.position(); 290 token.p11.C_DigestUpdate(session.id(), addr + ofs, null, 0, len); 291 byteBuffer.position(ofs + len); 297 private void doUpdate(byte[] in, int ofs, in argument [all...] |
H A D | P11Mac.java | 235 protected void engineUpdate(byte[] b, int ofs, int len) { argument 238 token.p11.C_SignUpdate(session.id(), 0, b, ofs, len); 258 int ofs = byteBuffer.position(); 259 token.p11.C_SignUpdate(session.id(), addr + ofs, null, 0, len); 260 byteBuffer.position(ofs + len);
|
H A D | P11Signature.java | 419 protected void engineUpdate(byte[] b, int ofs, int len) argument 429 token.p11.C_SignUpdate(session.id(), 0, b, ofs, len); 431 token.p11.C_VerifyUpdate(session.id(), 0, b, ofs, len); 439 md.update(b, ofs, len); 447 System.arraycopy(b, ofs, buffer, bytesProcessed, len); 470 int ofs = byteBuffer.position(); 474 (session.id(), addr + ofs, null, 0, len); 477 (session.id(), addr + ofs, null, 0, len); 480 byteBuffer.position(ofs + len);
|
H A D | P11Util.java | 111 static byte[] subarray(byte[] b, int ofs, int len) { argument 113 System.arraycopy(b, ofs, out, 0, len);
|
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
H A D | TlsKeyMaterialGenerator.java | 168 int ofs = 0; 172 System.arraycopy(keyBlock, ofs, tmp, 0, macLength); 173 ofs += macLength; 176 System.arraycopy(keyBlock, ofs, tmp, 0, macLength); 177 ofs += macLength; 188 System.arraycopy(keyBlock, ofs, clientKeyBytes, 0, keyLength); 189 ofs += keyLength; 192 System.arraycopy(keyBlock, ofs, serverKeyBytes, 0, keyLength); 193 ofs += keyLength; 204 System.arraycopy(keyBlock, ofs, tm [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/impl/dtd/models/ |
H A D | CMStateSet.java | 176 final int ofs = bitToGet >> 3; 179 return ((fByteArray[ofs] & mask) != 0); 257 final int ofs = bitToSet >> 3; 260 fByteArray[ofs] &= ~mask; 261 fByteArray[ofs] |= mask;
|
/openjdk7/jdk/src/share/classes/java/security/ |
H A D | MessageDigestSpi.java | 111 int ofs = input.arrayOffset(); 114 engineUpdate(b, ofs + pos, lim - pos);
|
H A D | SignatureSpi.java | 148 int ofs = input.arrayOffset(); 151 engineUpdate(b, ofs + pos, lim - pos);
|
/openjdk7/jdk/src/share/classes/javax/crypto/ |
H A D | MacSpi.java | 107 int ofs = input.arrayOffset(); 110 engineUpdate(b, ofs + pos, lim - pos);
|
/openjdk7/jdk/src/solaris/classes/sun/security/provider/ |
H A D | NativePRNG.java | 200 int ofs = 0; 202 int k = in.read(data, ofs, len); 206 ofs += k; 276 int ofs = 0; 281 data[ofs++] ^= urandomBuffer[bufferOfs++];
|
/openjdk7/jdk/src/share/classes/javax/smartcardio/ |
H A D | CommandAPDU.java | 127 private void checkArrayBounds(byte[] b, int ofs, int len) { argument 128 if ((ofs < 0) || (len < 0)) { 133 if ((ofs != 0) && (len != 0)) { 138 if (ofs > b.length - len) {
|
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/ |
H A D | splashscreen_gif.c | 236 int ofs = interlacedOffset[pass]; local 238 int numPassLines = (desc->Height + jump - ofs - 1) / jump; 240 int numLines = (ch + jump - ofs - 1) / jump; 246 initRect(&dstRect, cx, cy + ofs, cw,
|
/openjdk7/jdk/src/share/classes/sun/security/rsa/ |
H A D | RSAPadding.java | 226 public byte[] pad(byte[] data, int ofs, int len) argument 228 return pad(RSACore.convert(data, ofs, len)); 255 public byte[] unpad(byte[] padded, int ofs, int len) argument 257 return unpad(RSACore.convert(padded, ofs, len));
|