Home
last modified time | relevance | path

Searched refs:keyData (Results 1 – 18 of 18) sorted by relevance

/external/icu/icu4c/source/common/
Duloc_keytype.cpp75 LocExtKeyData* keyData = (LocExtKeyData*)obj; in uloc_deleteKeyDataEntry() local
76 if (keyData->typeMap != NULL) { in uloc_deleteKeyDataEntry()
77 uhash_close(keyData->typeMap); in uloc_deleteKeyDataEntry()
79 uprv_free(keyData); in uloc_deleteKeyDataEntry()
383 LocExtKeyData* keyData = (LocExtKeyData*)uprv_malloc(sizeof(LocExtKeyData)); in initFromResourceBundle() local
384 if (keyData == NULL) { in initFromResourceBundle()
388 keyData->bcpId = bcpKeyId; in initFromResourceBundle()
389 keyData->legacyId = legacyKeyId; in initFromResourceBundle()
390 keyData->specialTypes = specialTypes; in initFromResourceBundle()
391 keyData->typeMap = typeDataMap; in initFromResourceBundle()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DKeyGeneratorImpl.java72 byte[] keyData = new byte[keyBytes]; in doKeyGeneration()
73 secureRandom.nextBytes(keyData); in doKeyGeneration()
74 return keyData; in doKeyGeneration()
137 byte[] keyData = new byte[DESedeKeySpec.DES_EDE_KEY_LEN]; in doKeyGeneration()
138 secureRandom.nextBytes(keyData); in doKeyGeneration()
140 for (int i = 0; i < keyData.length; i++) { in doKeyGeneration()
141 if (Integer.bitCount(keyData[i]) % 2 == 0) { in doKeyGeneration()
142 keyData[i] = (byte) (keyData[i] ^ 1); in doKeyGeneration()
147 System.arraycopy(keyData, 0, keyData, 16, 8); in doKeyGeneration()
149 return keyData; in doKeyGeneration()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DKeyGeneratorImpl.java75 byte[] keyData = new byte[keyBytes]; in doKeyGeneration()
76 secureRandom.nextBytes(keyData); in doKeyGeneration()
77 return keyData; in doKeyGeneration()
175 byte[] keyData = new byte[DESedeKeySpec.DES_EDE_KEY_LEN]; in doKeyGeneration()
176 secureRandom.nextBytes(keyData); in doKeyGeneration()
178 for (int i = 0; i < keyData.length; i++) { in doKeyGeneration()
179 if (Integer.bitCount(keyData[i]) % 2 == 0) { in doKeyGeneration()
180 keyData[i] = (byte) (keyData[i] ^ 1); in doKeyGeneration()
185 System.arraycopy(keyData, 0, keyData, 16, 8); in doKeyGeneration()
187 return keyData; in doKeyGeneration()
/external/nos/host/android/hals/keymaster/
Dimport_key.cpp61 const hidl_vec<uint8_t>& keyData, in import_key_rsa() argument
77 pkey.reset(evp_from_pkcs8_bytes(&keyData[0], keyData.size())); in import_key_rsa()
138 const hidl_vec<uint8_t>& keyData, in import_key_ec() argument
153 pkey.reset(evp_from_pkcs8_bytes(&keyData[0], keyData.size())); in import_key_ec()
248 const hidl_vec<uint8_t>& keyData, in import_key_raw() argument
264 if (key_size != nullptr && *key_size != keyData.size() * 8) { in import_key_raw()
268 << keyData.size(); in import_key_raw()
273 keyData.size() != 24) { in import_key_raw()
277 << keyData.size(); in import_key_raw()
283 if (keyData.size() == 0) { in import_key_raw()
[all …]
Dimport_key.h38 const hidl_vec<uint8_t>& keyData,
DKeymasterDevice.cpp521 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) in importKey() argument
529 error = import_key_request(params, keyFormat, keyData, &request); in importKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DSubjectPublicKeyInfo.java25 private DERBitString keyData; field in SubjectPublicKeyInfo
54 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
62 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
81 this.keyData = DERBitString.getInstance(e.nextElement()); in SubjectPublicKeyInfo()
109 return ASN1Primitive.fromByteArray(keyData.getOctets()); in parsePublicKey()
124 return ASN1Primitive.fromByteArray(keyData.getOctets()); in getPublicKey()
134 return keyData; in getPublicKeyData()
150 v.add(keyData); in toASN1Primitive()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DSubjectPublicKeyInfo.java28 private DERBitString keyData; field in SubjectPublicKeyInfo
59 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
67 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo()
86 this.keyData = DERBitString.getInstance(e.nextElement()); in SubjectPublicKeyInfo()
114 return ASN1Primitive.fromByteArray(keyData.getOctets()); in parsePublicKey()
129 return ASN1Primitive.fromByteArray(keyData.getOctets()); in getPublicKey()
139 return keyData; in getPublicKeyData()
155 v.add(keyData); in toASN1Primitive()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DKeyTypeData.java128 KeyData keyData = KEYMAP.get(key); in toBcpKey() local
129 if (keyData != null) { in toBcpKey()
130 return keyData.bcpId; in toBcpKey()
137 KeyData keyData = KEYMAP.get(key); in toLegacyKey() local
138 if (keyData != null) { in toLegacyKey()
139 return keyData.legacyId; in toLegacyKey()
157 KeyData keyData = KEYMAP.get(key); in toBcpType() local
158 if (keyData != null) { in toBcpType()
162 Type t = keyData.typeMap.get(type); in toBcpType()
166 if (keyData.specialTypes != null) { in toBcpType()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DKeyTypeData.java123 KeyData keyData = KEYMAP.get(key); in toBcpKey() local
124 if (keyData != null) { in toBcpKey()
125 return keyData.bcpId; in toBcpKey()
132 KeyData keyData = KEYMAP.get(key); in toLegacyKey() local
133 if (keyData != null) { in toLegacyKey()
134 return keyData.legacyId; in toLegacyKey()
152 KeyData keyData = KEYMAP.get(key); in toBcpType() local
153 if (keyData != null) { in toBcpType()
157 Type t = keyData.typeMap.get(type); in toBcpType()
161 if (keyData.specialTypes != null) { in toBcpType()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DKeyUtil.java11 …blic static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyData) in getEncodedSubjectPublicKeyInfo() argument
15 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo()
23 public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData) in getEncodedSubjectPublicKeyInfo() argument
27 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DKeyUtil.java15 …blic static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyData) in getEncodedSubjectPublicKeyInfo() argument
19 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo()
27 public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData) in getEncodedSubjectPublicKeyInfo() argument
31 return getEncodedSubjectPublicKeyInfo(new SubjectPublicKeyInfo(algId, keyData)); in getEncodedSubjectPublicKeyInfo()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/
DTestUtils.java237 String keyData = new String(readTestFile(name), "US-ASCII"); in readPublicKeyPemFile() local
238 keyData = keyData.replace("-----BEGIN PUBLIC KEY-----", ""); in readPublicKeyPemFile()
239 keyData = keyData.replace("-----END PUBLIC KEY-----", ""); in readPublicKeyPemFile()
240 keyData = keyData.replace("\r", ""); in readPublicKeyPemFile()
241 keyData = keyData.replace("\n", ""); in readPublicKeyPemFile()
243 new X509EncodedKeySpec(decodeBase64(keyData))); in readPublicKeyPemFile()
/external/conscrypt/testing/src/main/java/org/conscrypt/
DTestUtils.java235 String keyData = new String(readTestFile(name), "US-ASCII"); in readPublicKeyPemFile() local
236 keyData = keyData.replace("-----BEGIN PUBLIC KEY-----", ""); in readPublicKeyPemFile()
237 keyData = keyData.replace("-----END PUBLIC KEY-----", ""); in readPublicKeyPemFile()
238 keyData = keyData.replace("\r", ""); in readPublicKeyPemFile()
239 keyData = keyData.replace("\n", ""); in readPublicKeyPemFile()
241 new X509EncodedKeySpec(decodeBase64(keyData))); in readPublicKeyPemFile()
/external/skqp/src/gpu/vk/
DGrVkResourceProvider.cpp51 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in pipelineCache() local
52 cached = persistentCache->load(*keyData); in pipelineCache()
545 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in storePipelineCacheData() local
548 *keyData, *SkData::MakeWithoutCopy(data.get(), dataSize)); in storePipelineCacheData()
/external/skia/src/gpu/vk/
DGrVkResourceProvider.cpp51 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in pipelineCache() local
52 cached = persistentCache->load(*keyData); in pipelineCache()
557 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in storePipelineCacheData() local
560 *keyData, *SkData::MakeWithoutCopy(data.get(), dataSize)); in storePipelineCacheData()
/external/nos/host/android/hals/keymaster/include/
DKeymasterDevice.h72 const hidl_vec<uint8_t>& keyData, importKey_cb _hidl_cb) override;
/external/python/cpython2/Mac/Modules/ae/
D_AEmodule.c1321 AEDesc keyData; in AE_AECallObjectAccessor() local
1331 AEDesc_Convert, &keyData)) in AE_AECallObjectAccessor()
1337 &keyData, in AE_AECallObjectAccessor()