Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
361e4e5f
Commit
361e4e5f
authored
Apr 22, 2011
by
Adam Langley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/rsa: add file that I forgot to add last time.
R=rsc CC=golang-dev
https://golang.org/cl/4452041
parent
555685e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
pkcs1v15_test.go
src/pkg/crypto/rsa/pkcs1v15_test.go
+6
-10
No files found.
src/pkg/crypto/rsa/pkcs1v15_test.go
View file @
361e4e5f
...
...
@@ -197,12 +197,6 @@ func TestVerifyPKCS1v15(t *testing.T) {
}
}
func
bigFromString
(
s
string
)
*
big
.
Int
{
ret
:=
new
(
big
.
Int
)
ret
.
SetString
(
s
,
10
)
return
ret
}
// In order to generate new test vectors you'll need the PEM form of this key:
// -----BEGIN RSA PRIVATE KEY-----
// MIIBOgIBAAJBALKZD0nEffqM1ACuak0bijtqE2QrI/KLADv7l3kK3ppMyCuLKoF0
...
...
@@ -216,10 +210,12 @@ func bigFromString(s string) *big.Int {
var
rsaPrivateKey
=
&
PrivateKey
{
PublicKey
:
PublicKey
{
N
:
bigFromString
(
"9353930466774385905609975137998169297361893554149986716853295022578535724979677252958524466350471210367835187480748268864277464700638583474144061408845077"
),
N
:
fromBase10
(
"9353930466774385905609975137998169297361893554149986716853295022578535724979677252958524466350471210367835187480748268864277464700638583474144061408845077"
),
E
:
65537
,
},
D
:
bigFromString
(
"7266398431328116344057699379749222532279343923819063639497049039389899328538543087657733766554155839834519529439851673014800261285757759040931985506583861"
),
P
:
bigFromString
(
"98920366548084643601728869055592650835572950932266967461790948584315647051443"
),
Q
:
bigFromString
(
"94560208308847015747498523884063394671606671904944666360068158221458669711639"
),
D
:
fromBase10
(
"7266398431328116344057699379749222532279343923819063639497049039389899328538543087657733766554155839834519529439851673014800261285757759040931985506583861"
),
Primes
:
[]
*
big
.
Int
{
fromBase10
(
"98920366548084643601728869055592650835572950932266967461790948584315647051443"
),
fromBase10
(
"94560208308847015747498523884063394671606671904944666360068158221458669711639"
),
},
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment