Re: cryptest-ios.sh on Apple platform

Jeffrey Walton <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>

On Monday, March 8, 2021 at 12:27:22 AM UTC-5 Jeffrey Walton wrote:

> On Sunday, March 7, 2021 at 11:02:35 PM UTC-5 Mouse wrote:
>
>> You want cryptest-*ios*.sh run on macOS?
>>
>
> Yes.
>
> BTW, cryptest.sh fails to utilize assembly acceleration, because on macOS 
>> you have to tell Clang explicitly to use the proper arch flags, it didn't 
>> set them by default.
>>
>
> Something does not sound right. The makefile should add the proper flags 
> where needed, like -maes for AES on Intel and -march=armv8-a+crypto on ARM.
>
> cryptest.sh tests code generation. The ARM AES tests are at 
> https://github.com/weidai11/cryptopp/blob/master/TestScripts/cryptest.sh#L1683
> .
>

I just added code generation tests to cryptest-ios.sh. Output will look 
something like:

iPhoneOS:armv7 ==> SUCCESS
iPhoneOS:arm64 ==> SUCCESS
iPhoneOS:arm64 : AES ==> SUCCESS
iPhoneOS:arm64 : PMULL ==> SUCCESS
iPhoneOS:arm64 : SHA1 ==> SUCCESS
iPhoneOS:arm64 : SHA2 ==> SUCCESS
AppleTVOS:armv7 ==> SKIPPED
AppleTVOS:arm64 ==> SKIPPED
WatchOS:armv7 ==> SKIPPED
WatchOS:arm64 ==> SKIPPED
iPhoneSimulator:i386 ==> SUCCESS
iPhoneSimulator:x86_64 ==> SUCCESS
AppleTVSimulator:i386 ==> SKIPPED
AppleTVSimulator:x86_64 ==> SKIPPED
WatchSimulator:i386 ==> SKIPPED
WatchSimulator:x86_64 ==> SKIPPED

A lot of stuff is skipped because I don't have a modern Xcode installed. I 
can't upgrade this machine anymore. The UI is too sluggish or slow. I can 
only work from it over SSH.

Jeff

-- 
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/2d4dafd4-97ea-40ba-bb37-0210da2c365fn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.