summaryrefslogtreecommitdiffstats
path: root/doc/crypto
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2014-09-08 11:48:34 -0400
committerRich Salz <rsalz@openssl.org>2014-10-03 10:39:32 -0400
commit20d1c8111f5678f8d6211ce013368852b38eb819 (patch)
treef39cd54b58d3d5c211bee0c65fd4346ac0fcb202 /doc/crypto
parentc578fe37d982e899f7644d041282c54b5f7f6247 (diff)
RT3462: Document actions when data==NULL
If data is NULL, return the size needed to hold the derived key. No other API to do this, so document the behavior. Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 5aed169305941fb1eba15fd4bacc0f998b0e43f7)
Diffstat (limited to 'doc/crypto')
-rw-r--r--doc/crypto/EVP_BytesToKey.pod5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/crypto/EVP_BytesToKey.pod b/doc/crypto/EVP_BytesToKey.pod
index cd09b68ca8..5d6059528e 100644
--- a/doc/crypto/EVP_BytesToKey.pod
+++ b/doc/crypto/EVP_BytesToKey.pod
@@ -55,7 +55,10 @@ the IV.
=head1 RETURN VALUES
-EVP_BytesToKey() returns the size of the derived key in bytes, or 0 on error.
+If B<data> is NULL, then EVP_BytesToKey() returns the number of bytes
+needed to store the derived key.
+Otherwise, EVP_BytesToKey() returns the size of the derived key in bytes,
+or 0 on error.
=head1 SEE ALSO