| /freebsd/crypto/openssl/crypto/rsa/ |
| H A D | rsa_sp800_56b_check.c | 178 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() 208 && (BN_cmp(rsa->d, lcm) < 0) in ossl_rsa_check_private_exponent() 210 && BN_mod_mul(r, rsa->e, rsa->d, lcm, ctx) in ossl_rsa_check_private_exponent() 216 BN_clear(lcm); in ossl_rsa_check_private_exponent() 267 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1, in ossl_rsa_get_lcm() argument 274 && BN_div(lcm, NULL, p1q1, gcd, ctx); /* LCM((p-1, q-1)) */ in ossl_rsa_get_lcm()
|
| H A D | rsa_sp800_56b_gen.c | 241 BIGNUM *p1, *q1, *lcm, *p1q1, *gcd; in ossl_rsa_sp800_56b_derive_params_from_pq() local 245 lcm = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq() 253 BN_set_flags(lcm, BN_FLG_CONSTTIME); in ossl_rsa_sp800_56b_derive_params_from_pq() 258 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() 277 if (BN_mod_inverse(rsa->d, e, lcm, ctx) == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 339 BN_clear(lcm); in ossl_rsa_sp800_56b_derive_params_from_pq()
|
| H A D | rsa_local.h | 173 BIGNUM *lcm, BIGNUM *gcd, BIGNUM *p1, BIGNUM *q1,
|
| /freebsd/crypto/krb5/src/lib/crypto/krb/ |
| H A D | nfold.c | 50 int a,b,c,lcm; in krb5int_nfold() local 70 lcm = outbits*inbits/a; in krb5int_nfold() 79 for (i=lcm-1; i>=0; i--) { in krb5int_nfold()
|
| /freebsd/contrib/bc/tests/bc/ |
| H A D | lib2_gcd.txt | 6 lcm(40, 4096) 7 lcm(555, 55)
|
| /freebsd/contrib/llvm-project/libcxx/modules/std/ |
| H A D | numeric.cppm | |
| H A D | numeric.inc | 56 // [numeric.ops.lcm], least common multiple 57 using std::lcm;
|
| /freebsd/crypto/openssl/providers/implementations/kdfs/ |
| H A D | krb5kdf.c | 288 unsigned int tmp, gcd, remainder, lcm, carry; in n_fold() local 306 lcm = blocksize * constant_len / gcd; in n_fold() 313 for (l = lcm - 1; l >= 0; l--) { in n_fold()
|
| /freebsd/sys/kgssapi/krb5/ |
| H A D | kcrypto.c | 95 lcm(size_t a, size_t b) in lcm() function 166 tmplen = lcm(inlen, outlen); in krb5_n_fold()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_utils.h | 61 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 D | linux_socket.c | 1837 struct l_cmsghdr *lcm = NULL; in linux_recvmsg_common() local 1908 lcm = malloc(L_CMSG_HDRSZ, M_LINUX, M_WAITOK | M_ZERO); in linux_recvmsg_common() 1914 lcm->cmsg_type = bsd_to_linux_cmsg_type(p, cm->cmsg_type, in linux_recvmsg_common() 1916 lcm->cmsg_level = bsd_to_linux_sockopt_level(cm->cmsg_level); in linux_recvmsg_common() 1918 if (lcm->cmsg_type == -1 || in linux_recvmsg_common() 1919 lcm->cmsg_level == -1) { in linux_recvmsg_common() 1935 lcm->cmsg_type, &datalen, &data, &udata); in linux_recvmsg_common() 1939 lcm->cmsg_type, flags, &datalen, &data, &udata); in linux_recvmsg_common() 1959 lcm->cmsg_len = LINUX_CMSG_LEN(datalen); in linux_recvmsg_common() 1960 error = copyout(lcm, outbuf, L_CMSG_HDRSZ); in linux_recvmsg_common() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
| H A D | gcd_lcm.h | 108 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 D | SlowDynamicAPInt.h | 102 LLVM_ABI SlowDynamicAPInt lcm(const SlowDynamicAPInt &A,
|
| H A D | DynamicAPInt.h | 188 friend DynamicAPInt lcm(const DynamicAPInt &A, const DynamicAPInt &B); 413 LLVM_ATTRIBUTE_ALWAYS_INLINE DynamicAPInt lcm(const DynamicAPInt &A, in lcm() function
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | TargetSchedule.cpp | 60 ResourceLCM = std::lcm(ResourceLCM, NumUnits); in init()
|
| /freebsd/sys/geom/shsec/ |
| H A D | g_shsec.c | 104 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 D | cert-threecolumn.pem | 107 lcm
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SlowDynamicAPInt.cpp | 226 SlowDynamicAPInt llvm::detail::lcm(const SlowDynamicAPInt &A, in lcm() function in llvm::detail
|
| /freebsd/sys/contrib/device-tree/src/arm64/mediatek/ |
| H A D | mt6795-sony-xperia-m5.dts | 247 disp_rst_pins: lcm-pins {
|
| H A D | mt8365-evk.dts | 139 vsys_lcm_reg: regulator-vsys-lcm {
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | numeric | 135 constexpr common_type_t<M,N> lcm(M m, N n); // C++17
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | numeric | 135 constexpr common_type_t<M,N> lcm(M m, N n); // C++17
|
| /freebsd/sys/geom/stripe/ |
| H A D | g_stripe.c | 108 lcm(u_int a, u_int b) in lcm() function 697 sectorsize = lcm(sectorsize, dp->sectorsize); in g_stripe_check_and_run()
|
| /freebsd/sys/geom/concat/ |
| H A D | g_concat.c | 91 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 D | Utils.cpp | 1210 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getKnownMinValue(), in getLCMType() 1230 unsigned LCM = std::lcm(EltTy.getSizeInBits().getFixedValue() * in getLCMType() 1240 unsigned LCM = std::lcm(OrigTy.getSizeInBits().getFixedValue(), in getLCMType()
|