diff options
author | Rich Salz <rsalz@openssl.org> | 2014-09-08 11:48:34 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2014-10-03 10:39:00 -0400 |
commit | 5aed169305941fb1eba15fd4bacc0f998b0e43f7 (patch) | |
tree | 933c66f93325ba1b34da7031bfca6c4d818f5c32 /doc | |
parent | 429a25b97dd83b55a821629cd6e3ef1f80eb7a8a (diff) | |
download | openssl-5aed169305941fb1eba15fd4bacc0f998b0e43f7.tar.gz |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EVP_BytesToKey.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/crypto/EVP_BytesToKey.pod b/doc/crypto/EVP_BytesToKey.pod index d07ae6c7b5..cd3aa027ee 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 |