Same Algo for Key and Cipher recommended?

Hi,
Can I use different algos for the key i want to use for a cipher and the cipher itself or
is it mandatory to use the same algo for both?
I don't found any answer for this simple question.
regards,
Olek

Olek wrote:
Hi,
No - but who said that this is complete sensless?If it made sense then there would be no need to create a SecretKey object for a particular algorithm. AES requires a 128 bit or 192 bit or 256 bit key so how can a 56 bit DES key be used with AES? Simple logic.
If using the JCE you had tried to use a DES key in AES then you would quickly have found out that an exception gets thrown in the init() method. A very simple 3 line test harness. This would have taken you no more than 5 minutes to cobble together. Much quicker than asking in this forum but ...
The Key and the Cipher are two independent things for a non
high skilled crypto veteran.What logic makes Key and Cipher independent? 1 minute of thought after 15 minutes with the most elementary cryptography tutorial would make you understand this.
I wouldn't aks if this is clear like 1 + 1 = 2 - is this clear!? ;)Obvious it is not clear but I do know that insecure and faulty cryptography results from people not studying cryptography. I do not mean that one must know all about all aspect of cryptography but one should have done significant background reading, especially with regards to the type of cryptography one is using.
How much background study have you done Olek?
>
Olek

Similar Messages

  • Lick on the icon in appstore which allows to gift an app or copy link , post to facebook etc does not open it stucks.Also same case for itunes and moreover when I play music in iTunes it

    Itunes and appstore problems:
    i have an iPhone 5 whenever I try to click on the icon in appstore which allows to gift an app or copy link , post to facebook etc does not open it stucks.Also same case for itunes and moreover when I play music in iTunes it stops ..start again stops and start again ..stops and does not play..so I  am unable to make gift purchase and listen to the songs..are these bugs or what? help

    ps when syncing it jumps through steps 1 - 4 real fast, i seem to remeber iphone showing the number of tracks transferring and names, but i see nothing? then it sits on 5 saying "waiting for changes to be applied"

  • Same BS for sender and receiver comms

    Hey pals,
    can we use same BS for sender and reciever communication channels?!!
    -Esha

    Hello Esha,
    You have to you 2 BS
    One from where u hav to pick the file and the other one where you want to post it.
    what is a Business system? What is use of creating it
    Business System have an entry in the SLD and Buiness Service do not.
    Business Systems are used when you are sending data to and from an R3 system and can be of ABAP, JAVA and Third Party Types.
    Business System is a logical representation of a Technical System.
    Business Service is a abstract representation of a System. For instance, www.google.com have a several system working together and IPs of this machines change eventually. When we use a Business Services like google we reference a computer that we don't know the phisical implementation.
    Thanks,
    Satya
    Edited by: SATYA KUMAR AKKARABOYANA on May 15, 2008 5:51 PM

  • Different segment in same document for leading and non-leading ledger

    Hi,
    Is it possible to have different segments derived in the same document for Leading and Non-leading ledgers.
    Is there an exit where we can substitute the segment originally derived so as to update only in one particular ledger
    Please suggest.

    Thanks Alex for your response.
    But would it be possible to update the segment only in one ledger, the other one carrying the default values coming from profit center?

  • Bug or feature: TableView.EditEvent - same type for value and row?

    Just noticed (normally I don't care overly much about generics, they are my natural enemies : -) that the return type for both cell and row data is the same:
    class EditEvent<T> {
        T getNewValue()
        T getOldValue()
        T getRowValue()
    }old/new value is fine, but typically the row has another type, which most probably is completely unrelated, as f.i. in
    TableView<Person> tableView = new TableView<Person>(persons);
    TableColumn<String> firstName = new TableColumn<String>("First Name");
    firstName.setProperty("firstName");
    EventHandler<EditEvent<String>> nameEditHandler = new EventHandler<TableView.EditEvent<String>>() {
                @Override
                public void handle(TableView.EditEvent<String> e) {
    // compile error
                    Person p = (Person)e.getRowValue();
                    String newValue = (String)e.getNewValue();
                    p.setFirstName(newValue);
    firstNameCol.setOnEditCommit(nameEditHandler);The compile error is due to the event requiring the same type for row and cell. Obviously, can remove all type parameters - but how to solve cleanly without getting unchecked/rawtype warnings?
    Thanks
    Jeanette

    Good morning, Jonathan (my day time : -)
    If you mean that big issue where you threaten (and locally actually already did) to remove all the niceties of auto-magic column binding via setting property names - yeah, I've read it, partly unhappily. But that's another story.
    to create two separate EditEvents - one for row edits and one for cell edits.
    hmm .. have been expecting something along the lines of
    EditEvent<R, C> {
         R getRowValue();
         C getOldValue();
         C getNewValue();
    // used in
    TableView<R>
    TableColumn<C>
    // for row edits
    R == C
    getRowValue() == getOldValue()Musing a bit longer, the event could be streamlined a bit - remove all the convenience sugar: the receiver has to know the exact details of grabbing the data anyway in order to be able to change it (in the current workflow, it's not necessarily the way to go) so old/row is redundant
    EditEvent<S> {
       <S> getEditValue();
    }Cheers
    Jeanette

  • Same SLD for dvlpmnt and prod servers??

    Is it right to have same SLD for Development and Production servers??

    Hello,
    Is it right to have same SLD for Development and Production servers??
    The answer actually depends on your requirements, you can refer to this thread for more information (see the reply of Bhavesh):
    Re: Difference Between Central SLD & Local SLD
    The approach we've taken is more like what Barry suggested in the thread.
    Hope this helps,
    Mark

  • I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    That generally has to do with data corruption.   Is your data backed up?
    What version of Office do you have?
    What Mac operating system?

  • Can I use same account for android and PC and how ...

    Can I use same account for android tablet and PC and how do I link both?

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

  • How to use same jsp for edit and add form

    Hi,
    I would like to use the same .jsp file for edit and add. I just want to change a few controls based on edit/add mode. How do I configure this in the jsp?

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • Same dates for GA and GR in ATP

    Hi All,
    This is my very first post. I have a situation where for an Inbound delivery. I should have 2 days difference in Goods arrival and goods receipt in plant. For some reason system is showing the same dates for Goods arrival and goods Receipt. Can someone help me what all tolook for?
    Many thanks
    YS

    ATO Items/ Models have significant complex requirements and behavior when ATP check is called. While this is handled appropriately in ATP from OM interface, direct ATP Inquiry either from APS responsibility or similar form in OM--> Scheduling menu option.
    I'll highly suggest not to use either of these ATP Inquiry forms for anything related to CTO (ATO, PTO etc) and only use OM UI for such availability checks. This is by design unless Oracle makes significant changes to how these forms are built, please note there is no configurator support from these 2 forms for similar reasons.
    Thanks
    Navneet Goel

  • Using same project for Desktop and Web (?)

    Is it possible to manage a same codebase/project for compiling both for AIR and web release (?) Also, on a distant thinking, can ANT able to help on this way?

    To elaborate further, in Flash Builder create:
    Core Library : Actionscript Library Project - This project contains 90% of your code as CWBenccw mentioned.
    AIR Core Library : ActionScript Library Project (Linking AIR libraries) - This project contains AIR-specific implementations of core functionality.
    Web App: ActionScript Project (Web) - This project links with Core Library and contains a basic entry point for web (a Main Sprite)
    Desktop App: ActionScript Project (Desktop) - This project works like the above, but with a Desktop entry point and Application descriptor, and links with AIR Core Library
    Mobile App:  ActionScript Mobile Project - Same as above, but for mobile
    The way you use your AIR Core Library is to provide overrides for things that are different in AIR.  For instance you might want to be able to save files differently, but transparaently to the Core Library.  In this case you create an interface for saving in Core Library, e.g.
    interface Saver
    function save(filename:String, data:String) : void;
    You also create an implementation for your non-AIR core:
    class FlashSaver implements Saver
    function save(filename:String, data:String) : void
         var so : SharedObject = SharedObject.getLocal("something");
         so.data[filename] = data;
         so.flush();
    And then an AIR implementation that might use AIR features like direct File IO.
    Your various entry points are responsible for providing the correct implementation of Saver to your Core Libraries via some form of dependency injection.

  • Dataguard 9iR2 using same SID for primary and physical standby issues

    Hello, I have been following the Creating Physical Standby Database document from Oracle setting up a physical clone for a 9iR2 database on Solaris 9 environment between two identical workstations. I want to databases to have the same SID for relatively seemless failover however the redo logs are not pushed to the physical clone. when I switch a logfile on the primary and then query v$archive_dest on dest_id=2 I get a status of ERROR and the ERROR is the ORA-12154 TNS service name error.
    Here is a summary of my setup:
    Primary - SID = PROD1, located on WS001
    Clone - SID = PROD1, located on WS002
    SPFILE settings on Primary:
    *.db_name='PROD1'
    *.dg_broker_start=true
    *.fal_client='PROD1_node2'
    *.fal_server='PROD1_node1'
    *.log_archive_dest_2='service=PROD1_node2 optional lgwr async=20480 noaffirm reopen=15 max_failure=10 delay=30 net_timeout=30'
    tnsnames.ora on Primary:
    PROD1_node2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    (CONNECT_DATA =
    (SID = PROD1)
    listener.ora on secondary:
    PROD1_node2 =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    SID_LIST_PROD1_node2 =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /export/oracle/oracle_9.2/PROD1)
    (SID_NAME = PROD1)
    Any input would be appreciated. I can provide whatever else you might need. I thought this was the most pertinent to this problem.
    Thanks.
    Jim

    I have been looking at the sqlnet.ora files for the two databases
    for WS001:
    Names.Default_Domain = WS001.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    for WS002:
    Names.Default_Domain = WS002.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    I cannot connect with sqlplus from WS001 to WS002 on the other machine.

  • Bluetooth keyboard K810 and mouse T630 at the same time, repeating keys and mouse starts to stutter

    I use a Lenovo Thinkpad Tablet 2, Windows 8.1(core edition), x86 (32bit).
    If I pair a Bluetooth keyboard K810 and mouse T630 at the same time, with Wifi On, the keyboard starts repeating the keys and the mouse starts to stutter. Especially if WiFi is under load (when downloading something).
    This doesn’t happens if I pair only the keyboard, or if I pair mouse and keyboard with Wifi OFF.
    If I pair a Bluetooth keyboard and use a USB mouse with Wifi ON, everything works fine.
    If I pair a Bluetooth mouse and use a USB keyboard with Wifi ON, everything works fine.
    I think it is an issue with two Bluetooth devices paired at the same time with Wifi ON.
    So here is a summary:
    BT mouse and BT keyboard / Wifi ON ----> repeating chars and the mouse starts to stutter (bug)
    BT mouse and BT keyboard / Wifi OFF ----> works fine
    Only BT keyboard / Wifi ON ----> works fine
    Only BT mouse / Wifi ON ----> works fine
    USB mouse and BT keyboard / Wifi ON ----> works fine
    USB keyboard and BT mouse / Wifi ON ----> works fine
    Where is the problem? Is there any solution?
    Solved!
    Go to Solution.

    I have solved the problem. In the Wlan-Drives-Settings there is the "Bluetooth Collaboration" option. I put the value to "Disable" and now works everything like charm.
    Best regards, jC
    Broadcom manual:
    Bluetooth Collaboration
    Bluetooth Collaboration enables general purpose input/output transmit suppression protocol between the IEEE 802.11 media access control (MAC) and an external Bluetooth chip to minimize transmit interference. Bluetooth Collaboration is enabled by default.

  • Shake vs. Motion for Keying and Motion Tracking? Also, best way to learn?

    Hello,
    I have been working in the Final Cut Studio Suite for a little while and have gotten pretty good at getting visual effects out of Motion.
    However, Shake has always looked very interesting to me and from what I understand, is much more powerful than Motion.
    Two effects I am most often involved with are:
    1. keying out greenscreen
    2. analyzing motion to match-move elements of a composite
    Can anyone vouch for how much better Shake is at doing these processes over Motion and After Effects?
    If I do decide to get Shake, I know I'll have to spend a while getting used to just moving around in it - node-based workflow is TOTALLY new to me.
    Are there any good learning resources that Shake gurus here can recommend? I've always learned better from CDs and DVDs than books, but I would consider picking up a book to learn from if it were REALLY good.

    Shake is far more powerful and flexible than Motion in both of these tasks. It offers considerably more control over the end result, albeit at the expense of a learning curve.
    I mainly learned from books so I would recommend the tutorial book that comes inside the box as well as this:
    http://www.amazon.com/Apple-Pro-Training-Shake-4/dp/0321256093
    I've also got a couple of Gnomon DVDs as well, which I found helpful:
    http://www.thegnomonworkshop.com/store/category/30/Shake

  • Unable to use the same ID for ipad and iphone

    When I enter Apple  ID and password to install application on Iphone, It is notified that " your password was entered incorrectly", eventhough those ID and password work normally on Ipad. What is the possible problem ?

    @Randers4: The thing is, they are the same account. I registered as "elonka" way back when, and then the login changed to the email address, "[email protected]" at some point.  The password is the same.  But when my phone gets into this odd state, even though I am entering the correct password, it acts as though I have entered an incorrect password.
    One other thing that seems to affect it, is whichever app I have most recently made an IAP (In-App Purchase) on.  So if I made a purchase as "elonka", then that seems to be the default that shows up when I try to update any other app, and I can't log out from it.  Or if I made an in-app purchase as "[email protected]", then that one becomes the default.
    It sounds to me like a bug, and that what is needed is for the Store logout to clear both the account name of "what app was recently downloaded" *and* the account name for "what in-app purchase has most recently been made".

Maybe you are looking for