Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 24th, 2006, 11:29 PM
rman53 rman53 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 2 rman53 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 34 sec
Reputation Power: 0
Can a 128-bit AES key be used to encrypt a 1024-bit RSA key?

Hi,

I have a quick question:

Can a 128-bit AES key be used to encrypt a 1024-bit RSA key?

Thanks!

Reply With Quote
  #2  
Old January 25th, 2006, 01:06 AM
kuza55's Avatar
kuza55 kuza55 is offline
It's only wrong if you're caught....
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Location: Sydney, Australia
Posts: 1,286 kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 6 h 10 m 16 sec
Reputation Power: 97
Quote:
Originally Posted by rman53
Hi,

I have a quick question:

Can a 128-bit AES key be used to encrypt a 1024-bit RSA key?

Thanks!

What do you mean; you want to use AES to encrypt your private RSA key? Sure, you can do that, your key is just another piece of data. If you want to encrypt your public key on the other hand, well, that kinda defeats the purpose of assymetric key encryption, doesn't it?
__________________
- Alex
Web Security Research (my blog)
Handbook of Applied Cryptography (Free!)

Reply With Quote
  #3  
Old January 25th, 2006, 02:27 AM
B-Con's Avatar
B-Con B-Con is offline
Crypto-Con
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Apr 2004
Location: UC Davis
Posts: 6,664 B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 21 h 53 m 29 sec
Reputation Power: 879
Quote:
Originally Posted by kuza55
What do you mean; you want to use AES to encrypt your private RSA key? Sure, you can do that, your key is just another piece of data. If you want to encrypt your public key on the other hand, well, that kinda defeats the purpose of assymetric key encryption, doesn't it?
He probably wants to keep his private key safe, say on his local computer, and it's easier for him to remember a password/phrase that can be whitened to 128-bit symetric key that would be used to decrypt the private key than it would be to remember the private key itself.

password/phrase -> whitening() -> AES-128 key -> decrypt_private_key()
__________________
- "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started.
- Why know the ordinary when you can understand the extraordinary?


- Sponsor my caffeine addiction! (36.70 USD recieved so far -- Latest donor: Mark Foxvog
)

Reply With Quote
  #4  
Old January 25th, 2006, 02:37 AM
kuza55's Avatar
kuza55 kuza55 is offline
It's only wrong if you're caught....
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Location: Sydney, Australia
Posts: 1,286 kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level)kuza55 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 6 h 10 m 16 sec
Reputation Power: 97
Quote:
Originally Posted by B-Con
He probably wants to keep his private key safe, say on his local computer, and it's easier for him to remember a password/phrase that can be whitened to 128-bit symetric key that would be used to decrypt the private key than it would be to remember the private key itself.

password/phrase -> whitening() -> AES-128 key -> decrypt_private_key()
I thought so, but its always worth checking, and I didn't lose much from tying an extra sentance, , and I'm kinda bored, and thinking of resurrecting some old projects which have long fallen by the wayside...[1]

On the other hand, aren't most private keys generated via a password/phrase (hopefully the phrase), so you would have no need to actually store the private key anywhere, and just remember the phrase.....

On the other hand he could have just gotten a random one, whatever, we'll never know, *sigh*, well, until he replies here anyay,

[1](Note: If anyone knows much about the design of client/server apps and is willing to lend expertise, I would love to hear from you, ah well, I doubt my plea will get anywhere, how many people come to this forum anyway? Me, you, Simon, and a few others who show themselves every now and again?[EDIT]Ok, it seems jafet reads it as well, but you get my point, [/EDIT])

Last edited by kuza55 : January 25th, 2006 at 04:01 AM.

Reply With Quote
  #5  
Old January 25th, 2006, 03:49 AM
jafet jafet is offline
Redpill
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2005
Posts: 1,658 jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level)jafet User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 9 h 52 m 31 sec
Reputation Power: 106
Send a message via MSN to jafet
Quote:
Can a 128-bit AES key be used to encrypt a 1024-bit RSA key?


Can you encrypt two 512-bit data strings using AES?

Reply With Quote
  #6  
Old January 25th, 2006, 09:16 PM
B-Con's Avatar
B-Con B-Con is offline
Crypto-Con
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Apr 2004
Location: UC Davis
Posts: 6,664 B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level)B-Con User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 21 h 53 m 29 sec
Reputation Power: 879
Quote:
Originally Posted by jafet
Can you encrypt two 512-bit data strings using AES?
No, AES only encrypts strings with an odd bit length.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Can a 128-bit AES key be used to encrypt a 1024-bit RSA key?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT