/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | KeyGeneratorImpl.java | 72 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/ |
D | KeyGeneratorImpl.java | 74 byte[] keyData = new byte[keyBytes]; in doKeyGeneration() 75 secureRandom.nextBytes(keyData); in doKeyGeneration() 76 return keyData; in doKeyGeneration() 160 byte[] keyData = new byte[DESedeKeySpec.DES_EDE_KEY_LEN]; in doKeyGeneration() 161 secureRandom.nextBytes(keyData); in doKeyGeneration() 163 for (int i = 0; i < keyData.length; i++) { in doKeyGeneration() 164 if (Integer.bitCount(keyData[i]) % 2 == 0) { in doKeyGeneration() 165 keyData[i] = (byte) (keyData[i] ^ 1); in doKeyGeneration() 170 System.arraycopy(keyData, 0, keyData, 16, 8); in doKeyGeneration() 172 return keyData; in doKeyGeneration()
|
/external/icu/icu4c/source/common/ |
D | uloc_keytype.cpp | 331 LocExtKeyData* keyData = gLocExtKeyDataEntries->create(); in initFromResourceBundle() local 332 if (keyData == NULL) { in initFromResourceBundle() 336 keyData->bcpId = bcpKeyId; in initFromResourceBundle() 337 keyData->legacyId = legacyKeyId; in initFromResourceBundle() 338 keyData->specialTypes = specialTypes; in initFromResourceBundle() 339 keyData->typeMap.adoptInstead(typeDataMap); in initFromResourceBundle() 341 uhash_put(gLocExtKeyMap, (void*)legacyKeyId, keyData, &sts); in initFromResourceBundle() 344 uhash_put(gLocExtKeyMap, (void*)bcpKeyId, keyData, &sts); in initFromResourceBundle() 426 LocExtKeyData* keyData = (LocExtKeyData*)uhash_get(gLocExtKeyMap, key); in ulocimp_toBcpKey() local 427 if (keyData != NULL) { in ulocimp_toBcpKey() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
D | SubjectPublicKeyInfo.java | 25 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_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/ |
D | SubjectPublicKeyInfo.java | 27 private DERBitString keyData; field in SubjectPublicKeyInfo 56 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo() 64 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo() 83 this.keyData = DERBitString.getInstance(e.nextElement()); in SubjectPublicKeyInfo() 111 return ASN1Primitive.fromByteArray(keyData.getOctets()); in parsePublicKey() 126 return ASN1Primitive.fromByteArray(keyData.getOctets()); in getPublicKey() 136 return keyData; in getPublicKeyData() 152 v.add(keyData); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/ |
D | SubjectPublicKeyInfo.java | 27 private DERBitString keyData; field in SubjectPublicKeyInfo 57 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo() 65 this.keyData = new DERBitString(publicKey); in SubjectPublicKeyInfo() 84 this.keyData = DERBitString.getInstance(e.nextElement()); in SubjectPublicKeyInfo() 112 return ASN1Primitive.fromByteArray(keyData.getOctets()); in parsePublicKey() 127 return ASN1Primitive.fromByteArray(keyData.getOctets()); in getPublicKey() 137 return keyData; in getPublicKeyData() 153 v.add(keyData); in toASN1Primitive()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
D | KeyTypeData.java | 137 KeyData keyData = KEYMAP.get(key); in toBcpKey() local 138 if (keyData != null) { in toBcpKey() 139 return keyData.bcpId; in toBcpKey() 146 KeyData keyData = KEYMAP.get(key); in toLegacyKey() local 147 if (keyData != null) { in toLegacyKey() 148 return keyData.legacyId; in toLegacyKey() 166 KeyData keyData = KEYMAP.get(key); in toBcpType() local 167 if (keyData != null) { in toBcpType() 171 Type t = keyData.typeMap.get(type); in toBcpType() 175 if (keyData.specialTypes != null) { in toBcpType() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
D | KeyTypeData.java | 132 KeyData keyData = KEYMAP.get(key); in toBcpKey() local 133 if (keyData != null) { in toBcpKey() 134 return keyData.bcpId; in toBcpKey() 141 KeyData keyData = KEYMAP.get(key); in toLegacyKey() local 142 if (keyData != null) { in toLegacyKey() 143 return keyData.legacyId; in toLegacyKey() 161 KeyData keyData = KEYMAP.get(key); in toBcpType() local 162 if (keyData != null) { in toBcpType() 166 Type t = keyData.typeMap.get(type); in toBcpType() 170 if (keyData.specialTypes != null) { in toBcpType() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | KeyUtil.java | 11 …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/ |
D | KeyUtil.java | 15 …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/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/util/ |
D | KeyUtil.java | 15 …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/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
D | Bcp47Mapper.java | 109 IcuData keyData = keyTypeData; in addKeyMapValues() local 117 keyData.add(RbPath.parse(bcpKey.substring(1)), key); in addKeyMapValues() 124 keyData.add(RB_KEYMAP.extendBy(key), bcpKey); in addKeyMapValues() 127 keyData.add(RB_TYPE_ALIAS, "/ICUDATA/timezoneTypes/typeAlias/timezone"); in addKeyMapValues() 128 keyData.add(RB_MAP_ALIAS, "/ICUDATA/timezoneTypes/typeMap/timezone"); in addKeyMapValues() 129 keyData.add(RB_BCP_ALIAS, "/ICUDATA/timezoneTypes/bcpTypeAlias/tz"); in addKeyMapValues()
|
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/ |
D | AeadCipherTest.java | 46 byte[] keyData = new byte[16]; in newKey() 47 keyData[0] = counter++; in newKey() 48 return new SecretKeySpec(keyData, "AES"); in newKey() 50 byte[] keyData = new byte[32]; in newKey() 51 keyData[0] = counter++; in newKey() 52 return new SecretKeySpec(keyData, "ChaCha20"); in newKey()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | AeadCipherTest.java | 50 byte[] keyData = new byte[16]; in newKey() 51 keyData[0] = counter++; in newKey() 52 return new SecretKeySpec(keyData, "AES"); in newKey() 54 byte[] keyData = new byte[32]; in newKey() 55 keyData[0] = counter++; in newKey() 56 return new SecretKeySpec(keyData, "ChaCha20"); in newKey()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/ |
D | TestUtils.java | 270 String keyData = new String(readTestFile(name), StandardCharsets.US_ASCII); in readPublicKeyPemFile() local 271 keyData = keyData.replace("-----BEGIN PUBLIC KEY-----", ""); in readPublicKeyPemFile() 272 keyData = keyData.replace("-----END PUBLIC KEY-----", ""); in readPublicKeyPemFile() 273 keyData = keyData.replace("\r", ""); in readPublicKeyPemFile() 274 keyData = keyData.replace("\n", ""); in readPublicKeyPemFile() 276 new X509EncodedKeySpec(decodeBase64(keyData))); in readPublicKeyPemFile()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/ |
D | TestUtils.java | 276 String keyData = new String(readTestFile(name), StandardCharsets.US_ASCII); in readPublicKeyPemFile() local 277 keyData = keyData.replace("-----BEGIN PUBLIC KEY-----", ""); in readPublicKeyPemFile() 278 keyData = keyData.replace("-----END PUBLIC KEY-----", ""); in readPublicKeyPemFile() 279 keyData = keyData.replace("\r", ""); in readPublicKeyPemFile() 280 keyData = keyData.replace("\n", ""); in readPublicKeyPemFile() 282 new X509EncodedKeySpec(decodeBase64(keyData))); in readPublicKeyPemFile()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 248 byte[] keyData = "secret key".getBytes(UTF_8); in testToString() 253 "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString()); in testToString() 260 Hashing.hmacSha1(keyData).toString()); in testToString() 267 Hashing.hmacSha256(keyData).toString()); in testToString() 274 Hashing.hmacSha512(keyData).toString()); in testToString()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 248 byte[] keyData = "secret key".getBytes(UTF_8); in testToString() 253 "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString()); in testToString() 260 Hashing.hmacSha1(keyData).toString()); in testToString() 267 Hashing.hmacSha256(keyData).toString()); in testToString() 274 Hashing.hmacSha512(keyData).toString()); in testToString()
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | StringMapEntry.h | 117 static StringMapEntry &GetStringMapEntryFromKeyData(const char *keyData) { in GetStringMapEntryFromKeyData() argument 118 char *ptr = const_cast<char *>(keyData) - sizeof(StringMapEntry<ValueTy>); in GetStringMapEntryFromKeyData()
|
/external/skia/src/gpu/ |
D | GrProgramDesc.h | 161 static bool BuildFromData(GrProgramDesc* desc, const void* keyData, size_t keyLength) { in BuildFromData() argument 166 memcpy(desc->fKey.begin(), keyData, keyLength); in BuildFromData()
|
/external/skia/src/gpu/vk/ |
D | GrVkResourceProvider.cpp | 47 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in pipelineCache() local 48 cached = persistentCache->load(*keyData); in pipelineCache() 586 sk_sp<SkData> keyData = SkData::MakeWithoutCopy(&key, sizeof(uint32_t)); in storePipelineCacheData() local 589 *keyData, *SkData::MakeWithoutCopy(data.get(), dataSize), SkString("VkPipelineCache")); in storePipelineCacheData()
|
/external/skqp/src/gpu/vk/ |
D | GrVkResourceProvider.cpp | 51 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/angle/src/libANGLE/renderer/vulkan/ |
D | RendererVk.cpp | 554 angle::MemoryBuffer keyData; in CompressAndStorePipelineCacheVk() local 555 if (!keyData.resize(kBlobHeaderSize + chunkSize)) in CompressAndStorePipelineCacheVk() 561 keyData.data()[0] = static_cast<uint8_t>(numChunks); in CompressAndStorePipelineCacheVk() 562 memcpy(keyData.data() + kBlobHeaderSize, compressedData.data() + compressedOffset, in CompressAndStorePipelineCacheVk() 570 displayVk->getBlobCache()->putApplication(chunkCacheHash, keyData); in CompressAndStorePipelineCacheVk() 630 egl::BlobCache::Value keyData; in GetAndDecompressPipelineCacheVk() local 634 if (!displayVk->getBlobCache()->get(displayVk->getScratchBuffer(), chunkCacheHash, &keyData, in GetAndDecompressPipelineCacheVk() 636 keyData.size() < kBlobHeaderSize) in GetAndDecompressPipelineCacheVk() 643 size_t numChunks = keyData.data()[0]; in GetAndDecompressPipelineCacheVk() 658 if (!displayVk->getBlobCache()->get(displayVk->getScratchBuffer(), chunkCacheHash, &keyData, in GetAndDecompressPipelineCacheVk() [all …]
|
/external/llvm-project/lldb/source/Utility/ |
D | ConstString.cpp | 66 GetStringMapEntryFromKeyData(const char *keyData) { in GetStringMapEntryFromKeyData() argument 67 return StringPoolEntryType::GetStringMapEntryFromKeyData(keyData); in GetStringMapEntryFromKeyData()
|
/external/python/cpython2/Mac/Modules/ae/ |
D | _AEmodule.c | 1321 AEDesc keyData; in AE_AECallObjectAccessor() local 1331 AEDesc_Convert, &keyData)) in AE_AECallObjectAccessor() 1337 &keyData, in AE_AECallObjectAccessor()
|