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

Function setParamsRsaSign

src/jrd/SysFunction.cpp:766–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764const unsigned RSA_SIGN_ARG_MAX = 5;
765
766void setParamsRsaSign(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)
767{
768 fb_assert(argsCount == RSA_SIGN_ARG_MAX || argsCount == RSA_SIGN_ARG_MAX - 1);
769
770 setParamVarying(args[RSA_SIGN_ARG_VALUE], ttype_binary);
771 setParamVarying(args[RSA_SIGN_ARG_KEY], ttype_binary);
772
773 if (args[RSA_SIGN_ARG_HASH]->dsc_length)
774 args[RSA_SIGN_ARG_HASH]->makeVarying(args[RSA_SIGN_ARG_HASH]->getStringLength(), ttype_binary);
775
776 if (args[RSA_SIGN_ARG_SALTLEN]->dsc_length)
777 args[RSA_SIGN_ARG_SALTLEN]->makeShort(0);
778
779 if (argsCount == RSA_SIGN_ARG_MAX)
780 args[RSA_SIGN_ARG_PKCS_1_5]->makeShort(0);
781}
782
783
784const unsigned RSA_VERIFY_ARG_VALUE = 0;

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