Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 25 of 33) sorted by relevance

12

/freebsd-14.2/crypto/openssh/regress/
H A Dcert-hostkey.sh88 for ktype in $PLAIN_TYPES ; do
91 ${SSHKEYGEN} -q -N '' -t ${ktype} \
97 case $ktype in
134 for ktype in $PLAIN_TYPES ; do
164 for ktype in $PLAIN_TYPES ; do
169 for ktype in $PLAIN_TYPES ; do
190 for ktype in $PLAIN_TYPES ; do
216 case $ktype in
255 for ktype in $PLAIN_TYPES ; do
259 ${SSHKEYGEN} -q -N '' -t ${ktype} -f $OBJ/cert_host_key_${ktype} || \
[all …]
H A Dcert-userkey.sh46 ${SSHKEYGEN} -q -N '' -t ${ktype} \
50 case $ktype in
51 rsa-sha2-*) tflag="-t $ktype" ;;
62 t=$(kname $ktype)
63 _prefix="${ktype}"
194 for ktype in $PLAIN_TYPES ; do
195 t=$(kname $ktype)
196 _prefix="${ktype} $auth"
291 for ktype in $rsa ed25519 ; do
379 for ktype in $PLAIN_TYPES ; do
[all …]
/freebsd-14.2/sys/compat/linuxkpi/common/src/
H A Dlinux_kobject.c111 if (error == 0 && kobj->ktype && kobj->ktype->default_attrs) { in kobject_add_complete()
113 t = kobj->ktype; in kobject_add_complete()
142 kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype, in kobject_init_and_add() argument
148 kobject_init(kobj, ktype); in kobject_init_and_add()
149 kobj->ktype = ktype; in kobject_init_and_add()
170 if (kobj->ktype && kobj->ktype->release) in linux_kobject_release()
171 kobj->ktype->release(kobj); in linux_kobject_release()
H A Dlinux_compat.c696 if (ldev->kobj.ktype == &linux_cdev_static_ktype) { in linux_get_fop()
721 if (ldev->kobj.ktype == &linux_cdev_static_ktype) { in linux_drop_fop()
724 MPASS(ldev->kobj.ktype == &linux_cdev_ktype); in linux_drop_fop()
2223 ldev->kobj.ktype == &linux_cdev_ktype) in linux_cdev_deref()
2299 MPASS(ldev->kobj.ktype == &linux_cdev_ktype); in linux_destroy_dev()
/freebsd-14.2/contrib/ntp/libntp/
H A Da_md5encrypt.c76 int ktype, in make_mac() argument
94 if (ktype == NID_cmac) { in make_mac()
137 ctx = get_md_ctx(ktype); in make_mac()
143 OBJ_nid2sn(ktype)); in make_mac()
148 OBJ_nid2sn(ktype)); in make_mac()
153 OBJ_nid2sn(ktype)); in make_mac()
158 OBJ_nid2sn(ktype)); in make_mac()
167 if (NID_md5 == ktype) { in make_mac()
170 ctx = get_md_ctx(ktype); in make_mac()
181 msyslog(LOG_ERR, "MAC encrypt: invalid key type %d", ktype); in make_mac()
/freebsd-14.2/crypto/openssh/
H A Dssh-ed25519-sk.c99 ssh_ed25519_sk_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_ed25519_sk_deserialize_public() argument
104 if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0) in ssh_ed25519_sk_deserialize_public()
112 ssh_ed25519_sk_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_ed25519_sk_deserialize_private() argument
117 if ((r = sshkey_ed25519_funcs.deserialize_public(ktype, b, key)) != 0) in ssh_ed25519_sk_deserialize_private()
132 char *ktype = NULL; in ssh_ed25519_sk_verify() local
157 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ed25519_sk_verify()
172 if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) { in ssh_ed25519_sk_verify()
247 free(ktype); in ssh_ed25519_sk_verify()
H A Dssh-ecdsa-sk.c128 ssh_ecdsa_sk_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_ecdsa_sk_deserialize_public() argument
133 if ((r = sshkey_ecdsa_funcs.deserialize_public(ktype, b, key)) != 0) in ssh_ecdsa_sk_deserialize_public()
141 ssh_ecdsa_sk_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_ecdsa_sk_deserialize_private() argument
147 if ((r = sshkey_ecdsa_funcs.deserialize_public(ktype, in ssh_ecdsa_sk_deserialize_private()
247 char *ktype = NULL, *webauthn_origin = NULL; in ssh_ecdsa_sk_verify() local
270 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in ssh_ecdsa_sk_verify()
274 if (strcmp(ktype, "[email protected]") == 0) in ssh_ecdsa_sk_verify()
276 else if (strcmp(ktype, "[email protected]") != 0) { in ssh_ecdsa_sk_verify()
412 free(ktype); in ssh_ecdsa_sk_verify()
H A Dssh-ecdsa.c157 ssh_ecdsa_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_ecdsa_deserialize_public() argument
163 if ((key->ecdsa_nid = sshkey_ecdsa_nid_from_name(ktype)) == -1) in ssh_ecdsa_deserialize_public()
200 ssh_ecdsa_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_ecdsa_deserialize_private() argument
207 if ((r = ssh_ecdsa_deserialize_public(ktype, b, key)) != 0) in ssh_ecdsa_deserialize_private()
303 char *ktype = NULL; in ssh_ecdsa_verify() local
317 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_ecdsa_verify()
322 if (strcmp(sshkey_ssh_name_plain(key), ktype) != 0) { in ssh_ecdsa_verify()
374 free(ktype); in ssh_ecdsa_verify()
H A Dssh-ed25519.c103 ssh_ed25519_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_ed25519_deserialize_public() argument
121 ssh_ed25519_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_ed25519_deserialize_private() argument
211 char *ktype = NULL; in ssh_ed25519_verify() local
227 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_ed25519_verify()
230 if (strcmp("ssh-ed25519", ktype) != 0) { in ssh_ed25519_verify()
271 free(ktype); in ssh_ed25519_verify()
H A Dssh-dss.c201 ssh_dss_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_dss_deserialize_public() argument
238 ssh_dss_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_dss_deserialize_private() argument
245 if ((r = ssh_dss_deserialize_public(ktype, b, key)) != 0) in ssh_dss_deserialize_private()
340 char *ktype = NULL; in ssh_dss_verify() local
352 if (sshbuf_get_cstring(b, &ktype, NULL) != 0 || in ssh_dss_verify()
357 if (strcmp("ssh-dss", ktype) != 0) { in ssh_dss_verify()
412 free(ktype); in ssh_dss_verify()
H A Dssh-xmss.c132 ssh_xmss_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_xmss_deserialize_public() argument
164 ssh_xmss_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_xmss_deserialize_private() argument
283 char *ktype = NULL; in ssh_xmss_verify() local
303 if ((r = sshbuf_get_cstring(b, &ktype, NULL)) != 0 || in ssh_xmss_verify()
306 if (strcmp("[email protected]", ktype) != 0) { in ssh_xmss_verify()
347 free(ktype); in ssh_xmss_verify()
H A Dhostfile.c763 char *line = NULL, ktype[128]; in hostkeys_foreach_file() local
882 if (l <= 1 || l >= sizeof(ktype) || in hostkeys_foreach_file()
885 memcpy(ktype, lineinfo.rawkey, l); in hostkeys_foreach_file()
886 ktype[l] = '\0'; in hostkeys_foreach_file()
887 lineinfo.keytype = sshkey_type_from_name(ktype); in hostkeys_foreach_file()
894 strspn(ktype, "0123456789") == l) in hostkeys_foreach_file()
H A Dssh_api.c528 int ktype, r; in _ssh_order_hostkeyalgs() local
545 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in _ssh_order_hostkeyalgs()
548 if (k->key->type == ktype || in _ssh_order_hostkeyalgs()
550 sshkey_type_plain(ktype))) { in _ssh_order_hostkeyalgs()
H A Dssh-rsa.c186 ssh_rsa_deserialize_public(const char *ktype, struct sshbuf *b, in ssh_rsa_deserialize_public() argument
216 ssh_rsa_deserialize_private(const char *ktype, struct sshbuf *b, in ssh_rsa_deserialize_private() argument
H A Dsshkey.c298 int ktype; in sshkey_match_keyname_to_sigalgs() local
301 (ktype = sshkey_type_from_name(keyname)) == KEY_UNSPEC) in sshkey_match_keyname_to_sigalgs()
303 else if (ktype == KEY_RSA) { in sshkey_match_keyname_to_sigalgs()
307 } else if (ktype == KEY_RSA_CERT) { in sshkey_match_keyname_to_sigalgs()
1901 char *ktype = NULL; in sshkey_from_blob_internal() local
1915 if (sshbuf_get_cstring(b, &ktype, NULL) != 0) { in sshkey_from_blob_internal()
1920 type = sshkey_type_from_name(ktype); in sshkey_from_blob_internal()
1940 if ((ret = impl->funcs->deserialize_public(ktype, b, key)) != 0) in sshkey_from_blob_internal()
1959 free(ktype); in sshkey_from_blob_internal()
H A Dsshconnect2.c129 int ktype; in order_hostkeyalgs() local
180 if ((ktype = sshkey_type_from_name(alg)) == KEY_UNSPEC) in order_hostkeyalgs()
186 if (sshkey_type_is_cert(ktype) && in order_hostkeyalgs()
193 sshkey_type_plain(ktype), in order_hostkeyalgs()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dkobject.h60 const struct kobj_type *ktype; member
84 kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() argument
89 kobj->ktype = ktype; in kobject_init()
145 int kobject_init_and_add(struct kobject *kobj, const struct kobj_type *ktype,
H A Dsysfs.h94 if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL) in sysctl_handle_attr()
99 ops = kobj->ktype->sysfs_ops; in sysctl_handle_attr()
/freebsd-14.2/crypto/openssl/crypto/dsa/
H A Ddsa_ameth.c275 const char *ktype = NULL; in do_dsa_print() local
293 ktype = "Private-Key"; in do_dsa_print()
295 ktype = "Public-Key"; in do_dsa_print()
297 ktype = "DSA-Parameters"; in do_dsa_print()
302 if (BIO_printf(bp, "%s: (%d bit)\n", ktype, mod_len) <= 0) in do_dsa_print()
/freebsd-14.2/crypto/openssl/crypto/dh/
H A Ddh_ameth.c247 const char *ktype = NULL; in do_dh_print() local
267 ktype = "DH Private-Key"; in do_dh_print()
269 ktype = "DH Public-Key"; in do_dh_print()
271 ktype = "DH Parameters"; in do_dh_print()
274 || BIO_printf(bp, "%s: (%d bit)\n", ktype, DH_bits(x)) <= 0) in do_dh_print()
/freebsd-14.2/crypto/openssl/crypto/ec/
H A Dec_ameth.c283 static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, ec_print_t ktype) in do_EC_KEY_print() argument
296 if (ktype != EC_KEY_PRINT_PARAM && EC_KEY_get0_public_key(x) != NULL) { in do_EC_KEY_print()
302 if (ktype == EC_KEY_PRINT_PRIVATE && EC_KEY_get0_private_key(x) != NULL) { in do_EC_KEY_print()
308 if (ktype == EC_KEY_PRINT_PRIVATE) in do_EC_KEY_print()
310 else if (ktype == EC_KEY_PRINT_PUBLIC) in do_EC_KEY_print()
/freebsd-14.2/sys/ofed/drivers/infiniband/core/
H A Dcore_priv.h144 struct kobject *kobj, struct kobj_type *ktype,
/freebsd-14.2/crypto/heimdal/lib/kadm5/
H A Dadmin.h229 ktype, int32_t stype, int32_t
/freebsd-14.2/contrib/bearssl/test/
H A Dtest_x509.c1220 char *ktype, *kusage, *sstatus, *shashes, *stime; in parse_object() local
1222 ktype = get_value(objtype, objdata, linenum, "keytype"); in parse_object()
1231 if (eqstring(ktype, "RSA")) { in parse_object()
1233 } else if (eqstring(ktype, "EC")) { in parse_object()
1238 ktype, linenum); in parse_object()
/freebsd-14.2/contrib/unbound/validator/
H A Dval_secalgo.c1041 static SECKEYPublicKey* nss_key_create(KeyType ktype) in nss_key_create() argument
1056 key->keyType = ktype; in nss_key_create()

12