I recently implement multiple cryptographic schemes. I plan to use Java Bouncy Castle. I found importing the scheme is very easy. My first implementation is the ElGamal encryption. My question is that how to import my generated Big prime number p and order q and use these parameters to generate the key pairs with Bouncy castle.
I found when I use the Bouncy Castle, I can import the name of the scheme and 'BC'. For example, Elgamal encryption.
KeyPairGenerator keyGen = KeyPairGenerator.getInstance("ElGamal", "BC");
My question is that how can I get the generator g, order q, and big prime number p from this because other schemes need these parameters.