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

Issue 4175059: code review 4175059: crypto/rsa: left-pad OAEP results when needed. (Closed)

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

Description

crypto/rsa: left-pad OAEP results when needed. PKCS#1 v2.1 section 7.1.1 says that the result of an OAEP encryption is "an octet string of length $k$". Since we didn't left-pad the result it was previously possible for the result to be smaller when the most-significant byte was zero. Fixes issue 1519.

Patch Set 1 #

Patch Set 2 : diff -r dea835a8ff3e https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 8e157f1abc87 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M src/pkg/crypto/rsa/rsa.go View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/pkg/crypto/rsa/rsa_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
agl1
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-02-18 16:26:32 UTC) #1
rsc
LGTM
14 years ago (2011-02-18 16:29:14 UTC) #2
agl1
14 years ago (2011-02-18 16:31:23 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=40516d5ec8e3 ***

crypto/rsa: left-pad OAEP results when needed.

PKCS#1 v2.1 section 7.1.1 says that the result of an OAEP encryption
is "an octet string of length $k$". Since we didn't left-pad the
result it was previously possible for the result to be smaller when
the most-significant byte was zero.

Fixes issue 1519.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4175059
Sign in to reply to this message.

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