Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studo Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studo Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
E_INVALID operation in aes_unwrap
Hi,
can anyone figure out the error here is my code
ByteBuffer bufKey,bufKek;
bufKek.Construct(16);
bufKek.SetArray((byte *)”123456789012345″,0,16); //key used for wrapping
bufKek.Flip();
bufKey.Construct(16);
bufKey.SetArray((byte *)”100100100100100″,0,16); // key to be wrapped
bufKey.Flip();
AesCipher *asc=new AesCipher();
asc->Construct(“ECB/128/PKCS7PADDING”,CIPHER_WRAP); //wrap function
SecretKeyGenerator *kgen=new SecretKeyGenerator();
kgen->Construct(bufKek);
ISecretKey *ikey=kgen->GenerateKeyN();
asc->SetKey(*ikey);
ByteBuffer* enkey=asc->WrapN(*bufKey);
AppLog(“enkey is %s”,enkey->GetPointer());
AesCipher *asc1=new AesCipher();
asc1->Construct(“ECB/128/PKCS7PADDING”,CIPHER_UNWRAP); //un wrap function
asc1->SetKey(*ikey);
ByteBuffer *enkey1=asc->UnwrapN(*enkey);
AppLog(“enkey is %s”,enkey1->GetPointer());
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio