From bc13f644030a34cefa1d1a8f7f1077a8d18c3f43 Mon Sep 17 00:00:00 2001 From: zzz Date: Tue, 13 Jul 2021 11:32:11 -0400 Subject: [PATCH] Prop. 157 javadoc updates --- .../src/net/i2p/data/i2np/BuildResponseRecord.java | 10 +++++----- .../net/i2p/data/i2np/ShortEncryptedBuildRecord.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/router/java/src/net/i2p/data/i2np/BuildResponseRecord.java b/router/java/src/net/i2p/data/i2np/BuildResponseRecord.java index eb44a903d..9d6a6a322 100644 --- a/router/java/src/net/i2p/data/i2np/BuildResponseRecord.java +++ b/router/java/src/net/i2p/data/i2np/BuildResponseRecord.java @@ -84,7 +84,7 @@ public class BuildResponseRecord { * @param status the response 0-255 * @param replyAD 32 bytes * @param options 116 bytes max when serialized - * @return a 236-byte response record + * @return a 218-byte response record * @throws IllegalArgumentException if options too big or on encryption failure * @since 0.9.51 */ @@ -111,10 +111,10 @@ public class BuildResponseRecord { /** * Encrypts in place. - * Handles both standard (528) and short (236) byte records as of 0.9.51. + * Handles both standard (528) and short (218) byte records as of 0.9.51. * * @param ad non-null - * @param data 528 or 236 bytes, data will be encrypted in place. + * @param data 528 or 218 bytes, data will be encrypted in place. * @return success * @since 0.9.48 */ @@ -131,12 +131,12 @@ public class BuildResponseRecord { /* * ChaCha/Poly only for ECIES routers. - * Handles both standard (528) and short (236) byte records as of 0.9.51. + * Handles both standard (528) and short (218) byte records as of 0.9.51. * Decrypts in place. * Status will be rec.getData()[511 or 219]. * Properties will be at rec.getData()[0]. * - * @param rec 528 or 236 bytes, data will be decrypted in place. + * @param rec 528 or 218 bytes, data will be decrypted in place. * @param ad non-null * @return success * @since 0.9.48 diff --git a/router/java/src/net/i2p/data/i2np/ShortEncryptedBuildRecord.java b/router/java/src/net/i2p/data/i2np/ShortEncryptedBuildRecord.java index 2446fc1a7..f8b66ece9 100644 --- a/router/java/src/net/i2p/data/i2np/ShortEncryptedBuildRecord.java +++ b/router/java/src/net/i2p/data/i2np/ShortEncryptedBuildRecord.java @@ -2,7 +2,7 @@ package net.i2p.data.i2np; /** * Small records. - * 236 bytes. + * 218 bytes. * Preliminary, see proposal 157. * * Note that these are layer-encrypted and layer-decrypted in-place.