Searched refs:kpg (Results 1 – 9 of 9) sorted by relevance
101 KeyPairGenerator kpg = in testInit_withNonEcKey_fails() local103 kpg.initialize( in testInit_withNonEcKey_fails()105 KeyPair rsaKeyPair = kpg.genKeyPair(); in testInit_withNonEcKey_fails()158 KeyPairGenerator kpg = in generateEphemeralAndroidKeyPair() local160 kpg.initialize( in generateEphemeralAndroidKeyPair()163 KeyPair kp = kpg.generateKeyPair(); in generateEphemeralAndroidKeyPair()191 KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC"); // Use default provider in generateEphemeralServerKeyPair() local192 kpg.initialize(256); in generateEphemeralServerKeyPair()194 return kpg.generateKeyPair(); in generateEphemeralServerKeyPair()
407 KeyPairGenerator kpg = in genKeyPair() local409 kpg.initialize( in genKeyPair()416 return kpg.generateKeyPair(); in genKeyPair()
1902 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local1903 assertNotNull(kpg); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()1904 kpg.initialize(new KeyPairGeneratorSpec.Builder(mContext) in testKeyStore_Encrypting_RSA_NONE_NOPADDING()1912 kpg.generateKeyPair(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
69 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in testSigning() local72 kpg.initialize(new KeyGenParameterSpec.Builder( in testSigning()76 KeyPair keyToSignKeyPair = kpg.generateKeyPair(); in testSigning()78 kpg.initialize(new KeyGenParameterSpec.Builder( in testSigning()82 KeyPair keyToSignWithKeyPair = kpg.generateKeyPair(); in testSigning()
141 KeyPairGenerator kpg = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC); in TestReader() local143 kpg.initialize(ecSpec); in TestReader()144 mEphemeralKeyPair = kpg.generateKeyPair(); in TestReader()
258 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in coseGenerateKeyPair() local265 kpg.initialize(builder.build()); in coseGenerateKeyPair()266 return kpg.generateKeyPair(); in coseGenerateKeyPair()
73 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createReaderKey() local79 kpg.initialize(builder.build()); in createReaderKey()80 return kpg.generateKeyPair(); in createReaderKey()
1283 KeyPairGenerator kpg = KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC); in createEphemeralKeyPair() local1285 kpg.initialize(ecSpec); in createEphemeralKeyPair()1286 KeyPair keyPair = kpg.generateKeyPair(); in createEphemeralKeyPair()
134 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in createKey() local145 kpg.initialize(builder.build()); in createKey()146 kpg.generateKeyPair(); in createKey()