create algorithmIdentifier dynamically from OID database
[strongswan.git] / src / libstrongswan / plugins / gmp / gmp_rsa_private_key.c
index 5cea55c..f3192b8 100644 (file)
@@ -232,7 +232,7 @@ static bool build_emsa_pkcs1_signature(private_gmp_rsa_private_key_t *this,
                hasher->destroy(hasher);
        
                /* build DER-encoded digestInfo */
                hasher->destroy(hasher);
        
                /* build DER-encoded digestInfo */
-               digestInfo = asn1_wrap(ASN1_SEQUENCE, "cm",
+               digestInfo = asn1_wrap(ASN1_SEQUENCE, "mm",
                                                asn1_algorithmIdentifier(hash_oid),
                                                asn1_simple_object(ASN1_OCTET_STRING, hash)
                                          );
                                                asn1_algorithmIdentifier(hash_oid),
                                                asn1_simple_object(ASN1_OCTET_STRING, hash)
                                          );