0
关于CTR模式
Sun Yimin edited this page 2023-08-26 08:02:08 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

概述

CTR模式一般不独立使用通常会和消息认证模式结合使用。在具体的应用协议/模式规范中会定义初始counter block的构成、counter的位数、counter的初始值、增长函数等等一个典型的例子就是GCM模式。

独立的CTR模式NIST规范中最多只有counter block的一般性说明、安全性要求标准增长函数等在绝大多数独立CTR模式实现中counter的位数和block的位数一致m=b所以AES和SM4的独立CTR模式的counter都是128位否则会有互操作问题。

参考