• Home
  • Raw
  • Download

Lines Matching refs:algo

514 static void __xfrm_algo_print(struct xfrm_algo *algo, int type, int len,  in __xfrm_algo_print()  argument
525 if (len < sizeof(*algo)) { in __xfrm_algo_print()
529 len -= sizeof(*algo); in __xfrm_algo_print()
531 fprintf(fp, "%s ", algo->alg_name); in __xfrm_algo_print()
533 keylen = algo->alg_key_len / 8; in __xfrm_algo_print()
542 fprintf(fp, "%.2x", (unsigned char)algo->alg_key[i]); in __xfrm_algo_print()
545 fprintf(fp, " (%d bits)", algo->alg_key_len); in __xfrm_algo_print()
553 static inline void xfrm_algo_print(struct xfrm_algo *algo, int type, int len, in xfrm_algo_print() argument
556 return __xfrm_algo_print(algo, type, len, fp, prefix, 1); in xfrm_algo_print()
559 static void xfrm_aead_print(struct xfrm_algo_aead *algo, int len, in xfrm_aead_print() argument
562 struct xfrm_algo *base_algo = alloca(sizeof(*base_algo) + algo->alg_key_len / 8); in xfrm_aead_print()
564 memcpy(base_algo->alg_name, algo->alg_name, sizeof(base_algo->alg_name)); in xfrm_aead_print()
565 base_algo->alg_key_len = algo->alg_key_len; in xfrm_aead_print()
566 memcpy(base_algo->alg_key, algo->alg_key, algo->alg_key_len / 8); in xfrm_aead_print()
570 fprintf(fp, " %d", algo->alg_icv_len); in xfrm_aead_print()
575 static void xfrm_auth_trunc_print(struct xfrm_algo_auth *algo, int len, in xfrm_auth_trunc_print() argument
578 struct xfrm_algo *base_algo = alloca(sizeof(*base_algo) + algo->alg_key_len / 8); in xfrm_auth_trunc_print()
580 memcpy(base_algo->alg_name, algo->alg_name, sizeof(base_algo->alg_name)); in xfrm_auth_trunc_print()
581 base_algo->alg_key_len = algo->alg_key_len; in xfrm_auth_trunc_print()
582 memcpy(base_algo->alg_key, algo->alg_key, algo->alg_key_len / 8); in xfrm_auth_trunc_print()
586 fprintf(fp, " %d", algo->alg_trunc_len); in xfrm_auth_trunc_print()