04b8adc7ba
SHA-512/224 and SHA-512/256. I don't expect these hashes to be heavily used. But there is some potential for incompatibilities. E.g. BouncyCastle previously used algorithm names such as "SHA512(224)WITHRSA" while jdk uses "SHA512/224WithRSA". RSA-OAEP would in principle allow the same hashes as RSA-PSS, but the algorithm name in JCA is not well-defined, using truncated hashes with OAEP doesn't make much sense, and providers don't seem to implement it. Test results: jdk11 supports the truncated signatures. BouncyCastle does not support the algorithm names ConsCrypt does not support the algorithms. Tested in a different CL: boringSSL does not implement the algorithms. Bugs: b/120406853 is about an alternative ASN encoding of PSS-keys. This is an encoding that contains all the parameters of signature scheme. This will be added by jdk11. But so far, jdk11 fails to read its own key encodings. I have test vectors for this encoding, but can't add them without having at least one library accepting them. NOKEYCHECK=True PiperOrigin-RevId: 275018282 GitOrigin-RevId: 42c8b6d8e768858b6ec5a273d53f1e111268ecd7