aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
...
* rpcd: update to version from 2017-12-07Daniel Golle2017-12-071-3/+3
* dnsmasq: write atomic host fileHans Dedecker2017-12-072-4/+6
* strace: Update to 4.20Rosen Penev2017-12-071-3/+2
* hostapd: backport fix for wnm_sleep_mode=0Timo Sigurdsson2017-12-072-1/+36
* hostapd: Expose the tdls_prohibit option to UCITimo Sigurdsson2017-12-071-1/+6
* kernel: bump 4.9 to 4.9.67Stijn Tintel2017-12-0724-389/+23
* iproute2: align ip help text for tiny variantHans Dedecker2017-12-061-1/+18
* iproute2: update to v4.14.1Russell Senior2017-12-0610-66/+64
* odhcpd: update to latest git HEADHans Dedecker2017-12-061-4/+4
* ramips: add support for Asus RT-N11P / RT-N12+ / RT-N12E b1Zoltan HERPAI2017-12-066-0/+134
* dnsmasq: backport infinite dns retries fixHans Dedecker2017-12-063-3/+48
* sdk: restrict base feed repo to public git for CONFIG_BUILDBOT onlyRafał Miłecki2017-12-051-1/+2
* build: avoid failing in append-metadata if image could not be generatedFelix Fietkau2017-12-041-1/+1
* samba36: backport an upstream fix for an information leak (CVE-2017-15275)Felix Fietkau2017-12-042-1/+41
* mt76: update to the latest version, adds stability fixesFelix Fietkau2017-12-031-3/+3
* layerscape: rename firmware packages to avoid name collisionsTed Hess2017-12-025-16/+16
* packages: dnsmasq: remove unused stamp fileRoman Yeryomin2017-12-022-5/+1
* curl: bump to 7.57.0 (3 CVEs)Hans Dedecker2017-11-302-4/+4
* ltq-ifxos: fix compilation against glibcYousong Zhou2017-11-302-3/+60
* target: replace odhcpd by odhcpd-ipv6onlyHans Dedecker2017-11-291-1/+1
* dnsmasq: add interface to ubus notificationBorja Salazar2017-11-291-5/+7
* mt76: update to the latest version, fixes encrypted mesh support and HT20 issuesFelix Fietkau2017-11-291-3/+3
* mac80211: tweak TSQ settingsFelix Fietkau2017-11-292-1/+16
* ramips: add missing reset button for Nexx WT1520INAGAKI Hiroshi2017-11-281-9/+15
* dnsmasq: fix dhcp-host entries with empty macsJo-Philipp Wich2017-11-281-3/+1
* Revert "mac80211: tweak TSQ settings"Felix Fietkau2017-11-282-15/+1
* wireguard: bump to snapshot 20171127Kevin Darbyshire-Bryant2017-11-271-3/+2
* lldpd: bump to 0.9.9Stijn Tintel2017-11-271-2/+2
* nghttp2: bump to 1.28.0Hans Dedecker2017-11-271-2/+2
* build: accept gcc/g++ without minor versionJustin Kilpatrick2017-11-261-4/+4
* toolchain: Test for supported versions of GCCDaniel Engberg2017-11-251-14/+18
* mwlwifi: Update to latest commit in upstream repoDaniel Engberg2017-11-251-3/+3
* build: allow defining license information per binary packageMichael Heimpold2017-11-253-4/+6
* kmod-sched-cake: update to latest git HEADFushan Wen2017-11-252-21/+24
* kernel: Update kernel 4.4 to 4.4.100Rosen Penev2017-11-2515-26/+26
* odhcpd: update to latest git HEADHans Dedecker2017-11-251-3/+3
* odhcpd: add a full and ipv6only variant (FS#1188)Hans Dedecker2017-11-251-27/+58
* kernel: bump 4.9 to 4.9.65Stijn Tintel2017-11-245-210/+188
* wireguard: bump to 20171122Kevin Darbyshire-Bryant2017-11-241-2/+2
* uboot-sunxi: fix build of HAOYU Electronics Marsboard A10Hauke Mehrtens2017-11-231-1/+2
* sunxi: remove support for kernel 4.4Hauke Mehrtens2017-11-2328-4295/+0
* sunxi: backport sunxi-mmc controller driver from 4.13Hauke Mehrtens2017-11-231-0/+288
* kernel: i2c-piix4: fix dependency on TARGET_x86Hauke Mehrtens2017-11-221-1/+1
* kernel: e100: take e100 firmware from linux-firmware repositoryHauke Mehrtens2017-11-222-8/+10
* kernel: add NFS4 client supportMarcin Jurkowski2017-11-222-17/+68
* kernel: Hyper-V PCI pass throughLucian Cristian2017-11-221-1/+1
* kernel: add 32bit x86 HYPER-V supportLucian Cristian2017-11-221-0/+19
* kernel: add kmod-i2c-i801Martin Schiller2017-11-221-0/+26
* kernel: add it87-wdt watchdog timer moduleMartin Schiller2017-11-221-0/+18
* kernel: bump 4.9 to 4.9.63Koen Vandeputte2017-11-2264-3195/+1595
"k">raise ValueError("Context was already finalized") if isinstance(data, six.text_type): raise TypeError("Unicode-objects must be encoded before padding") self._buffer += data finished_blocks = len(self._buffer) // (self.block_size // 8) result = self._buffer[:finished_blocks * (self.block_size // 8)] self._buffer = self._buffer[finished_blocks * (self.block_size // 8):] return result def finalize(self): if self._buffer is None: raise ValueError("Context was already finalized") pad_size = self.block_size // 8 - len(self._buffer) result = self._buffer + six.int2byte(pad_size) * pad_size self._buffer = None return result @utils.register_interface(interfaces.PaddingContext) class _PKCS7UnpaddingContext(object): def __init__(self, block_size): self.block_size = block_size # TODO: O(n ** 2) complexity for repeated concatentation, we should use # zero-buffer (#193) self._buffer = b"" def update(self, data): if self._buffer is None: raise ValueError("Context was already finalized") if isinstance(data, six.text_type): raise TypeError("Unicode-objects must be encoded before unpadding") self._buffer += data finished_blocks = max( len(self._buffer) // (self.block_size // 8) - 1, 0 ) result = self._buffer[:finished_blocks * (self.block_size // 8)] self._buffer = self._buffer[finished_blocks * (self.block_size // 8):] return result def finalize(self): if self._buffer is None: raise ValueError("Context was already finalized") if len(self._buffer) != self.block_size // 8: raise ValueError("Invalid padding bytes") valid = _lib.Cryptography_check_pkcs7_padding( self._buffer, self.block_size // 8 ) if not valid: raise ValueError("Invalid padding bytes") pad_size = six.indexbytes(self._buffer, -1) res = self._buffer[:-pad_size] self._buffer = None return res