diff options
Diffstat (limited to 'ext/crypto')
-rw-r--r-- | ext/crypto/00_crypto.js | 2 | ||||
-rw-r--r-- | ext/crypto/export_key.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index c75d3b71d..dadbf4677 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -2666,7 +2666,7 @@ function importKeyAES( TypedArrayPrototypeGetByteLength(keyData) * 8, ) ) { - throw new DOMException("Invalid key length", "Datarror"); + throw new DOMException("Invalid key length", "DataError"); } break; diff --git a/ext/crypto/export_key.rs b/ext/crypto/export_key.rs index 13f7357fa..5a8d48ba3 100644 --- a/ext/crypto/export_key.rs +++ b/ext/crypto/export_key.rs @@ -130,7 +130,7 @@ fn export_key_rsa( algorithm: spki::AlgorithmIdentifier { // rsaEncryption(1) oid: const_oid::ObjectIdentifier::new_unwrap("1.2.840.113549.1.1.1"), - // parameters field should not be ommited (None). + // parameters field should not be omitted (None). // It MUST have ASN.1 type NULL. parameters: Some(asn1::AnyRef::from(asn1::Null)), }, @@ -158,7 +158,7 @@ fn export_key_rsa( algorithm: rsa::pkcs8::AlgorithmIdentifier { // rsaEncryption(1) oid: rsa::pkcs8::ObjectIdentifier::new_unwrap("1.2.840.113549.1.1.1"), - // parameters field should not be ommited (None). + // parameters field should not be omitted (None). // It MUST have ASN.1 type NULL as per defined in RFC 3279 Section 2.3.1 parameters: Some(asn1::AnyRef::from(asn1::Null)), }, |