• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSL098-52/src/crypto/engine/

Lines Matching defs:chunk

909 	size_t chunk, allocated=0;
913 if ((chunk = ctx->num)) { /* borrow chunk variable */
918 if (chunk >= AES_BLOCK_SIZE)
922 while (chunk<AES_BLOCK_SIZE && nbytes!=0) {
923 ivp[chunk] = *(out_arg++) = *(in_arg++) ^ ivp[chunk];
924 chunk++, nbytes--;
926 else while (chunk<AES_BLOCK_SIZE && nbytes!=0) {
928 *(out_arg++) = c ^ ivp[chunk];
929 ivp[chunk++] = c, nbytes--;
932 ctx->num = chunk%AES_BLOCK_SIZE;
935 if (chunk >= AES_BLOCK_SIZE)
938 while (chunk<AES_BLOCK_SIZE && nbytes!=0) {
939 *(out_arg++) = *(in_arg++) ^ ivp[chunk];
940 chunk++, nbytes--;
943 ctx->num = chunk%AES_BLOCK_SIZE;
983 chunk = nbytes;
984 chunk %= PADLOCK_CHUNK;
985 if (chunk==0) chunk = PADLOCK_CHUNK;
989 allocated = (chunk<nbytes?PADLOCK_CHUNK:nbytes);
1003 inp = padlock_memcpy(out, in_arg, chunk);
1006 in_arg += chunk;
1008 padlock_xcrypt_ecb(chunk/AES_BLOCK_SIZE, cdata, out, inp);
1011 out_arg = padlock_memcpy(out_arg, out, chunk) + chunk;
1013 out = out_arg+=chunk;
1015 nbytes -= chunk;
1016 chunk = PADLOCK_CHUNK;
1026 chunk = PADLOCK_CHUNK;
1029 inp = padlock_memcpy(out, in_arg, chunk);
1032 in_arg += chunk;
1034 iv = padlock_xcrypt_cbc(chunk/AES_BLOCK_SIZE, cdata, out, inp);
1037 out_arg = padlock_memcpy(out_arg, out, chunk) + chunk;
1039 out = out_arg+=chunk;
1041 } while (nbytes -= chunk);
1047 chunk &= ~(AES_BLOCK_SIZE-1);
1048 if (chunk) goto cfb_shortcut;
1053 chunk = PADLOCK_CHUNK;
1056 inp = padlock_memcpy(out, in_arg, chunk);
1059 in_arg += chunk;
1061 iv = padlock_xcrypt_cfb(chunk/AES_BLOCK_SIZE, cdata, out, inp);
1064 out_arg = padlock_memcpy(out_arg, out, chunk) + chunk;
1066 out = out_arg+=chunk;
1068 nbytes -= chunk;
1107 chunk &= ~(AES_BLOCK_SIZE-1);
1108 if (chunk) do {
1110 inp = padlock_memcpy(out, in_arg, chunk);
1113 in_arg += chunk;
1115 padlock_xcrypt_ofb(chunk/AES_BLOCK_SIZE, cdata, out, inp);
1118 out_arg = padlock_memcpy(out_arg, out, chunk) + chunk;
1120 out = out_arg+=chunk;
1122 nbytes -= chunk;
1123 chunk = PADLOCK_CHUNK;