forked from bcgit/bc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,11 @@ | |
<p> | ||
Donors | ||
<p> | ||
The following people donated financially to help with the release of 1.61: | ||
<br /> | ||
Bihari Babu | ||
</p> | ||
<p> | ||
The following people donated financially to help with the release of 1.60: | ||
<br /> | ||
Jens Neuhalfen and perillamint. | ||
|
@@ -457,7 +462,7 @@ | |
<li>Anders Schack-Mulligen <https://github.com/aschackmull> code cleanups for CMSSignedDataParser, BrokenKDF2BytesGenerator.</li> | ||
<li>Sebastian Wolfgang Roland <sebastianwolfgang.roland@stud.tu-darmstadt.de> Initial XMSS/XMSS-MT implementation.</li> | ||
<li>didisoft <https://github.com/didisoft> test code for PGP signature removal involving user ids.</li> | ||
<li>Mike Safonov<https://github.com/MikeSafonov> initial implementation of GOST3410-2012 for light weight provider and JCA, parameters patches for ECGOST keys, initial implementation of GOST3412-2015.</li> | ||
<li>Mike Safonov<https://github.com/MikeSafonov> initial implementation of GOST3410-2012 for light weight provider and JCA, parameters patches for ECGOST keys, initial implementation of GOST3412-2015, addition of fromExtensions() for CRLDistPoint.</li> | ||
<li>Artem Storozhuk <storojs72@gmail.com> initial implementation of DSTU7564 (digest) and DSTU7624 (cipher) and their associated modes.</li> | ||
<li>Andreas Glaser <andreas.glaser@gi-de.com> patch to recognise ANSSI curves for PKCS#10 requests.</li> | ||
<li>codeborne <https://github.com/cbxp> patch to correct OIDs used in public key digest parameters for ECGOST-2012.</li> | ||
|
@@ -484,6 +489,9 @@ | |
<li>MTG <https://github.com/mtgag> patch for decoding issues in PKIPublicationInfo and CertifiedKeyPair.</li> | ||
<li>Andreas Gadermaier <up.gadermaier@gmail.com> initial version of Argon2 PBKDF algorithm.</li> | ||
<li>Tony Washer <[email protected]> review of qTesla, Java 1.9 module code.</li> | ||
<li>Vincent Bouckaert <https://github.com/veebee> initial version of RFC 4998 ASN.1 classes.</li> | ||
<li>Tony Washer <https://github.com/tonywasher> ECIESKeyEncapsulation fix for use of OldCofactor mode.</li> | ||
<li>Aurimas Liutikas <https://github.com/liutikas> JavaDoc patches to ReasonsMask.</li> | ||
</ul> | ||
</object> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
core/src/main/jdk1.4/org/bouncycastle/crypto/util/SSHBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.bouncycastle.crypto.util; | ||
|
||
import java.io.ByteArrayOutputStream; | ||
import java.io.IOException; | ||
|
||
import org.bouncycastle.util.Strings; | ||
|
||
class SSHBuilder | ||
{ | ||
private final ByteArrayOutputStream bos = new ByteArrayOutputStream(); | ||
|
||
public void u32(long value) | ||
{ | ||
bos.write((int)((value >>> 24) & 0xFF)); | ||
bos.write((int)((value >>> 16) & 0xFF)); | ||
bos.write((int)((value >>> 8) & 0xFF)); | ||
bos.write((int)(value & 0xFF)); | ||
} | ||
|
||
public void rawArray(byte[] value) | ||
{ | ||
u32(value.length); | ||
try | ||
{ | ||
bos.write(value); | ||
} | ||
catch (IOException e) | ||
{ | ||
throw new IllegalStateException(e.getMessage()); | ||
} | ||
} | ||
|
||
public void write(byte[] value) | ||
{ | ||
try | ||
{ | ||
bos.write(value); | ||
} | ||
catch (IOException e) | ||
{ | ||
throw new IllegalStateException(e.getMessage()); | ||
} | ||
} | ||
|
||
public void writeString(String str) | ||
{ | ||
rawArray(Strings.toByteArray(str)); | ||
} | ||
|
||
public byte[] getBytes() | ||
{ | ||
return bos.toByteArray(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters