Searched refs:scalar (Results 1 - 25 of 101) sorted by relevance

12345

/freebsd-13-stable/sys/contrib/libsodium/test/default/
H A Dscalarmult7.c17 static unsigned char scalar[32]; variable
26 scalar[0] = 1U;
27 ret = crypto_scalarmult_curve25519(out1, scalar, p1);
29 ret = crypto_scalarmult_curve25519(out2, scalar, p2);
/freebsd-13-stable/crypto/openssl/crypto/bn/
H A Dbn_intern.c14 * Determine the modified width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'.
17 * scalar = \sum_j r[j]*2^j
22 signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len) argument
30 if (BN_is_zero(scalar)) {
50 if (BN_is_negative(scalar)) {
54 if (scalar->d == NULL || scalar->top == 0) {
59 len = BN_num_bits(scalar);
63 * BN_num_bits(scalar) + 1)
69 window_val = scalar
[all...]
/freebsd-13-stable/contrib/wpa/src/common/
H A Ddragonfly.h29 struct crypto_bignum *scalar);
H A Ddragonfly.c194 struct crypto_bignum *scalar)
203 crypto_bignum_add(_rand, _mask, scalar) == 0 &&
204 crypto_bignum_mod(scalar, order, scalar) == 0 &&
205 !crypto_bignum_is_zero(scalar) &&
206 !crypto_bignum_is_one(scalar))
213 "dragonfly: Unable to get randomness for own scalar");
191 dragonfly_generate_scalar(const struct crypto_bignum *order, struct crypto_bignum *_rand, struct crypto_bignum *_mask, struct crypto_bignum *scalar) argument
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUArgumentUsageInfo.cpp101 &AMDGPU::SGPR_32RegClass, LLT::scalar(32));
104 &AMDGPU::SGPR_32RegClass, LLT::scalar(32));
107 &AMDGPU::SGPR_32RegClass, LLT::scalar(32));
111 &AMDGPU::SGPR_32RegClass, LLT::scalar(32));
122 &AMDGPU::SGPR_64RegClass, LLT::scalar(64));
125 &AMDGPU::SGPR_64RegClass, LLT::scalar(64));
136 &AMDGPU::VGPR_32RegClass, LLT::scalar(32));
139 &AMDGPU::VGPR_32RegClass, LLT::scalar(32));
142 &AMDGPU::VGPR_32RegClass, LLT::scalar(32));
H A DAMDGPULegalizerInfo.cpp60 return LLT::scalar(Pow2Bits);
127 CoercedTy = LLT::scalar(Size);
196 return EltTy == LLT::scalar(16) || EltTy.getSizeInBits() >= 32;
331 const LLT S1 = LLT::scalar(1);
332 const LLT S16 = LLT::scalar(16);
333 const LLT S32 = LLT::scalar(32);
334 const LLT S64 = LLT::scalar(64);
335 const LLT S128 = LLT::scalar(128);
336 const LLT S256 = LLT::scalar(256);
337 const LLT S512 = LLT::scalar(51
[all...]
H A DAMDGPUPostLegalizerCombiner.cpp49 if (MRI.getType(MI.getOperand(0).getReg()) != LLT::scalar(32))
139 if (Ty == LLT::scalar(32) || Ty == LLT::scalar(16)) {
153 const LLT S32 = LLT::scalar(32);
215 const LLT S32 = LLT::scalar(32);
/freebsd-13-stable/crypto/openssl/crypto/ec/curve448/
H A Dpoint_448.h40 /* The number of bits in a scalar */
43 /* Number of bytes in a serialized scalar. */
71 /* A scalar equal to 1. */
74 /* A scalar equal to 0. */
85 * Read a scalar from wire format or from bytes.
87 * ser (in): Serialized form of a scalar.
91 * C448_SUCCESS: The scalar was correctly encoded.
92 * C448_FAILURE: The scalar was greater than the modulus, and has been reduced
99 * Read a scalar from wire format or from bytes. Reduces mod scalar prim
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Core/
H A DValue.h45 eValueTypeScalar, // raw scalar value
59 eContextTypeRegisterInfo, // RegisterInfo * (can be a scalar or a vector
105 Scalar scalar; local
108 scalar = *(const uint8_t *)bytes;
110 scalar = *(const uint16_t *)bytes;
112 scalar = *(const uint32_t *)bytes;
114 scalar = *(const uint64_t *)bytes;
116 scalar = rhs;
118 return scalar;
123 Value(const Scalar &scalar);
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelType.cpp39 return LLT::scalar(SizeInBits);
56 return LLT::scalar(Ty.getSizeInBits());
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86LegalizerInfo.cpp109 const LLT s1 = LLT::scalar(1);
110 const LLT s8 = LLT::scalar(8);
111 const LLT s16 = LLT::scalar(16);
112 const LLT s32 = LLT::scalar(32);
113 const LLT s64 = LLT::scalar(64);
114 const LLT s128 = LLT::scalar(128);
205 const LLT s1 = LLT::scalar(1);
206 const LLT s8 = LLT::scalar(8);
207 const LLT s16 = LLT::scalar(16);
208 const LLT s32 = LLT::scalar(3
[all...]
/freebsd-13-stable/contrib/wpa/src/eap_common/
H A Deap_pwd_common.c422 struct crypto_bignum *scalar; local
429 /* RFC 5931, 2.8.5.2: 1 < scalar < r */
430 scalar = crypto_bignum_init_set(buf, order_len);
431 if (!scalar || crypto_bignum_is_zero(scalar) ||
432 crypto_bignum_is_one(scalar) ||
433 crypto_bignum_cmp(scalar, order) >= 0) {
434 wpa_printf(MSG_INFO, "EAP-pwd: received scalar is invalid");
435 crypto_bignum_deinit(scalar, 0);
436 scalar
443 eap_pwd_get_rand_mask(EAP_PWD_group *group, struct crypto_bignum *_rand, struct crypto_bignum *_mask, struct crypto_bignum *scalar) argument
[all...]
H A Deap_pwd_common.h75 struct crypto_bignum *scalar);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DLowLevelTypeImpl.h42 /// Get a low-level scalar or aggregate "bag of bits".
43 static LLT scalar(unsigned SizeInBits) { function in class:llvm::LLT
44 assert(SizeInBits > 0 && "invalid scalar size");
79 return scalarOrVector(NumElements, LLT::scalar(ScalarSize));
101 assert(IsVector && "cannot get number of elements on scalar/aggregate");
138 : LLT::scalar(NewEltSize);
141 /// Return a vector or scalar with the same element type and the new number of
148 /// elements if this is a vector, or the bitwidth for scalar/pointers. Does
158 return scalar(getSizeInBits() / Factor);
189 assert(isVector() && "cannot get element type of scalar/aggregat
[all...]
/freebsd-13-stable/crypto/openssl/crypto/ec/
H A Decp_nistp521.c245 /* felem_scalar sets out = in * scalar */
246 static void felem_scalar(felem out, const felem in, limb scalar)
248 out[0] = in[0] * scalar;
249 out[1] = in[1] * scalar;
250 out[2] = in[2] * scalar;
251 out[3] = in[3] * scalar;
252 out[4] = in[4] * scalar;
253 out[5] = in[5] * scalar;
254 out[6] = in[6] * scalar;
255 out[7] = in[7] * scalar;
[all...]
H A Dec_mult.c116 * (scalar * generator)
118 * (scalar * point)
121 * `scalar` cannot be NULL and should be in the range [0,n) otherwise all
135 * input parameters `group`, `r`, `scalar` and `ctx` are not NULL.
140 const BIGNUM *scalar, const EC_POINT *point,
203 * So when we pad the scalar, some timing diff might
215 if (!BN_copy(k, scalar)) {
243 * lambda := scalar + cardinality
244 * k := scalar + 2*cardinality
400 * scalar*generato
139 ec_scalar_mul_ladder(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, const EC_POINT *point, BN_CTX *ctx) argument
403 ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ABI/ARC/
H A DABISysV_arc.cpp376 void SetInteger(Scalar &scalar, uint64_t raw_value, bool is_signed) { argument
379 scalar = static_cast<typename std::make_signed<T>::type>(raw_value);
381 scalar = static_cast<T>(raw_value);
384 bool SetSizedInteger(Scalar &scalar, uint64_t raw_value, uint8_t size_in_bytes, argument
391 SetInteger<uint64_t>(scalar, raw_value, is_signed);
395 SetInteger<uint32_t>(scalar, raw_value, is_signed);
399 SetInteger<uint16_t>(scalar, raw_value, is_signed);
403 SetInteger<uint8_t>(scalar, raw_value, is_signed);
410 bool SetSizedFloat(Scalar &scalar, uint64_t raw_value, uint8_t size_in_bytes) { argument
416 scalar
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Core/
H A DValueObjectChild.cpp119 // Copy the parent scalar value and the scalar value type
175 // Set this object's scalar value to the address of its value by
206 // try to extract the child value from the parent's scalar value
208 Scalar scalar(m_value.GetScalar());
210 scalar.ExtractBitfield(m_bitfield_bit_size,
213 scalar.ExtractBitfield(8 * m_byte_size, 8 * m_byte_offset);
214 m_value.GetScalar() = scalar;
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSIndexPath.cpp189 Scalar scalar((unsigned long long)value.first);
190 v = Value(scalar);
192 Scalar scalar((unsigned int)value.first);
193 v = Value(scalar);
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Expression/
H A DIRMemoryMap.h60 void WriteScalarToMemory(lldb::addr_t process_address, Scalar &scalar,
66 void ReadScalarFromMemory(Scalar &scalar, lldb::addr_t process_address,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMLegalizerInfo.cpp71 const LLT s1 = LLT::scalar(1);
72 const LLT s8 = LLT::scalar(8);
73 const LLT s16 = LLT::scalar(16);
74 const LLT s32 = LLT::scalar(32);
75 const LLT s64 = LLT::scalar(64);
386 Register RetRegs[] = {MRI.createGenericVirtualRegister(LLT::scalar(32)),
422 auto LibcallResult = MRI.createGenericVirtualRegister(LLT::scalar(32));
447 auto Zero = MIRBuilder.buildConstant(LLT::scalar(32), 0);
/freebsd-13-stable/crypto/openssl/include/crypto/
H A Dbn.h22 * Determine the modified width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'.
24 * absolute value less than 2^w satisfying scalar = \sum_j r[j]*2^j where at
29 signed char *bn_compute_wNAF(const BIGNUM *scalar, int w, size_t *ret_len);
/freebsd-13-stable/sys/contrib/openzfs/include/
H A Dzfs_fletcher.h91 zio_cksum_t scalar; member in union:fletcher_4_ctx
/freebsd-13-stable/sys/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c163 .name = "scalar"
214 { "scalar", IMPL_SCALAR }
307 ZIO_SET_CHECKSUM(&ctx->scalar, 0, 0, 0, 0);
313 memcpy(zcp, &ctx->scalar, sizeof (zio_cksum_t));
324 a = ctx->scalar.zc_word[0];
325 b = ctx->scalar.zc_word[1];
326 c = ctx->scalar.zc_word[2];
327 d = ctx->scalar.zc_word[3];
336 ZIO_SET_CHECKSUM(&ctx->scalar, a, b, c, d);
347 a = ctx->scalar
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp37 const LLT s1 = LLT::scalar(1);
38 const LLT s8 = LLT::scalar(8);
39 const LLT s16 = LLT::scalar(16);
40 const LLT s32 = LLT::scalar(32);
41 const LLT s64 = LLT::scalar(64);
42 const LLT s128 = LLT::scalar(128);
43 const LLT s256 = LLT::scalar(256);
44 const LLT s512 = LLT::scalar(512);
363 return false; // Extending to a scalar s128 needs narrowing.
517 // Clamp the big scalar t
[all...]

Completed in 305 milliseconds

12345