aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-21[automerger skipped] Mark ab/7061308 as merged in stage. am: de9ddb2ee5 -s ↵android-t-preview-2android-t-preview-1android-t-beta-3android-s-v2-preview-2android-s-v2-preview-1android-s-v2-beta-3android-s-v2-beta-2android-s-qpr3-beta-1android-mainline-12.0.0_r4android-mainline-12.0.0_r36android-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r26android-12.1.0_r25android-12.1.0_r24android-12.1.0_r23android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r18android-12.1.0_r17android-12.1.0_r16android-12.1.0_r15android-12.1.0_r14android-12.1.0_r13android-12.1.0_r12android-12.1.0_r11android-12.1.0_r10android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12L-devandroid12L-d2-s8-releaseandroid12L-d2-s7-releaseandroid12L-d2-s6-releaseandroid12L-d2-s5-releaseandroid12L-d2-s4-releaseandroid12L-d2-s3-releaseandroid12L-d2-s2-releaseandroid12L-d2-s1-releaseandroid12L-d2-releaseandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-releaseandroid12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devandroid12--mainline-releaseandroid-t-preview-1android-s-v2-preview-1android-s-v2-beta-3android-s-qpr3-beta-1Xin Li
ours am: 871d5caa01 -s ours am skip reason: Change-Id Id3d0f32fd0438f758a360d6fd633483bace49191 with SHA-1 928a6145d2 is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I52433025d610e0c80b105fa938f83d3589f82312
2021-02-21[LSC] Add LOCAL_LICENSE_KINDS to external/python/rsa am: 57e9215ca8 am: ↵Bob Badour
46feb0cc4a am: 6ad342cdd0 Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1588605 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4f5b06dbbce482f44780e15d5b3809b913f378f3
2021-02-20[automerger skipped] Mark ab/7061308 as merged in stage. am: de9ddb2ee5 -s oursXin Li
am skip reason: Change-Id Id3d0f32fd0438f758a360d6fd633483bace49191 with SHA-1 928a6145d2 is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2c0fb307b0d623f8fabb7d08137bbc3e17e5274b
2021-02-20Mark ab/7061308 as merged in stage.android-s-beta-5android-s-beta-4android-s-beta-3android-s-beta-2android-s-beta-1android-s-beta-5android-s-beta-4Xin Li
Bug: 180401296 Merged-In: Id3d0f32fd0438f758a360d6fd633483bace49191 Change-Id: I7c45854e2a3c17ca8f58fad233ebdb32c81ed3cb
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to external/python/rsa am: 57e9215ca8 am: ↵Bob Badour
46feb0cc4a Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1588605 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5382b916abb3d748ff2c4460fb3c3a118e11eaab
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to external/python/rsa am: 57e9215ca8Bob Badour
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1588605 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I545eaa9aa0e47f03a4f04a6f385198273da67dea
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to external/python/rsaBob Badour
Added SPDX-license-identifier-Apache-2.0 to: Android.bp rsa/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I5392dff0e4993e0c7e7197f4e898e3cf40a7f9cc
2021-01-14Merge "Remove test mapping file for acloud_test" am: 6d0a6d1e48 am: ↵Julien Desprez
b3a9fbc118 am: 298647b5de Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1550098 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I31d0efdcecdb4fa6d0a657a560de9a0e3fcc9375
2021-01-13Merge "Remove test mapping file for acloud_test" am: 6d0a6d1e48 am: b3a9fbc118Julien Desprez
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1550098 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic071314656b6f3f1f5a91e532826d29995b6db19
2021-01-13Merge "Remove test mapping file for acloud_test" am: 6d0a6d1e48Julien Desprez
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1550098 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6858f1181a41dea6b7e8cf3e8f50c1531e0e2828
2021-01-13Merge "Remove test mapping file for acloud_test"android-s-preview-1Julien Desprez
2021-01-13Remove test mapping file for acloud_testJulien Desprez
Not needed anymore. Exempt-From-Owner-Approval:clean up mapping files Test: presubmit Bug: 175408655 Change-Id: I56e73734b7e84375b5ce94800862d13f60b0d601
2021-01-13Upgrade python/rsa to version-4.7 am: bd1808f494 am: 569b8caa97 am: a256f87e8bHaibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1546899 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I1b6ee393453bb70b91e046dd769ce5b477efe7e0
2021-01-13Upgrade python/rsa to version-4.7 am: bd1808f494 am: 569b8caa97Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1546899 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ic2b832ba5104e62b5b03acf0aecb766365413c20
2021-01-13Upgrade python/rsa to version-4.7 am: bd1808f494Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1546899 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5a50d248e934af230eed54d603a6671c37bd2d56
2021-01-11Upgrade python/rsa to version-4.7Haibo Huang
Test: make Change-Id: I8d6cc19574e2653f9e47ae302efef1672f6bf1a5
2021-01-10Bumped version to 4.7Sybren A. Stüvel
2021-01-10Marked version 4.7 as releasedSybren A. Stüvel
2021-01-10Fix #170: mistake in examples of documentationSybren A. Stüvel
Strings need to be encoded into bytes before the RSA module can operate on them.
2021-01-10Declare support for and test Python 3.9Hugo van Kemenade
2020-11-24Mark ab/6881855 as merged am: d2ee38649f am: 928a6145d2Xin Li
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/13112860 Change-Id: Ieed2c8decec2d4d4455a0af1c5455f6df49574a4
2020-11-24Mark ab/6881855 as merged am: d2ee38649fXin Li
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/13112860 Change-Id: Id3d0f32fd0438f758a360d6fd633483bace49191
2020-11-23Mark ab/6881855 as mergedXin Li
Bug: 172690556 Change-Id: I7f87ae7793df568bb328bf85d78e0647fd2c4274
2020-11-15Fix #162: Blinding uses slow algorithmSybren A. Stüvel
Store blinding factor + its inverse, so that they can be reused & updated on every blinding operation. This avoids expensive computations. The reuse of the previous blinding factor is done via squaring (mod n), as per section 9 of 'A Timing Attack against RSA with the Chinese Remainder Theorem' by Werner Schindler, https://tls.mbed.org/public/WSchindler-RSA_Timing_Attack.pdf
2020-11-15Directly raise `DecryptionError` when crypto length is badSybren A. Stüvel
Crypto length and blocksize are public info, so don't need side-channel free comparison.
2020-11-15Use `bytes.find()` instead of `bytes.index()`Sybren A. Stüvel
Use `bytes.find()` instead of `bytes.index()`, as the former doesn't raise an exception when the to-be-found byte doesn't exist.
2020-11-15Add link to changelogSybren A. Stüvel
2020-11-15Fix #164: Add padding length check as described by PKCS#1 v1.5Sybren A. Stüvel
According to PKCS#1 v1.5, the padding should be at least 8 bytes long. See https://tools.ietf.org/html/rfc8017#section-7.2.2 step 3 for more info.
2020-11-15Fix #165: CVE-2020-25658 - Bleichenbacher-style timing oracleSybren A. Stüvel
Use as many constant-time comparisons as practical in the `rsa.pkcs1.decrypt` function. `cleartext.index(b'\x00', 2)` will still be non-constant-time. The alternative would be to iterate over all the data byte by byte in Python, which is several orders of magnitude slower. Given that a perfect constant-time implementation is very hard or even impossible to do in Python [1], I chose the more performant option here. [1]: https://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python/
2020-10-26Add URL with more info to timing security issuesSybren A. Stüvel
2020-10-26Added security note to README.mdSybren A. Stüvel
2020-10-09[automerger skipped] Skip ab/6749736 in stage. am: d21ddf947b -s ours am: ↵Xin Li
a2ea42dc09 -s ours am: 7bba8a8d99 -s ours am skip reason: Change-Id I6522491932422daded7776509d355156a82e3b92 with SHA-1 b8eae8a9ee is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12796233 Change-Id: I12d16820f196824193a6a211198ccb54a6381b4b
2020-10-09[automerger skipped] Skip ab/6749736 in stage. am: d21ddf947b -s ours am: ↵Xin Li
a2ea42dc09 -s ours am skip reason: Change-Id I6522491932422daded7776509d355156a82e3b92 with SHA-1 b8eae8a9ee is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12796233 Change-Id: Ic94715c8d6935c381187977831767befa630d1a8
2020-10-09[automerger skipped] Skip ab/6749736 in stage. am: d21ddf947b -s oursXin Li
am skip reason: Change-Id I6522491932422daded7776509d355156a82e3b92 with SHA-1 b8eae8a9ee is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12796233 Change-Id: I0039f122a09db68374822248475ae371f3424d87
2020-10-08Skip ab/6749736 in stage.Xin Li
Merged-In: I6522491932422daded7776509d355156a82e3b92 Change-Id: I9598edec8eacec674db0148c370f8d53bb33b997
2020-08-27[automerger skipped] Mark Android R ↵Xin Li
(rvc-dev-plus-aosp-without-vendor@6692709) as merged am: acd9d0e545 -s ours am: 5361053330 -s ours am: af06ca4cb7 -s ours am: 5e9def0b04 -s ours am skip reason: Change-Id I0e5a24f47a0f804150c4d7250a07bd1ca58d6f61 with SHA-1 f9c65dc097 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12469933 Change-Id: I3641352b20e9a553cdf6146c7ff5b08e0c91f7f7
2020-08-27[automerger skipped] Mark Android R ↵Xin Li
(rvc-dev-plus-aosp-without-vendor@6692709) as merged am: acd9d0e545 -s ours am: 5361053330 -s ours am: af06ca4cb7 -s ours am skip reason: Change-Id I0e5a24f47a0f804150c4d7250a07bd1ca58d6f61 with SHA-1 f9c65dc097 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12469933 Change-Id: If26df6beb19588e7df4efff7fa6e25195df9d8c0
2020-08-27[automerger skipped] Mark Android R ↵Xin Li
(rvc-dev-plus-aosp-without-vendor@6692709) as merged am: acd9d0e545 -s ours am: 5361053330 -s ours am skip reason: Change-Id I0e5a24f47a0f804150c4d7250a07bd1ca58d6f61 with SHA-1 f9c65dc097 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12469933 Change-Id: Ia6e9b13abc5ef879e4f0bff831933e2419eb4294
2020-08-27[automerger skipped] Mark Android R ↵Xin Li
(rvc-dev-plus-aosp-without-vendor@6692709) as merged am: acd9d0e545 -s ours am skip reason: Change-Id I0e5a24f47a0f804150c4d7250a07bd1ca58d6f61 with SHA-1 f9c65dc097 is in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/python/rsa/+/12469933 Change-Id: I08d7062b00b3863c36669d9e464a0cb0006c474c
2020-08-27Mark Android R (rvc-dev-plus-aosp-without-vendor@6692709) as mergedXin Li
Bug: 166295507 Merged-In: I0e5a24f47a0f804150c4d7250a07bd1ca58d6f61 Change-Id: Id34b4ecbf4a5ae356a41d100a963c380b056f7f2
2020-07-29Upgrade python/rsa to version-4.6 am: 248aba47a6 am: fba0d0316f am: ↵Haibo Huang
24f0088831 am: b8eae8a9ee am: 933b43f37a Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: Iccbf1dfd0ed742986e1d66a257d2d3b3da32acf3
2020-07-29Upgrade python/rsa to version-4.6 am: 248aba47a6 am: fba0d0316f am: ↵Haibo Huang
24f0088831 am: b8eae8a9ee Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: Id67d2c3d00bcdc9a9862f7e8a887a19ad62b18d1
2020-07-29Upgrade python/rsa to version-4.6 am: 248aba47a6 am: fba0d0316f am: 24f0088831Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: I6522491932422daded7776509d355156a82e3b92
2020-07-29Upgrade python/rsa to version-4.6 am: 248aba47a6 am: fba0d0316fHaibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: Ib8232e4a1abe822b3204ea2933cfb06ce506f77f
2020-07-29Upgrade python/rsa to version-4.6 am: 248aba47a6Haibo Huang
Original change: https://android-review.googlesource.com/c/platform/external/python/rsa/+/1361102 Change-Id: I8d5472cffe99a2d2f438b6d9e71a0b539eb61681
2020-07-29Upgrade python/rsa to version-4.6Haibo Huang
Exempt-From-Owner-Approval: upgrade lib Change-Id: I0060c7ba0043698a3d7c12f36765641cfd0f8408
2020-06-16Adds mention of 4.5 version in the headers.tvalentyn
2020-06-15Don't build universal wheelsWyatt Anderson
2020-06-14Fix exception cause in common.pyRam Rachum
2020-06-12Bumped version to 4.7-dev0Sybren A. Stüvel