cardOS: Use information from AlgorithmInfo
cardOS: Use information from AlgorithmInfo

In set_security_env, the algorithmInfo structure (from the TokenInfo file of
PKCS#15) is parsed to see, what algorithm IDs are supported for signature
operations.

Using the information from AlgorithmInfo set in set_security_env when
computing signatures.

Fixed incorrect order of code blocks. If neither a reference to rsa_sig nor to
rsa_pure_sig is found in AlogirthmInfo, boths methods are enabled before (and
not after) trying pure_sig

aobaid/OpenSC,ieugen/OpenSC,velter/OpenSC,frankmorgner/OpenSC,gemini/OpenSC,martinpaljak/OpenSC,fabled/OpenSC,nmav/OpenSC,nmav/OpenSC,tidatida/OpenSC,metsma/OpenSC,kasparsd/opensc-latvia-id,rickyepoderi/OpenSC,kasparsd/opensc-latvia-id,tidatida/OpenSC,fabled/OpenSC,l1k/OpenSC,UIKit0/OpenSC,0x7678/OpenSC,0x7678/myOpenSC,jpki/OpenSC,UIKit0/OpenSC,jpki/OpenSC,hongquan/OpenSC-main,marschap/pkg-opensc,rickyepoderi/OpenSC,dirkx/OpenSC,financeX/OpenSC,dirkx/OpenSC,Jakuje/OpenSC,aobaid/OpenSC,carlhoerberg/OpenSC,LudovicRousseau/OpenSC,tidatida/OpenSC,LudovicRousseau/OpenSC,hhonkanen/OpenSC,adminmt/OpenSC,frankmorgner/OpenSC,0x7678/OpenSC,CardContact/OpenSC,frankmorgner/OpenSC,viktorTarasov/OpenSC-SM,philipWendland/OpenSC,LudovicRousseau/OpenSC,Jakuje/OpenSC,dirkx/OpenSC.tokend,mtrojnar/OpenSC,AktivCo/OpenSC,OpenSC/OpenSC,nmav/OpenSC,mouse07410/OpenSC,AktivCo/OpenSC,velter/OpenSC,l1k/OpenSC,AktivCo/OpenSC,mtrojnar/OpenSC,ieugen/OpenSC,ieugen/OpenSC,OpenSC/OpenSC,dirkx/OpenSC.tokend,mouse07410/OpenSC,kasparsd/opensc-latvia-id,velter/OpenSC,dirkx/OpenSC,marschap/pkg-opensc,mouse07410/OpenSC,rickyepoderi/OpenSC,UIKit0/OpenSC,carlhoerberg/OpenSC,marschap/pkg-opensc,financeX/OpenSC,0x7678/myOpenSC,hongquan/OpenSC-main,dengert/OpenSC,0x7678/myOpenSC,Jakuje/OpenSC,mtrojnar/OpenSC,dirkx/OpenSC.tokend,germanblanco/OpenSC,CardContact/OpenSC,philipWendland/OpenSC,carlhoerberg/OpenSC,gemini/OpenSC,fabled/OpenSC,carlhoerberg/OpenSC,adminmt/OpenSC,kasparsd/opensc-latvia-id,dirkx/OpenSC.tokend,dirkx/OpenSC.tokend,velter/OpenSC,ieugen/OpenSC,marschap/pkg-opensc,hhonkanen/OpenSC,OpenSC/OpenSC,martinpaljak/OpenSC,fabled/OpenSC,dirkx/OpenSC.tokend,martinpaljak/OpenSC,frankmorgner/OpenSC,viktorTarasov/OpenSC-SM,UIKit0/OpenSC,metsma/OpenSC,financeX/OpenSC,dengert/OpenSC,Jakuje/OpenSC,germanblanco/OpenSC,financeX/OpenSC,0x7678/OpenSC,CardContact/OpenSC,adminmt/OpenSC,0x7678/myOpenSC,jpki/OpenSC,dengert/OpenSC,l1k/OpenSC,metsma/OpenSC,hhonkanen/OpenSC,aobaid/OpenSC,gemini/OpenSC,ieugen/OpenSC,viktorTarasov/OpenSC-SM,germanblanco/OpenSC,0x7678/myOpenSC,philipWendland/OpenSC,0x7678/OpenSC,hongquan/OpenSC-main,aobaid/OpenSC,adminmt/OpenSC,dirkx/OpenSC,carlhoerberg/OpenSC,financeX/OpenSC,dirkx/OpenSC,tidatida/OpenSC