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

Function setParamsRsaEncrypt

src/jrd/SysFunction.cpp:741–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739const unsigned RSA_CRYPT_ARG_MAX = 5;
740
741void setParamsRsaEncrypt(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)
742{
743 fb_assert(argsCount == RSA_CRYPT_ARG_MAX || argsCount == RSA_CRYPT_ARG_MAX - 1);
744
745 setParamVarying(args[RSA_CRYPT_ARG_VALUE], ttype_binary);
746 setParamVarying(args[RSA_CRYPT_ARG_KEY], ttype_binary);
747
748 if (args[RSA_CRYPT_ARG_LPARAM]->dsc_length)
749 args[RSA_CRYPT_ARG_LPARAM]->makeVarying(args[RSA_CRYPT_ARG_LPARAM]->getStringLength(), ttype_binary);
750
751 if (args[RSA_CRYPT_ARG_HASH]->dsc_length)
752 args[RSA_CRYPT_ARG_HASH]->makeVarying(args[RSA_CRYPT_ARG_HASH]->getStringLength(), ttype_binary);
753
754 if (argsCount == RSA_CRYPT_ARG_MAX)
755 args[RSA_CRYPT_ARG_PKCS_1_5]->makeShort(0);
756}
757
758
759const unsigned RSA_SIGN_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