IOS Encryption Algorithm Rollup

Source: Internet
Author: User

Cccryptorstatus Cccryptorcreate (

Ccoperation op,/* Kccencrypt, etc. */

Ccalgorithm ALG,/* kccalgorithmdes, etc. */

Ccoptions options,/* kccoptionpkcs7padding, etc. */

const void *key,/* RAW key material */

size_t Keylength,

const void *IV,/* Optional initialization vector */

Cccryptorref *cryptorref)/* returned */

enum {

Kccencrypt = 0,

Kccdecrypt,

};

typedef uint32_t Ccoperation;

enum {

/* Options for block ciphers */

kccoptionpkcs7padding = 0x0001,

Kccoptionecbmode = 0x0002

/* Stream ciphers currently have no options */

};

typedef uint32_t Ccoptions;

enum {

kCCAlgorithmAES128 = 0,

Kccalgorithmaes = 0,

Kccalgorithmdes,

Kccalgorithm3des,

Kccalgorithmcast,

KCCAlgorithmRC4,

KCCAlgorithmRC2,

Kccalgorithmblowfish

};

typedef uint32_t CCALGORITHM;

Osstatus Seckeyencrypt (

Seckeyref Key,

Secpadding padding,

Const uint8_t *plaintext,

size_t Plaintextlen,

uint8_t *ciphertext,

size_t *ciphertextlen)

__osx_available_starting (__mac_10_7, __iphone_2_0);

IOS Encryption Algorithm Rollup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.