Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 51) sorted by relevance

123

/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java503 protected static boolean isAead(@EncryptionAlgorithm int algorithm) { in isAead() argument
504 switch (algorithm) { in isAead()
536 @EncryptionAlgorithm int algorithm, int keyLength, boolean isChild) { in validateAndAddEncryptAlgo()
539 EncryptionTransform encryptionTransform = new EncryptionTransform(algorithm, keyLength); in validateAndAddEncryptAlgo()
544 && !ChildSaProposal.getSupportedEncryptionAlgorithms().contains(algorithm)) { in validateAndAddEncryptAlgo()
545 throw new IllegalArgumentException("Unsupported encryption algorithm " + algorithm); in validateAndAddEncryptAlgo()
549 boolean isCurrentAead = isAead(algorithm); in validateAndAddEncryptAlgo()
562 @IntegrityAlgorithm int algorithm, boolean isChild) { in validateAndAddIntegrityAlgo()
566 && !ChildSaProposal.getSupportedIntegrityAlgorithms().contains(algorithm)) { in validateAndAddIntegrityAlgo()
567 throw new IllegalArgumentException("Unsupported integrity algorithm " + algorithm); in validateAndAddIntegrityAlgo()
[all …]
DIkeSaProposal.java249 public Builder addEncryptionAlgorithm(@EncryptionAlgorithm int algorithm, int keyLength) { in addEncryptionAlgorithm() argument
250 validateAndAddEncryptAlgo(algorithm, keyLength, false /* isChild */); in addEncryptionAlgorithm()
264 public Builder addIntegrityAlgorithm(@IntegrityAlgorithm int algorithm) { in addIntegrityAlgorithm() argument
265 validateAndAddIntegrityAlgo(algorithm, false /* isChild */); in addIntegrityAlgorithm()
291 public Builder addPseudorandomFunction(@PseudorandomFunction int algorithm) { in addPseudorandomFunction() argument
293 mProposedPrfs.add(new PrfTransform(algorithm)); in addPseudorandomFunction()
DChildSaProposal.java305 public Builder addEncryptionAlgorithm(@EncryptionAlgorithm int algorithm, int keyLength) { in addEncryptionAlgorithm() argument
306 validateAndAddEncryptAlgo(algorithm, keyLength, true /* isChild */); in addEncryptionAlgorithm()
320 public Builder addIntegrityAlgorithm(@IntegrityAlgorithm int algorithm) { in addIntegrityAlgorithm() argument
321 validateAndAddIntegrityAlgo(algorithm, true /* isChild */); in addIntegrityAlgorithm()
/packages/modules/Virtualization/libs/apkverify/src/
Dhashtree.rs36 algorithm: MessageDigest, in from()
38 let salt = zero_pad_salt(salt, algorithm); in from()
39 let tree = generate_hash_tree(input, input_size, &salt, block_size, algorithm)?; in from()
46 hash_one_block(&data, &salt, block_size, algorithm)?.as_ref().to_vec() in from()
49 hash_one_block(first_block, &salt, block_size, algorithm)?.as_ref().to_vec() in from()
70 algorithm: MessageDigest, in generate_hash_tree()
72 let digest_size = algorithm.size(); in generate_hash_tree()
90 let h = hash_one_block(&a_block, salt, block_size, algorithm)?; in generate_hash_tree()
104 let h = hash_one_block(data, salt, block_size, algorithm)?; in generate_hash_tree()
118 algorithm: MessageDigest, in hash_one_block()
[all …]
Dv4.rs155 algorithm: HashAlgorithm, in create()
163 let algorithm = match algorithm { in create() localVariable
166 let hash_tree = HashTree::from(&mut apk, size, salt, block_size, algorithm)?; in create()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java59 MessageDigest algorithm = MessageDigest.getInstance("MD5"); in toMd5() local
60 algorithm.reset(); in toMd5()
61 algorithm.update(bytes); in toMd5()
62 return toHexString(algorithm.digest(), ""); in toMd5()
DCredentialHelper.java236 void setPrivateKey(String algorithm, byte[] bytes) { in setPrivateKey() argument
238 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in setPrivateKey()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java72 String algorithm = in.readString(); in readPrivateKey() local
73 if (algorithm == null) { in readPrivateKey()
79 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey()
/packages/modules/Virtualization/apex/
Dsign_virt_apex.py220 algorithm = info['Algorithm']
225 '--algorithm', algorithm,
244 algorithm = info['Algorithm']
250 '--algorithm', algorithm,
345 algorithm = info['Algorithm']
351 '--algorithm', algorithm,
/packages/modules/Connectivity/framework-t/src/android/net/
DIpSecAlgorithm.java259 public IpSecAlgorithm(@NonNull @AlgorithmName String algorithm, @NonNull byte[] key) { in IpSecAlgorithm() argument
260 this(algorithm, key, 0); in IpSecAlgorithm()
276 @NonNull @AlgorithmName String algorithm, @NonNull byte[] key, int truncLenBits) { in IpSecAlgorithm()
277 mName = algorithm; in IpSecAlgorithm()
/packages/modules/StatsD/lib/libkll/proto/
Daggregator.proto36 // Computes approximate quantiles using the KLL algorithm.
55 // The type (= algorithm + implementation) of the aggregator.
72 // which holds the algorithm-specific state for the aggregator.
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DFakeKeys.java665 private static PrivateKey loadPrivateKey(String algorithm, byte[] fakeKey) { in loadPrivateKey() argument
667 KeyFactory kf = KeyFactory.getInstance(algorithm); in loadPrivateKey()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DFakeKeys.java932 private static PrivateKey loadPrivateKey(String algorithm, byte[] fakeKey) { in loadPrivateKey() argument
934 KeyFactory kf = KeyFactory.getInstance(algorithm); in loadPrivateKey()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java194 int nameType, String name, int algorithm) { in matchName() argument
205 if (algorithm == MATCHING_ALGORITHM_EXACT) { in matchName()
225 NameDistance nameDistance = algorithm == MATCHING_ALGORITHM_CONSERVATIVE ? in matchName()
DRawContactMatcher.java192 candidateNameType, String candidateName, int nameType, String name, int algorithm) { in matchName() argument
203 if (algorithm == MATCHING_ALGORITHM_EXACT) { in matchName()
223 NameDistance nameDistance = algorithm == MATCHING_ALGORITHM_CONSERVATIVE ? in matchName()
/packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
DKeyChainServiceTestSupport.java73 @Override public int generateKeyPair(String algorithm, ParcelableKeyGenParameterSpec spec)
76 return keyChainService.generateKeyPair(algorithm, spec);
DIKeyChainServiceTestSupport.aidl39 int generateKeyPair(in String algorithm, in ParcelableKeyGenParameterSpec spec); in generateKeyPair() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkShellCommand.java212 String algorithm = "RSA"; in handleDeviceAttestationKeyPair() local
213 Log.i(TAG, "calling dpm.generateKeyPair(alg=" + algorithm + ", spec=" + keySpec in handleDeviceAttestationKeyPair()
215 AttestedKeyPair kp = mDpm.generateKeyPair(/* admin= */ null, algorithm, keySpec, flags); in handleDeviceAttestationKeyPair()
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs223 fn signed_image_has_valid_vbmeta(algorithm: &str, key: &str) -> Result<()> { in signed_image_has_valid_vbmeta()
232 algorithm, in signed_image_has_valid_vbmeta()
/packages/apps/Car/DebuggingRestrictionController/server/functions/
Dindex.js23 algorithm: 'RS256', property
/packages/modules/Bluetooth/system/build/dpkg/libchrome/debian/patches/
D0001-Add-missing-includes.patch20 #include <algorithm>
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIpSecBaseTest.java126 protected static boolean hasIpSecAlgorithm(String algorithm) { in hasIpSecAlgorithm() argument
128 return IpSecAlgorithm.getSupportedAlgorithms().contains(algorithm); in hasIpSecAlgorithm()
130 return MANDATORY_IPSEC_ALGOS_SINCE_P.contains(algorithm); in hasIpSecAlgorithm()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DFrameParser.java621 short algorithm = data.getShort(); in parseAuthenticationFrame() local
624 switch (algorithm) { in parseAuthenticationFrame()
/packages/modules/adb/docs/user/
Dadb.1.md142 &nbsp;&nbsp;&nbsp;&nbsp;enable compression with a specified algorithm (any/none/brotli/lz4/zstd).
154 &nbsp;&nbsp;&nbsp;&nbsp;enable compression with a specified algorithm (**any**/**none**/**brotli**/…
169 Enable compression with a specified algorithm (**any**/**none**/**brotli**/**lz4**/**zstd**)
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java820 String algorithm = "HmacSHA256"; in obfuscateInJava() local
822 Mac hmac256 = Mac.getInstance(algorithm); in obfuscateInJava()
823 hmac256.init(new SecretKeySpec(key, algorithm)); in obfuscateInJava()

123