Lines Matching defs:out
48 static int padlock_sha_export(struct shash_desc *desc, void *out)
52 return crypto_shash_export(&dctx->fallback, out);
72 unsigned int count, u8 *out)
74 /* We can't store directly to *out as it may be unaligned. */
88 goto out;
91 return crypto_shash_finup(&dctx->fallback, in, count, out);
100 goto out;
119 padlock_output_block((uint32_t *)result, (uint32_t *)out, 5);
121 out:
125 static int padlock_sha1_final(struct shash_desc *desc, u8 *out)
129 return padlock_sha1_finup(desc, buf, 0, out);
133 unsigned int count, u8 *out)
135 /* We can't store directly to *out as it may be unaligned. */
149 goto out;
152 return crypto_shash_finup(&dctx->fallback, in, count, out);
161 goto out;
180 padlock_output_block((uint32_t *)result, (uint32_t *)out, 8);
182 out:
186 static int padlock_sha256_final(struct shash_desc *desc, u8 *out)
190 return padlock_sha256_finup(desc, buf, 0, out);
285 /*The PHE require the out buffer must 128 bytes and 16-bytes aligned*/
328 static int padlock_sha1_final_nano(struct shash_desc *desc, u8 *out)
337 /* Pad out to 56 mod 64 */
346 padlock_output_block((uint32_t *)(state->state), (uint32_t *)out, 5);
369 /*The PHE require the out buffer must 128 bytes and 16-bytes aligned*/
412 static int padlock_sha256_final_nano(struct shash_desc *desc, u8 *out)
422 /* Pad out to 56 mod 64 */
431 padlock_output_block((uint32_t *)(state->state), (uint32_t *)out, 8);
437 void *out)
442 memcpy(out, sctx, statesize);
520 goto out;
533 out: