Lines Matching refs:header
44 static inline int is_valid_header(struct fw_enc_hdr *header) in is_valid_header() argument
46 if (header->magic == ENC_HEADER_MAGIC) in is_valid_header()
157 struct fw_enc_hdr header; in enc_file_read() local
168 result = io_read(backend_handle, (uintptr_t)&header, sizeof(header), in enc_file_read()
175 if (!is_valid_header(&header)) { in enc_file_read()
181 fw_enc_status = header.flags & FW_ENC_STATUS_FLAG_MASK; in enc_file_read()
183 if ((header.iv_len > ENC_MAX_IV_SIZE) || in enc_file_read()
184 (header.tag_len > ENC_MAX_TAG_SIZE)) { in enc_file_read()
205 result = crypto_mod_auth_decrypt(header.dec_algo, in enc_file_read()
207 key_len, key_flags, header.iv, in enc_file_read()
208 header.iv_len, header.tag, in enc_file_read()
209 header.tag_len); in enc_file_read()