Lines Matching refs:atmel_tdes_crypt
689 static int atmel_tdes_crypt(struct skcipher_request *req, unsigned long mode) in atmel_tdes_crypt() function
830 return atmel_tdes_crypt(req, TDES_FLAGS_ECB | TDES_FLAGS_ENCRYPT); in atmel_tdes_ecb_encrypt()
835 return atmel_tdes_crypt(req, TDES_FLAGS_ECB); in atmel_tdes_ecb_decrypt()
840 return atmel_tdes_crypt(req, TDES_FLAGS_CBC | TDES_FLAGS_ENCRYPT); in atmel_tdes_cbc_encrypt()
845 return atmel_tdes_crypt(req, TDES_FLAGS_CBC); in atmel_tdes_cbc_decrypt()
849 return atmel_tdes_crypt(req, TDES_FLAGS_CFB64 | TDES_FLAGS_ENCRYPT); in atmel_tdes_cfb_encrypt()
854 return atmel_tdes_crypt(req, TDES_FLAGS_CFB64); in atmel_tdes_cfb_decrypt()
859 return atmel_tdes_crypt(req, TDES_FLAGS_CFB8 | TDES_FLAGS_ENCRYPT); in atmel_tdes_cfb8_encrypt()
864 return atmel_tdes_crypt(req, TDES_FLAGS_CFB8); in atmel_tdes_cfb8_decrypt()
869 return atmel_tdes_crypt(req, TDES_FLAGS_CFB16 | TDES_FLAGS_ENCRYPT); in atmel_tdes_cfb16_encrypt()
874 return atmel_tdes_crypt(req, TDES_FLAGS_CFB16); in atmel_tdes_cfb16_decrypt()
879 return atmel_tdes_crypt(req, TDES_FLAGS_CFB32 | TDES_FLAGS_ENCRYPT); in atmel_tdes_cfb32_encrypt()
884 return atmel_tdes_crypt(req, TDES_FLAGS_CFB32); in atmel_tdes_cfb32_decrypt()
889 return atmel_tdes_crypt(req, TDES_FLAGS_OFB | TDES_FLAGS_ENCRYPT); in atmel_tdes_ofb_encrypt()
894 return atmel_tdes_crypt(req, TDES_FLAGS_OFB); in atmel_tdes_ofb_decrypt()