6 Cải thiện cuộc tấn công
Một cuộc tấn công tương quan [4, 5] chống lại một thực hiện FPGA của DES được chia thành ba bước. Hãy để N là số các chữ thô / cặp bản mã mà các phép đo tiêu thụ điện năng có sẵn. Hãy K là chìa khóa bí mật dùng để mã hóa. Khi mô phỏng các cuộc tấn công, chúng tôi giả định rằng K được biết là những kẻ tấn công (khi các cuộc tấn công được thực hiện, K là khóa học không rõ). Giai đoạn dự báo: Đối với mỗi bản rõ N mã hóa, những kẻ tấn công đầu tiên
chọn một mục tiêu S-box cho các chức năng lựa chọn D0 (x supra). Sau đó, ông dự đoán giá trị của D0 (tức là số bit flips bên trong một thanh ghi mục tiêu giữa vòng 15 và 16) cho 26 dự đoán chính. Kết quả của giai đoạn dự báo là một N × 26 lựa chọn số nguyên ma trận dự đoán chứa giữa 0 và 4. Đối với mục đích mô phỏng, nó cũng là thú vị để sản xuất ma trận dự báo toàn cầu có chứa số bit flips bên trong tất cả các registers3 của thedesign, cho tất cả các chu kỳ. Đó là, nếu mã hóa là p erformed trong 16 chu kỳ ck clo, chúng ta có được một ma trận N × 16, có chứa các số nguyên giữa 0 và 64. Đây là chỉ khả thi nếu phím được biết đến. Theo giả thuyết của giáo phái. 2, các ma trận cho các ước tính cho việc tiêu thụ điện năng của thiết bị. Giai đoạn đo: Trong giai đoạn đo lường, chúng ta để cho FPGA
mã hóa bản rõ tồn tại cùng với phím cùng, như chúng ta đã làm trong giai đoạn dự báo. Trong khi chip đang hoạt động, chúng tôi đo điện năng tiêu thụ cho 16 chu kỳ đồng hồ liên tiếp. Sau đó, các dấu vết điện năng tiêu thụ của mỗi mã hóa được trung bình 10 lần để loại bỏ tiếng ồn từ các phép đo của chúng tôi và chúng tôi lưu trữ các giá trị tối đa của mỗi chu kỳ mã hóa để chúng tôi sản xuất một N × 16 ma trận với các giá trị tiêu thụ điện năng cho tất cả các văn bản , chu kỳ. Chúng tôi biểu nó là ma trận tiêu thụ toàn cầu. Giai đoạn tương quan: Trong giai đoạn tương quan, chúng tôi tính toán hệ số tương quan giữa các cột thứ 16 của ma trận tiêu thụ toàn cầu (tương ứng với vòng 16 mục tiêu của giai đoạn dự đoán) và tất cả các cột của ma trận dự đoán được lựa chọn (tương ứng với tất cả 26 dự đoán chính ). Nếu cuộc tấn công thành công, chúng tôi hy vọng rằng chỉ có một giá trị, tương ứng với dự đoán chính xác, dẫn đến một hệ số tương quan cao.
Một cách hiệu quả để thực hiện các tương quan giữa dự đoán lý thuyết và các phép đo thực tế là sử dụng các hệ số Pearson. Hãy Ti biểu thị các dữ liệu đo thứ i (tức là các dấu vết thứ i) và T là tập hợp các dấu vết. Hãy Pi biểu thị các dự đoán của các mô hình cho các dấu vết thứ i và P tập các dự đoán như vậy. Sau đó, chúng tôi tính toán:
C (T, P) = Ep (T.PV ar) - (TE) v ar (T) .e (P (P)). (2)
Ở đây E (T) biểu thị giá trị trung bình của tập hợp các dấu vết T và V ar (T) biến của nó. Nếu tương quan này là cao, nó thường được giả định rằng dự đoán của mô hình, và do đó giả thuyết then chốt, là đúng. Cuối cùng, dự đoán lý thuyết của các cuộc tấn công có thể được thực hiện bằng cách sử dụng toàn cầu
ma trận dự đoán ở vị trí của ma trận tiêu thụ toàn cầu. Là ma trận dự báo toàn cầu có chứa số lượng các switch chút bên trong tất cả các đăng ký, nó đại diện cho một tiếng ồn lý thuyết đo lường miễn phí và có thể giúp để xác định số lượng tối thiểu của các văn bản cần thiết để gắn kết một cuộc tấn công thành công, tức là một cuộc tấn công mà đoán chính xác dẫn đến hệ số tương quan cao nhất. Điều này được điều tra trong phần tiếp theo.
đang được dịch, vui lòng đợi..