Lines Matching defs:length
37 static int enc_file_len(io_entity_t *entity, size_t *length);
38 static int enc_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
128 static int enc_file_len(io_entity_t *entity, size_t *length)
133 assert(length != NULL);
135 result = io_size(backend_handle, length);
137 WARN("Failed to read blob length (%i)\n", result);
145 if (*length < sizeof(struct fw_enc_hdr))
148 *length -= sizeof(struct fw_enc_hdr);
153 static int enc_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
185 WARN("Incorrect IV or tag length\n");
189 result = io_read(backend_handle, buffer, length, &bytes_read);