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

Issue 4126041: code review 4126041: crypto/cipher: add resync open to OCFB mode. (Closed)

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

Description

crypto/cipher: add resync open to OCFB mode. OpenPGP changed its OCFB mode for more modern packets (for example, the MDC symmetrically encrypted packet). This change adds a bool to determine which mode is used.

Patch Set 1 #

Patch Set 2 : code review 4126041: crypto/cipher: add resync open to OCFB mode. #

Total comments: 2

Patch Set 3 : code review 4126041: crypto/cipher: add resync open to OCFB mode. #

Total comments: 1

Patch Set 4 : diff -r 138fb74f2651 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -12 lines) Patch
M src/pkg/crypto/cipher/ocfb.go View 1 2 3 4 chunks +30 lines, -6 lines 0 comments Download
M src/pkg/crypto/cipher/ocfb_test.go View 1 2 3 1 chunk +11 lines, -6 lines 0 comments Download

Messages

Total messages: 8
agl1
Hello bradfitzgo (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2011-01-29 21:17:50 UTC) #1
r
http://codereview.appspot.com/4126041/diff/2001/src/pkg/crypto/cipher/ocfb.go File src/pkg/crypto/cipher/ocfb.go (right): http://codereview.appspot.com/4126041/diff/2001/src/pkg/crypto/cipher/ocfb.go#newcode74 src/pkg/crypto/cipher/ocfb.go:74: // incorrect key is detected then nil is returned. ...
14 years, 3 months ago (2011-01-29 23:10:20 UTC) #2
agl1
http://codereview.appspot.com/4126041/diff/2001/src/pkg/crypto/cipher/ocfb.go File src/pkg/crypto/cipher/ocfb.go (right): http://codereview.appspot.com/4126041/diff/2001/src/pkg/crypto/cipher/ocfb.go#newcode74 src/pkg/crypto/cipher/ocfb.go:74: // incorrect key is detected then nil is returned. ...
14 years, 3 months ago (2011-01-30 12:13:34 UTC) #3
bradfitz
https://codereview.appspot.com/4126041/diff/4002/src/pkg/crypto/cipher/ocfb.go File src/pkg/crypto/cipher/ocfb.go (right): https://codereview.appspot.com/4126041/diff/4002/src/pkg/crypto/cipher/ocfb.go#newcode20 src/pkg/crypto/cipher/ocfb.go:20: func NewOCFBEncrypter(block Block, randData []byte, resync bool) (Stream, []byte) ...
14 years, 3 months ago (2011-02-02 17:45:00 UTC) #4
bradfitz
LGTM
14 years, 3 months ago (2011-02-02 17:45:16 UTC) #5
rsc
> Reading code, I'd rather see a callsite with ocfb.Resync rather than a > "true" ...
14 years, 3 months ago (2011-02-02 20:33:52 UTC) #6
agl1
On Wed, Feb 2, 2011 at 3:33 PM, Russ Cox <rsc@golang.org> wrote: > Agreed. I ...
14 years, 3 months ago (2011-02-03 14:16:53 UTC) #7
agl1
14 years, 3 months ago (2011-02-03 14:17:51 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=e4086ea2ba77 ***

crypto/cipher: add resync open to OCFB mode.

OpenPGP changed its OCFB mode for more modern packets (for example, the
MDC symmetrically encrypted packet). This change adds a bool to
determine which mode is used.

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

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