Lines Matching refs:in_len

187                           const unsigned char *input, size_t in_len,  in mbedtls_nist_kw_wrap()  argument
206 if( out_size < in_len + KW_SEMIBLOCK_LENGTH ) in mbedtls_nist_kw_wrap()
215 if( in_len < 16 || in mbedtls_nist_kw_wrap()
217 in_len > 0x1FFFFFFFFFFFFF8 || in mbedtls_nist_kw_wrap()
219 in_len % KW_SEMIBLOCK_LENGTH != 0 ) in mbedtls_nist_kw_wrap()
225 memmove( output + KW_SEMIBLOCK_LENGTH, input, in_len ); in mbedtls_nist_kw_wrap()
229 if( in_len % 8 != 0 ) in mbedtls_nist_kw_wrap()
231 padlen = ( 8 - ( in_len % 8 ) ); in mbedtls_nist_kw_wrap()
234 if( out_size < in_len + KW_SEMIBLOCK_LENGTH + padlen ) in mbedtls_nist_kw_wrap()
243 if( in_len < 1 in mbedtls_nist_kw_wrap()
245 || in_len > 0xFFFFFFFF in mbedtls_nist_kw_wrap()
253 PUT_UINT32_BE( ( in_len & 0xffffffff ), output, in mbedtls_nist_kw_wrap()
256 memcpy( output + KW_SEMIBLOCK_LENGTH, input, in_len ); in mbedtls_nist_kw_wrap()
257 memset( output + KW_SEMIBLOCK_LENGTH + in_len, 0, padlen ); in mbedtls_nist_kw_wrap()
259 semiblocks = ( ( in_len + padlen ) / KW_SEMIBLOCK_LENGTH ) + 1; in mbedtls_nist_kw_wrap()
264 && in_len <= KW_SEMIBLOCK_LENGTH ) in mbedtls_nist_kw_wrap()
389 const unsigned char *input, size_t in_len, in mbedtls_nist_kw_unwrap() argument
398 if( out_size < in_len - KW_SEMIBLOCK_LENGTH ) in mbedtls_nist_kw_unwrap()
409 if( in_len < 24 || in mbedtls_nist_kw_unwrap()
411 in_len > 0x200000000000000 || in mbedtls_nist_kw_unwrap()
413 in_len % KW_SEMIBLOCK_LENGTH != 0 ) in mbedtls_nist_kw_unwrap()
418 ret = unwrap( ctx, input, in_len / KW_SEMIBLOCK_LENGTH, in mbedtls_nist_kw_unwrap()
441 if( in_len < KW_SEMIBLOCK_LENGTH * 2 || in mbedtls_nist_kw_unwrap()
443 in_len > 0x100000000 || in mbedtls_nist_kw_unwrap()
445 in_len % KW_SEMIBLOCK_LENGTH != 0 ) in mbedtls_nist_kw_unwrap()
450 if( in_len == KW_SEMIBLOCK_LENGTH * 2 ) in mbedtls_nist_kw_unwrap()
466 ret = unwrap( ctx, input, in_len / KW_SEMIBLOCK_LENGTH, in mbedtls_nist_kw_unwrap()
487 padlen = in_len - KW_SEMIBLOCK_LENGTH - Plen; in mbedtls_nist_kw_unwrap()