[erlang-questions] public_key:pem_decode/1 and public_key:verify/4

Seth Falcon seth@REDACTED
Mon Jan 24 23:42:48 CET 2011


On Mon, Jan 24, 2011 at 2:05 PM, Ingela Andin <ingela@REDACTED> wrote:
> Ah, sorry accidently hit send before finished ...
>
> [...]
>
>> I thought some more about this and I feel the right way to go is have
>> several clauses in pem_entry_encode for the asn1-type  'SubjectPublicKeyInfo'
>> some thing along the lines
>>
>> pem_entry_decode(,  #'RSAPublicKey'{} = Key) ->
>        SubjectPublicKeyInfo =
> create_subject_public_key_info_from_rsa_public_key(Key),
>        pem_entry_decode( 'SubjectPublicKeyInfo', Key).
>

If you meant pem_entry_encode in the lines above, then I think I
follow you.  Otherwise, I'm confused about whether we are talking
about encode or decode :-)


More information about the erlang-questions mailing list