Commit 15edfa0f authored by garciay's avatar garciay
Browse files

Editorial changes

parent 22ccf05a
......@@ -46,12 +46,12 @@ public class SecurityHelper {
_neighborsCertificates = new HashMap<Long, ByteArrayOutputStream>();
}
public byte[] size2tls(final int length) {
public byte[] size2tls(final int intx_value) {
byte[] result = null;
if (length < 128) { // One byte length
result = new byte[] { (byte)length };
if (intx_value < 128) { // One byte length
result = new byte[] { (byte)intx_value };
} else {
long lv = length;
long lv = intx_value;
long bitLen = bitLength(lv);
long byteLen = byteLength(bitLen);
long flags = (long) ((byteLen | 1) << (byteLen * Byte.SIZE - bitLength(byteLen) - 1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment