poly1305MultiChan - 2023.2 English

Vitis Libraries

Release Date
2023.2 English
#include "xf_security/poly1305.hpp"
template <int N>
void poly1305MultiChan (
    hls::stream <ap_uint <256>>& keyStrm,
    hls::stream <ap_uint <128>>& payloadStrm,
    hls::stream <ap_uint <64>>& lenPldStrm,
    hls::stream <bool>& endLenStrm,
    hls::stream <ap_uint <128>>& tagStrm

The poly1305MultiChan takes N 32-byte one-time keys and N messages and produces N 16-byte tags. These tags are used to authenticate the corresponding messages.


N Channel number
keyStrm Corresponding message key
payloadStrm For a massage, input block stream text, 128 bits per block, less than 128 bits, high padding 0
lenPldStrm Length of a massage in byte.
endLenStrm Flag to signal the end of the length streams.
tagStrm Return a 16-byte tag to to authenticate the message.