Code Monkey home page Code Monkey logo

aesgcm's People

Contributors

christophherrmann avatar indisoluble avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aesgcm's Issues

How to generate AES/GCM/NOPADDING

Hello, how I can generate a ciphered with no padding?

I'm testing with this: 1234567891234567, I'm waiting this base64 result: QlWHK6ZeJptBBCmDLhOpkGAct0ZDO8jaaOFp9sxMSo0=; but the library returns: QlWHK6ZeJptBBCmDLhOpkA==

Thanks in advance.

Can you skip the Additional Authentication Data?

I have a question about the Additional Authentication Data. Is it possible to use this library with out using that? For the moment I am just passing in

[NSData new]

If I encrypt, then decrypt, on the same device, things seem to work, but doing this test using 2 different devices and a failure happens in step 8 of the decrypt, which has to do with the authentication tag. So I am wondering if I am using that correctly.

How to get cipheredData from IAGCipheredData object?

Hi Team,

Need help here, I need to get the cipheredData and authenticationTagData from the object iagData

IAGCipheredData *iagData = [IAGAesGcm cipheredDataByAuthenticatedEncryptingPlainData:ciphertext
                                                              withAdditionalAuthenticatedData:aad
                                                                      authenticationTagLength:IAGAuthenticationTagLength128
                                                                         initializationVector:iv
                                                                                          key:key
                                                                                        error:nil];

Any help appreciated.

EXC_BAD_ACCESS

  • (void)getXorBuffer:(IAGUCharType *)buffer
    withBuffer:(IAGUCharType *)value1
    buffer:(IAGUCharType *)value2
    bufferSize:(IAGSizeType)bufferSize
    {
    for (IAGSizeType i = 0; i < bufferSize; i++)
    {
    buffer[i] = (value1[i] ^ value2[i]); //EXC_BAD_ACCESS
    }
    }

Library for aes/gcm/nopadding

Hi, thanks for your work, I wand decrypt a file from Android with aes/gcm/nopadding , the library CCCryptorGCM is perfect but is not public ... how call your library? I don't have the

NSData *aad = [@"AdditionalAuthenticatedData" dataUsingEncoding:NSUTF8StringEncoding];
:

I have only Data, ckey and cIv [16]

CCCryptorStatus cryptStatus = CCCryptorGCM(operation,
kCCAlgorithmAES128,
cKey,
kCCKeySizeAES128,
cIv,
kCCBlockSizeAES128,
nil,
0,
contentData.bytes,
contentData.length,
operationBytes,
tag.bytes,
&tagLength);

Thanks a lot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.