bnnm
5d1dd63182
Add support for HCA with subkey from .awb [Dragalia Lost (Mobile)]
2019-07-07 21:04:56 +02:00
bnnm
e503757bfc
Add HCA keys
2019-05-17 22:30:49 +02:00
bnnm
87972f55eb
Improve HCA key detection for small/silent HCA [Dragalia Lost (iOS)]
2018-12-22 19:44:30 +01:00
bnnm
cca676bb0f
Add new HCA key derivation
...
Thanks to FZFalzar, Thealexbarney and hozuki for the key and algorithm
2018-10-13 19:53:25 +02:00
bnnm
9c0db7cae3
Improve HCA/clHCA key detection
...
- Only test keys when file is encrypted
- Add clHCA_TestBlock to test a frame with the current key
- Move some key detection code to hca_decoder.c and simplify hca.c
detection
- Decrease number of test frames due to increased accuracy of
clHCA_TestBlock
2018-09-02 16:00:58 +02:00
bnnm
fd52fe0e95
Clean clHCA lib 3 (API)
...
- rename clHCA_DecodeSamples16 to clHCA_ReadSamples16 since it isn't
really decoding
- divide clHCA_Decode into clHCA_DecodeHeader and clHCA_DecodeBlock to
clarify usage
- unify clHCA_IsOurFile0/1 since one would need to call
clHCA_DecodeHeader right after it anyway
- add clHCA_SetKey for easier key handling
- adapt vgmstream wrapper
2018-09-01 20:28:00 +02:00
bnnm
43764d6c8d
Fix HCA num samples/looping [Binary Domain (PC), Octopath Traveller]
...
Decoder has been modified a bit so it's easier to feed an arbitrary
number of discard samples (or at least, easier for me to understand),
since encoder delay can be >1024 (frame size) and would make some calcs
go all wobbly
2018-08-29 23:42:47 +02:00
bnnm
9a2a2e4c2e
Export extra sample values in clHCA_getInfo
2018-08-29 20:48:35 +02:00
bnnm
411fa498bb
Clean HCA meta/decoder for future changes
2018-08-29 20:05:31 +02:00
bnnm
ae2ba1bc29
Update read_key_file for variable-sized keys
2018-01-20 20:06:15 +01:00
bnnm
66a3e7ed88
Add some HCA keys
2017-11-16 00:42:09 +01:00
Christopher Snowhill
1da9d0887a
Fix double-free.
2017-09-30 15:15:15 -07:00
Christopher Snowhill
bcfe417ab6
Merge branch 'master' of github.com:kode54/vgmstream
2017-09-30 15:04:50 -07:00
bnnm
07a6fba10f
Free HCA testbuf and reduce allocs
2017-09-30 19:36:13 +02:00
bnnm
25f7a64dc6
Merge branch 'master' of https://github.com/kode54/vgmstream into fixes
2017-09-30 11:48:17 +02:00
Christopher Snowhill
afdb135567
Oops, forgot to free it.
2017-09-29 17:03:21 -07:00
Christopher Snowhill
72f5f3e0b0
Dynamically allocate and resize the decode buffer when searching for HCA keys, preventing a serious crash due to decoding past the stack allocated buffer.
2017-09-29 16:56:43 -07:00
bnnm
a7acf244ae
Fix HCA crash bug when testing keys
2017-09-29 23:24:25 +02:00
bnnm
d644d2f9f7
Add HCA key detection and key list
...
Updated the meta a bit so it's closer to others and optimized some
mallocs, as it was a bit hard to understand for me so I hope it's for
the better
2017-09-17 03:41:36 +02:00
bnnm
663cb43b3f
Make init_vgmstream_hca_offset local (wasn't used anywhere else)
2017-03-10 17:32:42 +01:00
bnnm
79a5942cb9
Add HCA extension check to avoid some malloc/frees
2017-03-10 17:26:27 +01:00
bnnm
bf7d3da39a
Load HCA encryption keys from external file (songname.extkey or .extkey)
2016-12-04 23:10:17 +01:00
Chris Moeller
800a3da0da
Undo an erroneous change to MP4 and HCA meta handlers that could crash.
2016-06-30 15:34:40 -07:00
Chris Moeller
5200ed4a91
Fixed file handle leak in HCA and MP4 decoders. Minor casting fixes.
2016-06-28 19:27:30 -07:00
Chris Moeller
33563f4e7c
Add HCA support.
2016-06-28 00:20:37 -07:00