/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_provider.c | 376 size_t keylen; in dt_probe_lookup() local 382 keylen = dt_probe_keylen(&pd); in dt_probe_lookup() 383 key = dt_probe_key(&pd, alloca(keylen)); in dt_probe_lookup() 693 size_t keylen = dt_probe_keylen(pdp); in dt_probe_info() local 694 char *key = dt_probe_key(pdp, alloca(keylen)); in dt_probe_info()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystore.c | 2003 CK_ULONG keylen = AES_MIN_KEY_BYTES; in soft_gen_crypt_key() local 2033 tmpl[attrs].pValue = &keylen; in soft_gen_crypt_key() 2034 tmpl[attrs].ulValueLen = sizeof (keylen); in soft_gen_crypt_key() 2071 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_gen_crypt_key() 2072 if ((OBJ_SEC_VALUE(secret_key) = malloc(keylen)) == NULL) { in soft_gen_crypt_key() 2125 CK_ULONG keylen = 16; in soft_gen_hmac_key() local 2155 tmpl[attrs].pValue = &keylen; in soft_gen_hmac_key() 2156 tmpl[attrs].ulValueLen = sizeof (keylen); in soft_gen_hmac_key() 2193 keylen = OBJ_SEC_VALUE_LEN(secret_key); in soft_gen_hmac_key() 2194 if ((OBJ_SEC_VALUE(secret_key) = malloc(keylen)) == NULL) { in soft_gen_hmac_key()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | winreg_svc.c | 541 int keylen; in winreg_key_has_subkey() local 546 keylen = strlen(subkey); in winreg_key_has_subkey() 550 if (strncasecmp(subkey, key->sk_name, keylen) == 0) { in winreg_key_has_subkey() 555 if (keylen < strlen(key->sk_name)) in winreg_key_has_subkey()
|
H A D | libmlsvc.h | 115 int mlsvc_encrypt_nt_password(char *password, char *key, int keylen, char *out,
|
/illumos-gate/usr/src/cmd/cmd-crypto/decrypt/ |
H A D | decrypt.c | 446 CK_ULONG keylen; in execute_cmd() local 873 keylen = 0; in execute_cmd() 875 keylen = 16; in execute_cmd() 884 keytype, keylen, cmd->flags, &key); in execute_cmd()
|
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_crypto_wep.c | 323 rc4_init(crypto_context_t *ctx, const uint8_t *key, int keylen) in rc4_init() argument 334 crkey.ck_length = keylen * 8; in rc4_init()
|
/illumos-gate/usr/src/common/crypto/rsa/ |
H A D | rsa_impl.c | 194 int len, keylen, size; in generate_rsa_key() local 198 keylen = BITLEN2BIGNUMLEN(size); in generate_rsa_key() 199 len = keylen * 2 + 1; in generate_rsa_key()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.telnetd.c | 1417 cki.keylen = 0; in encrypt_start_output() 1420 cki.keylen = DES_BLOCKSIZE; in encrypt_start_output() 1508 cki.keylen = 0; in encrypt_end() 1623 cki.keylen = DES_BLOCKSIZE; in encrypt_start() 1627 cki.keylen = 0; in encrypt_start() 1799 keylen, in encrypt_send_keyid() 1804 (void) memcpy(encr_data.encrypt.keyid, keyid, keylen); in encrypt_send_keyid() 1805 encr_data.encrypt.keyidlen = keylen; in encrypt_send_keyid() 1808 encr_data.decrypt.keyidlen = keylen; in encrypt_send_keyid() 1811 (void) memcpy(p, keyid, keylen); in encrypt_send_keyid() [all …]
|
/illumos-gate/usr/src/test/crypto-tests/tests/common/ |
H A D | cryptotest.h | 42 size_t keylen; member
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | key_mgr.c | 34 CK_ULONG keylen, in key_mgr_get_private_key_type() argument 42 rc = ber_decode_PrivateKeyInfo(keydata, keylen, &alg, in key_mgr_get_private_key_type()
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | promif.h | 227 int prom_get_security_key(char *keyname, caddr_t buf, int buflen, int *keylen,
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 823 uint32_t keylen = 1024, len; in NSS_CreateKeypair() local 857 &keylen, &keylen_size); in NSS_CreateKeypair() 892 rsaparams.keySizeInBits = keylen; in NSS_CreateKeypair() 916 ks = PQG_PBITS_TO_INDEX(keylen); in NSS_CreateKeypair() 1914 uint32_t keylen; in NSS_CreateSymKey() local 1932 rv = kmf_get_attr(KMF_KEYLENGTH_ATTR, attrlist, numattr, &keylen, in NSS_CreateSymKey() 1948 keySize = keylen; in NSS_CreateSymKey() 1954 keySize = keylen; in NSS_CreateSymKey() 1968 keySize = keylen; in NSS_CreateSymKey()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/ |
H A D | DNSDigest.c | 1334 mDNSs32 keylen = DNSDigest_Base64ToBin(b64key, keybuf, sizeof(keybuf)); in DNSDigest_ConstructHMACKeyfromBase64() local 1335 if (keylen < 0) return(keylen); in DNSDigest_ConstructHMACKeyfromBase64() 1336 DNSDigest_ConstructHMACKey(info, keybuf, (mDNSu32)keylen); in DNSDigest_ConstructHMACKeyfromBase64() 1337 return(keylen); in DNSDigest_ConstructHMACKeyfromBase64()
|
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | promif.h | 332 int prom_get_security_key(char *keyname, caddr_t buf, int buflen, int *keylen,
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | import.c | 707 uint32_t keylen; in pk_import_rawkey() local 762 keylen = keydata.Length * 8; in pk_import_rawkey() 764 KMF_KEYLENGTH_ATTR, &keylen, sizeof (keydata.Length)); in pk_import_rawkey()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 309 size_t keylen) in rand_hash() argument 322 j += (sbox[i] + key[i % keylen]); in rand_hash()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv.c | 355 (mechs[i]->keylen < 0) || (mechs[i]->algtype < 0)) in main() 357 create_cache_file(mechs[i]->keylen, mechs[i]->algtype, in main() 902 uid, arg->algtype, arg->keylen)); in __key_set_3_svc()
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 3477 uint32_t keylen = 0; in KMFPK11_CreateSymKey() local 3553 keylen = attrkeylen * 8; /* bytes to bits */ in KMFPK11_CreateSymKey() 3560 &keylen, &keylen_size); in KMFPK11_CreateSymKey() 3569 if ((keylen % 8) != 0) { in KMFPK11_CreateSymKey() 3572 secKeyLen = keylen / 8; /* in bytes for RC4/AES */ in KMFPK11_CreateSymKey() 3846 uint32_t keylen = 0, attrkeylen = 0; in create_generic_secret_key() local 3885 &keylen, NULL); in create_generic_secret_key() 3892 if ((keylen % 8) != 0) { in create_generic_secret_key() 3895 secKeyLen = keylen/8; /* in bytes */ in create_generic_secret_key()
|
/illumos-gate/usr/src/cmd/tsol/misc/ |
H A D | txzonemgr.sh | 397 keylen=128 402 keylen=$keylen outkey=$file
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 1466 uint32_t keylen = 1024; in OpenSSL_CreateKeypair() local 1542 &keylen, &keylen_size); in OpenSSL_CreateKeypair() 1553 RSA_generate_key_ex(sslPrivKey, keylen, eValue_bn, NULL) in OpenSSL_CreateKeypair() 4619 uint32_t keylen; in OpenSSL_CreateSymKey() local 4620 uint32_t keylen_size = sizeof (keylen); in OpenSSL_CreateSymKey() 4643 &keylen, &keylen_size); in OpenSSL_CreateSymKey() 4695 if (keylen % 8 != 0) { in OpenSSL_CreateSymKey() 4701 if (keylen != 128 && in OpenSSL_CreateSymKey() 4702 keylen != 192 && in OpenSSL_CreateSymKey() 4703 keylen != 256) { in OpenSSL_CreateSymKey() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ikeadm.c | 1039 uint_t c = 0, locidlen, remidlen, keylen, keybits; in parse_ps() local 1100 keyp = parse_key(argv[c++], &keylen, &keybits); in parse_ps() 1132 *len += keylen; in parse_ps() 1207 psp->ps_key_len = keylen; in parse_ps() 1209 (void) memcpy((uint8_t *)((int)psp + psp->ps_key_off), keyp, keylen); in parse_ps()
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb5.c | 1527 size_t keylen; in krb5_db_setup_mkey_name() local 1534 keylen = strlen(keyname); in krb5_db_setup_mkey_name() 1536 fname = malloc(keylen + rlen + strlen(REALM_SEP_STRING) + 1); in krb5_db_setup_mkey_name()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/ |
H A D | routeadm.c | 471 ssize_t keylen; in main() local 668 if ((keylen = keyend - nk) != in main() 671 if (strncmp(key, nk, keylen) == 0) { in main()
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 2202 keylen_t keylen; in genent_publickey() local 2331 keylen = (strlen(t) / 2) * 8; in genent_publickey() 2355 if (AUTH_DES_KEY(keylen, algtype)) in genent_publickey() 2364 else if (!(__nis_keyalg2authtype(keylen, algtype, auth_type, in genent_publickey()
|
/illumos-gate/usr/src/lib/sasl_plugins/digestmd5/ |
H A D | digestmd5.c | 1002 unsigned keylen) argument 1014 j = (j + text->sbox[i] + key[i % keylen]) % 256; 1665 HASH key, int keylen, argument 1671 utils->MD5Update(&Md5Ctx, key, keylen); 1682 utils->MD5Update(&Md5Ctx, key, keylen);
|