Home
last modified time | relevance | path

Searched refs:gcmSpecClass (Results 1 – 5 of 5) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DGcmSpecUtil.java14 static final Class gcmSpecClass = lookup("javax.crypto.spec.GCMParameterSpec"); field in GcmSpecUtil
18 return gcmSpecClass != null; in gcmSpecExists()
23 return gcmSpecClass != null && gcmSpecClass.isInstance(paramSpec); in isGcmSpec()
28 return gcmSpecClass == paramSpecClass; in isGcmSpec()
37 … Constructor constructor = gcmSpecClass.getConstructor(new Class[]{Integer.TYPE, byte[].class}); in extractGcmSpec()
56 Method tLen = gcmSpecClass.getDeclaredMethod("getTLen", new Class[0]); in extractGcmParameters()
57 Method iv= gcmSpecClass.getDeclaredMethod("getIV", new Class[0]); in extractGcmParameters()
DAES.java64 private static final Class gcmSpecClass = lookup("javax.crypto.spec.GCMParameterSpec"); field in AES
/external/conscrypt/android/src/main/java/org/conscrypt/
DPlatform.java679 Class<?> gcmSpecClass; in fromGCMParameterSpec() local
681 gcmSpecClass = Class.forName("javax.crypto.spec.GCMParameterSpec"); in fromGCMParameterSpec()
683 gcmSpecClass = null; in fromGCMParameterSpec()
686 if (gcmSpecClass != null && gcmSpecClass.isAssignableFrom(params.getClass())) { in fromGCMParameterSpec()
691 Method getTLenMethod = gcmSpecClass.getMethod("getTLen"); in fromGCMParameterSpec()
692 Method getIVMethod = gcmSpecClass.getMethod("getIV"); in fromGCMParameterSpec()
714 Class<?> gcmSpecClass; in fromGCMParameters() local
716 gcmSpecClass = Class.forName("javax.crypto.spec.GCMParameterSpec"); in fromGCMParameters()
718 gcmSpecClass = null; in fromGCMParameters()
721 if (gcmSpecClass != null) { in fromGCMParameters()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseMac.java36 private static final Class gcmSpecClass = lookup("javax.crypto.spec.GCMParameterSpec"); field in BaseMac
215 else if (gcmSpecClass != null && gcmSpecClass.isAssignableFrom(params.getClass())) in engineInit()
219 Method tLen = gcmSpecClass.getDeclaredMethod("getTLen", new Class[0]); in engineInit()
220 Method iv= gcmSpecClass.getDeclaredMethod("getIV", new Class[0]); in engineInit()
DBaseBlockCipher.java85 private static final Class gcmSpecClass = lookup("javax.crypto.spec.GCMParameterSpec"); field in BaseBlockCipher
95 gcmSpecClass,
832 else if (gcmSpecClass != null && gcmSpecClass.isInstance(params)) in engineInit()
841 Method tLen = gcmSpecClass.getDeclaredMethod("getTLen", new Class[0]); in engineInit()
842 Method iv= gcmSpecClass.getDeclaredMethod("getIV", new Class[0]); in engineInit()