RFR: 8256363: Define toString() for MGF1ParameterSpec [v3]

Sean Mullan mullan at openjdk.java.net
Tue Nov 17 19:39:06 UTC 2020


On Tue, 17 Nov 2020 15:34:37 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> New commit and the output will look like:
> 
> ```
> PSSParameterSpec[hashAlgorithm=SHA-256, maskGenAlgorithm=MGF1ParameterSpec[hashAlgorithm=SHA-256], saltLength=32, trailerField=1]
> ```
> 
> I'm using the ASN.1 field names here. (Precisely the name in MGF1 is OAEP-PSSDigestAlgorithms but that's too long).

I like it. Looks good.

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

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



More information about the security-dev mailing list