@@ -328,6 +328,56 @@ impl Cipher {
328
328
unsafe { CipherRef :: from_ptr ( ffi:: EVP_rc4 ( ) as * mut _ ) }
329
329
}
330
330
331
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
332
+ pub fn camellia128_cfb128 ( ) -> & ' static CipherRef {
333
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_cfb128 ( ) as * mut _ ) }
334
+ }
335
+
336
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
337
+ pub fn camellia128_ecb ( ) -> & ' static CipherRef {
338
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_128_ecb ( ) as * mut _ ) }
339
+ }
340
+
341
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
342
+ pub fn camellia192_cfb128 ( ) -> & ' static CipherRef {
343
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_cfb128 ( ) as * mut _ ) }
344
+ }
345
+
346
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
347
+ pub fn camellia192_ecb ( ) -> & ' static CipherRef {
348
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_192_ecb ( ) as * mut _ ) }
349
+ }
350
+
351
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
352
+ pub fn camellia256_cfb128 ( ) -> & ' static CipherRef {
353
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_cfb128 ( ) as * mut _ ) }
354
+ }
355
+
356
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_CAMELLIA" ) ) ) ]
357
+ pub fn camellia256_ecb ( ) -> & ' static CipherRef {
358
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_camellia_256_ecb ( ) as * mut _ ) }
359
+ }
360
+
361
+ #[ cfg( not( boringssl) ) ]
362
+ pub fn cast5_cfb64 ( ) -> & ' static CipherRef {
363
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_cfb64 ( ) as * mut _ ) }
364
+ }
365
+
366
+ #[ cfg( not( boringssl) ) ]
367
+ pub fn cast5_ecb ( ) -> & ' static CipherRef {
368
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_cast5_ecb ( ) as * mut _ ) }
369
+ }
370
+
371
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_IDEA" ) ) ) ]
372
+ pub fn idea_cfb64 ( ) -> & ' static CipherRef {
373
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_cfb64 ( ) as * mut _ ) }
374
+ }
375
+
376
+ #[ cfg( not( any( boringssl, osslconf = "OPENSSL_NO_IDEA" ) ) ) ]
377
+ pub fn idea_ecb ( ) -> & ' static CipherRef {
378
+ unsafe { CipherRef :: from_ptr ( ffi:: EVP_idea_ecb ( ) as * mut _ ) }
379
+ }
380
+
331
381
#[ cfg( all( ossl110, not( osslconf = "OPENSSL_NO_CHACHA" ) ) ) ]
332
382
pub fn chacha20 ( ) -> & ' static CipherRef {
333
383
unsafe { CipherRef :: from_ptr ( ffi:: EVP_chacha20 ( ) as * mut _ ) }
0 commit comments