Planning to add support of below Enc Algo:
- AES128-GCM: http://www.w3.org/2009/xmlenc11#aes128-gcm
- AES192-GCM: http://www.w3.org/2009/xmlenc11#aes192-gcm
- AES256-GCM: http://www.w3.org/2009/xmlenc11#aes256-gcm
through JDK 1.8 Based Implementation, taking reference from javax.crypto.spec.GCMParameterSpec
& javax.crypto.Cipher
. Here I got to know that Cipher needs GCMParameterSpec object for its:
public final void init(int opmode, Key key, AlgorithmParameterSpec params)
Now want to know what will be values of (IV & tLen) for all the above listed Algo for creation of GCMParameterSpec object.
Are these value will be different for different above listed algo (no, seems to me as only changes is key size)
And Please describe the purpose of these two attributes (IV & tLen) of GCMParameterSpec as well