Searched refs:sm4_context (Results 1 – 7 of 7) sorted by relevance
| /optee_os/core/crypto/ |
| H A D | sm4.h | 14 struct sm4_context { struct 19 void sm4_setkey_enc(struct sm4_context *ctx, const uint8_t key[16]); argument 20 void sm4_setkey_dec(struct sm4_context *ctx, const uint8_t key[16]); 21 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, 23 void sm4_crypt_cbc(struct sm4_context *ctx, size_t length, uint8_t iv[16], 25 void sm4_crypt_ctr(struct sm4_context *ctx, size_t length, uint8_t ctr[16], 27 void sm4_crypt_xts(struct sm4_context *ctx, struct sm4_context *ctx_ek, 28 struct sm4_context *ctx_dk, size_t length, uint8_t *iv,
|
| H A D | sm4_accel.c | 13 void sm4_setkey_enc(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_enc() 19 void sm4_setkey_dec(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_dec() 25 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb() 33 void sm4_crypt_cbc(struct sm4_context *ctx, size_t length, uint8_t iv[16], in sm4_crypt_cbc() 45 void sm4_crypt_ctr(struct sm4_context *ctx, size_t length, uint8_t ctr[16], in sm4_crypt_ctr() 53 void sm4_crypt_xts(struct sm4_context *ctx, struct sm4_context *ctx_ek, in sm4_crypt_xts() 54 struct sm4_context *ctx_dk __unused, size_t len, uint8_t *iv, in sm4_crypt_xts()
|
| H A D | sm4.c | 186 void sm4_setkey_enc(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_enc() 192 void sm4_setkey_dec(struct sm4_context *ctx, const uint8_t key[16]) in sm4_setkey_dec() 203 void sm4_crypt_ecb(struct sm4_context *ctx, size_t length, const uint8_t *input, in sm4_crypt_ecb() 216 void sm4_crypt_cbc(struct sm4_context *ctx, size_t length, uint8_t iv[16], in sm4_crypt_cbc() 249 void sm4_crypt_ctr(struct sm4_context *ctx, size_t length, uint8_t ctr[16], in sm4_crypt_ctr() 295 void sm4_crypt_xts(struct sm4_context *ctx, struct sm4_context *ctx_ek, in sm4_crypt_xts() 296 struct sm4_context *ctx_dk, size_t len, uint8_t *iv, in sm4_crypt_xts()
|
| H A D | sm4-xts.c | 18 struct sm4_context state; 19 struct sm4_context state_ek; 20 struct sm4_context state_dk;
|
| H A D | sm4-ecb.c | 18 struct sm4_context state;
|
| H A D | sm4-ctr.c | 19 struct sm4_context state;
|
| H A D | sm4-cbc.c | 19 struct sm4_context state;
|