[erlang-bugs] Documentation error in crypto

Lev Walkin vlm@REDACTED
Thu Apr 2 09:05:41 CEST 2009


Documentation (erl -man crypto) specifies:

rsa_verify(Digest, Signature, Key) -> Verified

whereas code expects Data instead of digest:

 > rsa_verify(Data,Signature,Key) ->
 >     rsa_verify(sha, Data,Signature,Key).
 > rsa_verify(Type,Data,Signature,Key) ->
 >     control(rsa_verify_digest_type(Type), [Data,Signature,Key]) == <<1>>.


-- 
Lev Walkin
vlm@REDACTED



More information about the erlang-bugs mailing list