-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bit string literals for ease of encoding BIT STRINGs
BIT STRING is distinct from OCTET STRING in that it has a leading byte specifying the number of "unimportant" bits in the last octet. This adds syntax (b`...`) similar to hex literals, which generates this prefix in a convenient fashion. See language.txt for details. Includes changes to ascii2der, as well as a changing the existing der2ascii heuristic for well-formed BIT STRINGs to use the new syntax instead.
- Loading branch information
Showing
7 changed files
with
299 additions
and
13 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 |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
David Benjamin <[email protected]> | ||
Carl Mehner <[email protected]> | ||
Eric Roman <[email protected]> | ||
Miguel Young de la Sota <[email protected]> | ||
Victor Vasiliev <[email protected]> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ | |
package main | ||
|
||
import ( | ||
"encoding/pem" | ||
"encoding/hex" | ||
"encoding/pem" | ||
"flag" | ||
"fmt" | ||
"io/ioutil" | ||
|
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