iOS国密demoSM2 SM3 SM4 ZUC EEA3 EIA3


iOS demo支持国密SM2,SM3, SM4,ZUC(EEA3 EIA3)。代码是基于OpenSSL的。支持armv7,arm64,armv7s,i386,x86_64架构。网上代码参差不齐,自己研究了好久,分享给大家。
资源截图
代码片段和文件信息
//
//  AppDelegate.m
//  TestEncryptionAndDecryption
//
//  Created by zhangyazhou on 2019/1/16.
//  Copyright © 2019 FuFeiTong. All rights reserved.
//

#import “AppDelegate.h“

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks disable timers and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}


- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


@end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-16 14:47  TestEncryptionAndDecryption
     目录           0  2019-01-16 15:09  TestEncryptionAndDecryptionTestEncryptionAndDecryption
     文件         298  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionAppDelegate.h
     目录           0  2019-01-16 15:19  __MACOSX
     目录           0  2019-01-16 15:19  __MACOSXTestEncryptionAndDecryption
     目录           0  2019-01-16 15:19  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryption
     文件         171  2019-01-16 14:47  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryption._AppDelegate.h
     文件        6148  2019-01-16 14:58  TestEncryptionAndDecryptionTestEncryptionAndDecryption.DS_Store
     文件         120  2019-01-16 14:58  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryption._.DS_Store
     目录           0  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassets
     目录           0  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassetsAppIcon.appiconset
     文件        1590  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassetsAppIcon.appiconsetContents.json
     文件          62  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassetsContents.json
     目录           0  2019-01-16 15:19  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassets
     文件         171  2019-01-16 14:47  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionAssets.xcassets._Contents.json
     文件        2761  2019-01-16 15:09  TestEncryptionAndDecryptionTestEncryptionAndDecryptionViewController.m
     文件         176  2019-01-16 15:09  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryption._ViewController.m
     目录           0  2019-01-16 15:18  TestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lproj
     文件        1881  2019-01-16 14:50  TestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lprojLaunchScreen.storyboard
     目录           0  2019-01-16 15:19  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lproj
     文件         176  2019-01-16 14:50  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lproj._LaunchScreen.storyboard
     文件        3598  2019-01-16 15:18  TestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lprojMain.storyboard
     文件         176  2019-01-16 15:18  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionase.lproj._Main.storyboard
     文件         355  2019-01-16 14:47  TestEncryptionAndDecryptionTestEncryptionAndDecryptionmain.m
     文件         227  2019-01-16 14:47  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryption._main.m
     目录           0  2019-01-16 15:00  TestEncryptionAndDecryptionTestEncryptionAndDecryptionlib
     文件    17504752  2019-01-16 14:57  TestEncryptionAndDecryptionTestEncryptionAndDecryptionliblibEncryptionAndDecryption.a
     目录           0  2019-01-16 15:19  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionlib
     文件         176  2019-01-16 14:57  __MACOSXTestEncryptionAndDecryptionTestEncryptionAndDecryptionlib._libEncryptionAndDecryption.a
     目录           0  2019-01-16 14:54  TestEncryptionAndDecryptionTestEncryptionAndDecryptionlibEncryptionAndDecryption
     文件        6148  2019-01-16 14:28  TestEncryptionAndDecryptionTestEncryptionAndDecryptionlibEncryptionAndDecryption.DS_Store
............此处省略35个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)