[FIX][BUG] RSAEncryptionScheme>>decode:parameter:

Jack Keel jhkeel at facstaff.wisc.edu
Sun Apr 11 23:46:05 UTC 2004


Rob,

Thanks for the quick response.

The example gets much farther now, but I get a "Error: Decoding error" 
in RSAEncryptionScheme>>decode:parameter:
Appears to be looking for a terminating flag of 1 and finds 155. I 
noticed you are working with 3.7;  I filed it into a 3.6 Croquet image 
- might that be the difference?

	i _ hashLen + 1.
	terminado _ false.
	[terminado] whileFalse:
		[b _ dataBlock at: i.
		b=0 ifTrue:
			[i _ i+1.
			i > dbLen ifTrue: [self error: 'decoding error']]
		ifFalse:
			[b=1
				ifTrue: [terminado _ true]
				ifFalse: [self error: 'decoding error']    <---- Error here
			]
		].
where b=155
and i is 21
and dataBlock is a ByteArray(107 210 44 216 137 106 65 130 3 156 36 133 
70 43 132 207 71 36 23 19 155 109 74 171 21 95 102 130 80 220 182 106 
88 69 185 221 146 53 7 157 9 118 27 50 93 157 158 231 44 8 34 132 56 
217 99 62 223 219 171 121 78 113 44 179 147 22 34 95 134 143 155 179 40 
219 184 96 130 233 44 163 137 69 22 35 11 180 16 161 100 249 86 163 173 
167 135 28 140 103 19 43 29 186 47 34 149 115 203 207)


Also

I think we will be interested in the x509 code and would probably be 
able to attempt to incorporate it into the Cryptography package after I 
get a little more familiar with it.  Looks kinda cryptic to me at the 
moment ;-)

Rob


> Jack, this seems to fix it.
>
> I am using DSA in SqueakElib, but only with partial certificates, if
> that helps you any.  There is x509 code floating about that needs
> integration into the Crypto package.
>
> Rob




More information about the Squeak-dev mailing list