summaryrefslogtreecommitdiff
path: root/asn.h
diff options
context:
space:
mode:
Diffstat (limited to 'asn.h')
-rw-r--r--asn.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/asn.h b/asn.h
index 5e5bbb82..d79f98dd 100644
--- a/asn.h
+++ b/asn.h
@@ -208,7 +208,11 @@ CRYPTOPP_DLL size_t CRYPTOPP_API BERDecodeBitString(BufferedTransformation &bt,
CRYPTOPP_DLL void CRYPTOPP_API DERReencode(BufferedTransformation &bt, BufferedTransformation &dest);
/// \brief BER decode size
-/// \param bt BufferedTransformation object for writing
+/// \param bt BufferedTransformation object for reading
+/// \returns the length of the ASN.1 value, in bytes
+/// \details BERDecodePeekLength() determines the length of a value without
+/// consuming octets in the stream. The stream must use definite length encoding.
+/// If indefinite length encoding is used or an error occurs, then 0 is returned.
/// \since Crypto++ 8.3
CRYPTOPP_DLL size_t CRYPTOPP_API BERDecodePeekLength(BufferedTransformation &bt);