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

Issue 9222045: code review 9222045: crypto/rsa: check for minimal PKCS#1 v1.5 padding. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by agl1
Modified:
11 years, 10 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

crypto/rsa: check for minimal PKCS#1 v1.5 padding. The PKCS#1 spec requires that the PS padding in an RSA message be at least 8 bytes long. We were not previously checking this. This isn't important in the most common situation (session key encryption), but the impact is unclear in other cases. This change enforces the specified minimum size.

Patch Set 1 #

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -1 line) Patch
M src/pkg/crypto/rsa/pkcs1v15.go View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/crypto/rsa/pkcs1v15_test.go View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/crypto/subtle/constant_time.go View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/crypto/subtle/constant_time_test.go View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 5
agl1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 10 months ago (2013-05-14 21:43:32 UTC) #1
bradfitz
Equal is spelled Eq elsewhere in crypto/subtle. Why inconsistent here? On Tue, May 14, 2013 ...
11 years, 10 months ago (2013-05-14 22:09:56 UTC) #2
agl1
On Tue, May 14, 2013 at 6:09 PM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > Equal is ...
11 years, 10 months ago (2013-05-14 23:03:37 UTC) #3
bradfitz
LGTM On Tue, May 14, 2013 at 2:43 PM, <agl@golang.org> wrote: > Reviewers: golang-dev1, > ...
11 years, 10 months ago (2013-05-14 23:13:32 UTC) #4
agl1
11 years, 10 months ago (2013-05-15 14:27:46 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=1c5529b1592a ***

crypto/rsa: check for minimal PKCS#1 v1.5 padding.

The PKCS#1 spec requires that the PS padding in an RSA message be at
least 8 bytes long. We were not previously checking this. This isn't
important in the most common situation (session key encryption), but
the impact is unclear in other cases.

This change enforces the specified minimum size.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/9222045
Sign in to reply to this message.

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