Changeset 0518bc18c616699e96cb2da7e1b727c4453fa09e
- Timestamp:
- 12/09/11 14:16:29 (18 months ago)
- Author:
- zzz@…
- Branches:
- i2p.i2p
- Children:
- b02b8abe1c7b0980815c4293b3a7b50c115f33e8
- Parents:
- e486811bedaaf98e43516e1584130b457f1f33bb
- Message:
-
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2fe8..
|
r0518..
|
|
| 230 | 230 | int len = PublicKey.KEYSIZE_BYTES // dest |
| 231 | 231 | + SigningPublicKey.KEYSIZE_BYTES // dest |
| 232 | | + 4 // cert |
| | 232 | + 3 // cert minimum, could be more, only used to size the BAOS |
| 233 | 233 | + PublicKey.KEYSIZE_BYTES // encryptionKey |
| 234 | 234 | + SigningPublicKey.KEYSIZE_BYTES // signingKey |
| … |
… |
|
| 296 | 296 | } |
| 297 | 297 | |
| | 298 | /** |
| | 299 | * Number of bytes, NOT including signature |
| | 300 | */ |
| 298 | 301 | public int size() { |
| 299 | 302 | return PublicKey.KEYSIZE_BYTES //destination.pubKey |
| 300 | 303 | + SigningPublicKey.KEYSIZE_BYTES // destination.signPubKey |
| 301 | | + 2 // destination.certificate |
| | 304 | + _destination.getCertificate().size() // destination.certificate, usually 3 |
| 302 | 305 | + PublicKey.KEYSIZE_BYTES // encryptionKey |
| 303 | 306 | + SigningPublicKey.KEYSIZE_BYTES // signingKey |
| 304 | | + 1 |
| | 307 | + 1 // number of leases |
| 305 | 308 | + _leases.size() * (Hash.HASH_LENGTH + 4 + 8); |
| 306 | 309 | } |