Home
last modified time | relevance | path

Searched refs:key1_len (Results 1 – 21 of 21) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/core/
A Ddes3_cbc.c35 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 Ddes3_ecb.c33 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 Daes_ecb.c38 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 Daes_cbc.c39 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 Ddes_ecb.c33 size_t key1_len, in mbed_des_ecb_init() argument
42 if (key1_len != MBEDTLS_DES_KEY_SIZE) in mbed_des_ecb_init()
A Ddes_cbc.c35 size_t key1_len, in mbed_des_cbc_init() argument
44 if (key1_len != MBEDTLS_DES_KEY_SIZE) in mbed_des_cbc_init()
A Daes_ctr.c40 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 Dcipher.c75 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 Dxts.c37 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 Dctr.c33 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 Dcbc.c36 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 Decb.c36 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 Dsm4-ecb.c32 size_t key1_len, const uint8_t *key2 __unused, in sm4_ecb_init() argument
39 if (key1_len != 16) in sm4_ecb_init()
A Dsm4-ctr.c34 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 Dsm4-cbc.c34 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 Daes-cts.c51 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 Dsm4-xts.c35 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 Dcrypto.c181 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 Dctr.c33 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 Dcrypto.h41 const uint8_t *key1, size_t key1_len,
A Dcrypto_impl.h156 const uint8_t *key1, size_t key1_len,

Completed in 19 milliseconds