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

Update spelling typos #223

Merged
merged 3 commits into from
Jan 1, 2025
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 DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Description: Implementation of a function 'digest()' for the creation of hash
digests of arbitrary R objects (using the 'md5', 'sha-1', 'sha-256', 'crc32',
'xxhash', 'murmurhash', 'spookyhash', 'blake3', 'crc32c', 'xxh3_64', and 'xxh3_128'
algorithms) permitting easy comparison of R language objects, as well as functions
such as'hmac()' to create hash-based message authentication code. Please note that
such as 'hmac()' to create hash-based message authentication code. Please note that
this package is not meant to be deployed for cryptographic purposes for which more
comprehensive (and widely tested) libraries such as 'OpenSSL' should be used.
URL: https://github.com/eddelbuettel/digest, https://dirk.eddelbuettel.com/code/digest.html
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This is a common use of the digest package.

A small number of additional functions is available:

- `sha1()` for numerally stable hashsums,
- `sha1()` for numerically stable hashsums,
- `hmac()` for hashed message authentication codes based on a key,
- `AES()` for Advanced Encryption Standard block ciphers,
- `getVDigest()` as a function generator for vectorised versions.
Expand Down
4 changes: 2 additions & 2 deletions man/digest.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ digest(object, algo=c("md5", "sha1", "crc32", "sha256", "sha512",
guaranteeing an eight-character return. We now pad with zero to always
return eight characters. Should the previous behaviour be required,
set \code{option("digestOldCRC32Format"=TRUE)} and the output will be
consistent with prior version (but not be consistentnly eight characters).
consistent with prior version (but not be consistently eight characters).
}
\references{
MD5: \url{https://www.ietf.org/rfc/rfc1321.txt}.
Expand Down Expand Up @@ -155,7 +155,7 @@ digest(object, algo=c("md5", "sha1", "crc32", "sha256", "sha512",
Antoine Lucas for the integration of crc32; Jarek Tuszynski for the
file-based operations; Henrik Bengtsson and Simon Urbanek for improved
serialization patches; Christophe Devine for the hash function
implementations for sha-1, sha-256 and md5; Jean-Loup Gailly and Mark Adler
implementations for sha-1, sha-256 and md5; Jean-loup Gailly and Mark Adler
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good fix, correcting my own inadvertent mis-caseing!

for crc32; Hannes Muehleisen for the integration of sha-512; Jim Hester for
the integration of xxhash32, xxhash64 and murmur32; Kendon Bell for
the integration of spookyhash using Gabe Becker's R package fastdigest.}
Expand Down
6 changes: 3 additions & 3 deletions man/sha1.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ number are equivalent to 0. Defaults to \code{zapsmall = 7}}
\item{...}{If it is the only defined argument, passed to another \code{sha1}
method. If other arguments exist, see Details for usage.}

\item{algo}{The hashing algoritm to be used by \code{\link{digest}}. Defaults to
\item{algo}{The hashing algorithm to be used by \code{\link{digest}}. Defaults to
"sha1"}
}
\description{
Expand All @@ -94,12 +94,12 @@ Extra arguments:

environment: An optional extra argument for \code{sha1.function} and
\code{sha1.formula} should be TRUE, FALSE or missing. \code{sha1.function} and
\code{sha1.formula} will ignore the enviroment of the function only when
\code{sha1.formula} will ignore the environment of the function only when
\code{environment = FALSE}.
}
\note{
\code{sha1} gained an \code{algo} argument since version 0.6.15. This allows
\code{sha1()} to use all hashing algoritms available in \code{digest()}. The
\code{sha1()} to use all hashing algorithms available in \code{digest()}. The
hashes created with \code{sha1(x)} from digest >= 0.6.15 are identical to
\code{sha1(x)} from digest <= 0.6.14. The only exceptions are hashes created
with \code{sha1(x, algo = "sha1")}, they will be different starting from digest
Expand Down
2 changes: 1 addition & 1 deletion vignettes/sha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sapply(a, sha1, digits = 10)
c(sha1(pi), sha1(pi, digits = 13), sha1(pi, digits = 10))
```

The result of floating point arithematic on 32-bit and 64-bit can be slightly different. E.g. `print(pi ^ 11, 22)` returns `294204.01797389047` on 32-bit and `294204.01797389053` on 64-bit. Note that only the last 2 digits are different.
The result of floating point arithmetic on 32-bit and 64-bit can be slightly different. E.g. `print(pi ^ 11, 22)` returns `294204.01797389047` on 32-bit and `294204.01797389053` on 64-bit. Note that only the last 2 digits are different.

| command | 32-bit | 64-bit|
| - | - | - |
Expand Down
Loading