Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Aug 7, 2023
1 parent 30f37bf commit d852157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cms.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule CA.CMS do
# CMS DECRYPT API

def decrypt(cms, {schemeOID, privateKeyBin}) do
{_,{:ContentInfo,_,{:EnvelopedData,_,_,x,y,_}}} = cms
{:ok,{:ContentInfo,_,{:EnvelopedData,_,_,x,y,_}}} = cms
{:EncryptedContentInfo,_,{_,encOID,{_,<<_::16,iv::binary>>}},data} = y
case :proplists.get_value(:kari, x, []) do
[] -> case :proplists.get_value(:ktri, x, []) do
Expand Down

0 comments on commit d852157

Please sign in to comment.