Documentation - Typos (#24)

This commit is contained in:
Joey authored and GitHub committed 2023-04-11 00:39:26 -07:00
1 parent 155b8acdb2
commit b3aaa046fa
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1225,7 +1225,7 @@ extension ArraySlice where Element == UInt8 {
let requiredBits = UInt.bitWidth - length.leadingZeroBitCount
switch requiredBits {
case 0...7:
// For 0 to 7 bits, the long form is unnacceptable and we require the short.
// For 0 to 7 bits, the long form is unacceptable and we require the short.
throw ASN1Error.unsupportedFieldLength(reason: "Field length encoded in long form, but DER requires \(length) to be encoded in short form")
case 8...:
// For 8 or more bits, fieldLength should be the minimum required.
@@ -17,7 +17,7 @@
/// In ASN.1, bitstrings serve two different use-cases. The first is as arbitrary-length sequences of bits.
/// These are typically used to encode cryptographic keys, such as RSA keys. The second is as a form of bitset.
///
/// In the case of a bitset, DER has additonal requirements as to how to represent the object. This type does not
/// In the case of a bitset, DER has additional requirements as to how to represent the object. This type does not
/// enforce those additional rules: users are expected to implement that validation themselves.
public struct ASN1BitString: DERImplicitlyTaggable {
/// The default identifier for this type.
@@ -141,7 +141,7 @@ extension ASN1Identifier {
/// This tag represents a GraphicString.
public static let graphicString = ASN1Identifier(shortIdentifier: 0x19)
/// This tag represents a VisibileString.
/// This tag represents a VisibleString.
public static let visibleString = ASN1Identifier(shortIdentifier: 0x1a)
/// This tag represents a GeneralString.