Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: sunxunle <sunxunle@ampere.tech>
  • Loading branch information
sunxunle committed Jan 20, 2025
1 parent 98e2219 commit 03d3470
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/CryptoSwift/BlockMode/GCM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ final class GCMModeWorker: BlockModeWorker, FinalizingEncryptModeWorker, Finaliz
self.additionalBufferSize = 0
}

// Assume nonce is 12 bytes long, otherwise initial counter would be calulated from GHASH
// Assume nonce is 12 bytes long, otherwise initial counter would be calculated from GHASH
// counter = GF.ghash(aad: [UInt8](), ciphertext: nonce)
if iv.count == GCMModeWorker.nonceSize {
self.counter = makeCounter(nonce: Array(self.iv))
Expand Down
2 changes: 1 addition & 1 deletion Sources/CryptoSwift/CS_BigInt/BigInt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

extension CS {

/// An arbitary precision signed integer type, also known as a "big integer".
/// An arbitrary precision signed integer type, also known as a "big integer".
///
/// Operations on big integers never overflow, but they might take a long time to execute.
/// The amount of memory (and address space) available is the only constraint to the magnitude of these numbers.
Expand Down
2 changes: 1 addition & 1 deletion Sources/CryptoSwift/CS_BigInt/BigUInt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

extension CS {

/// An arbitary precision unsigned integer type, also known as a "big integer".
/// An arbitrary precision unsigned integer type, also known as a "big integer".
///
/// Operations on big integers never overflow, but they may take a long time to execute.
/// The amount of memory (and address space) available is the only constraint to the magnitude of these numbers.
Expand Down

0 comments on commit 03d3470

Please sign in to comment.