Home
last modified time | relevance | path

Searched refs:bitString (Results 1 – 10 of 10) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DKeyUsage.java37 private DERBitString bitString; field in KeyUsage
68 this.bitString = new DERBitString(usage); in KeyUsage()
72 DERBitString bitString) in KeyUsage() argument
74 this.bitString = bitString; in KeyUsage()
85 return (bitString.intValue() & usages) == usages; in hasUsages()
90 return bitString.getBytes(); in getBytes()
95 return bitString.getPadBits(); in getPadBits()
100 byte[] data = bitString.getBytes(); in toString()
111 return bitString; in toASN1Primitive()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DKeyUsage.java39 private DERBitString bitString; field in KeyUsage
70 this.bitString = new DERBitString(usage); in KeyUsage()
74 DERBitString bitString) in KeyUsage() argument
76 this.bitString = bitString; in KeyUsage()
87 return (bitString.intValue() & usages) == usages; in hasUsages()
92 return bitString.getBytes(); in getBytes()
97 return bitString.getPadBits(); in getPadBits()
102 byte[] data = bitString.getBytes(); in toString()
113 return bitString; in toASN1Primitive()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DKeyUsage.java39 private DERBitString bitString; field in KeyUsage
70 this.bitString = new DERBitString(usage); in KeyUsage()
74 DERBitString bitString) in KeyUsage() argument
76 this.bitString = bitString; in KeyUsage()
87 return (bitString.intValue() & usages) == usages; in hasUsages()
92 return bitString.getBytes(); in getBytes()
97 return bitString.getPadBits(); in getPadBits()
102 byte[] data = bitString.getBytes(); in toString()
113 return bitString; in toASN1Primitive()
/external/caliper/examples/src/main/java/examples/
DBitSetBenchmark.java90 private char[] bitString; field in BitSetBenchmark
94 bitString = new char[64]; in setUp()
97 bitString[n] = r.nextBoolean() ? '1' : '0'; in setUp()
136 for (int n = 0; n < bitString.length; n++) { in charsToBitSet()
137 bitSet.set(n, bitString[n] == '1'); in charsToBitSet()
155 for (int n = 0; n < bitString.length; n++) { in charsToMask()
157 if (bitString[n] == '1') { in charsToMask()
177 for (int n = 0; n < bitString.length; n++) { in baselineIteration()
178 badHash += bitString[n]; in baselineIteration()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DASN1BitString.java30 int bitString) in getPadBits() argument
41 if ((bitString >> (i * 8)) != 0) in getPadBits()
43 val = (bitString >> (i * 8)) & 0xFF; in getPadBits()
49 if (bitString != 0) in getPadBits()
51 val = bitString & 0xFF; in getPadBits()
78 static protected byte[] getBytes(int bitString) in getBytes() argument
80 if (bitString == 0) in getBytes()
88 if ((bitString & (0xFF << (i * 8))) != 0) in getBytes()
98 result[i] = (byte) ((bitString >> (i * 8)) & 0xFF); in getBytes()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DASN1BitString.java30 int bitString) in getPadBits() argument
41 if ((bitString >> (i * 8)) != 0) in getPadBits()
43 val = (bitString >> (i * 8)) & 0xFF; in getPadBits()
49 if (bitString != 0) in getPadBits()
51 val = bitString & 0xFF; in getPadBits()
78 static protected byte[] getBytes(int bitString) in getBytes() argument
80 if (bitString == 0) in getBytes()
88 if ((bitString & (0xFF << (i * 8))) != 0) in getBytes()
98 result[i] = (byte) ((bitString >> (i * 8)) & 0xFF); in getBytes()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1BitString.java28 int bitString) in getPadBits() argument
39 if ((bitString >> (i * 8)) != 0) in getPadBits()
41 val = (bitString >> (i * 8)) & 0xFF; in getPadBits()
47 if (bitString != 0) in getPadBits()
49 val = bitString & 0xFF; in getPadBits()
76 static protected byte[] getBytes(int bitString) in getBytes() argument
78 if (bitString == 0) in getBytes()
86 if ((bitString & (0xFF << (i * 8))) != 0) in getBytes()
96 result[i] = (byte) ((bitString >> (i * 8)) & 0xFF); in getBytes()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/
DCertUtils.java200 static boolean[] bitStringToBoolean(DERBitString bitString) in bitStringToBoolean() argument
202 if (bitString != null) in bitStringToBoolean()
204 byte[] bytes = bitString.getBytes(); in bitStringToBoolean()
205 boolean[] boolId = new boolean[bytes.length * 8 - bitString.getPadBits()]; in bitStringToBoolean()
/external/python/pyasn1/pyasn1/codec/ber/
Ddecoder.py173 bitString = self.protoComponent.fromOctetString(null, internalFormat=True)
185 bitString = self.protoComponent.fromOctetString(
187 prepend=bitString, padding=trailingBits
190 return self._createComponent(asn1Spec, tagSet, bitString, **options), tail
203 bitString = self.protoComponent.fromOctetString(null, internalFormat=True)
218 bitString = self.protoComponent.fromOctetString(
220 prepend=bitString, padding=trailingBits
226 return self._createComponent(asn1Spec, tagSet, bitString, **options), substrate
/external/python/pyasn1/pyasn1/type/
Duniv.py539 bitString = self._value
541 bitString <<= len(self._value)
542 bitString |= self._value
544 return self.clone(bitString)