For easy connection with other HLS components, most of security library L1 API takes hls::stream interface. For APIs which could take variable length of input, API will include either scalar parameter for input length or “end flag” stream working with data stream in a 1:1 fashion to tell if this is the last block of input data. For details of interface definition and how padding will happen in stream interface, please take reference to documentation and corresponding test cases.