• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libgcrypt-1.5.0/cipher/

Lines Matching refs:pubkey

0 /* pubkey.c  -	pubkey dispatcher
55 gcry_pk_spec_t *pubkey;
203 for (i = 0; (! err) && pubkey_table[i].pubkey; i++)
206 if (! pubkey_table[i].pubkey->func) \
207 pubkey_table[i].pubkey->func = dummy_##func;
220 (void *) pubkey_table[i].pubkey,
233 gcry_pk_spec_t *pubkey = (gcry_pk_spec_t *) spec;
235 const char **aliases = pubkey->aliases;
236 int ret = stricmp (name, pubkey->name);
244 /* Internal function. Lookup a pubkey entry by it's name. */
248 gcry_module_t pubkey;
250 pubkey = _gcry_module_lookup (pubkeys_registered, (void *) name,
253 return pubkey;
256 /* Register a new pubkey module whose specification can be found in
260 _gcry_pk_register (gcry_pk_spec_t *pubkey,
274 (void *) pubkey,
288 /* Unregister the pubkey identified by ID, which must have been
309 * Map a string to the pubkey algo
314 gcry_module_t pubkey;
323 pubkey = gcry_pk_lookup_name (string);
324 if (pubkey)
326 algorithm = pubkey->mod_id;
327 _gcry_module_release (pubkey);
341 gcry_module_t pubkey;
347 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
348 if (pubkey)
350 name = ((gcry_pk_spec_t *) pubkey->spec)->name;
351 _gcry_module_release (pubkey);
376 gcry_pk_spec_t *pubkey = (gcry_pk_spec_t *) module->spec;
378 name = pubkey->aliases? *pubkey->aliases : NULL;
380 name = pubkey->name;
392 gcry_module_t pubkey;
395 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
396 if (pubkey)
398 if (! (pubkey-> flags & FLAG_MODULE_DISABLED))
399 pubkey->flags |= FLAG_MODULE_DISABLED;
400 _gcry_module_release (pubkey);
413 gcry_pk_spec_t *pubkey;
422 pubkey = (gcry_pk_spec_t *) module->spec;
425 && (! (pubkey->use & GCRY_PK_USAGE_SIGN)))
427 && (! (pubkey->use & GCRY_PK_USAGE_ENCR))))
447 gcry_module_t pubkey;
453 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
454 if (pubkey)
456 npkey = strlen (((gcry_pk_spec_t *) pubkey->spec)->elements_pkey);
457 _gcry_module_release (pubkey);
470 gcry_module_t pubkey;
476 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
477 if (pubkey)
479 nskey = strlen (((gcry_pk_spec_t *) pubkey->spec)->elements_skey);
480 _gcry_module_release (pubkey);
493 gcry_module_t pubkey;
499 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
500 if (pubkey)
502 nsig = strlen (((gcry_pk_spec_t *) pubkey->spec)->elements_sig);
503 _gcry_module_release (pubkey);
516 gcry_module_t pubkey;
522 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
523 if (pubkey)
525 nenc = strlen (((gcry_pk_spec_t *) pubkey->spec)->elements_enc);
526 _gcry_module_release (pubkey);
551 gcry_module_t pubkey;
556 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
557 if (pubkey)
559 pk_extra_spec_t *extraspec = pubkey->extraspec;
570 ec = ((gcry_pk_spec_t *) pubkey->spec)->generate
573 _gcry_module_release (pubkey);
585 gcry_module_t pubkey;
590 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
591 if (pubkey)
593 err = ((gcry_pk_spec_t *) pubkey->spec)->check_secret_key
595 _gcry_module_release (pubkey);
613 gcry_pk_spec_t *pubkey;
633 pubkey = (gcry_pk_spec_t *) module->spec;
634 rc = pubkey->encrypt (algorithm, resarr, data, pkey, flags);
663 gcry_pk_spec_t *pubkey;
682 pubkey = (gcry_pk_spec_t *) module->spec;
683 rc = pubkey->decrypt (algorithm, result, data, skey, flags);
710 gcry_pk_spec_t *pubkey;
727 pubkey = (gcry_pk_spec_t *) module->spec;
728 rc = pubkey->sign (algorithm, resarr, data, skey);
754 gcry_pk_spec_t *pubkey;
773 pubkey = (gcry_pk_spec_t *) module->spec;
774 rc = pubkey->verify (algorithm, hash, data, pkey, cmp, opaquev);
1784 /* Callback for the pubkey algorithm code to verify PSS signatures.
2005 gcry_pk_spec_t *pubkey;
2047 pubkey = (gcry_pk_spec_t *) module->spec;
2054 elems = pubkey->elements_skey;
2056 elems = pubkey->elements_pkey;
2065 err = sexp_elements_extract (list, elems, array, pubkey->name);
2098 gcry_pk_spec_t *pubkey;
2146 pubkey = (gcry_pk_spec_t *) module->spec;
2148 elems = pubkey->elements_sig;
2251 gcry_pk_spec_t *pubkey = NULL;
2406 pubkey = (gcry_pk_spec_t *) module->spec;
2408 elems = pubkey->elements_enc;
2849 gcry_pk_spec_t *pubkey = NULL;
2862 pubkey = (gcry_pk_spec_t *) module->spec;
2869 algo_name = pubkey->aliases? *pubkey->aliases : NULL;
2871 algo_name = pubkey->name;
2873 algo_elems = pubkey->elements_enc;
3147 gcry_pk_spec_t *pubkey = NULL;
3163 pubkey = (gcry_pk_spec_t *) module->spec;
3164 algo_name = pubkey->aliases? *pubkey->aliases : NULL;
3166 algo_name = pubkey->name;
3168 algo_elems = pubkey->elements_sig;
3410 gcry_pk_spec_t *pubkey = NULL;
3468 pubkey = (gcry_pk_spec_t *) module->spec;
3470 algo_name = pubkey->aliases? *pubkey->aliases : NULL;
3472 algo_name = pubkey->name;
3473 pub_elems = pubkey->elements_pkey;
3474 sec_elems = pubkey->elements_skey;
3685 gcry_pk_spec_t *pubkey;
3698 pubkey = (gcry_pk_spec_t *) module->spec;
3699 nbits = (*pubkey->get_nbits) (module->mod_id, keyarr);
3723 gcry_pk_spec_t *pubkey = NULL;
3762 pubkey = (gcry_pk_spec_t *) module->spec;
3765 elems = pubkey->elements_grip;
4001 gcry_module_t pubkey;
4007 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
4008 if (pubkey)
4010 use = ((gcry_pk_spec_t *) pubkey->spec)->use;
4011 _gcry_module_release (pubkey);
4074 gcry_module_t pubkey;
4079 pubkey = _gcry_module_lookup_id (pubkeys_registered, algorithm);
4080 if (pubkey)
4081 *module = pubkey;
4098 /* Get a list consisting of the IDs of the loaded pubkey modules. If
4099 LIST is zero, write the number of loaded pubkey modules to
4102 according size. In case there are less pubkey modules than
4117 /* Run the selftests for pubkey algorithm ALGO with optional reporting
4139 report ("pubkey", algo, "module",
4159 gcry_module_t pubkey;
4171 pubkey = _gcry_module_lookup_id (pubkeys_registered, algo);
4172 if (! pubkey)
4177 spec = pubkey->spec;
4207 _gcry_module_release (pubkey);