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

Function setParamsEncrypt

src/jrd/SysFunction.cpp:720–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718const unsigned CRYPT_ARG_MAX = 7;
719
720void setParamsEncrypt(DataTypeUtilBase*, const SysFunction*, int argsCount, dsc** args)
721{
722 fb_assert(argsCount == CRYPT_ARG_MAX);
723
724 setParamVarying(args[CRYPT_ARG_VALUE], ttype_binary);
725 fb_assert(args[CRYPT_ARG_ALGORITHM]->dsc_address && args[CRYPT_ARG_ALGORITHM]->isText());
726 setParamVarying(args[CRYPT_ARG_KEY], ttype_binary);
727 setParamVarying(args[CRYPT_ARG_CTRTYPE], ttype_ascii, args[CRYPT_ARG_CTRTYPE]->dsc_length > 0);
728
729 if (args[CRYPT_ARG_COUNTER]->dsc_length)
730 args[CRYPT_ARG_COUNTER]->makeInt64(0);
731}
732
733
734const unsigned RSA_CRYPT_ARG_VALUE = 0;

Callers

nothing calls this directly

Calls 3

setParamVaryingFunction · 0.85
isTextMethod · 0.80
makeInt64Method · 0.80

Tested by

no test coverage detected