signature-params: Use helper to build MGF1 algorithmIdentifier
authorTobias Brunner <tobias@strongswan.org>
Mon, 2 Oct 2017 14:10:40 +0000 (16:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Nov 2017 15:48:10 +0000 (16:48 +0100)
src/libstrongswan/credentials/keys/signature_params.c

index e8ac75d..79453b4 100644 (file)
@@ -280,8 +280,8 @@ bool rsa_pss_params_build(rsa_pss_params_t *params, chunk_t *asn1)
                        chunk_free(&hash);
                        return FALSE;
                }
-               mgf = asn1_wrap(ASN1_SEQUENCE, "mm", asn1_build_known_oid(OID_MGF1),
-                                               asn1_algorithmIdentifier(alg));
+               mgf = asn1_algorithmIdentifier_params(OID_MGF1,
+                                                                                         asn1_algorithmIdentifier(alg));
        }
        salt_len = rsa_pss_salt_length(params);
        if (salt_len < 0)