[Tizen] Check signature value using xmlsec1 library

Based on API provided by xmlsec1 library, signature value and reference are checked.
I'm afraid this is wrong because you return a pointer on stack. Am i wrong?