/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | des3_cbc.c | 35 const uint8_t *key1, size_t key1_len, in mbed_des3_cbc_init() argument 44 if (key1_len != MBEDTLS_DES_KEY_SIZE * 2 && in mbed_des3_cbc_init() 45 key1_len != MBEDTLS_DES_KEY_SIZE * 3) in mbed_des3_cbc_init() 55 if (key1_len == MBEDTLS_DES_KEY_SIZE * 3) in mbed_des3_cbc_init() 61 if (key1_len == MBEDTLS_DES_KEY_SIZE * 3) in mbed_des3_cbc_init()
|
A D | des3_ecb.c | 33 const uint8_t *key1, size_t key1_len, in mbed_des3_ecb_init() argument 42 if (key1_len != MBEDTLS_DES_KEY_SIZE * 2 && in mbed_des3_ecb_init() 43 key1_len != MBEDTLS_DES_KEY_SIZE * 3) in mbed_des3_ecb_init() 48 if (key1_len == MBEDTLS_DES_KEY_SIZE * 3) { in mbed_des3_ecb_init()
|
A D | aes_ecb.c | 38 size_t key1_len, in mbed_aes_ecb_init() argument 52 key1_len * 8); in mbed_aes_ecb_init() 56 key1_len * 8); in mbed_aes_ecb_init()
|
A D | aes_cbc.c | 39 size_t key1_len, in mbed_aes_cbc_init() argument 56 key1_len * 8); in mbed_aes_cbc_init() 60 key1_len * 8); in mbed_aes_cbc_init()
|
A D | des_ecb.c | 33 size_t key1_len, in mbed_des_ecb_init() argument 42 if (key1_len != MBEDTLS_DES_KEY_SIZE) in mbed_des_ecb_init()
|
A D | des_cbc.c | 35 size_t key1_len, in mbed_des_cbc_init() argument 44 if (key1_len != MBEDTLS_DES_KEY_SIZE) in mbed_des_cbc_init()
|
A D | aes_ctr.c | 40 const uint8_t *key1, size_t key1_len, in mbed_aes_ctr_init() argument 54 if (mbedtls_aes_setkey_enc(&c->aes_ctx, key1, key1_len * 8)) in mbed_aes_ctr_init()
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/cipher/ |
A D | cipher.c | 75 size_t key1_len, const uint8_t *key2, in cipher_init() argument 81 if ((!key1 && key1_len) || (!key2 && key2_len) || (!iv && iv_len)) { in cipher_init() 83 CRYPTO_TRACE("key1 @%p-%zu bytes", key1, key1_len); in cipher_init() 84 CRYPTO_TRACE("key2 @%p-%zu bytes", key1, key1_len); in cipher_init() 94 .key1.length = key1_len, in cipher_init()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | xts.c | 37 size_t key1_len, const uint8_t *key2 __unused, in ltc_xts_init() argument 44 if (key1_len != key2_len) in ltc_xts_init() 63 if (xts_start(c->cipher_idx, key1, key2, key1_len, 0, in ltc_xts_init()
|
A D | ctr.c | 33 size_t key1_len, const uint8_t *key2 __unused, in ltc_ctr_init() argument 48 if (ctr_start(c->cipher_idx, iv, key1, key1_len, 0, in ltc_ctr_init()
|
A D | cbc.c | 36 size_t key1_len, const uint8_t *key2 __unused, in ltc_cbc_init() argument 43 size_t kl = key1_len; in ltc_cbc_init()
|
A D | ecb.c | 36 size_t key1_len, const uint8_t *key2 __unused, in ltc_ecb_init() argument 44 size_t kl = key1_len; in ltc_ecb_init()
|
/optee_os-3.20.0/core/crypto/ |
A D | sm4-ecb.c | 32 size_t key1_len, const uint8_t *key2 __unused, in sm4_ecb_init() argument 39 if (key1_len != 16) in sm4_ecb_init()
|
A D | sm4-ctr.c | 34 const uint8_t *key1, size_t key1_len, in sm4_ctr_init() argument 41 if (key1_len != 16 || iv_len != sizeof(c->ctr)) in sm4_ctr_init()
|
A D | sm4-cbc.c | 34 size_t key1_len, const uint8_t *key2 __unused, in sm4_cbc_init() argument 40 if (key1_len != 16 || iv_len != sizeof(c->iv)) in sm4_cbc_init()
|
A D | aes-cts.c | 51 size_t key1_len, const uint8_t *key2, in cts_init() argument 59 res = crypto_cipher_init(c->ecb, mode, key1, key1_len, key2, key2_len, in cts_init() 64 return crypto_cipher_init(c->cbc, mode, key1, key1_len, key2, key2_len, in cts_init()
|
A D | sm4-xts.c | 35 size_t key1_len, const uint8_t *key2, in sm4_xts_init() argument 41 if (key1_len != 16 || key2_len != 16 || iv_len != sizeof(c->iv)) in sm4_xts_init()
|
A D | crypto.c | 181 const uint8_t *key1, size_t key1_len, in crypto_cipher_init() argument 188 return cipher_ops(ctx)->init(ctx, mode, key1, key1_len, key2, key2_len, in crypto_cipher_init()
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
A D | ctr.c | 33 size_t key1_len, in se050_aes_ctr_init() argument 63 key1, key1_len, key1_len * 8, NULL, 0); in se050_aes_ctr_init()
|
/optee_os-3.20.0/core/include/crypto/ |
A D | crypto.h | 41 const uint8_t *key1, size_t key1_len,
|
A D | crypto_impl.h | 156 const uint8_t *key1, size_t key1_len,
|