Home
last modified time | relevance | path

Searched refs:prov (Results 1 – 25 of 45) sorted by relevance

12

/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_cryptoapi.c117 HCRYPTPROV prov; in cryptoapi_hash_vector() local
123 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, 0)) { in cryptoapi_hash_vector()
128 if (!CryptCreateHash(prov, alg, 0, 0, &hash)) { in cryptoapi_hash_vector()
130 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
138 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
149 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
165 HCRYPTPROV prov; in des_encrypt() local
190 if (!CryptAcquireContext(&prov, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, in des_encrypt()
197 if (!CryptImportKey(prov, (BYTE *) &key_blob, sizeof(key_blob), 0, 0, in des_encrypt()
201 CryptReleaseContext(prov, 0); in des_encrypt()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dcrypto_cryptoapi.c109 HCRYPTPROV prov; in cryptoapi_hash_vector() local
115 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, 0)) { in cryptoapi_hash_vector()
120 if (!CryptCreateHash(prov, alg, 0, 0, &hash)) { in cryptoapi_hash_vector()
122 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
130 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
141 CryptReleaseContext(prov, 0); in cryptoapi_hash_vector()
157 HCRYPTPROV prov; in des_encrypt() local
182 if (!CryptAcquireContext(&prov, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, in des_encrypt()
189 if (!CryptImportKey(prov, (BYTE *) &key_blob, sizeof(key_blob), 0, 0, in des_encrypt()
193 CryptReleaseContext(prov, 0); in des_encrypt()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509Util.java353 Provider prov) in getImplementation() argument
360 while ((alias = prov.getProperty("Alg.Alias." + baseName + "." + algorithm)) != null) in getImplementation()
365 String className = prov.getProperty(baseName + "." + algorithm); in getImplementation()
372 ClassLoader clsLoader = prov.getClass().getClassLoader(); in getImplementation()
383 return new Implementation(cls.newInstance(), prov); in getImplementation()
388 …"algorithm " + algorithm + " in provider " + prov.getName() + " but no class \"" + className + "\"… in getImplementation()
393 …"algorithm " + algorithm + " in provider " + prov.getName() + " but class \"" + className + "\" in… in getImplementation()
397 …hAlgorithmException("cannot find implementation " + algorithm + " for provider " + prov.getName()); in getImplementation()
409 Provider[] prov = Security.getProviders(); in getImplementation() local
414 for (int i = 0; i != prov.length; i++) in getImplementation()
[all …]
/external/chromium/net/base/
Dkeygen_handler_win.cc31 bool GetSubjectPublicKeyInfo(HCRYPTPROV prov, std::vector<BYTE>* output) { in GetSubjectPublicKeyInfo() argument
38 ok = CryptExportPublicKeyInfoEx(prov, AT_KEYEXCHANGE, X509_ASN_ENCODING, in GetSubjectPublicKeyInfo()
48 ok = CryptExportPublicKeyInfoEx(prov, AT_KEYEXCHANGE, X509_ASN_ENCODING, in GetSubjectPublicKeyInfo()
64 bool GetSignedPublicKeyAndChallenge(HCRYPTPROV prov, in GetSignedPublicKeyAndChallenge() argument
70 if (!GetSubjectPublicKeyInfo(prov, &spki)) in GetSignedPublicKeyAndChallenge()
90 ok = CryptSignAndEncodeCertificate(prov, AT_KEYEXCHANGE, X509_ASN_ENCODING, in GetSignedPublicKeyAndChallenge()
99 ok = CryptSignAndEncodeCertificate(prov, AT_KEYEXCHANGE, X509_ASN_ENCODING, in GetSignedPublicKeyAndChallenge()
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
Dos_win32.c109 HCRYPTPROV prov; in os_get_random() local
112 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, in os_get_random()
116 ret = CryptGenRandom(prov, len, buf); in os_get_random()
117 CryptReleaseContext(prov, 0); in os_get_random()
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
DExemptionMechanism_ImplTest.java207 String prov = null; in testGetInstance02() local
210 ExemptionMechanism.getInstance(validValues[i], prov); in testGetInstance02()
267 Provider prov = null; in testGetInstance03() local
270 ExemptionMechanism.getInstance(validValues[i], prov); in testGetInstance03()
289 public myEM(ExemptionMechanismSpi spi, Provider prov, String mechanism) { in myEM() argument
290 super(spi, prov, mechanism); in myEM()
DSecretKeyFactory_ImplTest.java152 String prov = null; in testGetInstance02() local
155 SecretKeyFactory.getInstance(validValues[i], prov); in testGetInstance02()
215 Provider prov = null; in testGetInstance03() local
218 SecretKeyFactory.getInstance(validValues[i], prov); in testGetInstance03()
DKeyAgreement_ImplTest.java182 String prov = null; in testGetInstance02() local
185 KeyAgreement.getInstance(validValues[i], prov); in testGetInstance02()
247 Provider prov = null; in testGetInstance03() local
250 KeyAgreement.getInstance(validValues[i], prov); in testGetInstance03()
DKeyGenerator_ImplTest.java186 String prov = null; in testGetInstance02() local
189 KeyGenerator.getInstance(validValues[i], prov); in testGetInstance02()
249 Provider prov = null; in testGetInstance03() local
252 KeyGenerator.getInstance(validValues[i], prov); in testGetInstance03()
DMac_ImplTest.java185 String prov = null; in testGetInstance02() local
188 Mac.getInstance(validValues[i], prov); in testGetInstance02()
245 Provider prov = null; in testGetInstance03() local
248 Mac.getInstance(validValues[i], prov); in testGetInstance03()
/external/wpa_supplicant_8/src/utils/
Dos_win32.c122 HCRYPTPROV prov; in os_get_random() local
125 if (!CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, in os_get_random()
129 ret = CryptGenRandom(prov, len, buf); in os_get_random()
130 CryptReleaseContext(prov, 0); in os_get_random()
/external/chromium/crypto/
Dcapi_util.cc40 BOOL CryptAcquireContextLocked(HCRYPTPROV* prov, in CryptAcquireContextLocked() argument
46 return CryptAcquireContext(prov, container, provider, prov_type, flags); in CryptAcquireContextLocked()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DSecretKeyFactoryTest.java225 String prov = null; in testSecretKeyFactory05() local
228 SecretKeyFactory.getInstance(validValues[i], prov); in testSecretKeyFactory05()
310 Provider prov = null; in testSecretKeyFactory08() local
313 SecretKeyFactory.getInstance(validValues[i], prov); in testSecretKeyFactory08()
422 public mySecretKeyFactory(SecretKeyFactorySpi spi, Provider prov, String alg) { in mySecretKeyFactory() argument
423 super(spi, prov, alg); in mySecretKeyFactory()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator2Test.java172 String prov = null; in testGetInstance02() local
175 AlgorithmParameterGenerator.getInstance(validValues[i], prov); in testGetInstance02()
231 Provider prov = null; in testGetInstance03() local
234 AlgorithmParameterGenerator.getInstance(validValues[i], prov); in testGetInstance03()
DKeyPairGenerator2Test.java236 String prov = null; in GetInstance02() local
240 KeyPairGenerator.getInstance(alg, prov); in GetInstance02()
295 Provider prov = null; in GetInstance03() local
299 KeyPairGenerator.getInstance(alg, prov); in GetInstance03()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DCertPathValidator2Test.java170 String prov = null; in testGetInstance02() local
173 CertPathValidator.getInstance(validValues[i], prov); in testGetInstance02()
234 Provider prov = null; in testGetInstance03() local
237 CertPathValidator.getInstance(validValues[i], prov); in testGetInstance03()
DCertPathBuilder2Test.java172 String prov = null; in testGetInstance02() local
175 CertPathBuilder.getInstance(validValues[i], prov); in testGetInstance02()
235 Provider prov = null; in testGetInstance03() local
238 CertPathBuilder.getInstance(validValues[i], prov); in testGetInstance03()
DCertPathBuilder1Test.java264 Provider prov = null; in testCertPathBuilder08() local
267 CertPathBuilder.getInstance(validValues[t], prov); in testCertPathBuilder08()
375 public myCertPathBuilder(CertPathBuilderSpi spi, Provider prov, String type) { in myCertPathBuilder() argument
376 super(spi, prov, type); in myCertPathBuilder()
DCertPathValidator1Test.java271 Provider prov = null; in testCertPathValidator08() local
274 CertPathValidator.getInstance(validValues[t], prov); in testCertPathValidator08()
395 public myCertPathValidator(CertPathValidatorSpi spi, Provider prov, String type) { in myCertPathValidator() argument
396 super(spi, prov, type); in myCertPathValidator()
DCertificateFactory2Test.java241 String prov = null; in GetInstance02() local
244 CertificateFactory.getInstance(validValues[i], prov); in GetInstance02()
304 Provider prov = null; in GetInstance03() local
307 CertificateFactory.getInstance(validValues[i], prov); in GetInstance03()
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
DTrustManagerFactory2Test.java173 String prov = null; in testGetInstance02() local
176 TrustManagerFactory.getInstance(validValues[i], prov); in testGetInstance02()
238 Provider prov = null; in testGetInstance03() local
241 TrustManagerFactory.getInstance(validValues[i], prov); in testGetInstance03()
DKeyManagerFactory2Test.java183 String prov = null; in testGetInstance02() local
186 KeyManagerFactory.getInstance(validValues[i], prov); in testGetInstance02()
248 Provider prov = null; in testGetInstance03() local
251 KeyManagerFactory.getInstance(validValues[i], prov); in testGetInstance03()
DSSLContext2Test.java210 String prov = null; in testGetInstance02() local
213 SSLContext.getInstance(validValues[i], prov); in testGetInstance02()
274 Provider prov = null; in testGetInstance03() local
277 SSLContext.getInstance(validValues[i], prov); in testGetInstance03()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
DCertStore_ImplTest.java177 String prov = null; in testGetInstance02() local
180 CertStore.getInstance(validValues[i], p, prov); in testGetInstance02()
257 Provider prov = null; in testGetInstance03() local
260 CertStore.getInstance(validValues[i], p, prov); in testGetInstance03()
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
DKeyStore_Impl2Test.java354 String prov = null; in testGetInstance02() local
357 KeyStore.getInstance(validValues[i], prov); in testGetInstance02()
412 Provider prov = null; in testGetInstance03() local
415 KeyStore.getInstance(validValues[i], prov); in testGetInstance03()

12