Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(178)

Issue 13427044: code review 13427044: crypto/x509: allow ECDSA public keys to be marshaled.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by nick1
Modified:
12 years, 9 months ago
Reviewers:
agl1
CC:
golang-dev, agl1, agl
Visibility:
Public.

Description

crypto/x509: allow ECDSA public keys to be marshaled. The public key serialization from CreateCertificate is factored out to be used in MarshalPKIXPublicKey. Testcode with one P224 ECDSA keypair has been added.

Patch Set 1 #

Patch Set 2 : diff -r ee979bde3449 https://code.google.com/p/go #

Patch Set 3 : diff -r 5e99554c604d https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r b24fe3a40fc7 https://code.google.com/p/go #

Patch Set 5 : diff -r b24fe3a40fc7 https://code.google.com/p/go #

Patch Set 6 : diff -r b24fe3a40fc7 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -39 lines) Patch
M src/pkg/crypto/x509/x509.go View 1 2 3 4 5 2 chunks +41 lines, -39 lines 0 comments Download

Messages

Total messages: 8
nick1
Hello golang-dev@googlegroups.com (cc: agl@chromium.org, agl@golang.org, golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
12 years, 9 months ago (2013-09-09 22:50:51 UTC) #1
agl1
https://codereview.appspot.com/13427044/diff/5001/src/pkg/crypto/x509/x509.go File src/pkg/crypto/x509/x509.go (right): https://codereview.appspot.com/13427044/diff/5001/src/pkg/crypto/x509/x509.go#newcode48 src/pkg/crypto/x509/x509.go:48: func marshalPublicKey(pub interface{}) (publicKeyBytes []byte, err error) { extractPublicKeyAlgorithm ...
12 years, 9 months ago (2013-09-10 16:27:23 UTC) #2
nick1
Hello golang-dev@googlegroups.com, agl@golang.org (cc: agl@chromium.org, golang-dev@googlegroups.com), Please take another look.
12 years, 9 months ago (2013-09-10 17:39:58 UTC) #3
nick1
The first comment was incorporated into the change. https://codereview.appspot.com/13427044/diff/5001/src/pkg/crypto/x509/x509.go File src/pkg/crypto/x509/x509.go (right): https://codereview.appspot.com/13427044/diff/5001/src/pkg/crypto/x509/x509.go#newcode48 src/pkg/crypto/x509/x509.go:48: func ...
12 years, 9 months ago (2013-09-10 21:29:02 UTC) #4
agl1
LGTM
12 years, 9 months ago (2013-09-11 14:53:46 UTC) #5
agl1
Have you signed a CLA? http://golang.org/doc/contribute.html#copyright
12 years, 9 months ago (2013-09-11 15:02:22 UTC) #6
nick1
Yes, I believe it's under Nicholas Sullivan (nicholas.sullivan@gmail.com). Nick On Sep 11, 2013, at 11:02 ...
12 years, 9 months ago (2013-09-12 00:38:37 UTC) #7
agl1
12 years, 9 months ago (2013-09-12 16:23:41 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=3c075897aa0e ***

crypto/x509: allow ECDSA public keys to be marshaled.

The public key serialization from CreateCertificate is factored out to be
used in MarshalPKIXPublicKey.
Testcode with one P224 ECDSA keypair has been added.

R=golang-dev, agl
CC=agl, golang-dev
https://codereview.appspot.com/13427044

Committer: Adam Langley <agl@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b