8279043: Some Security Exception Messages Miss Spaces

Reviewed-by: weijun
This commit is contained in:
Daniel Jelinski 2021-12-21 18:24:31 +00:00 committed by Weijun Wang
parent f7309060de
commit f31dead6c5
16 changed files with 21 additions and 21 deletions

View file

@ -1304,7 +1304,7 @@ abstract class GaloisCounterMode extends CipherSpi {
// 'len' includes ibuffer data
checkDataLength(len, tagLenBytes);
if (dst.remaining() < len + tagLenBytes) {
throw new ShortBufferException("Output buffer too small, must" +
throw new ShortBufferException("Output buffer too small, must " +
"be at least " + (len + tagLenBytes) + " bytes long");
}
@ -1472,7 +1472,7 @@ abstract class GaloisCounterMode extends CipherSpi {
}
if (len - tagLenBytes > out.length - outOfs) {
throw new ShortBufferException("Output buffer too small, must" +
throw new ShortBufferException("Output buffer too small, must " +
"be at least " + (len - tagLenBytes) + " bytes long");
}

View file

@ -213,7 +213,7 @@ public final class TlsKeyMaterialGenerator extends KeyGeneratorSpi {
if (protocolVersion >= 0x0302) {
// TLS 1.1+
throw new RuntimeException(
"Internal Error: TLS 1.1+ should not be negotiating" +
"Internal Error: TLS 1.1+ should not be negotiating " +
"exportable ciphersuites");
} else if (protocolVersion == 0x0301) {
// TLS 1.0