Skip to content

Commit a27c36a

Browse files
committed
Added KDF PRF & version to toString() method to make it complete.
1 parent a887b7b commit a27c36a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/java/org/owasp/esapi/crypto/CipherText.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,12 @@ public String toString() {
697697
int n = getRawCipherTextByteLength();
698698
String rawCipherText = (( n > 0 ) ? "present (" + n + " bytes)" : "absent");
699699
String mac = (( separate_mac_ != null ) ? "present" : "absent");
700-
sb.append("Creation time: ").append(creationTime);
701-
sb.append(", raw ciphertext is ").append(rawCipherText);
702-
sb.append(", MAC is ").append(mac).append("; ");
700+
701+
sb.append("KDF Version: ").append( kdfVersion_ );
702+
sb.append(", KDF PRF: ").append( kdfPRFAsInt() );
703+
sb.append("; Creation time: ").append(creationTime);
704+
sb.append("; raw ciphertext is ").append(rawCipherText);
705+
sb.append("; MAC is ").append(mac).append("; ");
703706
sb.append( cipherSpec_.toString() );
704707
return sb.toString();
705708
}

0 commit comments

Comments
 (0)