Home
last modified time | relevance | path

Searched refs:in (Results 1 – 10 of 10) sorted by relevance

/tinycrypt-latest/lib/source/
Daes_decrypt.c73 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument
75 out[0] = multe(in[0]) ^ multb(in[1]) ^ multd(in[2]) ^ mult9(in[3]); in mult_row_column()
76 out[1] = mult9(in[0]) ^ multe(in[1]) ^ multb(in[2]) ^ multd(in[3]); in mult_row_column()
77 out[2] = multd(in[0]) ^ mult9(in[1]) ^ multe(in[2]) ^ multb(in[3]); in mult_row_column()
78 out[3] = multb(in[0]) ^ multd(in[1]) ^ mult9(in[2]) ^ multe(in[3]); in mult_row_column()
129 int tc_aes_decrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_decrypt() argument
136 } else if (in == (const uint8_t *) 0) { in tc_aes_decrypt()
142 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_decrypt()
Daes_encrypt.c124 static inline void mult_row_column(uint8_t *out, const uint8_t *in) in mult_row_column() argument
126 out[0] = _double_byte(in[0]) ^ triple(in[1]) ^ in[2] ^ in[3]; in mult_row_column()
127 out[1] = in[0] ^ _double_byte(in[1]) ^ triple(in[2]) ^ in[3]; in mult_row_column()
128 out[2] = in[0] ^ in[1] ^ _double_byte(in[2]) ^ triple(in[3]); in mult_row_column()
129 out[3] = triple(in[0]) ^ in[1] ^ in[2] ^ _double_byte(in[3]); in mult_row_column()
158 int tc_aes_encrypt(uint8_t *out, const uint8_t *in, const TCAesKeySched_t s) in tc_aes_encrypt() argument
165 } else if (in == (const uint8_t *) 0) { in tc_aes_encrypt()
171 (void)_copy(state, sizeof(state), in, sizeof(state)); in tc_aes_encrypt()
Dcbc_mode.c37 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_encrypt() argument
47 in == (const uint8_t *) 0 || in tc_cbc_mode_encrypt()
64 buffer[m++] ^= *in++; in tc_cbc_mode_encrypt()
77 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_cbc_mode_decrypt() argument
88 in == (const uint8_t *) 0 || in tc_cbc_mode_decrypt()
106 (void)tc_aes_decrypt(buffer, in, sched); in tc_cbc_mode_decrypt()
107 in += TC_AES_BLOCK_SIZE; in tc_cbc_mode_decrypt()
Dctr_mode.c37 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in tc_ctr_mode() argument
48 in == (uint8_t *) 0 || in tc_ctr_mode()
77 *out++ = buffer[i%(TC_AES_BLOCK_SIZE)] ^ *in++; in tc_ctr_mode()
Dcmac_mode.c78 void gf_double(uint8_t *out, uint8_t *in) in gf_double() argument
82 uint8_t *x = in + (TC_AES_BLOCK_SIZE - 1); in gf_double()
85 uint8_t carry = (in[0] >> 7) ? gf_wrap : 0; in gf_double()
90 if (x == in) { in gf_double()
Dccm_mode.c93 static int ccm_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in, in ccm_ctr_mode() argument
104 in == (uint8_t *) 0 || in ccm_ctr_mode()
128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode()
/tinycrypt-latest/lib/include/tinycrypt/
Dcbc_mode.h110 int tc_cbc_mode_encrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
143 int tc_cbc_mode_decrypt(uint8_t *out, unsigned int outlen, const uint8_t *in,
Daes.h93 int tc_aes_encrypt(uint8_t *out, const uint8_t *in,
123 int tc_aes_decrypt(uint8_t *out, const uint8_t *in,
Dctr_mode.h101 int tc_ctr_mode(uint8_t *out, unsigned int outlen, const uint8_t *in,
/tinycrypt-latest/
DREADME.zephyr1 The TinyCrypt library in Zephyr is a downstream of an externally maintained
9 maintainer in the review. That can be found via the git history.
21 Redistribution and use in source and binary forms, with or without modification,
27 - Redistributions in binary form must reproduce the above copyright notice,
28 this list of conditions and the following disclaimer in the documentation
54 Redistribution and use in source and binary forms, with or without modification,
58 * Redistributions in binary form must reproduce the above copyright notice,
59 this list of conditions and the following disclaimer in the documentation