8178374: Problematic ByteBuffer handling in CipherSpi.bufferCrypt method

Updated the impl and added reg test to cover all 4 combinations of ByteBuffers

Reviewed-by: ascarpino
2 files changed