@Override
    protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException {
        checkAndSetEncodedKey(opmode, key);
        try {
            engineInitInternal(this.encodedKey, null, random);
        } catch (InvalidAlgorithmParameterException e) {
            // This can't actually happen since we pass in null.
            throw new RuntimeException(e);
        }
    }
The size of output if {@code update()} is called with this
{@code inputLen}. If padding is enabled and the size of the input puts it
right at the block size, it will add another block for the padding.
common/src/main/java/org/conscrypt/OpenSSLCipher.java