MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setParamsRsaVerify

Function setParamsRsaVerify

src/jrd/SysFunction.cpp:792–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790const unsigned RSA_VERIFY_ARG_MAX = 6;
791
792void setParamsRsaVerify(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)
793{
794 fb_assert(argsCount == RSA_VERIFY_ARG_MAX || argsCount == RSA_VERIFY_ARG_MAX - 1);
795
796 setParamVarying(args[RSA_VERIFY_ARG_VALUE], ttype_binary);
797 setParamVarying(args[RSA_VERIFY_ARG_KEY], ttype_binary);
798 setParamVarying(args[RSA_VERIFY_ARG_SIGNATURE], ttype_binary);
799
800 if (args[RSA_VERIFY_ARG_HASH]->dsc_length)
801 args[RSA_VERIFY_ARG_HASH]->makeVarying(args[RSA_VERIFY_ARG_HASH]->getStringLength(), ttype_binary);
802
803 if (args[RSA_VERIFY_ARG_SALTLEN]->dsc_length)
804 args[RSA_VERIFY_ARG_SALTLEN]->makeShort(0);
805
806 if (argsCount == RSA_VERIFY_ARG_MAX)
807 args[RSA_VERIFY_ARG_PKCS_1_5]->makeShort(0);
808}
809
810
811void setParamsRsaPublic(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)

Callers

nothing calls this directly

Calls 4

setParamVaryingFunction · 0.85
makeVaryingMethod · 0.80
getStringLengthMethod · 0.80
makeShortMethod · 0.80

Tested by

no test coverage detected