If you have a PH account, you can customize your PH profile.

Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 553
Number of posts: 956

This Forum Only
Post New Thread

Report
anyone can help plz with this problem Posted by ahmed_seh on 27 Oct 2009 at 2:29 PM
hi guys
how r is everyone???!! i hope u r fine and ok

goodmorning....

guys i write code and i need ur help with it....
let take example to make problem clear 2 u
-----------------------------------------------------------------------

m_int2 =

welcome to elgamal encryption part

>> m_int2 = double(m_int2)
m_int2 =

Columns 1 through 8

119 101 108 99 111 109 101 32

Columns 9 through 16

116 111 32 101 108 103 97 109

Columns 17 through 24

97 108 32 101 110 99 114 121

Columns 25 through 32

112 116 105 111 110 32 112 97

Columns 33 through 34

114 116

maple('m:=',m_int2)

ans =

m := matrix([[119, 101, 108, 99, 111, 109, 101, 32, 116, 111, 32, 101, 108, 103, 97, 109, 97, 108, 32, 101, 110, 99, 114, 121, 112, 116, 105, 111, 110, 32, 112, 97, 114, 116]])

------------------------------ upto here everything is normal untill now

now come to the line makes problem 2 me,,, the line is

maple('c2:= m*k^rr1 mod P')

ans =

c2 := 908*m

as u can see guys, the result of c2 must be number only, i mean maple function should takes each element in matrix m and multiply it with k to the power of rr1,since value of rr1 is known by user.

but here result of c2=908*m whereas it should be in this form c2=908*112(112 is example) not should be the real value of resultant multiplication.

i wish guys u understand my point and make it clear 2 u

waiting ur reply and comment guys.

thank u very much

buy buy



 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.