8067648: JVM crashes reproducible with GCM cipher suites in GCTR doFinal

Change restore mechanism in GCTR.java to avoid setting counter to null; added length check to constructor

Reviewed-by: jrose, kvn, ascarpino
1 file changed