Lines Matching refs:len

49     DerInputBuffer(byte[] buf, int offset, int len) {
50 super(buf, offset, len);
65 int len = available();
66 if (len <= 0)
68 byte[] retval = new byte[len];
70 System.arraycopy(buf, pos, retval, 0, len);
115 int len = available();
118 for (int i = 0; i < len; i++)
123 void truncate(int len) throws IOException {
124 if (len > available())
126 count = pos + len;
132 * @param len the number of bytes to use.
137 BigInteger getBigInteger(int len, boolean makePositive) throws IOException {
138 if (len > available())
141 if (len == 0) {
145 byte[] bytes = new byte[len];
147 System.arraycopy(buf, pos, bytes, 0, len);
148 skip(len);
163 * @param len the number of bytes to use.
166 public int getInteger(int len) throws IOException {
168 BigInteger result = getBigInteger(len, false);
182 public byte[] getBitString(int len) throws IOException {
183 if (len > available())
186 if (len == 0) {
195 byte[] retval = new byte[len - 1];
196 System.arraycopy(buf, pos + 1, retval, 0, len - 1);
199 retval[len - 2] &= (0xff << numOfPadBits);
201 skip(len);
223 int len = available();
228 byte[] bits = new byte[len - 1];
232 System.arraycopy(buf, pos + 1, bits, 0, len - 1);
242 * @param len the number of bytes to use
244 public Date getUTCTime(int len) throws IOException {
245 if (len > available())
248 if (len < 11 || len > 17)
251 return getTime(len, false);
257 * @param len the number of bytes to use
259 public Date getGeneralizedTime(int len) throws IOException {
260 if (len > available())
263 if (len < 13 || len > 23)
266 return getTime(len, true);
272 * @param len the number of bytes to use
276 private Date getTime(int len, boolean generalized) throws IOException {
305 len -= 2; // For the two extra YY
329 len -= 10; // YYMMDDhhmm
338 if (len > 2 && len < 12) {
341 len -= 2;
344 len --;
372 len -= precision;
395 if (! (len == 1 || len == 5))