Searched defs:algo (Results 1 - 22 of 22) sorted by relevance

/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt/cipher/
H A Dhash-common.c44 _gcry_hash_selftest_check_one (int algo, argument
53 if (_gcry_md_get_algo_dlen (algo) != expectlen)
56 err = _gcry_md_open (&hd, algo, 0);
84 digest = _gcry_md_read (hd, algo);
H A Dhmac-tests.c49 check_one (int algo, argument
57 /* printf ("HMAC algo %d\n", algo); */
58 if (_gcry_md_get_algo_dlen (algo) != expectlen)
60 if (_gcry_md_open (&hd, algo, GCRY_MD_FLAG_HMAC))
68 digest = _gcry_md_read (hd, algo);
683 run_selftests (int algo, int extended, selftest_report_func_t report) argument
687 switch (algo)
717 _gcry_hmac_selftest (int algo, int extended, selftest_report_func_t report) argument
721 if (!gcry_md_test_algo (algo))
[all...]
H A Dsha1.c431 run_selftests (int algo, int extended, selftest_report_func_t report)
435 switch (algo)
430 run_selftests(int algo, int extended, selftest_report_func_t report) argument
H A Delgamal.c616 elg_generate_ext (int algo, unsigned int nbits, unsigned long evalue, argument
626 (void)algo;
661 elg_generate (int algo, unsigned int nbits, unsigned long evalue, argument
666 (void)algo;
680 elg_check_secret_key (int algo, gcry_mpi_t *skey) argument
685 (void)algo;
705 elg_encrypt (int algo, gcry_mpi_t *resarr, argument
711 (void)algo;
730 elg_decrypt (int algo, gcry_mpi_t *result, argument
736 (void)algo;
756 elg_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
782 elg_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *, gcry_mpi_t), void *opaquev) argument
809 elg_get_nbits(int algo, gcry_mpi_t *pkey) argument
[all...]
H A Dsha256.c417 run_selftests (int algo, int extended, selftest_report_func_t report)
421 switch (algo)
416 run_selftests(int algo, int extended, selftest_report_func_t report) argument
H A Dsha512.c477 run_selftests (int algo, int extended, selftest_report_func_t report)
481 switch (algo)
476 run_selftests(int algo, int extended, selftest_report_func_t report) argument
H A Ddes.c1152 run_selftests (int algo, int extended, selftest_report_func_t report)
1156 switch (algo)
1151 run_selftests(int algo, int extended, selftest_report_func_t report) argument
H A Ddsa.c680 dsa_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
696 (void)algo; /* No need to check it. */
929 dsa_generate (int algo, unsigned int nbits, unsigned long evalue,
933 return dsa_generate_ext (algo, nbits, 0, NULL, skey, retfactors, NULL);
939 dsa_check_secret_key (int algo, gcry_mpi_t *skey)
944 (void)algo;
964 dsa_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey)
969 (void)algo;
990 dsa_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey,
996 (void)algo;
679 dsa_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
928 dsa_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
938 dsa_check_secret_key(int algo, gcry_mpi_t *skey) argument
963 dsa_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
989 dsa_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *, gcry_mpi_t), void *opaquev) argument
1016 dsa_get_nbits(int algo, gcry_mpi_t *pkey) argument
1134 run_selftests(int algo, int extended, selftest_report_func_t report) argument
[all...]
H A Dcipher.c169 int algo; member in struct:gcry_cipher_handle
671 int algo, int mode, unsigned int flags)
689 module = _gcry_module_lookup_id (ciphers_registered, algo);
795 h->algo = algo;
800 switch (algo)
1677 integer with the algo number. */
1783 gcry_cipher_algo_info (int algo, int what, void *buffer, size_t *nbytes)
1795 ui = cipher_get_keylen (algo);
1799 /* The only reason is an invalid algo o
668 gcry_cipher_open(gcry_cipher_hd_t *handle, int algo, int mode, unsigned int flags) argument
1781 gcry_cipher_algo_info(int algo, int what, void *buffer, size_t *nbytes) argument
1842 gcry_cipher_get_algo_keylen(int algo) argument
1858 gcry_cipher_get_algo_blklen(int algo) argument
1900 _gcry_cipher_selftest(int algo, int extended, selftest_report_func_t report) argument
[all...]
H A Decc.c959 ecc_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
970 (void)algo;
1023 ecc_generate (int algo, unsigned int nbits, unsigned long evalue,
1027 return ecc_generate_ext (algo, nbits, 0, NULL, skey, retfactors, NULL);
1065 ecc_check_secret_key (int algo, gcry_mpi_t *skey)
1070 (void)algo;
1111 ecc_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey)
1116 (void)algo;
1158 ecc_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey,
1164 (void)algo;
955 ecc_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
1019 ecc_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
1061 ecc_check_secret_key(int algo, gcry_mpi_t *skey) argument
1107 ecc_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
1154 ecc_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp)(void *, gcry_mpi_t), void *opaquev) argument
1198 ecc_get_nbits(int algo, gcry_mpi_t *pkey) argument
1340 run_selftests(int algo, int extended, selftest_report_func_t report) argument
[all...]
H A Dmd.c150 static const char * digest_algo_to_string( int algo );
151 static gcry_err_code_t check_digest_algo (int algo);
152 static gcry_err_code_t md_open (gcry_md_hd_t *h, int algo,
154 static gcry_err_code_t md_enable (gcry_md_hd_t hd, int algo);
159 static byte *md_read( gcry_md_hd_t a, int algo );
161 static int md_digest_length( int algo );
162 static const byte *md_asn_oid( int algo, size_t *asnlen, size_t *mdlen );
327 * Map a string to the digest algo
364 * Map a digest algo to a string
388 * string when there is no algo
427 md_open(gcry_md_hd_t *h, int algo, int secure, int hmac) argument
521 gcry_md_open(gcry_md_hd_t *h, int algo, unsigned int flags) argument
829 int algo = md_get_algo (a); local
852 int algo = md_get_algo (hd); local
971 gcry_md_read(gcry_md_hd_t hd, int algo) argument
985 gcry_md_get(gcry_md_hd_t hd, int algo, byte *buffer, int buflen) argument
1005 gcry_md_hash_buffer(int algo, void *digest, const void *buffer, size_t length) argument
1142 gcry_md_algo_info(int algo, int what, void *buffer, size_t *nbytes) argument
1257 int algo; local
1310 gcry_md_is_enabled(gcry_md_hd_t a, int algo) argument
1343 _gcry_md_selftest(int algo, int extended, selftest_report_func_t report) argument
[all...]
H A Drijndael.c1151 run_selftests (int algo, int extended, selftest_report_func_t report)
1155 switch (algo)
1148 run_selftests(int algo, int extended, selftest_report_func_t report) argument
H A Drsa.c777 rsa_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
789 (void)algo;
854 rsa_generate (int algo, unsigned int nbits, unsigned long evalue,
857 return rsa_generate_ext (algo, nbits, evalue, NULL, skey, retfactors, NULL);
862 rsa_check_secret_key (int algo, gcry_mpi_t *skey)
867 (void)algo;
887 rsa_encrypt (int algo, gcry_mpi_t *resarr, gcry_mpi_t data,
892 (void)algo;
905 rsa_decrypt (int algo, gcry_mpi_t *result, gcry_mpi_t *data,
915 (void)algo;
776 rsa_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
853 rsa_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
861 rsa_check_secret_key(int algo, gcry_mpi_t *skey) argument
886 rsa_encrypt(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *pkey, int flags) argument
904 rsa_decrypt(int algo, gcry_mpi_t *result, gcry_mpi_t *data, gcry_mpi_t *skey, int flags) argument
986 rsa_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
1006 rsa_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *opaque, gcry_mpi_t tmp), void *opaquev) argument
1038 rsa_get_nbits(int algo, gcry_mpi_t *pkey) argument
1330 run_selftests(int algo, int extended, selftest_report_func_t report) argument
[all...]
H A Dpubkey.c33 static gcry_err_code_t pubkey_decrypt (int algo, gcry_mpi_t *result,
36 static gcry_err_code_t pubkey_sign (int algo, gcry_mpi_t *resarr,
38 static gcry_err_code_t pubkey_verify (int algo, gcry_mpi_t hash,
307 * Map a string to the pubkey algo
621 log_debug ("pubkey_encrypt: algo=%d\n", algorithm);
669 log_debug ("pubkey_decrypt: algo=%d\n", algorithm);
715 log_debug ("pubkey_sign: algo=%d\n", algorithm);
759 log_debug ("pubkey_verify: algo=%d\n", algorithm);
1152 * (<algo>
1300 [(hash <algo> <valu
1451 static struct { const char *name; int algo; } hashnames[] = member in struct:__anon521
1466 int algo; local
2078 int algo; local
2654 _gcry_pk_selftest(int algo, int extended, selftest_report_func_t report) argument
2691 _gcry_pk_get_elements(int algo, char **enc, char **sig) argument
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/lib/
H A DLzmaEnc.h43 int algo; /* 0 - fast, 1 - normal, default = 1 */ member in struct:_CLzmaEncProps
/osnet-11/usr/src/lib/libkmf/libkmf/common/
H A Dcsrcrlop.c364 KMF_X509_ALGORITHM_IDENTIFIER *algo,
403 kmf_set_attr_at_index(attlist, i++, KMF_OID_ATTR, &algo->algorithm,
425 ret = copy_algoid(&subj_csr.signature.algorithmIdentifier, algo);
429 algid = x509_algoid_to_algid(&algo->algorithm);
485 * algo(input) - contains algorithm info needed for signing
361 sign_csr(KMF_HANDLE_T handle, const KMF_DATA *SubjectCsr, KMF_KEY_HANDLE *Signkey, KMF_X509_ALGORITHM_IDENTIFIER *algo, KMF_DATA *SignedCsr) argument
/osnet-11/usr/src/grub/grub2/grub-core/fs/zfs/
H A Dzfscrypt.c55 grub_uint64_t algo; member in struct:grub_zfs_key
247 algo_decrypt (grub_crypto_cipher_handle_t cipher, grub_uint64_t algo, argument
253 switch (algo)
262 PRIuGRUB_UINT64_T " is not supported yet", algo);
268 grub_uint64_t algo,
287 err = algo_decrypt (cipher, algo,
306 grub_uint64_t algo)
362 err = algo_decrypt (cipher, algo, decrypted, key->unknown_purpose_key, 32,
372 err = algo_decrypt (cipher, algo, decrypted, key->enc_key, keylen, mac,
267 grub_zfs_decrypt_real(grub_crypto_cipher_handle_t cipher, grub_uint64_t algo, void *nonce, char *buf, grub_size_t size, const grub_uint32_t *expected_mac, grub_zfs_endian_t endian) argument
303 grub_zfs_load_key_real(const struct grub_zfs_key *key, grub_size_t keysize, grub_uint64_t salt, grub_uint64_t algo) argument
H A Dzfs.c214 grub_uint64_t algo; member in struct:subvolume::__anon444
280 grub_uint64_t algo,
288 grub_uint64_t algo) = NULL;
2099 data->subvol.keyring[besti].algo,
3480 subvol->keyring[keyn].algo = grub_le_to_cpu64 (*(grub_uint64_t *) val_in);
3482 subvol->keyring[keyn].algo);
/osnet-11/usr/src/grub/grub2/grub-core/lib/libgcrypt-grub/cipher/
H A Delgamal.c616 elg_generate_ext (int algo, unsigned int nbits, unsigned long evalue, argument
626 (void)algo;
661 elg_generate (int algo, unsigned int nbits, unsigned long evalue, argument
666 (void)algo;
680 elg_check_secret_key (int algo, gcry_mpi_t *skey) argument
685 (void)algo;
705 elg_encrypt (int algo, gcry_mpi_t *resarr, argument
711 (void)algo;
730 elg_decrypt (int algo, gcry_mpi_t *result, argument
736 (void)algo;
756 elg_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
782 elg_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *, gcry_mpi_t), void *opaquev) argument
809 elg_get_nbits(int algo, gcry_mpi_t *pkey) argument
[all...]
H A Ddsa.c680 dsa_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
696 (void)algo; /* No need to check it. */
929 dsa_generate (int algo, unsigned int nbits, unsigned long evalue,
933 return dsa_generate_ext (algo, nbits, 0, NULL, skey, retfactors, NULL);
939 dsa_check_secret_key (int algo, gcry_mpi_t *skey)
944 (void)algo;
964 dsa_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey)
969 (void)algo;
990 dsa_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey,
996 (void)algo;
679 dsa_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
928 dsa_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
938 dsa_check_secret_key(int algo, gcry_mpi_t *skey) argument
963 dsa_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
989 dsa_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *, gcry_mpi_t), void *opaquev) argument
1016 dsa_get_nbits(int algo, gcry_mpi_t *pkey) argument
[all...]
H A Drsa.c776 rsa_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
788 (void)algo;
853 rsa_generate (int algo, unsigned int nbits, unsigned long evalue,
856 return rsa_generate_ext (algo, nbits, evalue, NULL, skey, retfactors, NULL);
861 rsa_check_secret_key (int algo, gcry_mpi_t *skey)
866 (void)algo;
886 rsa_encrypt (int algo, gcry_mpi_t *resarr, gcry_mpi_t data,
891 (void)algo;
904 rsa_decrypt (int algo, gcry_mpi_t *result, gcry_mpi_t *data,
914 (void)algo;
775 rsa_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
852 rsa_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
860 rsa_check_secret_key(int algo, gcry_mpi_t *skey) argument
885 rsa_encrypt(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *pkey, int flags) argument
903 rsa_decrypt(int algo, gcry_mpi_t *result, gcry_mpi_t *data, gcry_mpi_t *skey, int flags) argument
985 rsa_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
1005 rsa_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp) (void *opaque, gcry_mpi_t tmp), void *opaquev) argument
1037 rsa_get_nbits(int algo, gcry_mpi_t *pkey) argument
[all...]
H A Decc.c959 ecc_generate_ext (int algo, unsigned int nbits, unsigned long evalue,
970 (void)algo;
1023 ecc_generate (int algo, unsigned int nbits, unsigned long evalue,
1027 return ecc_generate_ext (algo, nbits, 0, NULL, skey, retfactors, NULL);
1065 ecc_check_secret_key (int algo, gcry_mpi_t *skey)
1070 (void)algo;
1111 ecc_sign (int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey)
1116 (void)algo;
1158 ecc_verify (int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey,
1164 (void)algo;
955 ecc_generate_ext(int algo, unsigned int nbits, unsigned long evalue, const gcry_sexp_t genparms, gcry_mpi_t *skey, gcry_mpi_t **retfactors, gcry_sexp_t *r_extrainfo) argument
1019 ecc_generate(int algo, unsigned int nbits, unsigned long evalue, gcry_mpi_t *skey, gcry_mpi_t **retfactors) argument
1061 ecc_check_secret_key(int algo, gcry_mpi_t *skey) argument
1107 ecc_sign(int algo, gcry_mpi_t *resarr, gcry_mpi_t data, gcry_mpi_t *skey) argument
1154 ecc_verify(int algo, gcry_mpi_t hash, gcry_mpi_t *data, gcry_mpi_t *pkey, int (*cmp)(void *, gcry_mpi_t), void *opaquev) argument
1198 ecc_get_nbits(int algo, gcry_mpi_t *pkey) argument
[all...]

Completed in 126 milliseconds