fix: modify firefox asn1 data struct

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2022-04-20 02:14:18 +08:00
parent 8c2f72ccb6
commit 4fe335c270
7 changed files with 69 additions and 64 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"unsafe"
)
func ChromePass(key, encryptPass []byte) ([]byte, error) {
func Chromium(key, encryptPass []byte) ([]byte, error) {
if len(encryptPass) > 15 {
// remove Prefix 'v10'
return aesGCMDecrypt(encryptPass[15:], key, encryptPass[3:15])
@@ -16,7 +16,7 @@ func ChromePass(key, encryptPass []byte) ([]byte, error) {
}
}
func ChromePassForYandex(key, encryptPass []byte) ([]byte, error) {
func ChromiumForYandex(key, encryptPass []byte) ([]byte, error) {
if len(encryptPass) > 15 {
// remove Prefix 'v10'
// gcmBlockSize = 16