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

Lines Matching refs:algorithm

55   unsigned int algorithm;
171 /* The algorithm id. This is a hack required because the module
321 cipher_table[i].algorithm,
389 CIPHER. On success, a new algorithm ID is stored in ALGORITHM_ID
433 internal algorithm number is returned in ALGORITHM unless it
435 implementing this algorithm is return in OID_SPEC unless passed as
438 search_oid (const char *oid, int *algorithm, gcry_cipher_oid_spec_t *oid_spec)
456 if (algorithm)
457 *algorithm = module->mod_id;
468 /* Map STRING to the cipher algorithm identifier. Returns the
469 algorithm ID of the cipher for the given name or 0 if the name is
476 int ret, algorithm = 0;
485 object identifiers to figure out the algorithm */
489 ret = search_oid (string, &algorithm, NULL);
495 algorithm = cipher->mod_id;
502 return algorithm;
529 /* Map the cipher algorithm whose ID is contained in ALGORITHM to a
530 string representation of the algorithm name. For unknown algorithm
533 cipher_algo_to_string (int algorithm)
541 cipher = _gcry_module_lookup_id (ciphers_registered, algorithm);
554 /* Map the cipher algorithm identifier ALGORITHM to a string
555 representing this algorithm. This string is the default name as
557 an unknown algorithm. NULL is never returned. */
559 gcry_cipher_algo_name (int algorithm)
561 return cipher_algo_to_string (algorithm);
565 /* Flag the cipher algorithm with the identifier ALGORITHM as
570 disable_cipher_algo (int algorithm)
577 cipher = _gcry_module_lookup_id (ciphers_registered, algorithm);
588 /* Return 0 if the cipher algorithm with identifier ALGORITHM is
592 check_cipher_algo (int algorithm)
600 cipher = _gcry_module_lookup_id (ciphers_registered, algorithm);
615 /* Return the standard length of the key for the cipher algorithm with
616 the identifier ALGORITHM. This function expects a valid algorithm
617 and will abort if the algorithm is not available or the length of
620 cipher_get_keylen (int algorithm)
628 cipher = _gcry_module_lookup_id (ciphers_registered, algorithm);
633 log_bug ("cipher %d w/o key length\n", algorithm);
637 log_bug ("cipher %d not found\n", algorithm);
643 /* Return the block length of the cipher algorithm with the identifier
644 ALGORITHM. This function expects a valid algorithm and will abort
645 if the algorithm is not available or the length of the key is not
648 cipher_get_blocksize (int algorithm)
656 cipher = _gcry_module_lookup_id (ciphers_registered, algorithm);
661 log_bug ("cipher %d w/o blocksize\n", algorithm);
665 log_bug ("cipher %d not found\n", algorithm);
673 Open a cipher handle for use with cipher algorithm ALGORITHM, using
1534 /* Perform the AES-Wrap algorithm as specified by RFC3394. We
1535 implement this as a mode usable with any cipher algorithm of
1609 /* Perform the AES-Unwrap algorithm as specified by RFC3394. We
1610 implement this as a mode usable with any cipher algorithm of
2049 /* Return information about the given cipher algorithm ALGO.
2054 Return the length of the key. If the algorithm ALGO
2060 Return the blocklength of the algorithm ALGO counted in octets.
2064 Returns 0 if the specified algorithm ALGO is available for use.
2126 /* This function returns length of the key for algorithm ALGO. If the
2127 algorithm supports multiple key lengths, the maximum supported key
2144 /* This functions returns the blocklength of the algorithm ALGO
2174 *LIST_LENGTH algorithm IDs are stored in LIST, which must be of
2190 /* Run the selftests for cipher algorithm ALGO with optional reporting
2215 module? "algorithm disabled" : "algorithm not found");