@Override
    protected byte[] engineDoFinal() {
        final byte[] output = doFinal();
        resetContext();
        return output;
    }
Passes the contents of a direct ByteBuffer to the relevant BoringSSL *MAC function.
common/src/main/java/org/conscrypt/OpenSSLMac.java