Skip to content

Cryptographic Message Syntax parser for Elixir

License

Notifications You must be signed in to change notification settings

sibill-it/cmsex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMSEx

This library contains an Elixir library to parse the CMS file format as described in RFC 5652 and related RFCs.

This includes for instance PKCS7 files with a .p7m extension.

Installation

If available in Hex, the package can be installed by adding cmsex to your list of dependencies in mix.exs:

def deps do
  [
    {:cmsex, "~> 0.1.0"}
  ]
end

Usage

Refer to the CMSEx module documentation.

Development

The parser is generated from ASN.1 specifications copied from their RFCs using the asn1ct module included with OTP. The ASN.1 specs were only slightly tweaked by removing primitive type definitions, to be compatible with asn1ct.

The source ASN.1 specifications are stored in asn1/, and the generated Erlang code is stored in src/. For development purposes, the Erlang code can be regenerated by running the mix compile.asn1 task.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/cmsex.

About

Cryptographic Message Syntax parser for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published