Lines Matching defs:buf
29 uint8_t *buf, size_t buf_len,
37 || (buf == NULL && buf_len != 0)) {
58 if (buf == NULL || buf_len < *_2fa_blob_len) {
64 SAFEALIGN_COPY_UINT32(buf, &tmp_uint32_t, &c);
66 SAFEALIGN_COPY_UINT32(buf + c, &tmp_uint32_t, &c);
68 memcpy(buf + c, fa1, fa1_len + 1);
71 memcpy(buf + c, fa2, fa2_len + 1);
80 uint8_t *buf, size_t buf_len,
135 if (buf == NULL || buf_len < *_sc_blob_len) {
141 SAFEALIGN_COPY_UINT32(buf, &tmp_uint32_t, &c);
143 SAFEALIGN_COPY_UINT32(buf + c, &tmp_uint32_t, &c);
145 SAFEALIGN_COPY_UINT32(buf + c, &tmp_uint32_t, &c);
147 SAFEALIGN_COPY_UINT32(buf + c, &tmp_uint32_t, &c);
149 memcpy(buf + c, pin, pin_len);
150 buf[c + pin_len] = '\0';
153 memcpy(buf + c, token_name, token_name_len);
154 buf[c + token_name_len] = '\0';
157 memcpy(buf + c, module_name, module_name_len);
158 buf[c + module_name_len] = '\0';
161 memcpy(buf + c, key_id, key_id_len);
162 buf[c + key_id_len] = '\0';