Home
last modified time | relevance | path

Searched refs:kp (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/ciphers/
H A Dskipjack.c83 tmp = g_func(w1, &kp, skey->skipjack.key); \
89 tmp = g_func(w1, &kp, skey->skipjack.key); \
96 w1 = ig_func(w2, &kp, skey->skipjack.key); \
100 tmp = ig_func(w2, &kp, skey->skipjack.key); \
104 static unsigned g_func(unsigned w, int *kp, const unsigned char *key) in g_func() argument
109 g1 ^= sbox[g2^key[*kp]]; *kp = keystep[*kp]; in g_func()
110 g2 ^= sbox[g1^key[*kp]]; *kp = keystep[*kp]; in g_func()
111 g1 ^= sbox[g2^key[*kp]]; *kp = keystep[*kp]; in g_func()
112 g2 ^= sbox[g1^key[*kp]]; *kp = keystep[*kp]; in g_func()
116 static unsigned ig_func(unsigned w, int *kp, const unsigned char *key) in ig_func() argument
[all …]
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_rsa.c1327 static enum caam_key_type get_caam_key_type(const struct caam_rsa_keypair kp) in get_caam_key_type() argument
1329 switch (kp.format) { in get_caam_key_type()
1331 return kp.d.key_type; in get_caam_key_type()
1333 if (kp.p.key_type == kp.q.key_type && in get_caam_key_type()
1334 kp.q.key_type == kp.d.key_type) in get_caam_key_type()
1335 return kp.p.key_type; in get_caam_key_type()
1339 if (kp.p.key_type == kp.q.key_type && in get_caam_key_type()
1340 kp.q.key_type == kp.dp.key_type && in get_caam_key_type()
1341 kp.dp.key_type == kp.dq.key_type && in get_caam_key_type()
1342 kp.dq.key_type == kp.qp.key_type) in get_caam_key_type()
[all …]
/optee_os/core/drivers/crypto/stm32/
H A Dstm32_pka.h56 struct stm32_pka_point *kp,
H A Dstm32_pka.c1520 struct stm32_pka_point *kp, in stm32_pka_ecc_kp_ret() argument
1543 res = read_eo_data(base + _PKA_RAM_KP_X, kp->x.val, kp->x.size, eo_nbw); in stm32_pka_ecc_kp_ret()
1547 return read_eo_data(base + _PKA_RAM_KP_Y, kp->y.val, kp->y.size, in stm32_pka_ecc_kp_ret()
1553 struct stm32_pka_point *kp, in stm32_pka_ecc_scalar_mul() argument
1560 if (!eo_nbw || !k || !p || !kp) in stm32_pka_ecc_scalar_mul()
1613 res = stm32_pka_ecc_kp_ret(base, kp, eo_nbw); in stm32_pka_ecc_scalar_mul()