Searched refs:sm4_context (Results 1 – 6 of 6) sorted by relevance
/optee_os-3.20.0/core/crypto/ |
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,
|
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()
|
A D | sm4-xts.c | 18 struct sm4_context state; 19 struct sm4_context state_ek; 20 struct sm4_context state_dk;
|
A D | sm4-ecb.c | 18 struct sm4_context state;
|
A D | sm4-ctr.c | 19 struct sm4_context state;
|
A D | sm4-cbc.c | 19 struct sm4_context state;
|
Completed in 5 milliseconds