Lines Matching defs:out
56 static int handleEncrypt(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint64_t keyId, uint32_t *key)
120 fwrite(image, sizeof(*image), 1, out);
125 fwrite(&encr, sizeof(encr), 1, out);
137 fwrite(outBuf, AES_BLOCK_SIZE, 1, out);
146 fwrite(outBuf, AES_BLOCK_SIZE, 1, out);
148 err = fwrite(outBuf, AES_BLOCK_SIZE, 1, out) != 1;
153 static int handleDecrypt(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t *key)
199 fwrite(image, sizeof(*image), 1, out);
211 err = fwrite(outBuf, size, 1, out) != 1;
263 FILE *out = NULL;
336 out = stdout;
338 out = fopen(posArg[1], "w");
339 if (!out)
343 ret = handleEncrypt(&buf, bufUsed, out, keyId, key);
345 ret = handleDecrypt(&buf, bufUsed, out, key);
348 fclose(out);