Home
last modified time | relevance | path

Searched refs:algtype (Results 1 - 25 of 30) sorted by relevance

12

/third_party/ltp/lib/
H A Dtst_af_alg.c52 const char *algtype, const char *algname) in init_sockaddr_alg()
58 strncpy((char *)addr->salg_type, algtype, sizeof(addr->salg_type)); in init_sockaddr_alg()
60 tst_brk(TBROK, "algorithm type too long: '%s'", algtype); in init_sockaddr_alg()
67 void tst_alg_bind(int algfd, const char *algtype, const char *algname) in tst_alg_bind() argument
71 init_sockaddr_alg(&addr, algtype, algname); in tst_alg_bind()
76 int tst_try_alg(const char *algtype, const char *algname) in tst_try_alg() argument
85 init_sockaddr_alg(&addr, algtype, algname); in tst_try_alg()
96 bool tst_have_alg(const char *algtype, const char *algname) in tst_have_alg() argument
100 ret = tst_try_alg(algtype, algname); in tst_have_alg()
107 algtype, algnam in tst_have_alg()
51 init_sockaddr_alg(struct sockaddr_alg *addr, const char *algtype, const char *algname) init_sockaddr_alg() argument
126 tst_require_alg(const char *algtype, const char *algname) tst_require_alg() argument
167 tst_alg_setup(const char *algtype, const char *algname, const uint8_t *key, unsigned int keylen) tst_alg_setup() argument
180 tst_alg_setup_reqfd(const char *algtype, const char *algname, const uint8_t *key, unsigned int keylen) tst_alg_setup_reqfd() argument
[all...]
/third_party/ltp/include/
H A Dtst_af_alg.h47 * @param algtype The type of algorithm, such as "hash" or "skcipher"
56 void tst_alg_bind(int algfd, const char *algtype, const char *algname);
61 * @param algtype The type of algorithm, such as "hash" or "skcipher"
66 int tst_try_alg(const char *algtype, const char *algname);
71 * @param algtype The type of algorithm, such as "hash" or "skcipher"
78 bool tst_have_alg(const char *algtype, const char *algname);
83 * @param algtype The type of algorithm, such as "hash" or "skcipher"
89 void tst_require_alg(const char *algtype, const char *algname);
122 * @param algtype The type of algorithm, such as "hash" or "skcipher"
134 int tst_alg_setup(const char *algtype, cons
[all...]
/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamalg_desc.c101 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_encap()
160 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_decap()
298 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
393 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
459 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
462 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_aead_decap()
556 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
591 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
655 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINA in cnstr_shdsc_gcm_encap()
[all...]
H A Dcaamhash_desc.c31 u32 op = adata->algtype; in cnstr_shdsc_ahash()
101 if (is_xcbc_aes(adata->algtype)) in cnstr_shdsc_sk_hash()
117 append_operation(desc, adata->algtype | state | OP_ALG_ENCRYPT); in cnstr_shdsc_sk_hash()
136 if (is_xcbc_aes(adata->algtype) && state == OP_ALG_AS_INIT) in cnstr_shdsc_sk_hash()
H A Derror.h24 static inline bool is_mdha(u32 algtype) in is_mdha() argument
26 return (algtype & OP_ALG_ALGSEL_MASK & ~OP_ALG_ALGSEL_SUBMASK) == in is_mdha()
H A Dcaamhash_desc.h18 static inline bool is_xcbc_aes(u32 algtype) in is_xcbc_aes() argument
20 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_xcbc_aes()
H A Dkey_gen.c54 adata->keylen = split_key_len(adata->algtype & OP_ALG_ALGSEL_MASK); in gen_split_key()
55 adata->keylen_pad = split_key_pad_len(adata->algtype & in gen_split_key()
85 append_operation(desc, (adata->algtype & OP_ALG_ALGSEL_MASK) | in gen_split_key()
H A Dcaamhash.c133 static inline bool is_cmac_aes(u32 algtype) in is_cmac_aes() argument
135 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_cmac_aes()
384 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
451 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
835 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_ctx()
836 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
1211 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_no_ctx()
1212 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
1408 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_first()
1409 is_cmac_aes(ctx->adata.algtype)) in ahash_update_first()
[all...]
H A Ddesc_constr.h495 * @algtype: algorithm selector; for valid values, see documentation of the
505 u32 algtype; member
569 protid = (adata->algtype & OP_ALG_ALGSEL_SUBMASK) | in append_proto_dkp()
H A Dcaamalg_qi2.c181 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
301 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
1578 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_cra_init()
1579 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_cra_init()
3241 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
3325 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
4589 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4591 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()
H A Dcaamalg_qi.c90 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
219 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
2477 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_init_common()
2478 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()
/kernel/linux/linux-6.6/drivers/crypto/caam/
H A Dcaamalg_desc.c101 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_encap()
160 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_null_decap()
298 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap()
393 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
459 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_decap()
462 append_dec_op1(desc, cdata->algtype); in cnstr_shdsc_aead_decap()
556 append_operation(desc, adata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
591 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_givencap()
655 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINA in cnstr_shdsc_gcm_encap()
[all...]
H A Dcaamhash_desc.c31 u32 op = adata->algtype; in cnstr_shdsc_ahash()
101 if (is_xcbc_aes(adata->algtype)) in cnstr_shdsc_sk_hash()
117 append_operation(desc, adata->algtype | state | OP_ALG_ENCRYPT); in cnstr_shdsc_sk_hash()
136 if (is_xcbc_aes(adata->algtype) && state == OP_ALG_AS_INIT) in cnstr_shdsc_sk_hash()
H A Derror.h24 static inline bool is_mdha(u32 algtype) in is_mdha() argument
26 return (algtype & OP_ALG_ALGSEL_MASK & ~OP_ALG_ALGSEL_SUBMASK) == in is_mdha()
H A Dcaamhash_desc.h18 static inline bool is_xcbc_aes(u32 algtype) in is_xcbc_aes() argument
20 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_xcbc_aes()
H A Dkey_gen.c54 adata->keylen = split_key_len(adata->algtype & OP_ALG_ALGSEL_MASK); in gen_split_key()
55 adata->keylen_pad = split_key_pad_len(adata->algtype & in gen_split_key()
85 append_operation(desc, (adata->algtype & OP_ALG_ALGSEL_MASK) | in gen_split_key()
H A Dcaamhash.c138 static inline bool is_cmac_aes(u32 algtype) in is_cmac_aes() argument
140 return (algtype & (OP_ALG_ALGSEL_MASK | OP_ALG_AAI_MASK)) == in is_cmac_aes()
387 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
460 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
842 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_ctx()
843 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
1218 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_no_ctx()
1219 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
1415 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_first()
1416 is_cmac_aes(ctx->adata.algtype)) in ahash_update_first()
[all...]
H A Ddesc_constr.h496 * @algtype: algorithm selector; for valid values, see documentation of the
506 u32 algtype; member
570 protid = (adata->algtype & OP_ALG_ALGSEL_SUBMASK) | in append_proto_dkp()
H A Dcaamalg_qi2.c186 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
306 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
1583 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_cra_init()
1584 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_cra_init()
3248 append_operation(desc, ctx->adata.algtype | OP_ALG_ENCRYPT | in hash_digest_key()
3338 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in ahash_setkey()
4602 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam_hash->alg_type; in caam_hash_cra_init()
4604 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()
H A Dcaamalg_qi.c95 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
224 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
2493 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_init_common()
2494 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()
/kernel/linux/linux-5.10/include/trace/events/
H A Df2fs.h1730 unsigned int cluster_size, unsigned char algtype),
1732 TP_ARGS(inode, cluster_idx, cluster_size, algtype),
1739 __field(unsigned int, algtype)
1747 __entry->algtype = algtype;
1755 show_compress_algorithm(__entry->algtype))
1792 unsigned int cluster_size, unsigned char algtype),
1794 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
1800 unsigned int cluster_size, unsigned char algtype),
1802 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Df2fs.h1869 unsigned int cluster_size, unsigned char algtype),
1871 TP_ARGS(inode, cluster_idx, cluster_size, algtype),
1878 __field(unsigned int, algtype)
1886 __entry->algtype = algtype;
1894 show_compress_algorithm(__entry->algtype))
1931 unsigned int cluster_size, unsigned char algtype),
1933 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
1939 unsigned int cluster_size, unsigned char algtype),
1941 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
[all...]
/kernel/linux/linux-5.10/drivers/s390/crypto/
H A Dzcrypt_ccamisc.h85 u8 algtype; /* 0x02 for AES cipher */ member
/kernel/linux/linux-6.6/drivers/s390/crypto/
H A Dzcrypt_ccamisc.h85 u8 algtype; /* 0x02 for AES cipher */ member
/kernel/linux/linux-5.10/fs/f2fs/
H A Dsuper.c1572 char *algtype = ""; in f2fs_show_compress_options() local
1580 algtype = "lzo"; in f2fs_show_compress_options()
1583 algtype = "lz4"; in f2fs_show_compress_options()
1586 algtype = "zstd"; in f2fs_show_compress_options()
1589 algtype = "lzo-rle"; in f2fs_show_compress_options()
1592 seq_printf(seq, ",compress_algorithm=%s", algtype); in f2fs_show_compress_options()

Completed in 41 milliseconds

12