Lines Matching refs:semiblocks
216 size_t semiblocks = 0; in mbedtls_nist_kw_wrap() local
282 semiblocks = ( ( in_len + padlen ) / KW_SEMIBLOCK_LENGTH ) + 1; in mbedtls_nist_kw_wrap()
284 s = 6 * ( semiblocks - 1 ); in mbedtls_nist_kw_wrap()
303 if( semiblocks < MIN_SEMIBLOCKS_COUNT ) in mbedtls_nist_kw_wrap()
325 if( R2 >= output + ( semiblocks * KW_SEMIBLOCK_LENGTH ) ) in mbedtls_nist_kw_wrap()
330 *out_len = semiblocks * KW_SEMIBLOCK_LENGTH; in mbedtls_nist_kw_wrap()
336 memset( output, 0, semiblocks * KW_SEMIBLOCK_LENGTH ); in mbedtls_nist_kw_wrap()
353 const unsigned char *input, size_t semiblocks, in unwrap() argument
358 const size_t s = 6 * ( semiblocks - 1 ); in unwrap()
366 if( semiblocks < MIN_SEMIBLOCKS_COUNT ) in unwrap()
372 memmove( output, input + KW_SEMIBLOCK_LENGTH, ( semiblocks - 1 ) * KW_SEMIBLOCK_LENGTH ); in unwrap()
373 R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
394 R = output + ( semiblocks - 2 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
399 *out_len = ( semiblocks - 1 ) * KW_SEMIBLOCK_LENGTH; in unwrap()
403 memset( output, 0, ( semiblocks - 1 ) * KW_SEMIBLOCK_LENGTH ); in unwrap()