Skip to content

Commit

Permalink
Changing all occurrences of "lenght" by "length"
Browse files Browse the repository at this point in the history
  • Loading branch information
hablutzel1 committed Jul 23, 2020
1 parent 36128a4 commit a329304
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private static int checkPkcs1Encoding(byte[] encoded, int pLen)
* Now the padding check, check for no 0 byte in the padding
*/
int plen = encoded.length - (
pLen /* Lenght of the PMS */
pLen /* Length of the PMS */
+ 1 /* Final 0-byte before PMS */
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private static int checkPkcs1Encoding(byte[] encoded, int pLen)
* Now the padding check, check for no 0 byte in the padding
*/
int plen = encoded.length - (
pLen /* Lenght of the PMS */
pLen /* Length of the PMS */
+ 1 /* Final 0-byte before PMS */
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public class GF2nONBElement
private static final int MAXLONG = 64;

/**
* holds the lenght of the polynomial with 64 bit sized fields.
* holds the length of the polynomial with 64 bit sized fields.
*/
private int mLength;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private static int checkPkcs1Encoding(byte[] encoded, int pLen)
* Now the padding check, check for no 0 byte in the padding
*/
int plen = encoded.length - (
pLen /* Lenght of the PMS */
pLen /* Length of the PMS */
+ 1 /* Final 0-byte before PMS */
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,20 +467,20 @@ protected void checkSignerCert(X509Certificate cert, List errors,
{
// get key length
PublicKey key = cert.getPublicKey();
int keyLenght = -1;
int keyLength = -1;
if (key instanceof RSAPublicKey)
{
keyLenght = ((RSAPublicKey)key).getModulus().bitLength();
keyLength = ((RSAPublicKey)key).getModulus().bitLength();
}
else if (key instanceof DSAPublicKey)
{
keyLenght = ((DSAPublicKey)key).getParams().getP().bitLength();
keyLength = ((DSAPublicKey)key).getParams().getP().bitLength();
}
if (keyLenght != -1 && keyLenght <= shortKeyLength)
if (keyLength != -1 && keyLength <= shortKeyLength)
{
ErrorBundle msg = new ErrorBundle(RESOURCE_NAME,
"SignedMailValidator.shortSigningKey",
new Object[]{Integers.valueOf(keyLenght)});
new Object[]{Integers.valueOf(keyLength)});
notifications.add(msg);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SignedMailValidator.wrongSigner.details = The given signer did not sign the mail
## notifications messages

# short signing key
# {0} the key lenght as Integer
# {0} the key length as Integer
SignedMailValidator.shortSigningKey.title = Careless short signing key
SignedMailValidator.shortSigningKey.text = Warning: The signing key is only {0} bits long.
SignedMailValidator.shortSigningKey.summary = Warning: The signing key is only {0} bits long.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SignedMailValidator.wrongSigner.details = Die Email enh
## notifications messages

# short signing key
# {0} the key lenght as Integer
# {0} the key length as Integer
SignedMailValidator.shortSigningKey.title = Fahrlässig kurzer Signaturschlüssel
SignedMailValidator.shortSigningKey.text = Warnung: Der Signaturschlüssel ist nur {0} bit lang.
SignedMailValidator.shortSigningKey.summary = Warnung: Der Signaturschlüssel ist nur {0} bit lang.
Expand Down

0 comments on commit a329304

Please sign in to comment.