Home
last modified time | relevance | path

Searched refs:sap (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/main/java/javax/crypto/
DKeyAgreement.java205 Engine.SpiAndProvider sap = tryAlgorithmWithProvider(key, service); in tryAlgorithm() local
206 if (sap != null) { in tryAlgorithm()
207 return sap; in tryAlgorithm()
219 Engine.SpiAndProvider sap = ENGINE.getInstance(service, null); in tryAlgorithmWithProvider() local
220 if (sap.spi == null || sap.provider == null) { in tryAlgorithmWithProvider()
223 if (!(sap.spi instanceof KeyAgreementSpi)) { in tryAlgorithmWithProvider()
226 return sap; in tryAlgorithmWithProvider()
241 final Engine.SpiAndProvider sap = tryAlgorithm(key, specifiedProvider, algorithm); in getSpi() local
242 if (sap == null) { in getSpi()
246 spiImpl = (KeyAgreementSpi) sap.spi; in getSpi()
[all …]
DMac.java209 Engine.SpiAndProvider sap = tryAlgorithmWithProvider(key, service); in tryAlgorithm() local
210 if (sap != null) { in tryAlgorithm()
211 return sap; in tryAlgorithm()
223 Engine.SpiAndProvider sap = ENGINE.getInstance(service, null); in tryAlgorithmWithProvider() local
224 if (sap.spi == null || sap.provider == null) { in tryAlgorithmWithProvider()
227 if (!(sap.spi instanceof MacSpi)) { in tryAlgorithmWithProvider()
230 return sap; in tryAlgorithmWithProvider()
249 final Engine.SpiAndProvider sap = tryAlgorithm(key, specifiedProvider, algorithm); in getSpi() local
250 if (sap == null) { in getSpi()
259 spiImpl = (MacSpi) sap.spi; in getSpi()
[all …]
DCipher.java354 final Engine.SpiAndProvider sap = tryCombinations(key, specifiedProvider, in getSpi() local
356 if (sap == null) { in getSpi()
360 spiImpl = (CipherSpi) sap.spi; in getSpi()
361 provider = sap.provider; in getSpi()
386 Engine.SpiAndProvider sap = null; in tryCombinations() local
389 sap = tryTransform(key, provider, transformParts[0] + "/" + transformParts[1] + "/" in tryCombinations()
391 if (sap != null) { in tryCombinations()
392 return sap; in tryCombinations()
397 sap = tryTransform(key, provider, transformParts[0] + "/" + transformParts[1], in tryCombinations()
399 if (sap != null) { in tryCombinations()
[all …]
DSecretKeyFactory.java108 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
109 return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); in getInstance()
DKeyGenerator.java103 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
104 return new KeyGenerator((KeyGeneratorSpi) sap.spi, sap.provider, algorithm); in getInstance()
DExemptionMechanism.java103 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
104 return new ExemptionMechanism((ExemptionMechanismSpi) sap.spi, sap.provider, algorithm); in getInstance()
/libcore/luni/src/main/java/java/security/
DSignature.java203 Engine.SpiAndProvider sap = tryAlgorithmWithProvider(key, service); in tryAlgorithm() local
204 if (sap != null) { in tryAlgorithm()
205 return sap; in tryAlgorithm()
217 Engine.SpiAndProvider sap = ENGINE.getInstance(service, null); in tryAlgorithmWithProvider() local
218 if (sap.spi == null || sap.provider == null) { in tryAlgorithmWithProvider()
221 if (!(sap.spi instanceof SignatureSpi)) { in tryAlgorithmWithProvider()
224 return sap; in tryAlgorithmWithProvider()
719 final Engine.SpiAndProvider sap = tryAlgorithm(key, specifiedProvider, algorithm); in getSpi() local
720 if (sap == null) { in getSpi()
724 spiImpl = (SignatureSpi) sap.spi; in getSpi()
[all …]
DMessageDigest.java91 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
92 Object spi = sap.spi; in getInstance()
93 Provider provider = sap.provider; in getInstance()
100 return new MessageDigestImpl((MessageDigestSpi) sap.spi, sap.provider, algorithm); in getInstance()
DAlgorithmParameterGenerator.java93 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
94 return new AlgorithmParameterGenerator((AlgorithmParameterGeneratorSpi) sap.spi, in getInstance()
95 sap.provider, algorithm); in getInstance()
DKeyFactory.java81 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
82 return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); in getInstance()
DAlgorithmParameters.java97 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
98 return new AlgorithmParameters((AlgorithmParametersSpi) sap.spi, sap.provider, algorithm); in getInstance()
DKeyPairGenerator.java85 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
86 Object spi = sap.spi; in getInstance()
87 Provider provider = sap.provider; in getInstance()
DSecureRandom.java156 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
157 return new SecureRandom((SecureRandomSpi) sap.spi, sap.provider, in getInstance()
DKeyStore.java116 Engine.SpiAndProvider sap = ENGINE.getInstance(type, null); in getInstance() local
117 return new KeyStore((KeyStoreSpi) sap.spi, sap.provider, type); in getInstance()
/libcore/luni/src/main/java/java/security/cert/
DCertPathValidator.java106 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
107 return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); in getInstance()
DCertPathBuilder.java106 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
107 return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); in getInstance()
DCertificateFactory.java90 Engine.SpiAndProvider sap = ENGINE.getInstance(type, null); in getInstance() local
91 return new CertificateFactory((CertificateFactorySpi) sap.spi, sap.provider, type); in getInstance()
DCertStore.java103 Engine.SpiAndProvider sap = ENGINE.getInstance(type, params); in getInstance() local
104 return new CertStore((CertStoreSpi) sap.spi, sap.provider, type, params); in getInstance()
/libcore/luni/src/main/java/javax/net/ssl/
DTrustManagerFactory.java76 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
77 return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); in getInstance()
DKeyManagerFactory.java77 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); in getInstance() local
78 return new KeyManagerFactory((KeyManagerFactorySpi) sap.spi, sap.provider, algorithm); in getInstance()
DSSLContext.java138 Engine.SpiAndProvider sap = ENGINE.getInstance(protocol, null); in getInstance() local
139 return new SSLContext((SSLContextSpi) sap.spi, sap.provider, protocol); in getInstance()