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

Weijun Wang weijun at openjdk.java.net
Tue Nov 17 21:39:05 UTC 2020


On Tue, 17 Nov 2020 19:36:31 GMT, Sean Mullan <mullan 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).
>
>> 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.

@seanjmullan Can you approve it then?

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

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


More information about the security-dev mailing list