[ Merge of http://go/wvgerrit/89888 ] A macro validates parameters in CryptoSession and return a specified error code. Some error codes have been retired and replaced with the error code PARAMETER_NULL. Bug: 136123217 Test: Android unit/integration tests Change-Id: I6ecbad53e87cce04dfd9ea27861400e83044cf5e