Using keys with 4096 bit RSA encryption

Hello

I would use encryption RSA 4096 bit on BB device (for the test I use BB 8300 with 4.5.0.52 b75 OS).

Is this possible?  I am getting exception in this code:

RSAKeyPair sampleKeyPair;
sampleKeyPair = new RSAKeyPair (new RSACryptoSystem (4096));

Change of 4096 by 2048 solve this exception, but it is not the solution for me.

Thank you.

I answer myself.

After reading "Blackberry Enterprise Soluttion Security, Technical Overview", I found that I can use the 4096 bit encryption algorithm, but key generation is limited to 2048-bit (probably performance issue).

If the problem was not with

new RSACryptoSystem (4096)

but with the generation RSAKeyPair.

I had received an RSA private key from outside, so I need to generate a (at least in the current state of the project I'm working on)

I'm really curious to know, if someone know how to generate 4096 bit RSA key.

Tags: BlackBerry Developers

Similar Questions

  • 4.2 of the ACS and 4096 bit certificate

    Hello

    is it possible to use a CBS and a CA server with 4096 bit certificate?

    So far, we have tested with selfsigned 1024-bit certificates. Now, I don't know, I we can install a certificate to 4096 bits on GBA and if she can handle 4096 bits client certificates?

    Thanks in advance.

    Concerning

    Dominic

    Dominic,

    You can use 4096 bit certificate of CSA 4.2.0.124 patch 10 go.

    Kind regards

    ~ JG

    Note the useful messages

  • RSA encryption using the .cer file

    Hi all

    I need to encrypt my data using RSA with a public key stored in my file system. (assets)

    as with iOS and android, we .cer file, what file format do I need to store in my file system, which I will extract the public key?

    and any snippet of code that I can refer to, to get the public key of the certificate for encryption?

    Help, please!

    Kind regards.

    That's what I did to read the file:

    QFile file (CERTIFICATE_PATH);
    If (file. Exists())
    {
    leader. Open (QIODevice::ReadOnly);
    QByteArray certificateDataBytes = file.readAll ();

    int length = certificateDataBytes.size ();
    X 509 * certificate;

    const unsigned char * data = (unsigned char *) certificateDataBytes.data ();

    length is the length of the certificateDataBytes in terms of bytes.
    certificate = d2i_X509 (NULL, & data, length);

    _publicKey = X509_get_pubkey (certificate);

    RSA * rsa;
    RSA = EVP_PKEY_get1_RSA (_publicKey);

    int maxSize = RSA_size (rsa);

    char * inputPainText = convertToUStr (plainText);
    unsigned char * encrypted = (unsigned char *) malloc (maxSize);
    int bufferSize = RSA_public_encrypt (strlen (inputPainText), (unsigned char *) inputPainText, encrypted, rsa, RSA_PKCS1_PADDING);

    }

    Thank you all

  • using key 32-bit windows 7 for 64-bit windows

    I am using windows 7 32 bit os...

    I'm going to a place RAM a gradation from 4 GB to 8 GB

    8 GB ram usable memory is only possible on windows 7 64 bit

    is it possible to use the same key for win7 32 bit, when I update my operating system to 64-bit, my processor capable of running on 64 bit too.

    is there any violation in the user license agreement if it is possible to use.

    You will need to use the activation of the phone;

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us

  • Cannot use Bit Locker encryption because Bit Locker critical system files are missing or damaged.

    Original title: file corruption

    My laptop is around the age of 13 months. For the 6 months charges I couldn't play all the music in the music library of the media player. the error message would say my music files have been damaged or corrupted. I tried to delete the files, but could not. unexpetedly about 2 weeks ago the media player has started working properly, and even though I was confused, I was happy to be able to listen to my music. However, when I did my weekly back, a message appeared that said that some files could not be backed up. My computer has since fallen twice and had to repair itself and then when I tried my weekly backup only yesterday, the computer won't start backup. reads the error message: Bit Locker encryption cannot be used because the Bit Locker critical system files are missing or damaged.

    I find it strange that "file corruption" has been cited again but when I try recommended fixes, nothing changes, just as it was when I had problems with the music. Help, please

    Hi Effie_777,

    Thanks for posting the question in the Microsoft Community Forum.

    Answering this question that helps us provide the best solution:

    Have what difficulties you tried?

    Try the steps mentioned in this link:

    Error code 0 x 81000031 occurs when you try to back up files by using the backup and restore on a Windows 7 computer Assistant

    http://support.Microsoft.com/kb/975692

    Hope this information helps. If you have any other questions feel free to respond and we would be happy to help.

  • Implement the deployment of Machine virtual Windows Server 2012 with a data Bit Locker encryption?

    Hi all

    Is it possible to implement the feature data Bit Locker encryption on my Virtual Machine to Windows Server 2012 Std on the Platform VMware ESXi 5.1 vSphere update 1 ?

    The hypervisor is currently running on servers HP Blade BL 460 c G8 . Read well the hardware specification: http://h18001.www1.hp.com/products/quickspecs/14208_na/14208_na.pdf I see that he has taken a TPM installed on the blade, but I don't know how to make sure that it is activated or used by the Virtual Machine?

    Any kind of help would be greatly appreciated.

    Thanks in advance

    I had a few goes at it and it's not like you can virtualize a TPM. It would make sense if it was the case - the secure TPM was not designed to manage multiple instances of the OS.

    I ended up making USB passthrough on a USB stick and have the Bitlocker key stored on this stick as a demo. Certainly not a transaction supported, but it showed that the storage of key seems to be the only issue.

  • Problems when I want to update my complete system Mavericks using a USB key with the installation program.

    I want to "Refresh" my Mavericks home cleaning system and I still have a USB key with the complete installation program.

    With this USB key, I installed successfully already before Mavericks. Now, I want to repeat the installation by booting from USB key. But when the installation starts early an alert appears, said something like "... the verification failed - something is changed on the volume...". "and the cant of the installation continues.

    I've archived the original "OS X Mavericks installieren.app" from the app store and I have properly prepared another USB key using the terminal app, referencing the original installer, but I still get this alert when I try to install with this new USB.

    It is necessary for me to work with the Mavericks, because it's the latest version of the system on which I can run Adobe Creative Suite CS6 correctly. With the later versions of OS X, I get problems on my Mac Pro (end of 2008).

    I wonder what could happen with my first USB data, as I have already installed Mavericks successfully with it under the same conditions and after that he never touched the stick again so far. What can I do? What is the reason for this? Y at - there a site where I can get help or advice to solve the problem or if necessary can I re-download an Installer 'fresh '?

    Thank you and what is Berlin

    You can make a bootable USB to install using this free program that will do all the work for you. Try running disk utility/repair disk be before installation.

    Bootable USB Flash Drive-Diskmaker X

  • Can I use "Vista Home Premium Product Key' with 'Windows Vista Ultimate'?

    Hi guys,.
    Please...
    Can I use my "Vista Home Premium Product Key' with 'Windows Vista Ultimate'?

    Hello

    NO.

    You cannot use your Vista Home Premium product key with Vista Ultimate

    You must purchase a license/product key for Ultimate

    and microsoft sells more vista

    they switched to windows 7

  • To use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows

    Original title: change the version of Windows

    I have a computer used only for Flight Simulator and is running Windows 7 Home Premium 64-bit.  I want to use the computer with the different Flight Simulator equipment that is only compatible with 32-bit versions of Windows.  Is there a way I can upgrade to Windows 7 64 bit for Windows 10 32 bit and enjoy free upgrade of Windows 10?

    No, the upgrade program will replace existing windows with the same number of bits, 32 to 32 and 64 to 64.

    Even within the same version of Windows, passing from 32 to 64 and vice versa requires a clean installation.

  • Attempts to convert a word to pdf doc using windows 7 64 bit computer. During the conversion, he goes to the notebook with the following message:

    Hello:

    I'm trying to convert a Word Doc from MS to a PDF file using my new 64 bit Windows 7 system.  When in the Word doc, I go to print, then choose PDF and then after the 'conversion', he goes to the notebook with the following message:

    %% [ProductName: Distiller] %.

    Cambria found, using Courier.

    %% [Error: invalidfont;] [OffendingCommand: show] %.

    Battery:

    ()

    %% [Flushing: rest of job (end of file) will be ignored] %%.

    %% [Warning: PostScript error.] No PDF file produced. ] %%

    I'd appreciate someone is able to help me with this problem.

    Thank you

    Aida

    I don't know what PDF "virtual" printer that you use, but you can simply add the free Microsoft SaveToPDF complement for your installation of Microsoft Office and avoid these 'virtual' PDF printers.  Your assistant head of household can already do.

    Office 2010

    http://Office.Microsoft.com/en-us/support/redir/HA010354239.aspx?QueryID=423abf3d3be54a199d634bd88dca8478&respos=0&CTT=1

    Office 2007

    http://Office.Microsoft.com/en-us/support/redir/HA010064992.aspx?QueryID=423abf3d3be54a199d634bd88dca8478&respos=1&CTT=1

    These add-ins are explained, as well as other things, to http://office.microsoft.com/en-us/support/?CTT=97

  • Error 0x0000007B blue screen VM boot with 32-bit Windows 2003 using VMware Converter 4.0

    Error 0x0000007B blue screen VM boot with 32-bit Windows 2003 using VMware Converter 4.0

    I want to create a virtual machine using VMWare Converter 4.0 from an Acronis True Image to ESXi Server 3i .tib backup file. The conversation seems to be working, but when I try to start the virtual machine, it begins to start, displays the Windows 2003 splash screen briefly and then fails with a blue screen with the following error:

    STOP: 0X0000007B (0XFFFFFADFD520F3C0, 0XFFFFFFFFC0000034, 0 X 0000000000000000, 0 X 0000000000000000)

    Looking through the forums I've seen this error mentioned with 64-bit Windows 2003, but no mention of 32-bit?

    Any help much appreciated.

    THX

    > Thanks, unfortunately the .tib Acronis True image files do not work with Converter 3.0.3

    You already have a virtual computer that start - it's just bluescreens - so no need to run the full convert again.

    Juist use Converter 3.0.3 to configure the virtual machine - part seemed to have failed

    ___________________________________

    Description of the vmx settings: http://sanbarrow.com/vmx.html

    VMware-liveCD: http://sanbarrow.com/moa.html

  • My true 32-bit Vista key work with 64-bit?

    I just ordered a SL500 (not yet received) with Windows Vista Ultimate. I wonder if the real key with what he will come will work with Windows Vista Ultimate x 64 as well? Vista Ultimate that comes with the laptop facilities include both x 86 x 64?

    Hi Bear17, welcome to the Lenovo user community!

    Yes, the x 86 Vista key will work with x 64.

    Not the laptop does not come with facilities both x 86 and x 64, so you'll need x 64 media if you decide to spend.

  • RSA encrypt in C++ Blackberry10

    Hello. I'm new with Blackberry10 and I need to encrypt a password with the RSA. I searched in the blackberry developers website and I found the hursa.h API security. I have experience working with Blackberry in Java and I know that in Java, the first thing to do once got you the Module and the public exponent is to create the object of RSA publick key, e.g. RSAPublicKey publicKey = new RSAPublicKey (new RSACryptoSystem (2048), ebytes, Mo); I am trying to perform this exact task in the new platform BB10 with C++ and I failed.
    I've seen several methods in the page, but none of them are complete, like a hu_RSAKeySet(), I think I should use. I tried to use it, but I know I'm missing something, I don't know if I should create an object of this class of hursa or something like that. For now I'm just including hursa in my class and try to implement the method and the message I get is "undefined reference to"hu_RSAKeySet '"

    Any help will be appreciated. Not at all. As I said I am not a guru in the RSA encryption of the process, but I made this ecrypting in the old Blackberry java platform and it wasn't that hard.

    Thank you all and consider better.

    Solved. After doing some research and getting to know better with BB10 and RSA encoding, I've finally came out with the solution to successfully encrypt a plain text with RSA and Base64 in C/C++ for BB10 or any other platform. Please take into consideration that I have the module and the public object rsa exponent since I'm working with services.

    Code:

    QByteArray answer;
    
        RSA* rsa = RSA_new();
    
        BIGNUM *modulus = BN_new();
        BIGNUM *exponent = BN_new();
        constchar*modulusString = rsaObj->getM();//My Modulus
        constchar*exponentString = rsaObj->getE();//My exponent
    
        BN_hex2bn(&modulus, modulusString);
        BN_hex2bn(&exponent, exponentString);
    
        rsa->n = BN_new();
        BN_copy(rsa->n, modulus);
        rsa->e = BN_new();
        BN_copy(rsa->e, exponent);
    
        int maxSize = RSA_size(rsa);
        qDebug()<<"maxSize:"<< maxSize;
    
        constchar*inn ="1234";
        unsignedchar*encrypted =(unsignedchar*) malloc(maxSize);
        int bufferSize = RSA_public_encrypt(strlen(inn),(unsignedchar*) inn,
                encrypted, rsa, RSA_PKCS1_PADDING);
    
        if(bufferSize ==-1){
            RSA_free(rsa);
            qDebug()<<"Error";
        }
    
        QByteArray enc =QByteArray::fromRawData((constchar*) encrypted,256);
        answer = enc.toBase64();
    
        return answer;
    

    Thank you and I hope this helps for new developers BB10

  • my product key is a bit cleared, and I can't read the number

    my product key is a bit cleared and Word guard invites me to save it, please help, help me obi wan kanobi (bill gates), I can't read the number of your My only help.

    If you are prompted to register, skip-it is not necessary.  If you are being prompted to activate you need not the product key.  We can not help you with that as the product key provided with the product and is unique and there is no record of who has what key to check - not even at Microsoft.

    Here is the Microsoft policy about lost or missing software: http://support.microsoft.com/kb/326246/en-gb.

    I'm sorry, that we cannot be of more assistance.  If bad comes to worse, download and install the FREE OpenOffice Suite (www.openoffice.org), which contains most of the Microsoft Office programs (except Outlook and a few others in the more advanced desktop versions) and at least you won't have to spend more money on the situation.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • IPSec and used keys

    Hello world.

    When you use ipsec (AH / ESP), authentication and encryption requires a secret key as dicussed in the following snippet:

    Authentication allows you to calculate a value (ICV) integrity checking on the contents of the package, and it is usually based on a cryptographic like MD5 or SHA-1 hash. It incorporates a secret key known to both ends and this allows the recipient value ICV in the same way. If the beneficiary Gets the same value, the sender has actually authenticated itself (relying on the property that the cryptographic hashes cannot practically be reversed). AH still provides authentication and ESP to do eventually.
    The encryption uses a secret key to encrypt data before transmission, and this mask the actual content of the package of eavesdroppers. There is a certain choice of algorithms here, with DES, 3DES, Blowfish and AES are quite common. Others are also possible.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    These keys can be configured manually, or they can be exchanged by IKE as dicussed in the following snippet:

    From the manuals key IKE

    Since both sides of the conversation need to know the secret values used in hash or encryption, there is the question of just how these data are exchanged. The manual keys require manual entry of the secret values at both ends, probably transmitted by an out-of-band mechanism, and IKE (Internet Key Exchange) is a sophisticated mechanism to do this online.

    ========================================================

    When I look at the giiven examples in response to my last thread on the vpn, I don't see these sectet required for authentication keys and encrption pf packages. ;

    Here is an example:

    crypto ISAKMP policy 10

    preshared authentication

    address key crypto isakmp 199.199.199.2 CISCO

    !

    Crypto ipsec transform-set esp-3des esp-sha-hmac MyTransSet

    transport mode

    !

    Profile of crypto ipsec MyProfile

    game of transformation-MyTransSet

    !

    interface Tunnel0

    IP 10.10.10.1 255.255.255.252

    tunnel source 199.199.199.1

    tunnel destination 199.199.199.2

    ipv4 ipsec tunnel mode

    Profile of tunnel MyProfile ipsec protection

    !

    interface serial0

    199.199.199.1 IP address 255.255.255.0

    automatic duplex

    automatic speed

    !

    IP route 0.0.0.0 0.0.0.0 199.199.199.2

    Above that the keys are used for authentication and encrption of packages?

    Thanks and a great weekend.

    As written in your quote, Ike negotiates these keys for you. Since you are using Ike, you don't have to manually configure the encryption keys in a block.

    Sent by Cisco Support technique iPad App

