{ "info": { "author": "George Zhao", "author_email": "georgezhao_1980@163.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "===================\nIntroduction\n===================\ntkgtools is a library which is used as a base for 3GPP security architecture.\n\ntkg is stands for 3GPP Key Generator.\n\nOnly f1, f2, f3, f4, f5, f1* and f5* are supported in this library.\n\ntkgtools is written on python 3.6.5, python 2 is not supported.\n\n===================\nAuthor\n===================\nGeorge Zhao who is working for Nokia in 2010-2012, 2014-2019.\n\nmaito: georgezhao_1980@163.com\n\n===================\nHow to get it\n===================\n\n::\n\n\tpip install tkgtools\n\n===================\nFunctions\n===================\nf1(key, rand, sqn, amf, op, mac_a, opc = [])\n\n key(list of int), length 16\n \n rand(list of int), length 16\n \n sqn(list of int), length 6\n \n amf(list of int), length 2\n \n op(list of int), length 16\n \n mac_a(list of int), length 8\n \n opc(list of int), length 6, it is an optional parameter, if opc is set, f1 function will never use op parameter, and use opc to instead.\n \n mac_a is used as a return value.\n\n \nf2345(key, rand, op, res, ck, ik , ak, opc = [])\n\n key(list of int), length 16\n \n rand(list of int), length 16\n \n op(list of int), length 16\n \n res(list of int), length 8\n \n ck(list of int), length 16\n \n ik(list of int), length 16\n \n ak(list of int), length 6\n \n opc(list of int), length 6, it is an optional parameter, if opc is set, f2345 function will never use op parameter, and use opc to instead.\n \n res, ck, ik, and ak are used as return values.\n \n \nf1star(key, rand, sqn, amf, op, mac_s, opc = [])\n\n key(list of int), length 16\n \n rand(list of int), length 16\n \n sqn(list of int), length 6\n \n amf(list of int), length 2\n \n mac_s(list of int), length 8\n \n opc(list of int), length 6, it is an optional parameter, if opc is set, f1star function will never use op parameter, and use opc to instead.\n \n mac_s is used as a return value.\t\n \n\nf5star(key, rand, op, ak, opc = [])\n\n key(list of int), length 16\n \n rand(list of int), length 16\n \n op(list of int), length 16\n \n ak(list of int), length 6\n \n opc(list of int), length 6, it is an optional parameter, if opc is set, f5star function will never use op parameter, and use opc to instead.\n \n ak is used as return value.\n\nAll test data could be retrieved in 3GPP 35.207\n\n===================\nExample\n===================\n::\n\n\tfrom tkgtools import tkgtools\n\t\n\tkey = [0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11]\n\top = [0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x10,0x11,0x12,0x13,0x14,0x15,0x16]\n\trand = [0x16,0x2a,0x9b,0x8c,0x46,0x9a,0xdc,0x1f,0x41,0xcc,0x69,0x73,0xee,0xe5,0x9e,0xaf]\n\tres=[0 for col in range(8)]\n\tck=[0 for col in range(16)]\n\tik=[0 for col in range(16)]\n\tak=[0 for col in range(6)]\n\ttkgtools.f2345(key, rand, op, res, ck, ik, ak)\n\t\n===================\nAny problem\n===================\nPlease contact georgezhao_1980@163.com", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://not-available.now", "keywords": "", "license": "BSD License", "maintainer": "George Zhao", "maintainer_email": "georgezhao_1980@163.com", "name": "tkgtools", "package_url": "https://pypi.org/project/tkgtools/", "platform": "all", "project_url": "https://pypi.org/project/tkgtools/", "project_urls": { "Homepage": "http://not-available.now" }, "release_url": "https://pypi.org/project/tkgtools/0.19.6.2/", "requires_dist": null, "requires_python": "", "summary": "tkgtools is created by George Zhao, who is working for NOKIA, 2010-2012, 2014-2019. This lib is used for implementing algorithm in 3GPP 35.206, f1, f2, f3, f4, f5, f1* and f5*", "version": "0.19.6.2" }, "last_serial": 5408298, "releases": { "0.19.2.1": [ { "comment_text": "", "digests": { "md5": "9af13c05be39df3df04893ffe86e9ccd", "sha256": "b93ff7533f0bd51c457a6a18cae2a6420913e3147f2cdf938216d07ecd2b8616" }, "downloads": -1, "filename": "tkgtools-0.19.2.1.tar.gz", "has_sig": false, "md5_digest": "9af13c05be39df3df04893ffe86e9ccd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4999, "upload_time": "2019-02-13T01:37:05", "url": "https://files.pythonhosted.org/packages/b0/ef/5f50655d0bf6e03fe59f799b3d27987508e0f0ab2441bdd36f0748290f01/tkgtools-0.19.2.1.tar.gz" } ], "0.19.2.2": [ { "comment_text": "", "digests": { "md5": "50e0931185610e9963894e960319f3e3", "sha256": "83ae336c7da64e9b2bc4ce594da19091c3f08ea6ca0b6257527ba97c8d14b452" }, "downloads": -1, "filename": "tkgtools-0.19.2.2.tar.gz", "has_sig": false, "md5_digest": "50e0931185610e9963894e960319f3e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5031, "upload_time": "2019-02-13T01:42:47", "url": "https://files.pythonhosted.org/packages/4e/c9/5f403e2dd3069b4b5d70e03165b94a03ed44a2eafd43bc628818d4d8f3fc/tkgtools-0.19.2.2.tar.gz" } ], "0.19.2.3": [ { "comment_text": "", "digests": { "md5": "daf7b0578ab24ad0306023561b1d12b2", "sha256": "222db515651defc4d6aef02f9626d7ea947515b92fa84ba7550267e6054ce677" }, "downloads": -1, "filename": "tkgtools-0.19.2.3.tar.gz", "has_sig": false, "md5_digest": "daf7b0578ab24ad0306023561b1d12b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5250, "upload_time": "2019-02-13T01:59:02", "url": "https://files.pythonhosted.org/packages/43/71/eca6b3be291054e6ae7c52297f4a8d99629fd29b05e5e0188b0c62bc0831/tkgtools-0.19.2.3.tar.gz" } ], "0.19.6.2": [ { "comment_text": "", "digests": { "md5": "4f41a131d1e04df28674316b6acfd4d4", "sha256": "cea054f1eda864de166495a061da75971305dfab320596a875d4db90f0b7caf9" }, "downloads": -1, "filename": "tkgtools-0.19.6.2.tar.gz", "has_sig": false, "md5_digest": "4f41a131d1e04df28674316b6acfd4d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5404, "upload_time": "2019-06-17T03:28:42", "url": "https://files.pythonhosted.org/packages/fe/87/a739168561e2314c838de756d7b714f6c1b917333ec3866c74e69ff21590/tkgtools-0.19.6.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f41a131d1e04df28674316b6acfd4d4", "sha256": "cea054f1eda864de166495a061da75971305dfab320596a875d4db90f0b7caf9" }, "downloads": -1, "filename": "tkgtools-0.19.6.2.tar.gz", "has_sig": false, "md5_digest": "4f41a131d1e04df28674316b6acfd4d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5404, "upload_time": "2019-06-17T03:28:42", "url": "https://files.pythonhosted.org/packages/fe/87/a739168561e2314c838de756d7b714f6c1b917333ec3866c74e69ff21590/tkgtools-0.19.6.2.tar.gz" } ] }