From fe18efc0c82cc55e44bbc5d6ca465dff76e5287e Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 27 Jun 2012 19:58:08 +0200 Subject: public_key: Align the interface of sign and verify with crypto --- lib/public_key/doc/src/public_key.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'lib/public_key/doc/src/public_key.xml') diff --git a/lib/public_key/doc/src/public_key.xml b/lib/public_key/doc/src/public_key.xml index 0c9e0c9013..f64274d608 100644 --- a/lib/public_key/doc/src/public_key.xml +++ b/lib/public_key/doc/src/public_key.xml @@ -396,11 +396,11 @@ sign(Msg, DigestType, Key) -> binary() Create digital signature. - Msg = binary() + Msg = binary() | {digest,binary()} The msg is either the binary "plain text" data to be - signed or in the case that digest type is {digest, DigestType} - it is the hashed value of "plain text" i.e. the digest. - DigestType = rsa_digest_type() | dsa_digest_type() | {digest, rsa_digest_type() | dsa_digest_type()} + signed or it is the hashed value of "plain text" i.e. the + digest. + DigestType = rsa_digest_type() | dsa_digest_type() Key = rsa_private_key() | dsa_private_key() @@ -461,11 +461,10 @@ verify(Msg, DigestType, Signature, Key) -> boolean() Verifies a digital signature. - Msg = binary() + Msg = binary() | {digest,binary()} The msg is either the binary "plain text" data - or in the case that digest type is {digest, DigestType} - it is the hashed value of "plain text" i.e. the digest. - DigestType = rsa_digest_type() | dsa_digest_type() | {digest, rsa_digest_type() | dsa_digest_type()} + or it is the hashed value of "plain text" i.e. the digest. + DigestType = rsa_digest_type() | dsa_digest_type() Signature = binary() Key = rsa_public_key() | dsa_public_key() -- cgit v1.2.3