aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:45:00 +0000
committerlloyd <[email protected]>2010-10-13 02:45:00 +0000
commit63121e1e169616f724bf79b8aac1a2b4423c8904 (patch)
tree2375d5b5daaad8990b2cee951d137f2e7638e79b /src/utils
parent879d062c2b93e32362e338d1c6f9b1eda0f88493 (diff)
Use output_length() instead of OUTPUT_LENGTH pseudo-property
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/buf_comp/buf_comp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/buf_comp/buf_comp.h b/src/utils/buf_comp/buf_comp.h
index c1c2583c3..a64d807dd 100644
--- a/src/utils/buf_comp/buf_comp.h
+++ b/src/utils/buf_comp/buf_comp.h
@@ -21,9 +21,9 @@ namespace Botan {
class BOTAN_DLL BufferedComputation
{
public:
-
/**
* The length of the output of this function in bytes.
+ * @deprecated Use output_length()
*/
const size_t OUTPUT_LENGTH;
@@ -78,7 +78,7 @@ class BOTAN_DLL BufferedComputation
* Complete the computation and retrieve the
* final result.
* @param out The byte array to be filled with the result.
- * Must be of length OUTPUT_LENGTH.
+ * Must be of length output_length()
*/
void final(byte out[]) { final_result(out); }
@@ -89,7 +89,7 @@ class BOTAN_DLL BufferedComputation
*/
SecureVector<byte> final()
{
- SecureVector<byte> output(OUTPUT_LENGTH);
+ SecureVector<byte> output(output_length());
final_result(&output[0]);
return output;
}
@@ -149,7 +149,7 @@ class BOTAN_DLL BufferedComputation
/**
* Write the final output to out
- * @param out is an output buffer of OUTPUT_LENGTH
+ * @param out is an output buffer of output_length()
*/
virtual void final_result(byte out[]) = 0;
};