Lines Matching refs:ALGO_LEN

480 #define ALGO_LEN	64
498 char a_algo[ALGO_LEN];
499 char e_algo[ALGO_LEN];
500 char c_algo[ALGO_LEN];
501 char ae_algo[ALGO_LEN];
769 if (strncmp(name, "digest_null", ALGO_LEN) == 0)
771 else if (strncmp(name, "ecb(cipher_null)", ALGO_LEN) == 0)
773 else if (strncmp(name, "cbc(des)", ALGO_LEN) == 0)
775 else if (strncmp(name, "hmac(md5)", ALGO_LEN) == 0)
777 else if (strncmp(name, "cmac(aes)", ALGO_LEN) == 0)
779 else if (strncmp(name, "xcbc(aes)", ALGO_LEN) == 0)
781 else if (strncmp(name, "cbc(cast5)", ALGO_LEN) == 0)
783 else if (strncmp(name, "cbc(serpent)", ALGO_LEN) == 0)
785 else if (strncmp(name, "hmac(sha1)", ALGO_LEN) == 0)
787 else if (strncmp(name, "hmac(rmd160)", ALGO_LEN) == 0)
789 else if (strncmp(name, "cbc(des3_ede)", ALGO_LEN) == 0)
791 else if (strncmp(name, "hmac(sha256)", ALGO_LEN) == 0)
793 else if (strncmp(name, "cbc(aes)", ALGO_LEN) == 0)
795 else if (strncmp(name, "cbc(camellia)", ALGO_LEN) == 0)
797 else if (strncmp(name, "cbc(twofish)", ALGO_LEN) == 0)
799 else if (strncmp(name, "rfc3686(ctr(aes))", ALGO_LEN) == 0)
801 else if (strncmp(name, "hmac(sha384)", ALGO_LEN) == 0)
803 else if (strncmp(name, "cbc(blowfish)", ALGO_LEN) == 0)
805 else if (strncmp(name, "hmac(sha512)", ALGO_LEN) == 0)
807 else if (strncmp(name, "rfc4106(gcm(aes))-128", ALGO_LEN) == 0)
809 else if (strncmp(name, "rfc4543(gcm(aes))-128", ALGO_LEN) == 0)
811 else if (strncmp(name, "rfc4309(ccm(aes))-128", ALGO_LEN) == 0)
813 else if (strncmp(name, "rfc4106(gcm(aes))-192", ALGO_LEN) == 0)
815 else if (strncmp(name, "rfc4543(gcm(aes))-192", ALGO_LEN) == 0)
817 else if (strncmp(name, "rfc4309(ccm(aes))-192", ALGO_LEN) == 0)
819 else if (strncmp(name, "rfc4106(gcm(aes))-256", ALGO_LEN) == 0)
821 else if (strncmp(name, "rfc4543(gcm(aes))-256", ALGO_LEN) == 0)
823 else if (strncmp(name, "rfc4309(ccm(aes))-256", ALGO_LEN) == 0)
825 else if (strncmp(name, "rfc7539(chacha20,poly1305)-128", ALGO_LEN) == 0)
864 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1);
875 strncpy(alg.u.alg.alg_name, desc->c_algo, ALGO_LEN - 1);
888 strncpy(alg.u.aead.alg_name, desc->ae_algo, ALGO_LEN - 1);
895 strncpy(alg.u.alg.alg_name, desc->e_algo, ALGO_LEN - 1);
903 strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN);
1902 strncpy(desc.a_algo, a, ALGO_LEN - 1);
1904 strncpy(desc.e_algo, e, ALGO_LEN - 1);
1906 strncpy(desc.c_algo, c, ALGO_LEN - 1);
1908 strncpy(desc.ae_algo, ae, ALGO_LEN - 1);
2005 strncpy(desc.a_algo, ah_list[0], ALGO_LEN - 1);