Lines Matching refs:skey
42 symmetric_key skey; in des_encrypt() local
53 des_setup(pkey, 8, 0, &skey); in des_encrypt()
54 des_ecb_encrypt(clear, cypher, &skey); in des_encrypt()
55 des_done(&skey); in des_encrypt()
87 symmetric_key *skey; in aes_encrypt_init() local
88 skey = os_malloc(sizeof(*skey)); in aes_encrypt_init()
89 if (skey == NULL) in aes_encrypt_init()
91 if (aes_setup(key, len, 0, skey) != CRYPT_OK) { in aes_encrypt_init()
92 os_free(skey); in aes_encrypt_init()
95 return skey; in aes_encrypt_init()
101 symmetric_key *skey = ctx; in aes_encrypt() local
102 aes_ecb_encrypt(plain, crypt, skey); in aes_encrypt()
108 symmetric_key *skey = ctx; in aes_encrypt_deinit() local
109 aes_done(skey); in aes_encrypt_deinit()
110 os_free(skey); in aes_encrypt_deinit()
116 symmetric_key *skey; in aes_decrypt_init() local
117 skey = os_malloc(sizeof(*skey)); in aes_decrypt_init()
118 if (skey == NULL) in aes_decrypt_init()
120 if (aes_setup(key, len, 0, skey) != CRYPT_OK) { in aes_decrypt_init()
121 os_free(skey); in aes_decrypt_init()
124 return skey; in aes_decrypt_init()
130 symmetric_key *skey = ctx; in aes_decrypt() local
131 aes_ecb_encrypt(plain, (u8 *) crypt, skey); in aes_decrypt()
137 symmetric_key *skey = ctx; in aes_decrypt_deinit() local
138 aes_done(skey); in aes_decrypt_deinit()
139 os_free(skey); in aes_decrypt_deinit()