/openbmc/linux/net/netfilter/ |
H A D | nft_numgen.c | 19 u32 modulus; member 30 nval = (oval + 1 < priv->modulus) ? oval + 1 : 0; in nft_ng_inc_gen() 62 priv->modulus = ntohl(nla_get_be32(tb[NFTA_NG_MODULUS])); in nft_ng_inc_init() 63 if (priv->modulus == 0) in nft_ng_inc_init() 66 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_ng_inc_init() 73 atomic_set(priv->counter, priv->modulus - 1); in nft_ng_inc_init() 98 u32 modulus, enum nft_ng_types type, u32 offset) in nft_ng_dump() argument 102 if (nla_put_be32(skb, NFTA_NG_MODULUS, htonl(modulus))) in nft_ng_dump() 120 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump() 134 u32 modulus; member [all …]
|
H A D | nft_hash.c | 21 u32 modulus; member 35 priv->modulus); in nft_jhash_eval() 42 u32 modulus; member 54 h = reciprocal_scale(__skb_get_hash_symmetric(skb), priv->modulus); in nft_symhash_eval() 98 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS])); in nft_jhash_init() 99 if (priv->modulus < 1) in nft_jhash_init() 102 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_jhash_init() 129 priv->modulus = ntohl(nla_get_be32(tb[NFTA_HASH_MODULUS])); in nft_symhash_init() 130 if (priv->modulus < 1) in nft_symhash_init() 133 if (priv->offset + priv->modulus - 1 < priv->offset) in nft_symhash_init() [all …]
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | caampkc.h | 22 * n the RSA modulus 27 * p the first prime factor of the RSA modulus n 28 * q the second prime factor of the RSA modulus n 33 * p the first prime factor of the RSA modulus n 34 * q the second prime factor of the RSA modulus n 50 * @n : RSA modulus raw byte stream 53 * @p : RSA prime factor p of RSA modulus n 54 * @q : RSA prime factor q of RSA modulus n 62 * @n_sz : length in bytes of RSA modulus n 65 * @p_sz : length in bytes of RSA prime factor p of RSA modulus n [all …]
|
H A D | pdb.h | 504 * @n_dma: dma address of RSA modulus 524 * @n_dma: dma address of RSA modulus 543 * @p_dma : dma address of RSA prime factor p of RSA modulus n 544 * @q_dma : dma address of RSA prime factor q of RSA modulus n 549 * @p_q_len : length in bytes of first two prime factors of the RSA modulus n 568 * the RSA modulus. 573 * @p_dma : dma address of RSA prime factor p of RSA modulus n 574 * @q_dma : dma address of RSA prime factor q of RSA modulus n 581 * @p_q_len : length in bytes of first two prime factors of the RSA modulus n
|
/openbmc/u-boot/lib/rsa/ |
H A D | rsa-mod-exp.c | 31 * subtract_modulus() - subtract modulus from the given value 33 * @key: Key containing modulus to subtract 34 * @num: Number to subtract modulus from, as little endian word array 42 acc += (uint64_t)num[i] - key->modulus[i]; in subtract_modulus() 49 * greater_equal_modulus() - check if a value is >= modulus 51 * @key: Key containing modulus to check 52 * @num: Number to check against modulus, as little endian word array 53 * @return 0 if num < modulus, 1 if num >= modulus 61 if (num[i] < key->modulus[i]) in greater_equal_modulus() 63 if (num[i] > key->modulus[i]) in greater_equal_modulus() [all …]
|
/openbmc/u-boot/include/u-boot/ |
H A D | rsa-mod-exp.h | 15 * The struct has pointers to modulus (Typically called N), 22 const void *modulus; /* modulus as byte array */ member 24 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */ 32 * Operation: out[] = sig ^ exponent % modulus 36 * @node: Node with RSA key elements like modulus, exponent, R^2, n0inv 60 * Operation: out[] = sig ^ exponent % modulus 65 * @node: Node with RSA key elements like modulus, exponent,
|
H A D | rsa.h | 20 * An RSA public key consists of a modulus (typically called N), the inverse 25 uint len; /* len of modulus[] in number of uint32_t */ 26 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */ 27 uint32_t *modulus; /* modulus as little endian array */ member
|
/openbmc/linux/arch/alpha/lib/ |
H A D | divide.S | 39 * $2 - modulus/quotient 45 * $27 - quotient/modulus 65 #define modulus $2 macro 73 #define modulus $27 macro 106 bis $24,$24,modulus 111 LONGIFY(modulus) 125 1: cmpult divisor,modulus,compare 130 1: cmpult divisor,modulus,compare 141 cmpule divisor,modulus,compare 142 subq modulus,divisor,tmp1 [all …]
|
H A D | ev6-divide.S | 39 * $2 - modulus/quotient 45 * $27 - quotient/modulus 75 #define modulus $2 macro 83 #define modulus $27 macro 117 bis $24,$24,modulus # E : 123 LONGIFY(modulus) # E : 144 1: cmpult divisor,modulus,compare # E : 149 1: cmpult divisor,modulus,compare # E : 172 cmpule divisor,modulus,compare # E : 173 subq modulus,divisor,tmp1 # E : [all …]
|
/openbmc/linux/drivers/s390/crypto/ |
H A D | zcrypt_msgtype50.c | 31 /* >= CEX3A: 512 bit modulus, (max outputdatalength) + type80_hdr */ 67 /* Mod-Exp, with a small modulus */ 73 unsigned char modulus[128]; member 77 /* Mod-Exp, with a large modulus */ 83 unsigned char modulus[256]; member 87 /* Mod-Exp, with a larger modulus */ 93 unsigned char modulus[512]; member 97 /* CRT, with a small modulus */ 110 /* CRT, with a large modulus */ 123 /* CRT, with a larger modulus */ [all …]
|
H A D | zcrypt_cca_key.h | 40 * In a private key, the modulus doesn't appear in the public 62 * and modulus, in that order, where pad_len is the modulo 8 134 /* modulus */ in zcrypt_type6_mex_key_en() 228 * In a private key, the modulus doesn't appear in the public in zcrypt_type6_crt_key()
|
/openbmc/u-boot/board/xilinx/zynq/ |
H A D | cmds.c | 46 uint len; /* Length of modulus[] in number of u32 */ 47 u32 n0inv; /* -1 / modulus[0] mod 2^32 */ 48 u32 *modulus; /* modulus as little endian array */ member 85 * Calculate the inverse(-1 / modulus[0] mod 2^32 ) for the PPK 89 u32 modulus = public_key.modulus[0]; in zynq_calc_inv() local 93 inverse = modulus & BIT(0); in zynq_calc_inv() 96 inverse *= 2 - modulus * inverse; in zynq_calc_inv() 223 public_key.modulus = (u32 *)ppkmodular; in zynq_authenticate_part() 240 public_key.modulus = (u32 *)spk_modular; in zynq_authenticate_part()
|
/openbmc/linux/net/ax25/ |
H A D | ax25_std_in.c | 43 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 49 ax25->modulus = AX25_EMODULUS; in ax25_std_state1_machine() 82 if (ax25->modulus == AX25_MODULUS) { in ax25_std_state1_machine() 85 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 149 ax25->modulus = AX25_MODULUS; in ax25_std_state3_machine() 152 ax25->modulus = AX25_EMODULUS; in ax25_std_state3_machine() 224 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state3_machine() 274 ax25->modulus = AX25_MODULUS; in ax25_std_state4_machine() 277 ax25->modulus = AX25_EMODULUS; in ax25_std_state4_machine() 379 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state4_machine()
|
H A D | ax25_ds_in.c | 36 ax25->modulus = AX25_MODULUS; in ax25_ds_state1_machine() 42 ax25->modulus = AX25_EMODULUS; in ax25_ds_state1_machine() 153 ax25->modulus = AX25_MODULUS; in ax25_ds_state3_machine() 156 ax25->modulus = AX25_EMODULUS; in ax25_ds_state3_machine() 239 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_ds_state3_machine()
|
H A D | ax25_std_timer.c | 125 if (ax25->modulus == AX25_MODULUS) { in ax25_std_t1timer_expiry() 129 ax25->modulus = AX25_MODULUS; in ax25_std_t1timer_expiry() 136 if (ax25->modulus == AX25_MODULUS) in ax25_std_t1timer_expiry()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_uc_fw_abi.h | 20 * | CSS header | uCode | RSA key | modulus | exponent | 28 * The firmware may or may not have modulus key and exponent data. The header, 31 * In the case that modulus and exponent are not present in fw, a.k.a truncated 40 * 4. Modulus and exponent key are not required by driver. They may not appear 53 * key, modulus key and exponent data.
|
/openbmc/qemu/tests/tcg/alpha/system/ |
H A D | boot.S | 228 #define modulus $28 macro 230 mov $24, modulus 236 /* Shift left until divisor >= modulus. */ 237 1: cmpult divisor, modulus, compare 245 cmpule divisor, modulus, compare 246 subq modulus, divisor, tmp1 249 cmovne compare, tmp1, modulus 266 #undef modulus
|
/openbmc/linux/net/lapb/ |
H A D | lapb_subr.c | 49 int modulus; in lapb_frames_acked() local 51 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_frames_acked() 60 lapb->va = (lapb->va + 1) % modulus; in lapb_frames_acked() 89 int modulus; in lapb_validate_nr() local 91 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_validate_nr() 96 vc = (vc + 1) % modulus; in lapb_validate_nr()
|
H A D | lapb_out.c | 69 unsigned short modulus, start, end; in lapb_kick() local 71 modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; in lapb_kick() 73 end = (lapb->va + lapb->window) % modulus; in lapb_kick() 99 lapb->vs = (lapb->vs + 1) % modulus; in lapb_kick()
|
/openbmc/u-boot/include/ |
H A D | fsl_secboot_err.h | 81 "Public key Modulus most significant bit not set" }, 83 "Public key Modulus in header not odd" }, 85 "Signature not less than modulus" },
|
/openbmc/u-boot/drivers/crypto/fsl/ |
H A D | rsa_caam.h | 19 const uint8_t *n; /* modulus as byte array */ 23 uint8_t *b; /* Result exp. modulus in number of bytes */
|
/openbmc/linux/Documentation/ABI/stable/ |
H A D | sysfs-class-tpm | 128 Modulus length: 256 129 Modulus: 158 Modulus Length: 256 (bytes) 159 Modulus: The 256 byte Endorsement Key modulus
|
/openbmc/linux/net/x25/ |
H A D | x25_out.c | 140 int modulus; in x25_kick() local 162 modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS; in x25_kick() 165 end = (x25->va + x25->facilities.winsize_out) % modulus; in x25_kick() 192 x25->vs = (x25->vs + 1) % modulus; in x25_kick()
|
/openbmc/linux/include/crypto/internal/ |
H A D | rsa.h | 14 * @n : RSA modulus raw byte stream 22 * @n_sz : length in bytes of RSA modulus n
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-net-cdc_ncm | 126 NDP alignment modulus for NTBs on the IN pipe. Shall 141 OUT NTB Datagram alignment modulus 158 NDP alignment modulus for use in NTBs on the OUT
|