Skip to content

Commit

Permalink
Removed double "the the".
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 9, 2024
1 parent 07c54fd commit 9efbd2a
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 35 deletions.
18 changes: 9 additions & 9 deletions lib/ronin/support/crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def self.ciphers
# The newly created cipher.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# Crypto.cipher('aes-128-cbc', direction: :encrypt, key 'secret'.md5)
Expand Down Expand Up @@ -242,7 +242,7 @@ def self.cipher(name,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Cipher#encrypt
#
Expand Down Expand Up @@ -281,7 +281,7 @@ def self.encrypt(data, cipher: ,**kwargs)
# The decrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Cipher#decrypt
#
Expand Down Expand Up @@ -363,7 +363,7 @@ def self.aes_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes_encrypt(data,**kwargs)
self.aes_cipher(direction: :encrypt, **kwargs).encrypt(data)
Expand Down Expand Up @@ -403,7 +403,7 @@ def self.aes_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes_decrypt(data,**kwargs)
self.aes_cipher(direction: :decrypt, **kwargs).decrypt(data)
Expand Down Expand Up @@ -477,7 +477,7 @@ def self.aes128_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes128_encrypt(data,**kwargs)
self.aes128_cipher(direction: :encrypt, **kwargs).encrypt(data)
Expand Down Expand Up @@ -514,7 +514,7 @@ def self.aes128_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes128_decrypt(data,**kwargs)
self.aes128_cipher(direction: :decrypt, **kwargs).decrypt(data)
Expand Down Expand Up @@ -588,7 +588,7 @@ def self.aes256_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes256_encrypt(data,**kwargs)
self.aes256_cipher(direction: :encrypt, **kwargs).encrypt(data)
Expand Down Expand Up @@ -625,7 +625,7 @@ def self.aes256_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
def self.aes256_decrypt(data,**kwargs)
self.aes256_cipher(direction: :decrypt, **kwargs).decrypt(data)
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/support/crypto/cipher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def initialize(name, direction: ,
elsif key
self.key = key
else
raise(ArgumentError,"the the key: or password: keyword argument must be given")
raise(ArgumentError,"the key: or password: keyword argument must be given")
end

self.iv = iv if iv
Expand Down
12 changes: 6 additions & 6 deletions lib/ronin/support/crypto/core_ext/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def self.decrypt(path,cipher, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes_encrypt('file.txt', key_size: 256, password: 's3cr3t')
Expand Down Expand Up @@ -400,7 +400,7 @@ def self.aes_encrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes_decrypt('encrypted.bin', key_size: 256, password: 's3cr3t')
Expand Down Expand Up @@ -453,7 +453,7 @@ def self.aes_decrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes128_encrypt('file.txt', password: 's3cr3t')
Expand Down Expand Up @@ -506,7 +506,7 @@ def self.aes128_encrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes256_decrypt('encrypted.bin', password: 's3cr3t')
Expand Down Expand Up @@ -559,7 +559,7 @@ def self.aes128_decrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes256_encrypt('file.txt', password: 's3cr3t')
Expand Down Expand Up @@ -612,7 +612,7 @@ def self.aes256_encrypt(path, block_size: 16384, output: nil, **kwargs,&block)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# File.aes256_decrypt('encrypted.bin', password: 's3cr3t')
Expand Down
12 changes: 6 additions & 6 deletions lib/ronin/support/crypto/core_ext/string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def decrypt(cipher,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "top secret".aes_encrypt(key_size: 256, password: 's3cr3t')
Expand Down Expand Up @@ -285,7 +285,7 @@ def aes_encrypt(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "\xF0[\x17\xDA\xA2\x82\x93\xF4\xB6s\xB5\xD8\x1F\xF2\xC6\\".aes_decrypt(key_size: 256, password: 's3cr3t')
Expand Down Expand Up @@ -325,7 +325,7 @@ def aes_decrypt(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "top secret".aes128_encrypt(password: 's3cr3t')
Expand Down Expand Up @@ -365,7 +365,7 @@ def aes128_encrypt(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "\x88\xA53\xE9|\xE2\x8E\xA0\xABv\xCF\x94\x17\xBB*\xC5".aes128_decrypt(password: 's3cr3t')
Expand Down Expand Up @@ -405,7 +405,7 @@ def aes128_decrypt(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "top secret".aes256_encrypt(password: 's3cr3t')
Expand Down Expand Up @@ -445,7 +445,7 @@ def aes256_encrypt(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# "\xF0[\x17\xDA\xA2\x82\x93\xF4\xB6s\xB5\xD8\x1F\xF2\xC6\\".aes256_decrypt(password: 's3cr3t')
Expand Down
18 changes: 9 additions & 9 deletions lib/ronin/support/crypto/mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def crypto_hmac(data=nil, key: , digest: :sha1)
# The newly created cipher.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @example
# crypto_cipher('aes-128-cbc', mode: :encrypt, key 'secret'.md5)
Expand Down Expand Up @@ -139,7 +139,7 @@ def crypto_cipher(name,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.encrypt
#
Expand All @@ -165,7 +165,7 @@ def crypto_encrypt(data, cipher: ,**kwargs)
# The decrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.decrypt
#
Expand Down Expand Up @@ -251,7 +251,7 @@ def crypto_aes_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes_encrypt
#
Expand Down Expand Up @@ -295,7 +295,7 @@ def crypto_aes_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes_decrypt
#
Expand Down Expand Up @@ -375,7 +375,7 @@ def crypto_aes128_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes128_encrypt
#
Expand Down Expand Up @@ -416,7 +416,7 @@ def crypto_aes128_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes128_decrypt
#
Expand Down Expand Up @@ -496,7 +496,7 @@ def crypto_aes256_cipher(**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes256_encrypt
#
Expand Down Expand Up @@ -537,7 +537,7 @@ def crypto_aes256_encrypt(data,**kwargs)
# The encrypted data.
#
# @raise [ArgumentError]
# Either the the `key:` or `password:` keyword argument must be given.
# Either the `key:` or `password:` keyword argument must be given.
#
# @see Crypto.aes256_decrypt
#
Expand Down
2 changes: 1 addition & 1 deletion spec/archive/tar/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
describe "#read" do
let(:name) { 'file.txt' }

it "must read the the full contents of the file within the archive" do
it "must read the full contents of the file within the archive" do
expect(subject.read(name)).to eq(txt_data)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/archive/zip/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
describe "#read" do
let(:name) { 'file.txt' }

it "must read the the full contents of the file within the archive" do
it "must read the full contents of the file within the archive" do
expect(subject.read(name)).to eq(txt_data)
end

Expand Down Expand Up @@ -226,7 +226,7 @@
end

describe "#read" do
it "must read the the full contents of the file within the archive" do
it "must read the full contents of the file within the archive" do
expect(subject.read).to eq(txt_data)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/crypto/cipher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
it do
expect {
described_class.new(name, direction: :encrypt)
}.to raise_error(ArgumentError,"the the key: or password: keyword argument must be given")
}.to raise_error(ArgumentError,"the key: or password: keyword argument must be given")
end
end
end
Expand Down

0 comments on commit 9efbd2a

Please sign in to comment.