Lines Matching refs:aes
53 #include <crypto/aes.h>
174 volatile struct aes_t *aes = (volatile struct aes_t *) AES_START;
191 aes->controlr.K = key_len / 8 - 2;
193 aes->K3R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 0));
194 aes->K2R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 1));
195 aes->K1R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 2));
196 aes->K0R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 3));
199 aes->K5R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 0));
200 aes->K4R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 1));
201 aes->K3R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 2));
202 aes->K2R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 3));
203 aes->K1R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 4));
204 aes->K0R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 5));
207 aes->K7R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 0));
208 aes->K6R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 1));
209 aes->K5R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 2));
210 aes->K4R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 3));
211 aes->K3R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 4));
212 aes->K2R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 5));
213 aes->K1R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 6));
214 aes->K0R = DEU_ENDIAN_SWAP(*((u32 *) in_key + 7));
225 aes->controlr.PNK = 1;
227 while (aes->controlr.BUS) {
232 aes->controlr.E_D = !encdec; //encryption
233 aes->controlr.O = mode; //0 ECB 1 CBC 2 OFB 3 CFB 4 CTR
235 //aes->controlr.F = 128; //default; only for CFB and OFB modes; change only for customer-specific apps
237 aes->IV3R = DEU_ENDIAN_SWAP(*(u32 *) iv_arg);
238 aes->IV2R = DEU_ENDIAN_SWAP(*((u32 *) iv_arg + 1));
239 aes->IV1R = DEU_ENDIAN_SWAP(*((u32 *) iv_arg + 2));
240 aes->IV0R = DEU_ENDIAN_SWAP(*((u32 *) iv_arg + 3));
253 aes->controlr.DAU = 0;
256 while (aes->controlr.BUS) {
969 .cra_name = "aes",
970 .cra_driver_name = "ifxdeu-aes",
989 .cra_name = "ecb(aes)",
990 .cra_driver_name = "ifxdeu-ecb(aes)",
1009 .cra_name = "cbc(aes)",
1010 .cra_driver_name = "ifxdeu-cbc(aes)",
1029 .cra_name = "ctr(aes)",
1030 .cra_driver_name = "ifxdeu-ctr(aes)",
1049 .cra_name = "rfc3686(ctr(aes))",
1050 .cra_driver_name = "ifxdeu-rfc3686(ctr(aes))",
1112 if (!strcmp((char *)&aes_drivers_alg[i].alg.cra_name, "rfc3686(ctr(aes))"))
1121 * \brief unregister aes driver