Home
last modified time | relevance | path

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

/dragonfly/lib/libcrypt/
HDcrypt.c51 } crypt_types[] = { variable
108 for (i = sizeof(crypt_types) / sizeof(crypt_types[0]) - 1; i >= 0; i--) { in crypt_setdefault()
109 if (strcmp(def, crypt_types[i].name) == 0) { in crypt_setdefault()
122 return (crypt_types[crypt_type].name); in crypt_get_format()
131 for (i = sizeof(crypt_types) / sizeof(crypt_types[0]) - 1; i >= 0; i--) { in crypt_set_format()
132 if (strcmp(type, crypt_types[i].name) == 0) { in crypt_set_format()
146 for (i = sizeof(crypt_types) / sizeof(crypt_types[0]) - 1; i >= 0; i--) { in crypt()
147 if (crypt_types[i].magic != NULL && strncmp(salt, in crypt()
148 crypt_types[i].magic, strlen(crypt_types[i].magic)) == 0) in crypt()
149 return (crypt_types[i].func(passwd, salt)); in crypt()
[all …]