Re: [PATCH bpf-next v5 2/2] selftests: bpf: crypto skcipher algo selftests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 18, 2023 at 2:55 PM Vadim Fedorenko <vadfed@xxxxxxxx> wrote:
>
> +
> +SEC("fentry.s/bpf_fentry_test1")
> +int BPF_PROG(skb_crypto_setup)
> +{
> +       struct bpf_crypto_lskcipher_ctx *cctx;
> +       struct bpf_dynptr key = {};
> +       int err = 0;
> +
> +       status = 0;
> +
> +       bpf_dynptr_from_mem(crypto_key, sizeof(crypto_key), 0, &key);
> +       cctx = bpf_crypto_lskcipher_ctx_create(crypto_algo, &key, &err);

Direct string will work here, right?
What's the reason to use global var?





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux