mirror of
https://github.com/apple/swift-asn1
synced 2026-11-24 04:17:50 +00:00
Documentation - Typos (#24)
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user