On Mon, 16 Nov 2020 20:49:15 GMT, Weijun Wang <wei...@openjdk.org> wrote:

>> How about just MGF: MGF1SHA-256 or MGF: MGF1 SHA-256?
>> First combines into a single string, the second uses space instead of ":". 
>> Just a suggestion.
>
> I like the 2nd one better, but I'll see how Sean thinks about the verbose 
> record-style toString.

99% of the time, it will probably be one of the MGF1ParameterSpec constants. 
For those, perhaps it would be nice to just use the constant: "MGF: 
MGF1ParameterSpec.SHA1" and for anything else, "MGF: MGF1ParameterSpec 
[digestAlgorithm: ...>". If this is too complicated, then I am ok with the 
above.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1208

Reply via email to