Searched refs:des3 (Results 1 – 2 of 2) sorted by relevance
/hostap-latest/src/crypto/ |
D | crypto_internal-cipher.c | 33 } des3; member 83 des3_key_setup(key, &ctx->u.des3.key); in crypto_cipher_init() 84 os_memcpy(ctx->u.des3.cbc, iv, 8); in crypto_cipher_init() 136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 137 des3_encrypt(ctx->u.des3.cbc, &ctx->u.des3.key, in crypto_cipher_encrypt() 138 ctx->u.des3.cbc); in crypto_cipher_encrypt() 139 os_memcpy(crypt, ctx->u.des3.cbc, 8); in crypto_cipher_encrypt() 150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt() 200 des3_decrypt(crypt, &ctx->u.des3.key, plain); in crypto_cipher_decrypt() 202 plain[j] ^= ctx->u.des3.cbc[j]; in crypto_cipher_decrypt() [all …]
|
D | crypto_wolfssl.c | 762 Des3 des3; member 814 wc_Des3_SetKey(&ctx->enc.des3, key, iv, DES_ENCRYPTION) || in crypto_cipher_init() 815 wc_Des3_SetKey(&ctx->dec.des3, key, iv, DES_DECRYPTION)) { in crypto_cipher_init() 853 if (wc_Des3_CbcEncrypt(&ctx->enc.des3, crypt, plain, len) != 0) in crypto_cipher_encrypt() 883 if (wc_Des3_CbcDecrypt(&ctx->dec.des3, plain, crypt, len) != 0) in crypto_cipher_decrypt()
|