Searched refs:max_bytes (Results 1 – 2 of 2) sorted by relevance
134 uint32_t number_of_operations, max_bytes, bytes_left, remaining_bytes; in tegra_se_calculate_sha256_hash() local146 max_bytes = SHA256_HASH_SIZE_BYTES * SHA256_MSG_LENGTH_ONETIME; in tegra_se_calculate_sha256_hash()169 number_of_operations = src_len_inbyte / max_bytes; in tegra_se_calculate_sha256_hash()170 remaining_bytes = src_len_inbyte % max_bytes; in tegra_se_calculate_sha256_hash()208 if (len_bits_lsb <= (max_bytes * 8U)) { in tegra_se_calculate_sha256_hash()211 len_bits_lsb -= (max_bytes * 8U); in tegra_se_calculate_sha256_hash()217 max_bytes = (SHA256_HASH_SIZE_BYTES * in tegra_se_calculate_sha256_hash()219 if (bytes_left < max_bytes) { in tegra_se_calculate_sha256_hash()220 max_bytes = bytes_left; in tegra_se_calculate_sha256_hash()223 bytes_left = bytes_left - max_bytes; in tegra_se_calculate_sha256_hash()[all …]
281 uint32_t number_of_operations, max_bytes, bytes_left, remaining_bytes; in tegra_se_calculate_sha256_hash() local293 max_bytes = (SHA256_HASH_SIZE_BYTES * SHA256_MSG_LENGTH_ONETIME); in tegra_se_calculate_sha256_hash()316 number_of_operations = (src_len_inbyte / max_bytes); in tegra_se_calculate_sha256_hash()317 remaining_bytes = (src_len_inbyte % max_bytes); in tegra_se_calculate_sha256_hash()355 if (len_bits_lsb <= (max_bytes * 8U)) { in tegra_se_calculate_sha256_hash()358 len_bits_lsb -= (max_bytes * 8U); in tegra_se_calculate_sha256_hash()364 max_bytes = (SHA256_HASH_SIZE_BYTES * in tegra_se_calculate_sha256_hash()366 if (bytes_left < max_bytes) { in tegra_se_calculate_sha256_hash()367 max_bytes = bytes_left; in tegra_se_calculate_sha256_hash()370 bytes_left = bytes_left - max_bytes; in tegra_se_calculate_sha256_hash()[all …]