Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u
:
up to issue
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
Issue
u
:
up to list of issues
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr)
|
Please choose your nickname with
Settings
|
Help
|
Chromium Project
|
Gerrit Changes
|
Sign out
(13)
Issues
Search
My Issues
|
Starred
Open
|
Closed
|
All
Side by Side Diff: third_party/tlslite/tlslite/utils/pycrypto_aesgcm.py
Issue
875683002
:
Implement AES-GCM in tlslite. (Closed)
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set:
Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Tab Spaces:
Jump to:
net/test/spawned_test_server/base_test_server.h
net/test/spawned_test_server/base_test_server.cc
net/tools/testserver/testserver.py
third_party/tlslite/README.chromium
third_party/tlslite/patches/aes_gcm.patch
third_party/tlslite/tests/tlstest.py
third_party/tlslite/tlslite/constants.py
third_party/tlslite/tlslite/handshakesettings.py
third_party/tlslite/tlslite/tlsconnection.py
third_party/tlslite/tlslite/tlsrecordlayer.py
third_party/tlslite/tlslite/utils/aes.py
third_party/tlslite/tlslite/utils/aesgcm.py
third_party/tlslite/tlslite/utils/cipherfactory.py
third_party/tlslite/tlslite/utils/pycrypto_aesgcm.py
third_party/tlslite/tlslite/utils/python_aesgcm.py
third_party/tlslite/tlslite/utils/rc4.py
third_party/tlslite/tlslite/utils/tripledes.py
View unified diff
|
Download patch
« third_party/tlslite/tlslite/utils/cipherfactory.py
('K') |
« third_party/tlslite/tlslite/utils/cipherfactory.py
('k') |
third_party/tlslite/tlslite/utils/python_aesgcm.py »
('j') |
third_party/tlslite/tlslite/utils/python_aesgcm.py »
('J')
Toggle Intra-line Diffs
('i') |
Expand Comments
('e') |
Collapse Comments
('c') |
Show Comments
Hide Comments
('s')
OLD
NEW
(Empty)
1
# Author: Google
2
# See the LICENSE file for legal information regarding use of this file.
3
4
"""PyCrypto AES-GCM implementation."""
5
6
from .cryptomath import *
7
from .aesgcm import AESGCM
8
9
if pycryptoLoaded:
10
import Crypto.Cipher.AES
11
12
def new(key):
13
cipher = Crypto.Cipher.AES.new(bytes(key))
14
def encrypt(plaintext):
15
return bytearray(cipher.encrypt(bytes(plaintext)))
16
return AESGCM(key, "pycrypto", encrypt)
OLD
NEW
« third_party/tlslite/tlslite/utils/cipherfactory.py
('K') |
« third_party/tlslite/tlslite/utils/cipherfactory.py
('k') |
third_party/tlslite/tlslite/utils/python_aesgcm.py »
('j') |
third_party/tlslite/tlslite/utils/python_aesgcm.py »
('J')
Issue 875683002: Implement AES-GCM in tlslite. (Closed)
Created 5 years, 11 months ago by davidben
Modified 5 years, 10 months ago
Reviewers: agl, Ryan Sleevi
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 19
This is Rietveld
408576698