8286395: Address possibly lossy conversions in java.security.jgss
Reviewed-by: chegar
This commit is contained in:
parent
e93be3acdf
commit
a5c25d8837
@ -272,7 +272,7 @@ public final class Des {
|
||||
key = set_parity(key);
|
||||
if (bad_key(key)) {
|
||||
byte [] temp = long2octet(key);
|
||||
temp[7] ^= 0xf0;
|
||||
temp[7] ^= (byte) 0xf0;
|
||||
key = octet2long(temp);
|
||||
}
|
||||
|
||||
@ -280,7 +280,7 @@ public final class Des {
|
||||
key = octet2long(set_parity(newkey));
|
||||
if (bad_key(key)) {
|
||||
byte [] temp = long2octet(key);
|
||||
temp[7] ^= 0xf0;
|
||||
temp[7] ^= (byte) 0xf0;
|
||||
key = octet2long(temp);
|
||||
}
|
||||
|
||||
|
@ -157,7 +157,7 @@ public class Des3DkCrypto extends DkCrypto {
|
||||
}
|
||||
++posn;
|
||||
if (bit != 0) {
|
||||
last |= (bit<<posn);
|
||||
last |= (byte) (bit<<posn);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user