mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-15 00:34:05 +09:00
Bring contents of lib up to date with current FD-:master RPiPlay
the plist library is removed (the Linux distributions version will be used) (libplist 2.0) the library llhttp v 6.0.2 is added to replace http_parser The curve25519 and ed25519 libraries are removed, and replaced with their OpenSSL 1.1.1 implementations crypto is updated
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
//#define DUMP_KEI_IV
|
||||
struct mirror_buffer_s {
|
||||
@@ -52,8 +53,8 @@ mirror_buffer_init_aes(mirror_buffer_t *mirror_buffer, uint64_t streamConnection
|
||||
char* siv = "AirPlayStreamIV";
|
||||
unsigned char skeyall[255];
|
||||
unsigned char sivall[255];
|
||||
sprintf((char*) skeyall, "%s%llu", skey, streamConnectionID);
|
||||
sprintf((char*) sivall, "%s%llu", siv, streamConnectionID);
|
||||
sprintf((char*) skeyall, "%s%" PRIu64, skey, streamConnectionID);
|
||||
sprintf((char*) sivall, "%s%" PRIu64, siv, streamConnectionID);
|
||||
sha_reset(ctx);
|
||||
sha_update(ctx, skeyall, strlen((char*) skeyall));
|
||||
sha_update(ctx, eaeskey, 16);
|
||||
|
||||
Reference in New Issue
Block a user