|
|
@ -47,7 +47,7 @@ type keyset struct { |
|
|
|
|
|
|
|
func (ks *keyset) generate() error { |
|
|
|
var err error |
|
|
|
ks.sk, ks.pk, err = test.RandTestKeyPair(ic.RSA, 512) |
|
|
|
ks.sk, ks.pk, err = test.RandTestKeyPair(ic.RSA, 2048) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
@ -226,17 +226,31 @@ func TestValidate(t *testing.T) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var hpkpMan = `QmRK3JgmVEGiewxWbhpXLJyjWuGuLeSTMTndA1coMHEy5o` |
|
|
|
var hpkpMan = `QmcJeseojbPW9hSejUM1sQ1a2QmbrryPK4Z8pWbRUPaYEn` |
|
|
|
var skManBytes = ` |
|
|
|
CAAS4AQwggJcAgEAAoGBAL7w+Wc4VhZhCdM/+Hccg5Nrf4q9NXWwJylbSrXz/unFS24wyk6pEk0zi3W |
|
|
|
7li+vSNVO+NtJQw9qGNAMtQKjVTP+3Vt/jfQRnQM3s6awojtjueEWuLYVt62z7mofOhCtj+VwIdZNBo |
|
|
|
/EkLZ0ETfcvN5LVtLYa8JkXybnOPsLvK+PAgMBAAECgYBdk09HDM7zzL657uHfzfOVrdslrTCj6p5mo |
|
|
|
DzvCxLkkjIzYGnlPuqfNyGjozkpSWgSUc+X+EGLLl3WqEOVdWJtbM61fewEHlRTM5JzScvwrJ39t7o6 |
|
|
|
CCAjKA0cBWBd6UWgbN/t53RoWvh9HrA2AW5YrT0ZiAgKe9y7EMUaENVJ8QJBAPhpdmb4ZL4Fkm4OKia |
|
|
|
NEcjzn6mGTlZtef7K/0oRC9+2JkQnCuf6HBpaRhJoCJYg7DW8ZY+AV6xClKrgjBOfERMCQQDExhnzu2 |
|
|
|
dsQ9k8QChBlpHO0TRbZBiQfC70oU31kM1AeLseZRmrxv9Yxzdl8D693NNWS2JbKOXl0kMHHcuGQLMVA |
|
|
|
kBZ7WvkmPV3aPL6jnwp2pXepntdVnaTiSxJ1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