Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation - Typos #24

Merged
merged 1 commit into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/ASN1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/Basic ASN1 Types/ASN1BitString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftASN1/Basic ASN1 Types/ASN1Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down