Hi,

I am using openssl for encryption in my project and currently i am stuck
with few issues...

1. As i understand AES_wrap_key(), first argument AES_KEY *key is the key
which needs to be wrapped and *in is the wrapping key. Correct me if i am
wrong.

int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
                unsigned char *out,
                const unsigned char *in, unsigned int inlen)

2. By looking at the code, i see  AES_wrap_key() supports max of 480 bits [
unsigned long rd_key[4 *(AES_MAXNR + 1)];] and my project demands to support
512 bits of key. How do i do this? 

struct aes_key_st {
#ifdef AES_LONG
    unsigned long rd_key[4 *(AES_MAXNR + 1)];
#else
    unsigned int rd_key[4 *(AES_MAXNR + 1)];
#endif
    int rounds;
};
typedef struct aes_key_st AES_KEY;


eg: Below is the key which i want to encrypt and use HMAC for wrapping it... 

DEK = fb28cb4ec469b09a4ab170f4c846fe875b1cf5f264658145937b5cb9fe63be
HMAC: 501bc4b446a12c0259d4484dfc42467843cfab02fb7cf8081b13f71b56e7596c


3. I am also stuck on how to convert this DEK string into integer which can
store 512 bits...

Any help is highly appreciated.

Thanks
Prashanth

-- 
View this message in context: 
http://old.nabble.com/Need-help-on-using-AES_wrap_key%28%29-function-tp33448401p33448401.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to