Home
last modified time | relevance | path

Searched refs:algoIdentifier (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DPreSelectedKeyAccessTest.java46 String algoIdentifier = "SHA256withRSA"; in testAccessingPreSelectedAliasExpectingSuccess() local
49 Signature sign = Signature.getInstance(algoIdentifier); in testAccessingPreSelectedAliasExpectingSuccess()
58 Signature verify = Signature.getInstance(algoIdentifier); in testAccessingPreSelectedAliasExpectingSuccess()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java381 void verifySignature(String algoIdentifier, PublicKey publicKey, byte[] signature) in verifySignature() argument
384 Signature verify = Signature.getInstance(algoIdentifier); in verifySignature()
390 private void verifySignatureOverData(String algoIdentifier, KeyPair keyPair) throws Exception { in verifySignatureOverData() argument
391 verifySignature(algoIdentifier, keyPair.getPublic(), in verifySignatureOverData()
392 signDataWithKey(algoIdentifier, keyPair.getPrivate())); in verifySignatureOverData()
395 private byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey() argument
397 Signature sign = Signature.getInstance(algoIdentifier); in signDataWithKey()
DKeyManagementTest.java551 private byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey() argument
553 Signature sign = Signature.getInstance(algoIdentifier); in signDataWithKey()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java196 byte[] signDataWithKey(String algoIdentifier, PrivateKey privateKey) throws Exception { in signDataWithKey() argument
198 Signature sign = Signature.getInstance(algoIdentifier); in signDataWithKey()
204 void verifySignature(String algoIdentifier, PublicKey publicKey, byte[] signature) in verifySignature() argument
207 Signature verify = Signature.getInstance(algoIdentifier); in verifySignature()
213 void verifySignatureOverData(String algoIdentifier, KeyPair keyPair) throws Exception { in verifySignatureOverData() argument
214 verifySignature(algoIdentifier, keyPair.getPublic(), in verifySignatureOverData()
215 signDataWithKey(algoIdentifier, keyPair.getPrivate())); in verifySignatureOverData()