Searched refs:key (Results 26 - 50 of 2274) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dcrypto_internal-rsa.c22 struct crypto_public_key * crypto_public_key_import(const u8 *key, size_t len) argument
25 crypto_rsa_import_public_key(key, len);
38 struct crypto_private_key * crypto_private_key_import(const u8 *key, argument
45 res = pkcs8_key_import(key, len);
51 res = pkcs8_enc_key_import(key, len, passwd);
56 /* Not PKCS#8, so try to import PKCS #1 encoded RSA private key */
58 "key");
60 crypto_rsa_import_private_key(key, len);
72 int crypto_public_key_encrypt_pkcs1_v15(struct crypto_public_key *key, argument
76 return pkcs1_encrypt(2, (struct crypto_rsa_key *) key,
81 crypto_private_key_decrypt_pkcs1_v15(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
90 crypto_private_key_sign_pkcs1(struct crypto_private_key *key, const u8 *in, size_t inlen, u8 *out, size_t *outlen) argument
99 crypto_public_key_free(struct crypto_public_key *key) argument
105 crypto_private_key_free(struct crypto_private_key *key) argument
111 crypto_public_key_decrypt_pkcs1(struct crypto_public_key *key, const u8 *crypt, size_t crypt_len, u8 *plain, size_t *plain_len) argument
[all...]
H A Daes-encblock.c18 * @key: Key for AES
23 int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out) argument
26 ctx = aes_encrypt_init(key, 16);
/freebsd-11-stable/crypto/openssl/crypto/rsa/
H A Drsa_chk.c55 int RSA_check_key(const RSA *key) argument
61 if (!key->p || !key->q || !key->n || !key->e || !key->d) {
67 BN_set_flags(key->p, BN_FLG_CONSTTIME);
68 BN_set_flags(key->q, BN_FLG_CONSTTIME);
69 BN_set_flags(key->d, BN_FLG_CONSTTIME);
83 if (BN_is_one(key
[all...]
H A Drsa_test.c22 key->n = BN_bin2bn(n, sizeof(n)-1, key->n); \
23 key->e = BN_bin2bn(e, sizeof(e)-1, key->e); \
24 key->d = BN_bin2bn(d, sizeof(d)-1, key->d); \
25 key->p = BN_bin2bn(p, sizeof(p)-1, key->p); \
26 key->q = BN_bin2bn(q, sizeof(q)-1, key
33 key1(RSA *key, unsigned char *c) argument
82 key2(RSA *key, unsigned char *c) argument
127 key3(RSA *key, unsigned char *c) argument
215 RSA *key; local
[all...]
/freebsd-11-stable/contrib/ntp/sntp/
H A Dcrypto.h19 struct key { struct
20 struct key * next;
28 extern int auth_init(const char *keyfile, struct key **keys);
29 extern void get_key(int key_id, struct key **d_key);
31 const struct key *cmp_key, void *digest);
33 const struct key *cmp_key);
/freebsd-11-stable/crypto/openssh/regress/
H A Dkeygen-convert.sh7 # generate user key for agent
8 trace "generating $t key"
9 rm -f $OBJ/$t-key
10 ${SSHKEYGEN} -q -N "" -t $t -f $OBJ/$t-key
13 ${SSHKEYGEN} -q -e -f $OBJ/$t-key >$OBJ/$t-key-rfc || \
17 ${SSHKEYGEN} -q -e -f $OBJ/$t-key.pub >$OBJ/$t-key-rfc.pub || \
20 cmp $OBJ/$t-key-rfc $OBJ/$t-key
[all...]
H A Dkeygen-change.sh4 tid="change passphrase for key"
9 KEYTYPES=`${SSH} -Q key-plain`
15 # generate user key for agent
16 trace "generating $t key"
17 rm -f $OBJ/$t-key
18 ${SSHKEYGEN} -q -N ${S1} -t $t -f $OBJ/$t-key
20 ${SSHKEYGEN} -p -P ${S1} -N ${S2} -f $OBJ/$t-key > /dev/null
22 fail "ssh-keygen -p failed for $t-key"
25 fail "ssh-keygen for $t-key failed"
27 rm -f $OBJ/$t-key
[all...]
/freebsd-11-stable/libexec/mknetid/
H A Dhash.c56 const u_char *key; local
60 #define HASHC h = *key++ + 65599 * h
63 key = keyarg;
99 * Generate a hash value for a given key (character string).
103 u_int32_t hashkey(char *key) argument
106 if (key == NULL)
108 return(hash((void *)key, strlen(key)) & HASH_MASK);
112 struct grouplist *lookup(struct member_entry *table[], char *key) argument
116 cur = table[hashkey(key)];
132 mstore(struct member_entry *table[], char *key, int gid, int dup) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/aes/
H A Daes.h91 AES_KEY *key);
93 AES_KEY *key);
96 AES_KEY *key);
98 AES_KEY *key);
101 const AES_KEY *key);
103 const AES_KEY *key);
106 const AES_KEY *key, const int enc);
108 size_t length, const AES_KEY *key,
111 size_t length, const AES_KEY *key,
114 size_t length, const AES_KEY *key,
[all...]
H A Daes_ecb.c63 const AES_KEY *key, const int enc)
66 assert(in && out && key);
70 AES_encrypt(in, out, key);
72 AES_decrypt(in, out, key);
62 AES_ecb_encrypt(const unsigned char *in, unsigned char *out, const AES_KEY *key, const int enc) argument
H A Daes_misc.c71 AES_KEY *key)
76 return private_AES_set_encrypt_key(userKey, bits, key);
80 AES_KEY *key)
85 return private_AES_set_decrypt_key(userKey, bits, key);
70 AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key) argument
79 AES_set_decrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key) argument
H A Daes_wrap.c59 int AES_wrap_key(AES_KEY *key, const unsigned char *iv, argument
63 return CRYPTO_128_wrap(key, iv, out, in, inlen, (block128_f) AES_encrypt);
66 int AES_unwrap_key(AES_KEY *key, const unsigned char *iv, argument
70 return CRYPTO_128_unwrap(key, iv, out, in, inlen,
H A Daes_cbc.c56 size_t len, const AES_KEY *key,
61 CRYPTO_cbc128_encrypt(in, out, len, key, ivec,
64 CRYPTO_cbc128_decrypt(in, out, len, key, ivec,
55 AES_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len, const AES_KEY *key, unsigned char *ivec, const int enc) argument
/freebsd-11-stable/contrib/gcc/config/
H A Dvxlib.c93 array which is used to store TLS values. A TLS key is simply an
102 A task delete hook is installed to execute key destructors. The
146 A key is potentially valid (i.e. has been handed out by
150 non-NULL specific value for that key.
152 A key is actually valid in a thread T iff the generation count
164 #define KEY_VALID_P(key) !(tls_keys.generation[key] & 1)
168 key is valid. */
183 function for each TLS key that has both a destructor and
188 need to read tls_keys.dtor[key] atomicall
194 __gthread_key_t key; local
263 __gthread_key_t key; local
290 __gthread_key_delete(__gthread_key_t key) argument
321 __gthread_getspecific(__gthread_key_t key) argument
349 __gthread_setspecific(__gthread_key_t key, void *value) argument
[all...]
/freebsd-11-stable/sys/geom/eli/
H A Dg_eli_key_cache.c75 g_eli_key_fill(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno) argument
91 sizeof(hmacdata), key->gek_key, 0);
92 key->gek_keyno = keyno;
93 key->gek_count = 0;
94 key->gek_magic = G_ELI_KEY_MAGIC;
104 struct g_eli_key *key, *ekey, keysearch; local
109 key = malloc(sizeof(*key), M_ELI, M_WAITOK);
110 g_eli_key_fill(sc, key, keyno);
114 * Recheck if the key was
135 struct g_eli_key *key; local
148 g_eli_key_replace(struct g_eli_softc *sc, struct g_eli_key *key, uint64_t keyno) argument
166 g_eli_key_remove(struct g_eli_softc *sc, struct g_eli_key *key) argument
243 struct g_eli_key *key; local
261 struct g_eli_key *key, keysearch; local
320 struct g_eli_key *key = (struct g_eli_key *)rawkey; local
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/hcsecd/
H A Dhcsecd.conf19 # key 0x11223344 | nokey ; - to set link key for the device
28 # "nokey" means that no link key has been defined and we should
40 key nokey;
47 key nokey;
54 key nokey;
61 key 0x00112233445566778899aabbccddeeff; # 16 bytes key (hex string)
/freebsd-11-stable/stand/libsa/
H A Dbootparam.h5 int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);
/freebsd-11-stable/crypto/openssl/crypto/camellia/
H A Dcmll_ecb.c63 const CAMELLIA_KEY *key, const int enc)
66 assert(in && out && key);
70 Camellia_encrypt(in, out, key);
72 Camellia_decrypt(in, out, key);
62 Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out, const CAMELLIA_KEY *key, const int enc) argument
H A Dcmll_cbc.c56 size_t len, const CAMELLIA_KEY *key,
61 CRYPTO_cbc128_encrypt(in, out, len, key, ivec,
64 CRYPTO_cbc128_decrypt(in, out, len, key, ivec,
55 Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len, const CAMELLIA_KEY *key, unsigned char *ivec, const int enc) argument
/freebsd-11-stable/crypto/heimdal/lib/wind/
H A Dcombining.c41 translation_cmp(const void *key, const void *data) argument
43 const struct translation *t1 = (const struct translation *)key;
46 return t1->key - t2->key;
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/db/
H A Dh_lfsr.c61 DBT key, val; local
74 key.data = kb;
83 key.size = (len & 0xff) + 1;
85 memset(kb, c, key.size);
87 switch ((*db->put)(db, &key, &val, R_NOOVERWRITE)) {
90 key.size, val.size, c);
94 key.size, val.size, c);
97 key.size, val.size, c);
105 key.size = (len & 0xff) + 1;
107 memset(kb, c, key
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dgthr-rtems.h59 extern int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *));
60 extern int rtems_gxx_key_delete (__gthread_key_t key);
61 extern void *rtems_gxx_getspecific (__gthread_key_t key);
62 extern int rtems_gxx_setspecific (__gthread_key_t key, const void *ptr);
91 __gthread_key_create (__gthread_key_t *key, void (*dtor) (void *)) argument
93 return rtems_gxx_key_create( key, dtor );
97 __gthread_key_delete (__gthread_key_t key) argument
99 return rtems_gxx_key_delete (key);
103 __gthread_getspecific (__gthread_key_t key) argument
105 return rtems_gxx_getspecific (key);
109 __gthread_setspecific(__gthread_key_t key, const void *ptr) argument
[all...]
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-crypto.c53 int cvmx_crypto_dormant_enable(uint64_t key) argument
60 v.s.key = key;
/freebsd-11-stable/lib/libypclnt/
H A Dypclnt_get.c40 ypclnt_get(ypclnt_t *ypc, const char *key) argument
46 key, (int)strlen(key), &value, &len);
/freebsd-11-stable/lib/libc/iconv/
H A Dcitrus_hash.c44 _citrus_string_hash_func(const char *key, int hashsize) argument
48 _region_init(&r, __DECONST(void *, key), strlen(key));

Completed in 356 milliseconds

1234567891011>>