Lines Matching refs:nid
117 int nid; member
169 static size_t find_cipher_data_index(int nid) in find_cipher_data_index() argument
174 if (nid == cipher_data[i].nid) in find_cipher_data_index()
179 static size_t get_cipher_data_index(int nid) in get_cipher_data_index() argument
181 size_t i = find_cipher_data_index(nid); in get_cipher_data_index()
195 static const struct cipher_data_st *get_cipher_data(int nid) in get_cipher_data() argument
197 return &cipher_data[get_cipher_data_index(nid)]; in get_cipher_data()
479 EVP_CIPHER_meth_new(cipher_data[i].nid, in prepare_cipher_methods()
530 cipher_data[i].nid; in prepare_cipher_methods()
541 known_cipher_nids[known_cipher_nids_amount++] = cipher_data[i].nid; in rebuild_known_cipher_nids()
547 static const EVP_CIPHER *get_cipher_method(int nid) in get_cipher_method() argument
549 size_t i = get_cipher_data_index(nid); in get_cipher_method()
562 static void destroy_cipher_method(int nid) in destroy_cipher_method() argument
564 size_t i = get_cipher_data_index(nid); in destroy_cipher_method()
575 destroy_cipher_method(cipher_data[i].nid); in destroy_all_cipher_methods()
582 const int **nids, int nid) in devcrypto_ciphers() argument
587 *cipher = get_cipher_method(nid); in devcrypto_ciphers()
633 name = OBJ_nid2sn(cipher_data[i].nid); in dump_cipher_info()
635 name ? name : "unknown", cipher_data[i].nid, in dump_cipher_info()
683 int nid; member
711 static size_t find_digest_data_index(int nid) in find_digest_data_index() argument
716 if (nid == digest_data[i].nid) in find_digest_data_index()
721 static size_t get_digest_data_index(int nid) in get_digest_data_index() argument
723 size_t i = find_digest_data_index(nid); in get_digest_data_index()
737 static const struct digest_data_st *get_digest_data(int nid) in get_digest_data() argument
739 return &digest_data[get_digest_data_index(nid)]; in get_digest_data()
886 known_digest_nids[known_digest_nids_amount++] = digest_data[i].nid; in rebuild_known_digest_nids()
949 if ((known_digest_methods[i] = EVP_MD_meth_new(digest_data[i].nid, in prepare_digest_methods()
973 known_digest_nids[known_digest_nids_amount++] = digest_data[i].nid; in prepare_digest_methods()
977 static const EVP_MD *get_digest_method(int nid) in get_digest_method() argument
979 size_t i = get_digest_data_index(nid); in get_digest_method()
992 static void destroy_digest_method(int nid) in destroy_digest_method() argument
994 size_t i = get_digest_data_index(nid); in destroy_digest_method()
1005 destroy_digest_method(digest_data[i].nid); in destroy_all_digest_methods()
1012 const int **nids, int nid) in devcrypto_digests() argument
1017 *digest = get_digest_method(nid); in devcrypto_digests()
1064 name = OBJ_nid2sn(digest_data[i].nid); in dump_digest_info()
1066 name ? name : "unknown", digest_data[i].nid, in dump_digest_info()