51学通信论坛2017新版

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 14456|回复: 4
打印 上一主题 下一主题

5G鉴权/加密中各种参数的计算公式

[复制链接]

 成长值: 14047

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74102
    跳转到指定楼层
    楼主
    发表于 2021-1-5 14:23:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    5G-AKA鉴权中各种参数的计算公式:

    在TS35.206中定义。
    符号在规范中的解释是:
    圆圈里边有个+号是异或:The bitwise exclusive-OR operation。也就是按位异或运算。
    ||:concatenation也就是连接运算符。将两个字段的字符串连接在一起。
    举例:
    连接运算符是双竖线“||” 通过连接运算将两个字段的字符串连接在一起。比如名字和年龄
    SELECT uname||age AS "名字和年龄" FROM uinfo;  
    结果为:
    名字和年龄
    黑色头发25
    紫色头发19



    扫描并关注51学通信微信公众号,获取更多精彩通信课程分享。

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复

    使用道具 举报

     成长值: 14047

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74102
    沙发
     楼主| 发表于 2021-1-5 14:34:57 | 只看该作者
    还有一些参数的基本概念和构成如下:
    AK        a 48-bit anonymity key that is the output of either of the functions f5 and f5*.
    AMF        a 16-bit authentication management field that is an input to the functions f1 and f1*.
    c1,c2,c3,c4,c5        128-bit constants, which are XORed onto intermediate variables.
    CK        a 128-bit confidentiality key that is the output of the function f3.
    IK        a 128-bit integrity key that is the output of the function f4.
    IN1        a 128-bit value constructed from SQN and AMF and used in the computation of the functions f1 and f1*.
    K        a 128-bit subscriber key that is an input to the functions f1, f1*, f2, f3, f4, f5 and f5*.
    MAC-A        a 64-bit network authentication code that is the output of the function f1.
    MAC-S        a 64-bit resynchronisation authentication code that is the output of the function f1*.
    OP        a 128-bit Operator Variant Algorithm Configuration Field that is a component of the functions f1, f1*, f2, f3, f4, f5 and f5*.
    OPC        a 128-bit value derived from OP and K and used within the computation of the functions.
    OUT1,OUT2,OUT3,OUT4,OUT5
    128-bit computed values from which the outputs of the functions f1, f1*, f2, f3, f4, f5 and f5* are obtained.
    r1,r2,r3,r4,r5        integers in the range 0–127 inclusive, which define amounts by which intermediate variables are cyclically rotated.
    RAND        a 128-bit random challenge that is an input to the functions f1, f1*, f2, f3, f4, f5 and f5*.
    RES        a 64-bit signed response that is the output of the function f2.
    SQN        a 48-bit sequence number that is an input to either of the functions f1 and f1*.  (For f1* this input is more precisely called SQNMS.)
    TEMP        a 128-bit value used within the computation of the functions.
    5g鉴权相关的参数长度(UDM侧):


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?立即注册

    x
    回复 支持 反对

    使用道具 举报

     成长值: 14047

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74102
    板凳
     楼主| 发表于 2021-1-5 23:45:29 | 只看该作者
    f0 random challenge generating function
    f1 network authentication function :USIM对网络的鉴权
    f1* the re-synchronisation message authentication function;
    f2 user authentication function:网络对用户的鉴权
    f3 cipher key derivation function:CK派生功能
    f4 integrity key derivation function:IK派生功能
    f5 anonymity key derivation function for normal operation:AK派生功能
    f5* anonymity key derivation function for re-synchronisation
    f8 UMTS encryption algorithm
    f9 UMTS integrity algorithm
    回复 支持 反对

    使用道具 举报

     成长值: 14047

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74102
    地板
     楼主| 发表于 2021-1-6 17:00:05 | 只看该作者
    MILENAGE算法(35.206):底层是基于AES加密算法。
    变量列表
    AK
    一个48位的匿名密钥,函数f5和f5*的输出。
    AMF
    鉴权管理域,一个16位身份验证管理字段,它是函数f1和f1*的输入
    c1,c2,c3,c4,c5
    128位常量,将其与中间变量进行XOR运算
    CK
    一个128位的加密密钥,函数f3的输出
    IK
    一个128位的完整性密钥,函数f4的输出
    IN1
    由SQN和AMF构成的128位值,用于计算函数f1和f1 *
    K
    128位用户密钥,函数f1,f1 *,f2,f3,f4,f5和f5 *的输入
    MAC-A
    函数f1输出的64位网络鉴权码
    MAC-S
    函数f1输出的64位重同步鉴权码
    OP
    一个128位变量可配置字段,函数f1,f1 *,f2,f3,f4,f5和f5 *的组成部分
    OPC
    由OP和K导出,并在函数计算中使用的128位值
    OUT1,OUT2,OUT3,OUT4,OUT5
    f1, f1*, f2, f3, f4, f5 和f5* 的输出值
    r1,r2,r3,r4,r5
    0-127的整数,目标参数的周期性旋转量
    RAND
    128位随机数,用作f1, f1*, f2, f3, f4, f5 和f5*的输入
    RES
    64位的鉴权响应值,由f2输出。
    SQN
    48位序列号,作为函数 f1 and f1*的输入 (For f1* this input is more precisely called SQNMS.)
    TEMP
    128位临时变量
    回复 支持 反对

    使用道具 举报

     成长值: 14047

  • TA的每日心情
    开心
    2022-7-17 17:50
  • 2444

    主题

    2544

    帖子

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    74102
    5#
     楼主| 发表于 2021-1-8 12:29:31 | 只看该作者
    参考链接:https://zhuanlan.zhihu.com/p/30170487  一文看懂LTE的鉴权
    https://mp.weixin.qq.com/mp/appm ... 1339307465195962369  猫呆呆的工作间专辑:5GS的网络安全
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|51学通信技术论坛

    GMT+8, 2024-5-15 01:29 , Processed in 0.079882 second(s), 31 queries .

    Powered by Discuz! X3

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表