Home
last modified time | relevance | path

Searched refs:lcm (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/diff/lib/
H A Dcmpbuf.c131 size_t lcm, m, n, q, r; in buffer_lcm() local
145 lcm = q * b; in buffer_lcm()
146 return lcm <= lcm_max && lcm / b == q ? lcm : a; in buffer_lcm()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c178 BIGNUM *r, *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_check_private_exponent() local
188 lcm = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
195 BN_set_flags(lcm, BN_FLG_CONSTTIME); in ossl_rsa_check_private_exponent()
204 && (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, in ossl_rsa_check_private_exponent()
207 && (BN_cmp(rsa->d, lcm) < 0) in ossl_rsa_check_private_exponent()
209 && BN_mod_mul(r, rsa->e, rsa->d, lcm, ctx) in ossl_rsa_check_private_exponent()
215 BN_clear(lcm); in ossl_rsa_check_private_exponent()
266 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1, in ossl_rsa_get_lcm() argument
273 && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */ in ossl_rsa_get_lcm()
H A Drsa_sp800_56b_gen.c236 BIGNUM *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_sp800_56b_derive_params_from_pq() local
241 lcm = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
249 BN_set_flags(lcm, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq()
254 if (ossl_rsa_get_lcm(ctx, rsa->p, rsa->q, lcm, gcd, p1, q1, p1q1) != 1) in ossl_rsa_sp800_56b_derive_params_from_pq()
269 if (BN_mod_inverse(rsa->d, e, lcm, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq()
330 BN_clear(lcm); in ossl_rsa_sp800_56b_derive_params_from_pq()
H A Drsa_local.h169 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dnumeric.cppm
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c268 unsigned int tmp, gcd, remainder, lcm, carry; in n_fold() local
286 lcm = blocksize * constant_len / gcd; in n_fold()
293 for (l = lcm - 1; l >= 0; l--) { in n_fold()
/freebsd/sys/kgssapi/krb5/
H A Dkcrypto.c95 lcm(size_t a, size_t b) in lcm() function
166 tmplen = lcm(inlen, outlen); in krb5_n_fold()
/freebsd/contrib/bc/tests/bc/
H A Dlib2.txt102 lcm(40, 4096)
103 lcm(555, 55)
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_utils.h61 constexpr size_t lcm(size_t a, size_t b) { return a * b / gcd(a, b); } in lcm() function
/freebsd/sys/compat/linux/
H A Dlinux_socket.c1779 struct l_cmsghdr *lcm = NULL; in linux_recvmsg_common() local
1850 lcm = malloc(L_CMSG_HDRSZ, M_LINUX, M_WAITOK | M_ZERO); in linux_recvmsg_common()
1856 lcm->cmsg_type = bsd_to_linux_cmsg_type(p, cm->cmsg_type, in linux_recvmsg_common()
1858 lcm->cmsg_level = bsd_to_linux_sockopt_level(cm->cmsg_level); in linux_recvmsg_common()
1860 if (lcm->cmsg_type == -1 || in linux_recvmsg_common()
1877 lcm->cmsg_type, &datalen, &data, &udata); in linux_recvmsg_common()
1881 lcm->cmsg_type, flags, &datalen, &data, &udata); in linux_recvmsg_common()
1901 lcm->cmsg_len = LINUX_CMSG_LEN(datalen); in linux_recvmsg_common()
1902 error = copyout(lcm, outbuf, L_CMSG_HDRSZ); in linux_recvmsg_common()
1931 free(lcm, M_LINUX); in linux_recvmsg_common()
/freebsd/contrib/llvm-project/libcxx/include/__numeric/
H A Dgcd_lcm.h110 constexpr _LIBCPP_HIDE_FROM_ABI common_type_t<_Tp, _Up> lcm(_Tp __m, _Up __n) {
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSlowDynamicAPInt.h97 SlowDynamicAPInt lcm(const SlowDynamicAPInt &A, const SlowDynamicAPInt &B);
H A DDynamicAPInt.h176 friend DynamicAPInt lcm(const DynamicAPInt &A, const DynamicAPInt &B);
398 LLVM_ATTRIBUTE_ALWAYS_INLINE DynamicAPInt lcm(const DynamicAPInt &A, in lcm() function
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetSchedule.cpp63 ResourceLCM = std::lcm(ResourceLCM, NumUnits); in init()
/freebsd/sys/geom/shsec/
H A Dg_shsec.c104 lcm(u_int a, u_int b) in lcm() function
420 sectorsize = lcm(sectorsize, in g_shsec_check_and_run()
/freebsd/crypto/openssl/test/recipes/04-test_pem_reading_data/
H A Dcert-threecolumn.pem107 lcm
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSlowDynamicAPInt.cpp226 SlowDynamicAPInt detail::lcm(const SlowDynamicAPInt &A, in lcm() function in detail
/freebsd/contrib/llvm-project/libcxx/include/
H A Dnumeric135 constexpr common_type_t<M,N> lcm(M m, N n); // C++17
/freebsd/sys/geom/stripe/
H A Dg_stripe.c108 lcm(u_int a, u_int b) in lcm() function
699 sectorsize = lcm(sectorsize, dp->sectorsize); in g_stripe_check_and_run()
/freebsd/sys/geom/concat/
H A Dg_concat.c91 lcm(u_int a, u_int b) in lcm() function
475 sectorsize = lcm(sectorsize, dp->sectorsize); in g_concat_check_and_run()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1192 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getKnownMinValue(), in getLCMType()
1212 unsigned LCM = std::lcm(EltTy.getSizeInBits().getFixedValue() * in getLCMType()
1222 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getFixedValue(), in getLCMType()
/freebsd/sys/contrib/device-tree/src/arm64/qcom/
H A Dsc7180-acer-aspire1.dts940 reg_lcm_en_default: reg-lcm-en-deault-state {
/freebsd/contrib/bc/gen/
H A Dlib2.bc200 define lcm(a,b){
/freebsd/contrib/bc/manuals/
H A Dalgorithms.md357 This is implemented in the function `lcm(a,b)`.
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c620 const ZSTD_literalCompressionMode_e lcm = (ZSTD_literalCompressionMode_e)value; in ZSTD_CCtxParams_setParameter() local
621 BOUNDCHECK(ZSTD_c_literalCompressionMode, lcm); in ZSTD_CCtxParams_setParameter()
622 CCtxParams->literalCompressionMode = lcm; in ZSTD_CCtxParams_setParameter()

12