Lines Matching refs:cx
35 aes_rval aes_encrypt_key(const unsigned char *key, int key_len, aes_encrypt_ctx cx[1])
43 cccbc_init(cbc, cx[0].ctx, key_len, key);
49 unsigned char *out_blk, aes_encrypt_ctx cx[1])
55 cccbc_update(cbc, cx[0].ctx, ctx_iv, num_blk, in_blk, out_blk); //Actually cbc encrypt.
61 aes_rval aes_encrypt(const unsigned char *in_blk, unsigned char *out_blk, aes_encrypt_ctx cx[1])
63 return aes_encrypt_cbc(in_blk, NULL, 1, out_blk, cx);
66 aes_rval aes_decrypt_key(const unsigned char *key, int key_len, aes_decrypt_ctx cx[1])
74 cccbc_init(cbc, cx[0].ctx, key_len, key);
80 unsigned char *out_blk, aes_decrypt_ctx cx[1])
86 cccbc_update(cbc, cx[0].ctx, ctx_iv, num_blk, in_blk, out_blk); //Actually cbc decrypt.
92 aes_rval aes_decrypt(const unsigned char *in_blk, unsigned char *out_blk, aes_decrypt_ctx cx[1])
94 return aes_decrypt_cbc(in_blk, NULL, 1, out_blk, cx);
97 aes_rval aes_encrypt_key128(const unsigned char *key, aes_encrypt_ctx cx[1])
99 return aes_encrypt_key(key, 16, cx);
102 aes_rval aes_decrypt_key128(const unsigned char *key, aes_decrypt_ctx cx[1])
104 return aes_decrypt_key(key, 16, cx);
108 aes_rval aes_encrypt_key256(const unsigned char *key, aes_encrypt_ctx cx[1])
110 return aes_encrypt_key(key, 32, cx);
113 aes_rval aes_decrypt_key256(const unsigned char *key, aes_decrypt_ctx cx[1])
115 return aes_decrypt_key(key, 32, cx);