mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 19:30:09 +00:00
Fix typo [skip ci]
This commit is contained in:
parent
e0abfd0f66
commit
648e414f69
@ -504,7 +504,7 @@ static NSData *encryptRSAModernPadding(id<EncryptionProvider> encryptionProvider
|
|||||||
}
|
}
|
||||||
[bignumContext assignBinTo:bignumKeyAesEncrypted value:keyAesEncrypted];
|
[bignumContext assignBinTo:bignumKeyAesEncrypted value:keyAesEncrypted];
|
||||||
int compareResult = [bignumContext compare:rsaModule with:bignumKeyAesEncrypted];
|
int compareResult = [bignumContext compare:rsaModule with:bignumKeyAesEncrypted];
|
||||||
if (compareResult == -1) {
|
if (compareResult < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -513,7 +513,7 @@ static NSData *encryptRSAModernPadding(id<EncryptionProvider> encryptionProvider
|
|||||||
[paddedEncryptedData appendData:encryptedData];
|
[paddedEncryptedData appendData:encryptedData];
|
||||||
while (paddedEncryptedData.length < 256) {
|
while (paddedEncryptedData.length < 256) {
|
||||||
uint8_t zero = 0;
|
uint8_t zero = 0;
|
||||||
[paddedEncryptedData replaceBytesInRange:NSMakeRange(0, 0) withBytes:&zero];
|
[paddedEncryptedData replaceBytesInRange:NSMakeRange(0, 0) withBytes:&zero length:1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paddedEncryptedData.length != 256) {
|
if (paddedEncryptedData.length != 256) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user