Home
last modified time | relevance | path

Searched refs:algtype (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/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_INITFINAL | 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 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 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 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()
843 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_ctx()
844 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
1219 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_no_ctx()
1220 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
1416 if ((is_xcbc_aes(ctx->adata.algtype) || in ahash_update_first()
1417 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_first()
[all …]
H A Ddesc_constr.h506 u32 algtype; member
570 protid = (adata->algtype & OP_ALG_ALGSEL_SUBMASK) | in append_proto_dkp()
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()
H A Dcaamalg.c203 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc()
609 ctx->adata.keylen_pad = split_key_len(ctx->adata.algtype & in aead_setkey()
1207 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in init_authenc_job()
3614 ctx->cdata.algtype = OP_TYPE_CLASS1_ALG | caam->class1_alg_type; in caam_init_common()
3615 ctx->adata.algtype = OP_TYPE_CLASS2_ALG | caam->class2_alg_type; in caam_init_common()
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()
/openbmc/qemu/backends/
H A Dcryptodev.c188 enum QCryptodevBackendAlgoType algtype = op_info->algtype; in cryptodev_backend_account() local
191 if (algtype == QCRYPTODEV_BACKEND_ALGO_TYPE_ASYM) { in cryptodev_backend_account()
215 } else if (algtype == QCRYPTODEV_BACKEND_ALGO_TYPE_SYM) { in cryptodev_backend_account()
234 error_report("Unsupported cryptodev alg type: %" PRIu32 "", algtype); in cryptodev_backend_account()
H A Dcryptodev-builtin.c552 QCryptodevBackendAlgoType algtype = op_info->algtype; in cryptodev_builtin_operation() local
564 if (algtype == QCRYPTODEV_BACKEND_ALGO_TYPE_SYM) { in cryptodev_builtin_operation()
568 } else if (algtype == QCRYPTODEV_BACKEND_ALGO_TYPE_ASYM) { in cryptodev_builtin_operation()
H A Dcryptodev-lkcf.c477 QCryptodevBackendAlgoType algtype = op_info->algtype; in cryptodev_lkcf_operation() local
488 if (algtype != QCRYPTODEV_BACKEND_ALGO_TYPE_ASYM) { in cryptodev_lkcf_operation()
489 error_report("algtype not supported: %u", algtype); in cryptodev_lkcf_operation()
/openbmc/linux/include/trace/events/
H A Df2fs.h1870 unsigned int cluster_size, unsigned char algtype),
1872 TP_ARGS(inode, cluster_idx, cluster_size, algtype),
1879 __field(unsigned int, algtype)
1887 __entry->algtype = algtype;
1895 show_compress_algorithm(__entry->algtype))
1932 unsigned int cluster_size, unsigned char algtype),
1934 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
1940 unsigned int cluster_size, unsigned char algtype),
1942 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
/openbmc/linux/drivers/s390/crypto/
H A Dzcrypt_ccamisc.h85 u8 algtype; /* 0x02 for AES cipher */ member
H A Dzcrypt_ccamisc.c113 if (t->algtype != 0x02) { in cca_check_secaescipherkey()
116 __func__, (int)t->algtype); in cca_check_secaescipherkey()
/openbmc/qemu/include/sysemu/
H A Dcryptodev.h181 QCryptodevBackendAlgoType algtype; member
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c887 op_info->algtype = request->flags = QCRYPTODEV_BACKEND_ALGO_TYPE_SYM; in virtio_crypto_handle_request()
897 op_info->algtype = request->flags = QCRYPTODEV_BACKEND_ALGO_TYPE_ASYM; in virtio_crypto_handle_request()
/openbmc/linux/fs/f2fs/
H A Dsuper.c1898 char *algtype = ""; in f2fs_show_compress_options() local
1906 algtype = "lzo"; in f2fs_show_compress_options()
1909 algtype = "lz4"; in f2fs_show_compress_options()
1912 algtype = "zstd"; in f2fs_show_compress_options()
1915 algtype = "lzo-rle"; in f2fs_show_compress_options()
1918 seq_printf(seq, ",compress_algorithm=%s", algtype); in f2fs_show_compress_options()