Home
last modified time | relevance | path

Searched refs:cipherKey (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/common/crypto/aes/
H A Daes_impl.c104 const uint32_t cipherKey[], int keyBits);
106 const uint32_t cipherKey[], int keyBits);
114 const uint32_t cipherKey[], uint64_t keyBits);
116 const uint32_t cipherKey[], uint64_t keyBits);
876 rijndael_key_setup_enc_raw(uint32_t rk[], const uint32_t cipherKey[], in rijndael_key_setup_enc_raw() argument
882 rk[0] = cipherKey[0]; in rijndael_key_setup_enc_raw()
883 rk[1] = cipherKey[1]; in rijndael_key_setup_enc_raw()
884 rk[2] = cipherKey[2]; in rijndael_key_setup_enc_raw()
885 rk[3] = cipherKey[3]; in rijndael_key_setup_enc_raw()
907 rk[4] = cipherKey[4]; in rijndael_key_setup_enc_raw()
[all …]
H A Daes_impl.h133 extern void aes_init_keysched(const uint8_t *cipherKey, uint_t keyBits,
/illumos-gate/usr/src/common/crypto/des/
H A Ddes_impl.c851 des_init_keysched(uint8_t *cipherKey, des_strength_t strength, void *ks) in des_init_keysched() argument
883 if (IS_P2ALIGNED(cipherKey, sizeof (uint64_t))) { in des_init_keysched()
886 key_uint64[i] = *((uint64_t *)&cipherKey[j]); in des_init_keysched()
894 htonll(*(uint64_t *)(void *)&cipherKey[j]); in des_init_keysched()
896 key_uint64[i] = (((uint64_t)cipherKey[j] << 56) | in des_init_keysched()
897 ((uint64_t)cipherKey[j + 1] << 48) | in des_init_keysched()
898 ((uint64_t)cipherKey[j + 2] << 40) | in des_init_keysched()
899 ((uint64_t)cipherKey[j + 3] << 32) | in des_init_keysched()
900 ((uint64_t)cipherKey[j + 4] << 24) | in des_init_keysched()
901 ((uint64_t)cipherKey[j + 5] << 16) | in des_init_keysched()
[all …]
/illumos-gate/usr/src/common/crypto/aes/amd64/
H A Daeskey.c214 rijndael_key_setup_enc_amd64(uint32_t rk[], const uint32_t cipherKey[], in rijndael_key_setup_enc_amd64() argument
219 aes_encrypt_key128((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_enc_amd64()
222 aes_encrypt_key192((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_enc_amd64()
225 aes_encrypt_key256((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_enc_amd64()
562 rijndael_key_setup_dec_amd64(uint32_t rk[], const uint32_t cipherKey[], in rijndael_key_setup_dec_amd64() argument
567 aes_decrypt_key128((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_dec_amd64()
570 aes_decrypt_key192((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_dec_amd64()
573 aes_decrypt_key256((unsigned char *)&cipherKey[0], rk); in rijndael_key_setup_dec_amd64()
H A Daes_intel.S168 rijndael_key_setup_enc_intel(uint32_t rk[], const uint32_t cipherKey[],
174 rijndael_key_setup_dec_intel(uint32_t rk[], const uint32_t cipherKey[],
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelUtil.c154 uint8_t *cipherKey; in get_symmetric_key_value() local
160 cipherKey = malloc(OBJ_SEC(key_p)->sk_value_len); in get_symmetric_key_value()
161 if (cipherKey == NULL) in get_symmetric_key_value()
164 (void) memcpy(cipherKey, OBJ_SEC(key_p)->sk_value, in get_symmetric_key_value()
167 return (cipherKey); in get_symmetric_key_value()