Hello, I’m trying to demonstrate the welch t-test for aes 128 in chipwhisperer. Is there any way to calculate the variance and the sample mean of the traces in my script? How could that be done? Do I have to load the commands in python console or there is another way?
Easiest way would be to write a script,. You could write a script to perform the welch t-test using scipy.stats.ttest_ind and the traces you captured. The Manual CPA tutorial is a good example of working with the traces you captured. It gives an example of loading the traces once saved to have them accessible in the script as arrays that can be given to the welch T-test function. Hope this helps!
Thank you for your answer. I’ve captured the traces for aes and managed to load them in a script as you told me.My problem now is the fact that I don’t know how to separate the traces into two groups in order to measure the variance and mean of them. I tried to see tutorial B4 but is currently out of order and I cannot find any help.Have you got something to suggest me???
well I have already captured a brunch of traces for aes-128 in my own script. I have separated them into two groups Group1 and Group2 (Group1 contains traces with fixed-plaintext and Group2 contains traces with random plaintext).
In order to run welch t-test I must compute variances, means e.t.c. of these groups.Since I have loaded them into my script with the “np.load(’/path to traces/.npy’)” command I don’t know the way to gain access in each of these two groups I have made. What is the way to gain access in these groups so as to be able to execute welch t-test?