Maybe you are looking for

  • Game performance fluctuates on my y460.

    I have a y460 I've had a few years ago. Sometimes, when you play I get a large (60-120 FPS) framerate and sometimes I get a terrible situation in the same scene, same and same level of action and the same parameters, so it is not quite normal fluctua

  • Backlit keyboard doesn't work does not correctly

    Hi friends I recently bought touchsmart HP Envy 15-j122tx and noticed after the first day that the keyboard backlit light is uneven and after observation I find that led in the keyboard light are not working in some keys as other keys, what I now ple

  • Sound problems, is not up to date, windows framework errors?

    In order to save money from my husband that I try to troubleshoot my computer. I think Ive been far because several times my daily production is disturbed because I have no sound or to pull up a document I have to update. I'll update and my computer

  • Problem of data system mobile blackBerry

    Hello I'm confused with BB MDS at the moment. I have a private business application, but I have normally just an https listening to clients running on the same server as the BES is on, and then have the application on devices communicate this way. I

  • It takes 13 seconds for a link to open in IE of Twitter app Microsoft people

    Hi, it takes 13 dry for the link open in IE of Twitter in people vs Microsoft 1 sec for Facebook app. I made a youtube video (1 min 25 sec): http://youtu.be/-aF3Crrc5wc Is this a known issue for RT or a problem with my RT? THX.