Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 63) 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()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java77 String algorithm = in.readString(); in readPrivateKey() local
78 if (algorithm == null) { in readPrivateKey()
84 KeyFactory keyFactory = KeyFactory.getInstance(algorithm); in readPrivateKey()
/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.java192 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()
DRawContactMatcher.java190 candidateNameType, String candidateName, int nameType, String name, int algorithm) { in matchName() argument
201 if (algorithm == MATCHING_ALGORITHM_EXACT) { in matchName()
221 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/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/encryption/
DCryptor.java216 public static byte[] generateHmac(String algorithm, byte[] input, byte[] key) { in generateHmac() argument
217 return Hashing.hmacSha256(new SecretKeySpec(key, algorithm)) in generateHmac()
/packages/modules/Virtualization/apex/
Dsign_virt_apex.py301 algorithm = info['Algorithm']
306 '--algorithm', algorithm,
328 algorithm = info['Algorithm']
335 '--algorithm', algorithm,
434 algorithm = info['Algorithm']
440 '--algorithm', algorithm,
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkShellCommand.java219 String algorithm = "RSA"; in handleDeviceAttestationKeyPair() local
220 Log.i(TAG, "calling dpm.generateKeyPair(alg=" + algorithm + ", spec=" + keySpec in handleDeviceAttestationKeyPair()
222 AttestedKeyPair kp = mDpm.generateKeyPair(/* admin= */ null, algorithm, keySpec, flags); in handleDeviceAttestationKeyPair()
/packages/apps/Car/DebuggingRestrictionController/server/functions/
Dindex.js23 algorithm: 'RS256', property
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokio-1.15.0.jarMETA-INF/ META-INF/MANIFEST.MF okio/ okio/AsyncTimeout$Watchdog. ...
/packages/modules/Virtualization/libs/vbmeta/src/
Dlib.rs228 fn signed_image_has_valid_vbmeta(algorithm: &str, key: &str) -> Result<()> { in signed_image_has_valid_vbmeta()
237 algorithm, in signed_image_has_valid_vbmeta()
/packages/modules/Virtualization/service_vm/client_vm_csr/src/
Dlib.rs115 let protected = HeaderBuilder::new().algorithm(alg).build(); in build_signature_headers()
146 .algorithm(ATTESTATION_KEY_ALGO) in to_cose_public_key()
/packages/modules/Virtualization/service_vm/requests/src/
Dpub_key.rs47 let protected = HeaderBuilder::new().algorithm(ALGO).build(); in build_maced_public_key()
/packages/services/Iwlan/flags/
Dmain.aconfig13 description: "Add AES_GCM algorithm support in IWLAN."
/packages/modules/Bluetooth/system/build/dpkg/libchrome/debian/patches/
D0001-Add-missing-includes.patch20 #include <algorithm>

123