Lines Matching refs:AES_BLOCKLEN
84 #define AES_BLOCKLEN 16
154 u_int8_t iv[AES_BLOCKLEN] __attribute__((aligned(4))), *dptr;
161 if (ivlen != AES_BLOCKLEN) {
183 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) {
186 algo->name, AES_BLOCKLEN));
218 if (sn + AES_BLOCKLEN <= s->m_len) {
222 len -= len % AES_BLOCKLEN; // full blocks only
225 m_copydata(s, sn, AES_BLOCKLEN, (caddr_t) sbuf);
227 len = AES_BLOCKLEN; // 1 block only in sbuf
231 if (!d || dn + AES_BLOCKLEN > d->m_len) {
263 d->m_len -= d->m_len % AES_BLOCKLEN;
297 bcopy(sp + len - AES_BLOCKLEN, iv, AES_BLOCKLEN);
336 u_int8_t ivp_aligned_buf[AES_BLOCKLEN] __attribute__((aligned(4)));
341 if (ivlen != AES_BLOCKLEN) {
367 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) {
370 algo->name, AES_BLOCKLEN));
399 if (sn + AES_BLOCKLEN <= s->m_len) {
403 len -= len % AES_BLOCKLEN; // full blocks only
406 m_copydata(s, sn, AES_BLOCKLEN, (caddr_t) sbuf);
408 len = AES_BLOCKLEN; // 1 block only in sbuf
412 if (!d || dn + AES_BLOCKLEN > d->m_len) {
444 d->m_len -= d->m_len % AES_BLOCKLEN;
489 ivp = dptr + dn - AES_BLOCKLEN; // last block encrypted