Fix a bug in AES FvsR key batch capture function.
Fix a bug in AES FvsR key batch capture function.

We need to compute scope.num_segments at first.

Signed-off-by: Abdullah Varici <6039105c2af672eb81c31c2920848ea73480a112@lowrisc.org>

lowRISC/ot-sca,lowRISC/ot-sca