• 博客(0)
  • 资源 (1)

空空如也

matlab AES直接可用代码

csdn找了半天没有直接可以用的代码。这个压缩包解开放一个文件夹 可以直接用 。直接在command 里面输入[s_box, inv_s_box, w, poly_mat, inv_poly_mat] = aes_init; 2 plaintext_hex = {’00’ ’11’ ’22’ ’33’ ’44’ ’55’ ’66’ ’77’ ... 3 ’88’ ’99’ ’aa’ ’bb’ ’cc’ ’dd’ ’ee’ ’ff’}; 4 plaintext = hex2dec (plaintext_hex); 5 ciphertext = cipher (plaintext, w, s_box, poly_mat); 6 re_plaintext = inv_cipher (ciphertext, w, inv_s_box, inv_poly_mat); plaintext 明文 cipehertext密文 re_plaintext解密 key在 aes_init修改 实测可用

2017-12-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除