[cryptopp-users] Android changes

2021-03-09 Thread Jeffrey Walton
config_asm.h had goodness like this: #if defined(__ANDROID__) || defined(ANDROID) # undef CRYPTOPP_ARM_ACLE_HEADER #endif The ACLE hack is a workarounds from old NDKs that depended on GCC 4.8 and 4.9. The old GCC sources did not include the header. Another hack from the old days was

[cryptopp-users] setenv-*.sh changes

2021-03-09 Thread Jeffrey Walton
Currently our setenv-*.sh files, like setenv-ios.sh, do not set CPPFLAGS, CXXFLAGS and LDFLAGS. Instead they set prefixed flags like IOS_CPPFLAGS, IOS_CXXFLAGS and IOS_LDFLAGS. GNUmakefile-cross then uses the prefixed flags to build the library. UB encountered a bad interaction where

[cryptopp-users] Android.mk and make_neon.sh

2021-03-09 Thread Jeffrey Walton
Hi Everyone, After working https://github.com/weidai11/cryptopp/issues/1015 to remove the old Android workarounds, we were left with a crippled library when using Android.mk. Android.mk lacked the arch specific flags because ndk-build does not provide an easy way to add an arch flag, like

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Devharsh Trivedi
% xcodebuild -showsdks iOS SDKs: iOS 14.4-sdk iphoneos14.4 iOS Simulator SDKs: Simulator - iOS 14.4-sdk iphonesimulator14.4 macOS SDKs: DriverKit 20.2 -sdk driverkit.macosx20.2 macOS 11.1

[cryptopp-users] Re: reinterpret_cast truncating to 8

2021-03-09 Thread Devharsh Trivedi
cipher.size() doesn't help :/ the problem is not related to size but the xct pointer itself however, if I do something similar with mac, it works *const* byte* xmac = *reinterpret_cast*<*const* byte*>(strMac.data()); dec.DecryptAndVerify(rt, xmac, *sizeof*(xmac), iv, sizeof(iv), aad,

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Devharsh Trivedi
I have Xcode Version 12.4 (12D4e) and I downloaded Crypto++ 8.5.0 I see TestData/Programs/Vectors folders but don't have TestScripts On Monday, 8 March 2021 at 03:44:44 UTC-5 Jeffrey Walton wrote: > On Monday, March 8, 2021 at 12:27:22 AM UTC-5 Jeffrey Walton wrote: > >> On Sunday, March 7,

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Jeffrey Walton
On Tue, Mar 9, 2021 at 4:12 PM Devharsh Trivedi wrote: > > I have Xcode Version 12.4 (12D4e) and I downloaded Crypto++ 8.5.0 You also need a few SDKs, like iPhoneOS, WatchOS, AppleTVOS. > I see TestData/Programs/Vectors folders but don't have TestScripts TestScripts can be found in Git master.

[cryptopp-users] Re: reinterpret_cast truncating to 8

2021-03-09 Thread Devharsh Trivedi
Thank you for your reply. I am following this example - https://www.cryptopp.com/wiki/XChaCha20Poly1305 and trying to use std::string instead of byte instead of using byte array for ct like this dec.DecryptAndVerify(rt, mac, sizeof(mac), iv, sizeof(iv), aad, sizeof(aad), ct, sizeof(ct)); I

[cryptopp-users] Re: reinterpret_cast truncating to 8

2021-03-09 Thread Jeffrey Walton
On Tuesday, March 9, 2021 at 3:45:47 PM UTC-5 devhar...@gmail.com wrote: > Thank you for your reply. > > I am following this example - > https://www.cryptopp.com/wiki/XChaCha20Poly1305 > > and trying to use std::string instead of byte > > instead of using byte array for ct like this >

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Devharsh Trivedi
=iPhoneOS:armv7 ==> SUCCESSiPhoneOS:arm64 ==> SUCCESSiPhoneOS:arm64 : AES ==> SUCCESSiPhoneOS:arm64 : PMULL ==> SUCCESSiPhoneOS:arm64 : SHA1 ==> SUCCESSiPhoneOS:arm64 : SHA2 ==> SUCCESSAppleTVOS:armv7 ==> FAILUREAppleTVOS:arm64 ==>

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Devharsh Trivedi
I sent you output fileSending again here —  -- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. To view this

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Jeffrey Walton
On Tue, Mar 9, 2021 at 7:06 PM Devharsh Trivedi wrote: > > = > iPhoneOS:armv7 ==> SUCCESS > iPhoneOS:arm64 ==> SUCCESS > iPhoneOS:arm64 : AES ==> SUCCESS > iPhoneOS:arm64 : PMULL ==> SUCCESS > iPhoneOS:arm64 : SHA1 ==> SUCCESS > iPhoneOS:arm64 :

Re: [cryptopp-users] cryptest-ios.sh on Apple platform

2021-03-09 Thread Jeffrey Walton
On Tue, Mar 9, 2021 at 7:22 PM Devharsh Trivedi wrote: > > I sent you output file Yes, thanks. I missed it the first time around. Re: WatchOS... I've seen similar errors before. Do you know what a typical value for -mappletvos-version-min is? (I've tried 6 through 10, but none of them are