Changeset 988 for vendor/current/lib/crypto/arcfour.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/crypto/arcfour.c
r740 r988 82 82 _PUBLIC_ void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len) 83 83 { 84 DATA_BLOB key = data_blob(keystr, 16); 85 84 uint8_t keycopy[16]; 85 DATA_BLOB key = { .data = keycopy, .length = sizeof(keycopy) }; 86 87 memcpy(keycopy, keystr, sizeof(keycopy)); 88 86 89 arcfour_crypt_blob(data, len, &key); 87 88 data_blob_free(&key);89 90 } 90 91
Note:
See TracChangeset
for help on using the changeset viewer.