Lines Matching refs:AES_BLOCKLEN
55 #define AES_BLOCKLEN 16
124 u_int8_t iv[AES_BLOCKLEN], *dptr;
125 u_int8_t sbuf[AES_BLOCKLEN], *sp;
131 if (ivlen != AES_BLOCKLEN) {
153 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) {
156 algo->name, AES_BLOCKLEN));
188 if (sn + AES_BLOCKLEN <= s->m_len) {
192 len -= len % AES_BLOCKLEN; // full blocks only
195 m_copydata(s, sn, AES_BLOCKLEN, sbuf);
197 len = AES_BLOCKLEN; // 1 block only in sbuf
201 if (!d || dn + AES_BLOCKLEN > d->m_len) {
227 d->m_len -= d->m_len % AES_BLOCKLEN;
247 bcopy(sp + len - AES_BLOCKLEN, iv, AES_BLOCKLEN);
285 u_int8_t sbuf[AES_BLOCKLEN], *sp;
290 if (ivlen != AES_BLOCKLEN) {
316 if ((m->m_pkthdr.len - bodyoff) % AES_BLOCKLEN) {
319 algo->name, AES_BLOCKLEN));
348 if (sn + AES_BLOCKLEN <= s->m_len) {
352 len -= len % AES_BLOCKLEN; // full blocks only
355 m_copydata(s, sn, AES_BLOCKLEN, sbuf);
357 len = AES_BLOCKLEN; // 1 block only in sbuf
361 if (!d || dn + AES_BLOCKLEN > d->m_len) {
388 d->m_len -= d->m_len % AES_BLOCKLEN;
408 ivp = dptr + dn - AES_BLOCKLEN; // last block encrypted