Searched defs:ofs (Results 1 - 23 of 23) sorted by relevance

/openjdk7/jdk/test/sun/security/provider/MessageDigest/
H A DOffsets.java37 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 DMD2.java79 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 DSHA.java94 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 DDigestBase.java39 * . 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 DSHA2.java109 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 DMD4.java122 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);
H A DMD5.java100 void implDigest(byte[] out, int ofs) { argument
111 i2bLittle(state, 0, out, ofs, 16);
145 void implCompress(byte[] buf, int ofs) { argument
146 b2iLittle64(buf, ofs, x);
H A DSHA5.java118 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 DDSA.java169 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...]
/openjdk7/jdk/test/sun/misc/
H A DCopyMemory.java47 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/javax/smartcardio/
H A DCommandAPDU.java127 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/classes/sun/security/pkcs11/
H A DP11Digest.java180 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 DP11Mac.java235 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 DP11Util.java111 static byte[] subarray(byte[] b, int ofs, int len) { argument
113 System.arraycopy(b, ofs, out, 0, len);
H A DP11Signature.java419 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);
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSACore.java76 public static byte[] convert(byte[] b, int ofs, int len) { argument
77 if ((ofs == 0) && (len == b.length)) {
81 System.arraycopy(b, ofs, t, 0, len);
H A DRSAPadding.java226 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));
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Dsplashscreen_gif.c236 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/test/java/security/Provider/
H A DGetInstance.java180 public void engineUpdate(byte[] b, int ofs, int len) {} argument
/openjdk7/hotspot/src/share/vm/runtime/
H A Dvirtualspace.cpp248 const size_t ofs = (size_t(addr) + adjusted_prefix_size) & (suffix_align - 1); local
249 if (ofs != 0) {
259 const size_t extra = MAX2(ofs, suffix_align - ofs);
/openjdk7/jdk/src/share/classes/sun/security/smartcardio/
H A DPCSC.java68 (long cardId, int protocol, byte[] buf, int ofs, int len)
67 SCardTransmit(long cardId, int protocol, byte[] buf, int ofs, int len) argument
/openjdk7/jdk/src/share/native/sun/security/smartcardio/
H A Dpcsc.c205 int ofs = (int)jOfs; local
213 rv = CALL_SCardTransmit(card, &sendPci, sbuf + ofs, len, NULL, rbuf, &rlen);
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/
H A DpsParallelCompact.cpp175 const size_t ofs = pointer_delta(end_region_addr, destination); local
176 assert(ofs < _partial_obj_size, "sanity");
177 _first_src_addr = sd.region_to_addr(src_region_idx) + ofs;

Completed in 82 milliseconds