Lines Matching refs:output

139                          unsigned char *output, size_t *out_len, size_t out_size)  in mbedtls_nist_kw_wrap()  argument
170 memcpy(output, NIST_KW_ICV1, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_wrap()
171 memmove(output + KW_SEMIBLOCK_LENGTH, input, in_len); in mbedtls_nist_kw_wrap()
193 memcpy(output, NIST_KW_ICV2, KW_SEMIBLOCK_LENGTH / 2); in mbedtls_nist_kw_wrap()
194 MBEDTLS_PUT_UINT32_BE((in_len & 0xffffffff), output, in mbedtls_nist_kw_wrap()
197 memcpy(output + KW_SEMIBLOCK_LENGTH, input, in_len); in mbedtls_nist_kw_wrap()
198 memset(output + KW_SEMIBLOCK_LENGTH + in_len, 0, padlen); in mbedtls_nist_kw_wrap()
206 memcpy(inbuff, output, 16); in mbedtls_nist_kw_wrap()
208 inbuff, 16, output, &olen); in mbedtls_nist_kw_wrap()
213 unsigned char *R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
214 unsigned char *A = output; in mbedtls_nist_kw_wrap()
240 if (R2 >= output + (semiblocks * KW_SEMIBLOCK_LENGTH)) { in mbedtls_nist_kw_wrap()
241 R2 = output + KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
251 memset(output, 0, semiblocks * KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_wrap()
270 unsigned char *output, size_t *out_len) in unwrap() argument
286 memmove(output, input + KW_SEMIBLOCK_LENGTH, (semiblocks - 1) * KW_SEMIBLOCK_LENGTH); in unwrap()
287 R = output + (semiblocks - 2) * KW_SEMIBLOCK_LENGTH; in unwrap()
307 if (R == output) { in unwrap()
308 R = output + (semiblocks - 2) * KW_SEMIBLOCK_LENGTH; in unwrap()
318 memset(output, 0, (semiblocks - 1) * KW_SEMIBLOCK_LENGTH); in unwrap()
333 unsigned char *output, size_t *out_len, size_t out_size) in mbedtls_nist_kw_unwrap() argument
359 A, output, out_len); in mbedtls_nist_kw_unwrap()
396 memcpy(output, outbuff + KW_SEMIBLOCK_LENGTH, KW_SEMIBLOCK_LENGTH); in mbedtls_nist_kw_unwrap()
402 A, output, out_len); in mbedtls_nist_kw_unwrap()
431 diff |= output[*out_len - KW_SEMIBLOCK_LENGTH + i]; in mbedtls_nist_kw_unwrap()
433 bad_padding |= output[*out_len - KW_SEMIBLOCK_LENGTH + i]; in mbedtls_nist_kw_unwrap()
444 memset(output + Plen, 0, padlen); in mbedtls_nist_kw_unwrap()
453 memset(output, 0, *out_len); in mbedtls_nist_kw_unwrap()