Lines Matching refs:padlen
188 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local
224 padlen = ( 8 - ( in_len % 8 ) ); in mbedtls_nist_kw_wrap()
227 if( out_size < in_len + KW_SEMIBLOCK_LENGTH + padlen ) in mbedtls_nist_kw_wrap()
250 memset( output + KW_SEMIBLOCK_LENGTH + in_len, 0, padlen ); in mbedtls_nist_kw_wrap()
252 semiblocks = ( ( in_len + padlen ) / KW_SEMIBLOCK_LENGTH ) + 1; in mbedtls_nist_kw_wrap()
432 size_t padlen = 0; in mbedtls_nist_kw_unwrap() local
484 padlen = in_len - KW_SEMIBLOCK_LENGTH - Plen; in mbedtls_nist_kw_unwrap()
485 if ( padlen > 7 ) in mbedtls_nist_kw_unwrap()
487 padlen &= 7; in mbedtls_nist_kw_unwrap()
494 if( i >= KW_SEMIBLOCK_LENGTH - padlen ) in mbedtls_nist_kw_unwrap()
509 memset( output + Plen, 0, padlen ); in mbedtls_nist_kw_unwrap()