Giter Site home page Giter Site logo

der's Introduction

DER

实物描述

该文件为ASN.1标准下的DER编解码规则,因为是从ITCAST上拿下来的,所以会带有其标签,可能会影响阅读,我在里面添加了中文注释,希望能帮助到你。

需要注意的是因为日志编写文件中存在Linux的系统调用,如果你的测试用例在windows下运行,务必屏蔽该头文件。

##DER编解码的要点为不管什么数据和数据类型来——从我的API函数出去都是一个TLV结点:T——type 数据类型,以ASN.1预定义的宏标记。L——length 数据长度。V——value 数据值。##

##往往一个结构体的制作就是自上而下逐一生成一个TLV节点链表,最后引用头部,将整体链表封装成一个大TLV结点(将每个节点的data取出来,压入到大TLV结点data中,说实话我看源码觉得效率优点低...),完成DER编码,解码则反之。##

der's People

Contributors

gitsshylalala avatar

Watchers

James Cloos avatar Suzuiiyo avatar

Forkers

xtfvje

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.