📄 add_round_key.m
字号:
function state_out = add_round_key (state_in, round_key)
%ADD_ROUND_KEY Add (XOR) the round key to the state.
%
% STATE_OUT = ADD_ROUND_KEY (STATE_IN, ROUND_KEY)
% adds the current round key matrix ROUND_KEY
% to the current state matrix STATE_IN.
% Adding in GF(2^8) is performed via bitwise XOR.
% Copyright 2001-2005, J. J. Buchholz, Hochschule Bremen, buchholz@hs-bremen.de
% Version 1.0 30.05.2001
% Add state (matrix) and round key (matrix) via bitwise XOR
state_out = bitxor (state_in, round_key);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -