package pbkd

import (
	"encoding/base64"
	"fmt"
	"testing"
)

func TestAsn1PBES(t *testing.T) {
	pbes2 := &PBES2{}
	b, _ := base64.StdEncoding.DecodeString("MIIBBjBhBgkqhkiG9w0BBQ0wVDA0BgkqhkiG9w0BBQwwJwQQEiukKZfizsctUAskE9BkMAIDAQAAAgEQMAsGCSqBHM9VAYMRAjAcBggqgRzPVQFoAgQQQXzB+gsKqJnFi6VdlujFjASBoL42sUnOuvsa5SFIlbHJSn9/M40yvOL7/9jpGDZi4T+ikgk2TdsfjUGLaF/8H6D1qEm37SabTws0B5HaYTtYNpE21lgb7DlSmHspMenQ5aCYVT62n5vml2kyPMKkSyGGRgYa3pg/m5KifqafRMyIrFVga80n5CcRgUny/C/OEnIFWTlXH8WX/U3KttTl+y7udrxWyOd9EG/zggqi4bmOuWc=")
	fmt.Printf("%x\n", b)
	_, err := pbes2.UnmarshalASN1(b[4:])
	if err != nil {
		t.Fatal()
	}
	fmt.Println(pbes2.Param.KeyDerivationFunc.Param.IterationCount)
}
