I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 3fdc964e authored by zzz's avatar zzz
Browse files

javadoc fixes

parent 597662d0
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,7 @@ import org.bouncycastle.oldcrypto.macs.I2PHMac; ...@@ -22,8 +22,7 @@ import org.bouncycastle.oldcrypto.macs.I2PHMac;
/** /**
* Calculate the HMAC-MD5-128 of a key+message. All the good stuff occurs * Calculate the HMAC-MD5-128 of a key+message. All the good stuff occurs
* in {@link org.bouncycastle.oldcrypto.macs.I2PHMac} and * in {@link org.bouncycastle.oldcrypto.macs.I2PHMac}
* {@link org.bouncycastle.oldcrypto.digests.MD5Digest}.
* *
* Keys are always 32 bytes. * Keys are always 32 bytes.
* This is used only by UDP. * This is used only by UDP.
...@@ -71,7 +70,8 @@ public class HMACGenerator { ...@@ -71,7 +70,8 @@ public class HMACGenerator {
/** /**
* Calculate the HMAC of the data with the given key * Calculate the HMAC of the data with the given key
* *
* @return the first 16 bytes contain the HMAC, the last 16 bytes are zero * @param target out parameter the first 16 bytes contain the HMAC, the last 16 bytes are zero
* @param targetOffset offset into target to put the hmac
* @throws IllegalArgumentException for bad key or target too small * @throws IllegalArgumentException for bad key or target too small
*/ */
public void calculate(SessionKey key, byte data[], int offset, int length, byte target[], int targetOffset) { public void calculate(SessionKey key, byte data[], int offset, int length, byte target[], int targetOffset) {
......
...@@ -42,7 +42,7 @@ public class KeyCertificate extends Certificate { ...@@ -42,7 +42,7 @@ public class KeyCertificate extends Certificate {
* A KeyCertificate with crypto type 0 (ElGamal) * A KeyCertificate with crypto type 0 (ElGamal)
* and the signature type and extra data from the given public key. * and the signature type and extra data from the given public key.
* *
* @param sig non-null data non-null * @param spk non-null data non-null
* @throws IllegalArgumentException * @throws IllegalArgumentException
*/ */
public KeyCertificate(SigningPublicKey spk) { public KeyCertificate(SigningPublicKey spk) {
...@@ -68,7 +68,7 @@ public class KeyCertificate extends Certificate { ...@@ -68,7 +68,7 @@ public class KeyCertificate extends Certificate {
* If type.getPubkeyLen() is greater than 128, caller MUST * If type.getPubkeyLen() is greater than 128, caller MUST
* fill in the extra key data in the payload. * fill in the extra key data in the payload.
* *
* @param sig non-null data non-null * @param type non-null
* @throws IllegalArgumentException * @throws IllegalArgumentException
*/ */
public KeyCertificate(SigType type) { public KeyCertificate(SigType type) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment