Skip to content

Commit 438f781

Browse files
authored
Typo fixes (#7942)
1 parent 7d5ec53 commit 438f781

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/hazmat/primitives/asymmetric/rsa.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ is unavailable.
481481

482482
A keyword-only argument that defaults to ``False``. If ``True``
483483
RSA private keys will not be validated. This significantly speeds up
484-
loading the keys, but is is :term:`unsafe` unless you are certain
484+
loading the keys, but is :term:`unsafe` unless you are certain
485485
the key is valid. User supplied keys should never be loaded with
486486
this parameter set to ``True``. If you do load an invalid key this
487487
way and attempt to use it OpenSSL may hang, crash, or otherwise

docs/hazmat/primitives/asymmetric/serialization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ all begin with ``-----BEGIN {format}-----`` and end with ``-----END
149149

150150
A keyword-only argument that defaults to ``False``. If ``True``
151151
RSA private keys will not be validated. This significantly speeds up
152-
loading the keys, but is is :term:`unsafe` unless you are certain the
152+
loading the keys, but is :term:`unsafe` unless you are certain the
153153
key is valid. User supplied keys should never be loaded with this
154154
parameter set to ``True``. If you do load an invalid key this way and
155155
attempt to use it OpenSSL may hang, crash, or otherwise misbehave.
@@ -267,7 +267,7 @@ the rest.
267267

268268
A keyword-only argument that defaults to ``False``. If ``True``
269269
RSA private keys will not be validated. This significantly speeds up
270-
loading the keys, but is is :term:`unsafe` unless you are certain the
270+
loading the keys, but is :term:`unsafe` unless you are certain the
271271
key is valid. User supplied keys should never be loaded with this
272272
parameter set to ``True``. If you do load an invalid key this way and
273273
attempt to use it OpenSSL may hang, crash, or otherwise misbehave.

src/_cffi_src/build_openssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _get_openssl_libraries(platform):
3333
# libssl must come before libcrypto
3434
# (https://marc.info/?l=openssl-users&m=135361825921871)
3535
# -lpthread required due to usage of pthread an potential
36-
# existance of a static part containing e.g. pthread_atfork
36+
# existence of a static part containing e.g. pthread_atfork
3737
# (https://github.com/pyca/cryptography/issues/5084)
3838
if sys.platform == "zos":
3939
return ["ssl", "crypto"]

src/cryptography/hazmat/primitives/twofactor/hotp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
raise TypeError("Length parameter must be an integer type.")
5757

5858
if length < 6 or length > 8:
59-
raise ValueError("Length of HOTP has to be between 6 to 8.")
59+
raise ValueError("Length of HOTP has to be between 6 and 8.")
6060

6161
if not isinstance(algorithm, (SHA1, SHA256, SHA512)):
6262
raise TypeError("Algorithm must be SHA1, SHA256 or SHA512.")

src/rust/src/x509/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub(crate) struct AttributeTypeValue<'a> {
4444
pub(crate) value: RawTlv<'a>,
4545
}
4646

47-
// Like `asn1::Tlv` but doesn't store `full_data` so it can be constucted from
47+
// Like `asn1::Tlv` but doesn't store `full_data` so it can be constructed from
4848
// an un-encoded tag and value.
4949
#[derive(Hash, PartialEq, Eq, Clone)]
5050
pub(crate) struct RawTlv<'a> {

0 commit comments

Comments
 (0)