Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 120) sorted by relevance

12345

/libcore/ojluni/src/main/java/javax/crypto/
DMac.java171 private MacSpi spi; field in Mac
206 this.spi = macSpi; in Mac()
367 if (spi != null || lock == null) { in chooseFirstProvider()
371 if (spi != null) { in chooseFirstProvider()
400 spi = (MacSpi)obj; in chooseFirstProvider()
427 if (spi != null && (key == null || lock == null)) { in chooseProvider()
428 spi.engineInit(key, params); in chooseProvider()
442 MacSpi spi = (MacSpi)s.newInstance(null); in chooseProvider() local
443 spi.engineInit(key, params); in chooseProvider()
445 this.spi = spi; in chooseProvider()
[all …]
DKeyAgreement.java106 private KeyAgreementSpi spi; field in KeyAgreement
139 this.spi = keyAgreeSpi; in KeyAgreement()
314 if (spi != null) { in chooseFirstProvider()
318 if (spi != null) { in chooseFirstProvider()
347 spi = (KeyAgreementSpi)obj; in chooseFirstProvider()
372 private void implInit(KeyAgreementSpi spi, int type, Key key, in implInit() argument
376 spi.engineInit(key, random); in implInit()
378 spi.engineInit(key, params, random); in implInit()
388 if (spi != null && key == null) { in chooseProvider()
389 implInit(spi, initType, key, params, random); in chooseProvider()
[all …]
DKeyGenerator.java190 private volatile KeyGeneratorSpi spi; field in KeyGenerator
213 this.spi = keyGenSpi; in KeyGenerator()
404 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
405 return spi; in nextSpi()
421 KeyGeneratorSpi spi = (KeyGeneratorSpi)inst; in nextSpi() local
424 spi.engineInit(initKeySize, initRandom); in nextSpi()
426 spi.engineInit(initParams, initRandom); in nextSpi()
428 spi.engineInit(initRandom); in nextSpi()
435 this.spi = spi; in nextSpi()
436 return spi; in nextSpi()
[all …]
DSecretKeyFactory.java276 private volatile SecretKeyFactorySpi spi; field in SecretKeyFactory
294 this.spi = keyFacSpi; in SecretKeyFactory()
475 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
476 return spi; in nextSpi()
491 SecretKeyFactorySpi spi = (SecretKeyFactorySpi)obj; in nextSpi() local
493 this.spi = spi; in nextSpi()
494 return spi; in nextSpi()
518 return spi.engineGenerateSecret(keySpec); in generateSecret()
521 SecretKeyFactorySpi mySpi = spi; in generateSecret()
562 return spi.engineGetKeySpec(key, keySpec); in getKeySpec()
[all …]
DCipher.java319 private CipherSpi spi; field in Cipher
391 this.spi = cipherSpi; in Cipher()
404 this.spi = cipherSpi; in Cipher()
754 spiAndProviderUpdater.updateAndGetSpiAndProvider(null, spi, provider); in updateProviderIfNeeded()
773 spiAndProviderUpdater.updateAndGetSpiAndProvider(initParams, spi, provider); in chooseProvider()
823 return spi.engineGetBlockSize(); in getBlockSize()
856 return spi.engineGetOutputSize(inputLen); in getOutputSize()
872 return spi.engineGetIV(); in getIV()
888 return spi.engineGetParameters(); in getParameters()
1682 return spi.engineUpdate(input, 0, input.length); in update()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyPairGenerator.java192 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance() local
193 kpg = new Delegate(spi, algorithm); in getInstance()
571 private volatile KeyPairGeneratorSpi spi; field in KeyPairGenerator.Delegate
587 Delegate(KeyPairGeneratorSpi spi, String algorithm) { in Delegate() argument
589 this.spi = spi; in Delegate()
595 spi = (KeyPairGeneratorSpi)instance.impl; in Delegate()
620 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
621 return spi; in nextSpi()
637 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)inst; in nextSpi() local
640 spi.initialize(initKeySize, initRandom); in nextSpi()
[all …]
DKeyFactory.java131 private volatile KeyFactorySpi spi; field in KeyFactory
150 this.spi = keyFacSpi; in KeyFactory()
315 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
316 return spi; in nextSpi()
328 KeyFactorySpi spi = (KeyFactorySpi)obj; in nextSpi() local
330 this.spi = spi; in nextSpi()
331 return spi; in nextSpi()
355 return spi.engineGeneratePublic(keySpec); in generatePublic()
358 KeyFactorySpi mySpi = spi; in generatePublic()
393 return spi.engineGeneratePrivate(keySpec); in generatePrivate()
[all …]
DSignature.java394 SignatureSpi spi = (SignatureSpi)instance.impl; in getInstance() local
395 sig = new Delegate(spi, algorithm); in getInstance()
1309 SignatureSpi spi = newInstance(s); in chooseProvider() local
1310 init(spi, type, key, random); in chooseProvider()
1312 sigSpi = spi; in chooseProvider()
1350 private void init(SignatureSpi spi, int type, Key key, in init() argument
1354 spi.engineInitVerify((PublicKey)key); in init()
1357 spi.engineInitSign((PrivateKey)key); in init()
1360 spi.engineInitSign((PrivateKey)key, random); in init()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DMockAbstractSelector.java17 package org.apache.harmony.tests.java.nio.channels.spi;
22 import java.nio.channels.spi.AbstractSelectableChannel;
23 import java.nio.channels.spi.AbstractSelectionKey;
24 import java.nio.channels.spi.AbstractSelector;
25 import java.nio.channels.spi.SelectorProvider;
DAbstractSelectionKeyTest.java17 package org.apache.harmony.tests.java.nio.channels.spi;
22 import java.nio.channels.spi.AbstractSelectionKey;
DAbstractInterruptibleChannelTest.java17 package org.apache.harmony.tests.java.nio.channels.spi;
21 import java.nio.channels.spi.AbstractInterruptibleChannel;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java103 SSLContextSpi spi = new MySSLContextSpi(); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() local
104 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
145 SSLContextSpi spi = new MySSLContextSpi(); in test_createSSLEngine() local
146 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngine()
160 SSLContextSpi spi = new MySSLContextSpi(); in test_createSSLEngineLjava_lang_StringI() local
161 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngineLjava_lang_StringI()
399 SSLContextSpi spi = new MySSLContextSpi(); in test_getProtocol() local
400 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_getProtocol()
404 sslContext = new MySslContext(spi, defaultProvider, in test_getProtocol()
426 SSLContextSpi spi = new MySSLContextSpi(); in test_getProvider() local
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DSelectorImpl.java29 import java.nio.channels.spi.*;
33 public abstract class SelectorImpl extends java.nio.channels.spi.AbstractSelector {
35 protected SelectorImpl(java.nio.channels.spi.SelectorProvider sp) { in SelectorImpl()
77 java.nio.channels.spi.AbstractSelectableChannel ch, in register()
/libcore/ojluni/src/main/java/sun/nio/fs/
DDefaultFileTypeDetector.java29 import java.nio.file.spi.FileTypeDetector;
30 import java.nio.file.spi.FileSystemProvider;
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
DFileTypeDetectorTest.java1 package libcore.java.nio.file.spi;
6 import java.nio.file.spi.FileTypeDetector;
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
DSelectorProviderTest.java17 package org.apache.harmony.nio.tests.java.nio.channels.spi;
19 import java.nio.channels.spi.SelectorProvider;
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectableChannel.java29 import java.nio.channels.spi.AbstractInterruptibleChannel;
30 import java.nio.channels.spi.SelectorProvider;
DServerSocketChannel.java32 import java.nio.channels.spi.AbstractSelectableChannel;
33 import java.nio.channels.spi.SelectorProvider;
DDatagramChannel.java34 import java.nio.channels.spi.AbstractSelectableChannel;
35 import java.nio.channels.spi.SelectorProvider;
DSocketChannel.java33 import java.nio.channels.spi.AbstractSelectableChannel;
34 import java.nio.channels.spi.SelectorProvider;
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java17 package libcore.java.nio.channels.spi;
22 import java.nio.channels.spi.AsynchronousChannelProvider;
/libcore/luni/src/module/java/
Dmodule-info.java32 exports java.nio.channels.spi;
34 exports java.nio.charset.spi;
37 exports java.nio.file.spi;
78 exports sun.net.spi;
79 exports sun.net.spi.nameservice;
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator1Test.java363 AlgorithmParameterGeneratorSpi spi = new MyAlgorithmParameterGeneratorSpi(); in testConstructor() local
365 new myAlgPG(spi, validProvider, validAlgName); in testConstructor()
388 public myAlgPG(AlgorithmParameterGeneratorSpi spi, Provider prov, String alg) { in myAlgPG() argument
389 super(spi, prov, alg); in myAlgPG()
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/
DNameService.java26 package sun.net.spi.nameservice;
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectionKey.java26 package java.nio.channels.spi;

12345