/aosp12/frameworks/base/services/core/java/com/android/server/vcn/util/ |
H A D | MtuUtils.java | 122 final int algo = encryptionAlgoPair.first; in getMtu() local 124 if (AUTHCRYPT_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu() 126 max(maxAuthCryptOverhead, AUTHCRYPT_ALGORITHM_OVERHEAD.get(algo)); in getMtu() 128 } else if (CRYPT_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu() 129 maxCryptOverhead = max(maxCryptOverhead, CRYPT_ALGORITHM_OVERHEAD.get(algo)); in getMtu() 133 Slog.wtf(TAG, "Unknown encryption algorithm requested: " + algo); in getMtu() 137 for (int algo : proposal.getIntegrityAlgorithms()) { in getMtu() 138 if (AUTH_ALGORITHM_OVERHEAD.containsKey(algo)) { in getMtu() 139 maxAuthOverhead = max(maxAuthOverhead, AUTH_ALGORITHM_OVERHEAD.get(algo)); in getMtu() 143 Slog.wtf(TAG, "Unknown integrity algorithm requested: " + algo); in getMtu()
|
/aosp12/system/security/ondevice-signing/ |
H A D | KeystoreHmacKey.cpp | 71 KeyParameter algo; in createKey() local 72 algo.tag = Tag::ALGORITHM; in createKey() 73 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in createKey() 74 params.push_back(algo); in createKey() 162 KeyParameter algo; in getVerifyOpParameters() local 163 algo.tag = Tag::ALGORITHM; in getVerifyOpParameters() 164 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in getVerifyOpParameters() 165 opParameters.push_back(algo); in getVerifyOpParameters() 183 KeyParameter algo; in getSignOpParameters() local 184 algo.tag = Tag::ALGORITHM; in getSignOpParameters() [all …]
|
H A D | KeystoreKey.cpp | 78 KeyParameter algo; in createKey() local 79 algo.tag = Tag::ALGORITHM; in createKey() 80 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in createKey() 81 params.push_back(algo); in createKey() 270 KeyParameter algo; in getSignOpParameters() local 271 algo.tag = Tag::ALGORITHM; in getSignOpParameters() 272 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in getSignOpParameters() 273 opParameters.push_back(algo); in getSignOpParameters()
|
/aosp12/frameworks/base/core/java/android/net/ |
H A D | IpSecTransform.java | 256 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption() argument 258 Preconditions.checkNotNull(algo); in setEncryption() 259 mConfig.setEncryption(algo); in setEncryption() 271 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication() argument 273 Preconditions.checkNotNull(algo); in setAuthentication() 274 mConfig.setAuthentication(algo); in setAuthentication() 292 public IpSecTransform.Builder setAuthenticatedEncryption(@NonNull IpSecAlgorithm algo) { in setAuthenticatedEncryption() argument 293 Preconditions.checkNotNull(algo); in setAuthenticatedEncryption() 294 mConfig.setAuthenticatedEncryption(algo); in setAuthenticatedEncryption()
|
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
H A D | IkeSaProposal.java | 101 for (int algo : integrityAlgoIdArray) { in fromPersistableBundle() 102 builder.addIntegrityAlgorithm(algo); in fromPersistableBundle() 146 for (int algo : getKeySet(SUPPORTED_INTEGRITY_ALGO_TO_STR)) { in getSupportedIntegrityAlgorithms() 147 if (algo == INTEGRITY_ALGORITHM_AES_CMAC_96 && !SdkLevel.isAtLeastS()) { in getSupportedIntegrityAlgorithms() 150 supportedSet.add(algo); in getSupportedIntegrityAlgorithms() 161 for (int algo : getKeySet(SUPPORTED_PRF_TO_STR)) { in getSupportedPseudorandomFunctions() 162 if (algo == PSEUDORANDOM_FUNCTION_AES128_CMAC && !SdkLevel.isAtLeastS()) { in getSupportedPseudorandomFunctions() 165 supportedSet.add(algo); in getSupportedPseudorandomFunctions()
|
H A D | ChildSaProposal.java | 124 for (int algo : integrityAlgoIdArray) { in fromPersistableBundle() 125 builder.addIntegrityAlgorithm(algo); in fromPersistableBundle()
|
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
H A D | SaProposalTest.java | 246 for (int algo : integrityAlgos) { in buildIkeSaProposal() 247 builder.addIntegrityAlgorithm(algo); in buildIkeSaProposal() 249 for (int algo : prfs) { in buildIkeSaProposal() 250 builder.addPseudorandomFunction(algo); in buildIkeSaProposal() 257 for (int algo : dhGroups) { in buildIkeSaProposal() 259 builder.addDhGroup(algo); in buildIkeSaProposal() 296 for (int algo : integrityAlgos) { in buildChildSaProposal() 297 builder.addIntegrityAlgorithm(algo); in buildChildSaProposal() 299 for (int algo : dhGroups) { in buildChildSaProposal() 300 builder.addDhGroup(algo); in buildChildSaProposal() [all …]
|
/aosp12/bionic/libc/kernel/uapi/linux/ |
H A D | virtio_crypto.h | 40 __le32 algo; member 60 __le32 algo; member 90 __le32 algo; member 115 __le32 algo; member 129 __le32 algo; member 195 __le32 algo; member
|
/aosp12/system/keymaster/km_openssl/ |
H A D | ckdf.cpp | 53 auto algo = EVP_aes_128_cbc(); in DEFINE_OPENSSL_OBJECT_POINTER() local 59 algo = EVP_aes_256_cbc(); in DEFINE_OPENSSL_OBJECT_POINTER() 65 if (!CMAC_Init(ctx.get(), key.key_material, key.key_material_size, algo, in DEFINE_OPENSSL_OBJECT_POINTER()
|
/aosp12/system/keymaster/android_keymaster/ |
H A D | remote_provisioning_utils.cpp | 154 auto& algo = protectedMap->asMap()->get(ALGORITHM); in validateAndExtractPubkeys() local 155 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in validateAndExtractPubkeys()
|
/aosp12/system/netd/server/ |
H A D | XfrmController.cpp | 1047 strncpy(algo->crypt.alg_name, inAlgo.name.c_str(), sizeof(algo->crypt.alg_name)); in fillNlAttrXfrmAlgoEnc() 1049 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoEnc() 1051 fillXfrmNlaHdr(&algo->hdr, XFRMA_ALG_CRYPT, len); in fillNlAttrXfrmAlgoEnc() 1062 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth() 1066 algo->auth.alg_trunc_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAuth() 1068 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoAuth() 1071 fillXfrmNlaHdr(&algo->hdr, XFRMA_ALG_AUTH_TRUNC, len); in fillNlAttrXfrmAlgoAuth() 1082 strncpy(algo->aead.alg_name, inAlgo.name.c_str(), sizeof(algo->aead.alg_name)); in fillNlAttrXfrmAlgoAead() 1087 algo->aead.alg_icv_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAead() 1089 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoAead() [all …]
|
H A D | XfrmController.h | 385 static int fillNlAttrXfrmAlgoEnc(const XfrmAlgo& in_algo, nlattr_algo_crypt* algo); 386 static int fillNlAttrXfrmAlgoAuth(const XfrmAlgo& in_algo, nlattr_algo_auth* algo); 387 static int fillNlAttrXfrmAlgoAead(const XfrmAlgo& in_algo, nlattr_algo_aead* algo);
|
/aosp12/frameworks/base/core/java/android/net/vcn/persistablebundleutils/ |
H A D | ChildSaProposalUtils.java | 61 for (int algo : integrityAlgoIdArray) { in fromPersistableBundle() 62 builder.addIntegrityAlgorithm(algo); in fromPersistableBundle()
|
H A D | IkeSaProposalUtils.java | 69 for (int algo : integrityAlgoIdArray) { in fromPersistableBundle() 70 builder.addIntegrityAlgorithm(algo); in fromPersistableBundle()
|
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/crypto/ |
H A D | IkeMacIntegrityTest.java | 214 IpSecAlgorithm algo = mAes128XCbcIntgerityMac.buildIpSecAlgorithmWithKey(keyBytes); in testBuildIpSecAlgorithmFromAuthAes128XCbcMac() local 215 assertEquals(AUTH_AES_XCBC, algo.getName()); in testBuildIpSecAlgorithmFromAuthAes128XCbcMac() 216 assertArrayEquals(keyBytes, algo.getKey()); in testBuildIpSecAlgorithmFromAuthAes128XCbcMac()
|
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
H A D | IpSecServiceTest.java | 322 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {CRYPT_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsAuth() 325 config.setAuthentication(algo); in testValidateAlgorithmsAuth() 341 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, AEAD_ALGO}) { in testValidateAlgorithmsCrypt() 344 config.setEncryption(algo); in testValidateAlgorithmsCrypt() 360 for (IpSecAlgorithm algo : new IpSecAlgorithm[] {AUTH_ALGO, CRYPT_ALGO}) { in testValidateAlgorithmsAead() 363 config.setAuthenticatedEncryption(algo); in testValidateAlgorithmsAead()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/search/ |
H A D | WidgetsSearchBarController.java | 52 SearchAlgorithm<WidgetsListBaseEntry> algo, ExtendedEditText editText, in WidgetsSearchBarController() argument 54 mSearchAlgorithm = algo; in WidgetsSearchBarController()
|
/aosp12/system/security/keystore2/src/crypto/ |
H A D | certificate_utils.cpp | 520 CertUtilsError makeAndSetAlgo(X509_ALGOR* algo_field, Algo algo, Padding padding, Digest digest) { in makeAndSetAlgo() argument 527 switch (algo) { in makeAndSetAlgo() 603 Algo algo, Padding padding, Digest digest) { in signCertWith() argument 604 if (auto error = makeAndSetAlgo(certificate->sig_alg, algo, padding, digest)) { in signCertWith() 607 if (auto error = makeAndSetAlgo(certificate->cert_info->signature, algo, padding, digest)) { in signCertWith()
|
/aosp12/bionic/libc/kernel/uapi/linux/tc_ematch/ |
H A D | tc_em_text.h | 25 char algo[TC_EM_TEXT_ALGOSIZ]; member
|
/aosp12/bionic/libc/kernel/uapi/linux/netfilter/ |
H A D | xt_string.h | 31 char algo[XT_STRING_MAX_ALGO_NAME_SIZE]; member
|
/aosp12/frameworks/base/core/java/com/android/internal/net/ |
H A D | VpnProfile.java | 301 for (String algo : Arrays.asList(values[19].split(LIST_DELIMITER))) { in decode() 302 profile.mAllowedAlgorithms.add(URLDecoder.decode(algo, DEFAULT_ENCODING)); in decode() 358 for (String algo : mAllowedAlgorithms) { in encode() 359 encodedAlgoNames.add(URLEncoder.encode(algo, DEFAULT_ENCODING)); in encode()
|
/aosp12/system/keymaster/cppcose/ |
H A D | cppcose.cpp | 118 auto& algo = protectedMap->asMap()->get(ALGORITHM); in verifyAndParseCoseMac0() local 119 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in verifyAndParseCoseMac0()
|
/aosp12/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
H A D | BlobHandle.java | 297 final String algo = XmlUtils.readStringAttribute(in, ATTR_ALGO); in createFromXml() local 303 return BlobHandle.create(algo, digest, label, expiryTimeMs, tag); in createFromXml()
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | UiccAccessRule.java | 338 public static byte[] getCertHash(Signature signature, String algo) { in getCertHash() argument 340 MessageDigest md = MessageDigest.getInstance(algo); in getCertHash()
|
/aosp12/system/security/keystore2/src/crypto/include/ |
H A D | certificate_utils.h | 169 Algo algo, Padding padding, Digest digest);
|