Code example for NoSuchPaddingException

Methods: printStackTrace

0
		} catch (NoSuchAlgorithmException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (NoSuchPaddingException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		Log.i("RSA", "ENCTRYPTED...");
		return result;
	} 
	 
	public String decrypt (String content, Context context){
		Log.i("DECRYPTION", "STARTING...");
		 
		byte [] bContent = Base64.decode(content);
        PrivateKey privateKey = KeyStoreManager.getPrivateKey(context);
         
		byte [] rsaKey = new byte [RSA_LENGTH];
		byte [] iv = new byte [VECTOR_LENGTH];
		byte [] aesContent = null;
		// Extract contents in different byte streams