| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) Copyright 2011 | 2 * (C) Copyright 2011 |
| 3 * NVIDIA Corporation <www.nvidia.com> | 3 * NVIDIA Corporation <www.nvidia.com> |
| 4 * | 4 * |
| 5 * See file CREDITS for list of people who contributed to this | 5 * See file CREDITS for list of people who contributed to this |
| 6 * project. | 6 * project. |
| 7 * | 7 * |
| 8 * This program is free software; you can redistribute it and/or | 8 * This program is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU General Public License as | 9 * modify it under the terms of the GNU General Public License as |
| 10 * published by the Free Software Foundation; either version 2 of | 10 * published by the Free Software Foundation; either version 2 of |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 /* Implementation */ | 54 /* Implementation */ |
| 55 static u_int8_t zero_key[16] = { 0, 0, 0, 0, 0, 0, 0, 0, | 55 static u_int8_t zero_key[16] = { 0, 0, 0, 0, 0, 0, 0, 0, |
| 56 0, 0, 0, 0, 0, 0, 0, 0 }; | 56 0, 0, 0, 0, 0, 0, 0, 0 }; |
| 57 | 57 |
| 58 static void | 58 static void |
| 59 print_vector(char *name, u_int32_t num_bytes, u_int8_t *data) | 59 print_vector(char *name, u_int32_t num_bytes, u_int8_t *data) |
| 60 { | 60 { |
| 61 u_int32_t i; | 61 u_int32_t i; |
| 62 | 62 |
| 63 » printf("%s [%d] @0x%08x", name, num_bytes, (u_int32_t)data); | 63 » printf("%s [%d] @%p", name, num_bytes, data); |
| 64 for (i=0; i<num_bytes; i++) { | 64 for (i=0; i<num_bytes; i++) { |
| 65 if ( i % 16 == 0 ) | 65 if ( i % 16 == 0 ) |
| 66 printf(" = "); | 66 printf(" = "); |
| 67 printf("%02x", data[i]); | 67 printf("%02x", data[i]); |
| 68 if ( (i+1) % 16 != 0 ) | 68 if ( (i+1) % 16 != 0 ) |
| 69 printf(" "); | 69 printf(" "); |
| 70 } | 70 } |
| 71 printf("\n"); | 71 printf("\n"); |
| 72 } | 72 } |
| 73 | 73 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 hash_buffer, | 293 hash_buffer, |
| 294 hash_size, | 294 hash_size, |
| 295 bct); | 295 bct); |
| 296 if (e != 0) | 296 if (e != 0) |
| 297 goto fail; | 297 goto fail; |
| 298 | 298 |
| 299 fail: | 299 fail: |
| 300 free(hash_buffer); | 300 free(hash_buffer); |
| 301 return e; | 301 return e; |
| 302 } | 302 } |
| 303 | |
| OLD | NEW |