Home
last modified time | relevance | path

Searched refs:sm4_context (Results 1 – 6 of 6) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Dsm4.h14 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 Dsm4.c186 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 Dsm4-xts.c18 struct sm4_context state;
19 struct sm4_context state_ek;
20 struct sm4_context state_dk;
A Dsm4-ecb.c18 struct sm4_context state;
A Dsm4-ctr.c19 struct sm4_context state;
A Dsm4-cbc.c19 struct sm4_context state;

Completed in 5 milliseconds